createOrderT.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. <template>
  2. <view class="content page-contanier" :class="['qn-page-' + theme]">
  3. <view class="" style="background-color: #4076d6;height: 100rpx;">
  4. </view>
  5. <view class="good-info-wrap">
  6. <view class="good-list">
  7. <!-- <view class="empty" v-if="xmlist.length == 0" @click="chooseGoods">
  8. 选择项目
  9. </view> -->
  10. <!-- 商品详情 -->
  11. <view class="good-wrap">
  12. <view class="good">
  13. <image :src="item_detail.image" mode="" class="good-img"></image>
  14. <view class="good-info">
  15. <view class="good-name clamp2">
  16. {{item_detail.name}}
  17. </view>
  18. <view class="good-price">
  19. {{item_detail.price}}
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="mjly">
  26. <view class="ly-left">
  27. 买家留言
  28. </view>
  29. <input type="text" placeholder="请输入留言内容" class="ly-right" v-model="mjly">
  30. </view>
  31. </view>
  32. <!-- <view class="mj-info" @click="goPage('/pagesT/customer/selCustomer')">
  33. <view class="mjly" style="border-bottom: 1rpx solid #f7f8fa;">
  34. <view class="ly-left">
  35. 客户姓名
  36. </view>
  37. <input type="text" placeholder="请输入留言内容" class="ly-right" v-model="customerData.name" v-if="customerData.name" disabled>
  38. <image src="../../static/img/downright.png" mode="" v-else></image>
  39. </view>
  40. <view class="mjly" >
  41. <view class="ly-left">
  42. 联系方式
  43. </view>
  44. <input type="number" placeholder="请填写联系方式" class="ly-right" v-model="customerData.mobile" @click.stop="">
  45. </view>
  46. </view> -->
  47. <!-- 选择门店 -->
  48. <view class="sc-md">
  49. <view class="sc-tip">
  50. 选择门店
  51. </view>
  52. <view class="store-info" @click="openStoreChoose">
  53. <image :src="choose_store.logo" mode="" class="store-logo"></image>
  54. <view class="info">
  55. <view class="store-name">
  56. {{choose_store.name}}
  57. </view>
  58. <view class="store-address">
  59. {{choose_store.area.provinceName + choose_store.area.cityName + choose_store.area.districtName + choose_store.area.address}}
  60. </view>
  61. </view>
  62. <view class="float_right"><text class="ibonfont ibonjinru"></text></view>
  63. </view>
  64. </view>
  65. <!-- 门店列表弹出层 -->
  66. <u-popup v-model="store_choose_show" mode="bottom" @close="close" @open="open" border-radius="14">
  67. <view>
  68. <scroll-view scroll-y="true" class="store-list" @scrolltolower="getStoreList()">
  69. <view class="store-info " :class="{'choose-stroe': storeitem.id == choose_store.id}"
  70. v-for="(storeitem,storeindex) in store.list" @click="chooseStore(storeitem)">
  71. <image :src="storeitem.logo" mode="" class="store-logo"></image>
  72. <view class="info">
  73. <view class="store-name">
  74. {{storeitem.name}}
  75. </view>
  76. <view class="store-address">
  77. {{storeitem.area.provinceName + storeitem.area.cityName + storeitem.area.districtName + storeitem.area.address}}
  78. </view>
  79. </view>
  80. <view class="float_right"></text></view>
  81. </view>
  82. <u-loadmore :status="store.loadingType" />
  83. </scroll-view>
  84. </view>
  85. </u-popup>
  86. <!-- 预约 -->
  87. <its-calendar :sta_num="start_time" :end_num="end_time" :int_num="30" @getTime="getTime"></its-calendar>
  88. <!-- 指派 -->
  89. <!-- <scroll-view scroll-x="true" class="zp-wrap" v-if="timed"> -->
  90. <scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
  91. <!-- <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem)"
  92. :class="{'choose': ygitem.uid == choose_yg.uid}"> -->
  93. <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem)"
  94. :class="{'choose': ygitem.id == choose_yg.id}">
  95. <image :src="ygitem.avatar || '../../static/img/avt.png'" mode="" class="zp-logo"></image>
  96. <view class="zp-name">{{ygitem.staffName}}</view>
  97. </view>
  98. </scroll-view>
  99. <!-- 结算 -->
  100. <!-- 填充 -->
  101. <view class="" style="height: 110rpx;"></view>
  102. <view class="tj-dd">
  103. <view class="">
  104. <text style="font-size: 26rpx;color: #999;">实付</text>
  105. <text style="color: #CE372E;font-size: 44rpx;font-weight: bold;padding-left: 10rpx;"
  106. class="rmb">{{order_detail.pay_price || '0'}}</text>
  107. <!-- <text style="font-size: 22rpx;color: #333333;font-weight: bold;">(包含预约费¥3元)</text> -->
  108. </view>
  109. <view class="tj-btn" @click="canpay?selPayFun():''" :class="{'canpay': canpay}">
  110. 提交
  111. </view>
  112. <!-- <view class="tj-btn" @click="selPayFun()" :class="{'canpay': canpay}">
  113. 提交
  114. </view> -->
  115. </view>
  116. <u-popup v-model="payPop" mode="bottom" :border-radius="12">
  117. <view class="pay-pop-view">
  118. <view class="pay-sel-title clearfix">
  119. <text class="float_left">付款方式</text>
  120. <text class="float_right ibonfont ibonguanbi" @click="closePayPop"></text>
  121. </view>
  122. <view class="pay-ul">
  123. <view class="pay-li" @click="pay_type = 1">
  124. <text class="ibonfont ibonhuodaofukuan"></text>
  125. <view class="pay-name clearfix"
  126. :class="[order_detail.pay_price*1 > Number(order_detail.memberBalance) ? 'balance-pay-name' : '']">
  127. <view class="float_left">
  128. <text>余额</text>
  129. <text class="balace-num">(余额:¥{{ Number(order_detail.memberBalance) }})</text>
  130. </view>
  131. <text class="float_right ibonfont ibonxuanze1" v-if="pay_type == 1"></text>
  132. <text class="float_right ibonfont ibonxuanze1" style="color: #CCCCCC;" v-else></text>
  133. </view>
  134. </view>
  135. <view class="pay-li" @click="pay_type = 2" v-if="order_detail.pay_price*1 > 0">
  136. <text class="ibonfont ibonweixinzhifu"></text>
  137. <view class="pay-name clearfix ">
  138. <view class="float_left">
  139. <text>微信</text>
  140. </view>
  141. <text class="float_right ibonfont ibonxuanze1" v-if="pay_type == 2"></text>
  142. <text class="float_right ibonfont ibonxuanze1" style="color: #CCCCCC;" v-else></text>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="pay-btn primary-btn" @click="submit">
  147. <text>确定</text>
  148. </view>
  149. </view>
  150. </u-popup>
  151. </view>
  152. </template>
  153. <script>
  154. import its from '@/components/its-calendar/its-calendar.vue'
  155. export default {
  156. components: {
  157. its
  158. },
  159. data() {
  160. return {
  161. payPop: false,
  162. canpay: false,
  163. good_id: '',
  164. item_detail: {},
  165. mjly: '',
  166. customerData: {},
  167. store: {
  168. page: 1,
  169. page_size: 10,
  170. list: [],
  171. loadingType: 'loadmore',
  172. loaded: false,
  173. },
  174. yg: {
  175. page: 1,
  176. page_size: 10,
  177. list: [],
  178. loadingType: 'loadmore',
  179. loaded: false,
  180. },
  181. choose_yg: {
  182. },
  183. choose_store: {},
  184. choose_time: '',
  185. choose_time_detail: '',
  186. order_detail: {}, //计算结果
  187. timed: false, //是否选择完时间
  188. store_choose_show: false, //门店选择弹出层开关
  189. start_time: 0,
  190. end_time: 24,
  191. yyshow: true,
  192. pay_type: 1, //1余额2微信3支付宝
  193. }
  194. },
  195. computed: {
  196. // start_time() {
  197. // let start = this.store.state
  198. // },
  199. // end_time() {
  200. // }
  201. },
  202. watch: {
  203. choose_store(newval, oldval) {
  204. this.choose_yg = {}
  205. if (newval.openTime.isAllDay != 1) {
  206. let start = newval.openTime.start.split(':')
  207. let end = newval.openTime.end.split(':')
  208. if (start[1] > 30) {
  209. this.start_time = start[0] * 1 + 1
  210. } else {
  211. this.start_time = start[0] * 1
  212. }
  213. this.end_time = end[0] * 1
  214. console.log(this.start_time)
  215. } else {
  216. this.start_time = 0
  217. this.end_time = 24
  218. console.log(this.start_time)
  219. }
  220. if (this.choose_time != '') {
  221. console.log(this.choose_time, 'this.choose_time ')
  222. // this.getYgList('reload')
  223. }
  224. },
  225. choose_time(newval, oldval) {
  226. // this.getYgList('reload')
  227. },
  228. choose_yg(newval, oldval) {
  229. if (newval.staffName && newval.uid != 0) {
  230. this.getYgYyTimeArea()
  231. } else {
  232. if (newval.staffName == '随机指派' && this.choose_time) {
  233. this.canpay = true
  234. }
  235. }
  236. },
  237. choose_time_detail(newval, oldval) {
  238. if (this.choose_store && this.choose_yg.uid != 0) {
  239. this.getYgYyTimeArea()
  240. }
  241. }
  242. },
  243. onLoad(opt) {
  244. this.good_id = opt.id
  245. this.getItemDetail()
  246. this.calculation()
  247. console.log(this.$store.state.locationObj, 'this.$store.state.locationObj')
  248. this.getStoreList()
  249. this.getAllygList()
  250. },
  251. onShow() {
  252. console.log(this.customerData)
  253. },
  254. onReachBottom() {
  255. },
  256. onReady() {
  257. },
  258. methods: {
  259. getAllygList() {
  260. let that = this
  261. that.$u.api.getAllygList({
  262. page: 1,
  263. pageSize: 100
  264. }).then(res => {
  265. console.log(res);
  266. let arr0 = res.data.filter(item => item.is_technician == 1)
  267. let arr = [{
  268. uid: 0,
  269. id: 0,
  270. staffName: '随机指派'
  271. }]
  272. that.yg.list = arr.concat(arr0)
  273. // console.log();
  274. })
  275. },
  276. close() {
  277. this.store_choose_show = false
  278. },
  279. open() {
  280. },
  281. // 打开门店选择
  282. openStoreChoose() {
  283. console.log('打开门店选择')
  284. this.store_choose_show = true
  285. },
  286. //选择门店
  287. chooseStore(item) {
  288. this.choose_store = item
  289. this.close()
  290. },
  291. getTime(e) {
  292. console.log(e);
  293. this.timed = true
  294. this.choose_time = e.time.split(' ')[0]
  295. this.choose_time_detail = e.time.split(' ')[1]
  296. },
  297. //计算价格
  298. calculation() {
  299. let that = this
  300. that.$u.api.calculation({
  301. id: that.good_id
  302. }).then(({
  303. data
  304. }) => {
  305. console.log(data, 'price')
  306. this.order_detail = data
  307. }).catch(err => {
  308. })
  309. },
  310. getItemDetail() {
  311. this.$u.api.getItemDetail({
  312. id: this.good_id
  313. }).then(({
  314. data
  315. }) => {
  316. this.item_detail = data
  317. }).catch(err => {
  318. })
  319. },
  320. // 获取门店列表
  321. getStoreList() {
  322. console.log('获取门店列表')
  323. let item = this.store
  324. if (item.loadingType == 'loading' || item.loadingType == 'nomore') {
  325. return
  326. }
  327. item.loadingType = 'loading'
  328. this.$u.api.getStoreList({
  329. page: item.page,
  330. pageSize: item.page_size,
  331. longitude: this.$store.state.locationObj.longitude,
  332. latitude: this.$store.state.locationObj.latitude
  333. }).then(({
  334. data
  335. }) => {
  336. console.log(data, '门店列表')
  337. item.list = item.list.concat(data)
  338. if (item.page == 1) {
  339. this.choose_store = item.list[0]
  340. }
  341. item.page++
  342. if (item.page_size == data.length) {
  343. item.loadingType = 'loadmore'
  344. } else {
  345. item.loadingType = 'nomore'
  346. }
  347. })
  348. },
  349. //获取员工列表
  350. getYgList(type) {
  351. let item = this.yg
  352. if (type == 'reload') {
  353. item.list = []
  354. item.loadingType = 'loadmore'
  355. }
  356. if (item.loadingType == 'loading' || item.loadingType == 'nomore') {
  357. return
  358. }
  359. item.loadingType = 'loading'
  360. this.$u.api.getTimeYgList({
  361. page: 1,
  362. pageSize:100,
  363. time: this.choose_time,
  364. 'SHOP-TOKEN': this.choose_store.token
  365. }).then(({
  366. data
  367. }) => {
  368. console.log(data,'data');
  369. let arr = [{
  370. uid: 0,
  371. staffName: '随机指派'
  372. }]
  373. item.list = arr.concat(data)
  374. item.loadingType = 'nomore'
  375. })
  376. },
  377. cannot(title = '该员工不在工作时间') {
  378. uni.showToast({
  379. title: title,
  380. icon: 'none'
  381. })
  382. this.canpay = false
  383. },
  384. isJson(str) {
  385. if (typeof str == 'string') {
  386. try {
  387. var obj = JSON.parse(str);
  388. if (typeof obj == 'object' && obj) {
  389. return true;
  390. } else {
  391. return false;
  392. }
  393. } catch (e) {
  394. console.log('error:' + str + '!!!' + e);
  395. return false;
  396. }
  397. }
  398. console.log('It is not a string!')
  399. },
  400. //判断是否能预约员工
  401. getYgYyTimeArea() {
  402. let that = this
  403. that.canpay = false
  404. that.$u.api.getYgYyTimeArea({
  405. time: that.choose_time,
  406. uid: that.choose_yg.uid
  407. }).then(({
  408. data
  409. }) => {
  410. this.canpay = true
  411. // console.log(data,'data')
  412. // let choose_time = that.choose_time_detail.replace(/\:/g, '')
  413. // if(this.isJson(data.time_slot)) {
  414. // data.time_slot = JSON.parse(data.time_slot)
  415. // }
  416. // for(let j = 0;j<data.time_slot.length;j++) {
  417. // let worktime = [data.time_slot[j][0].replace(/\:/g, ''), data.time_slot[j][1].replace(/\:/g,
  418. // '')]
  419. // // 判断员工是否在工作时间
  420. // console.log(choose_time, worktime)
  421. // if (choose_time * 1 >= worktime[0] * 1 && choose_time * 1 <= worktime[1] * 1) {
  422. // this.canpay = true
  423. // console.log('可以预约');
  424. // break
  425. // } else {
  426. // if(j == data.time_slot.length) {
  427. // that.cannot()
  428. // }
  429. // }
  430. // if (data.reserved && data.reserved.length > 0) {
  431. // for (let i = 0; i < data.reserved.length; i++) {
  432. // if (j== data.time_slot.length && that.choose_time_detail == data.reserved[i]) {
  433. // that.cannot('该员工已有预约')
  434. // break
  435. // }
  436. // }
  437. // }
  438. // }
  439. })
  440. },
  441. choosYg(item) {
  442. this.choose_yg = item
  443. // //查看员工是否有空
  444. // if (this.choose_yg.uid != 0) {
  445. // this.getYgYyTimeArea()
  446. // }
  447. },
  448. selPayFun() {
  449. // if (!this.is_notExpress) {
  450. // return;
  451. // }
  452. this.payPop = true;
  453. },
  454. // 创建项目订单
  455. createItemOrder() {
  456. let that = this
  457. that.$u.api.createItemOrder({
  458. "order_id": that.order_detail.order_id,
  459. "time": that.choose_time + ' ' + that.choose_time_detail, //预约时间
  460. "staff_id": that.choose_yg.id, //0随机排员工 指定员工传入员工id
  461. "pay_type": 2, //1余额2微信3支付宝
  462. "source": 3, //微信8h5支付3小程序支付0app支付
  463. "remarks": that.mjly, //备注
  464. "SHOP-TOKEN": that.choose_store.token
  465. }).then(({
  466. data
  467. }) => {
  468. })
  469. },
  470. submit() {
  471. let that = this
  472. // 判断余额是否足够
  473. if (that.pay_type == 1 && (that.order_detail.pay_price * 1 > that.order_detail.memberBalance * 1)) {
  474. return this.$u.toast('抱歉,您的可用余额不足');
  475. }
  476. that.$u.api.createItemOrder({
  477. "order_id": that.order_detail.order_id,
  478. "time": that.choose_time + ' ' + that.choose_time_detail, //预约时间
  479. "staff_id": that.choose_yg.id, //0随机排员工 指定员工传入员工id
  480. "pay_type": that.pay_type, //1余额2微信3支付宝
  481. "source": that.pay_type == 2 ? 3 : '',
  482. "remarks": that.mjly, //备注
  483. "SHOP-TOKEN": that.choose_store.token
  484. }).then(({
  485. data
  486. }) => {
  487. // 余额支付
  488. if (that.pay_type == 1) {
  489. console.log(data)
  490. if (data == '支付成功' || data.data == '支付成功') {
  491. that.payPop = false
  492. setTimeout(() => {
  493. uni.navigateTo({
  494. url: '/pagesT/money/paySuccess?price=' + that.order_detail
  495. .pay_price + '&isyy=1'
  496. })
  497. }, 200);
  498. }
  499. }
  500. // 微信支付
  501. if (that.pay_type == 2) {
  502. // data.data
  503. let payInfo = data.data
  504. // #ifdef MP-WEIXIN
  505. uni.requestPayment({
  506. provider: 'wxpay',
  507. timeStamp: payInfo.timeStamp, //当前时间
  508. nonceStr: payInfo.nonceStr, //随机字符串,长度在32一下
  509. package: payInfo.package, //统一单接口返回的prepay_id
  510. signType: payInfo.signType, //签名算法,目前支持MD5
  511. paySign: payInfo.paySign, //签名
  512. success: res => {
  513. // 订单审核,取消订单提醒
  514. that.payPop = false
  515. setTimeout(() => {
  516. uni.navigateTo({
  517. url: '/pagesT/money/paySuccess?price=' + that
  518. .order_detail.pay_price + '&isyy=1'
  519. })
  520. }, 200);
  521. },
  522. fail: async err => {
  523. that.payPop = false
  524. console.log('支付失败');
  525. await setTimeout(() => {
  526. uni.redirectTo({
  527. url: '/pagesT/order/orderT?state=0'
  528. });
  529. }, 100);
  530. }
  531. });
  532. // #endif
  533. }
  534. })
  535. }
  536. }
  537. }
  538. </script>
  539. <style lang="scss">
  540. .good-info-wrap {
  541. margin: -50rpx auto 20rpx;
  542. width: 712rpx;
  543. min-height: 285rpx;
  544. background: #FFFFFF;
  545. border-radius: 10rpx;
  546. padding: 10rpx 20rpx;
  547. .good-list {
  548. min-height: 177rpx;
  549. width: 100%;
  550. .good-wrap {
  551. min-height: 177rpx;
  552. .good {
  553. height: 177rpx;
  554. border-bottom: 1px solid #f7f8fa;
  555. display: flex;
  556. justify-content: flex-start;
  557. align-items: center;
  558. .good-info {
  559. height: 177rpx;
  560. width: 365rpx;
  561. padding: 25rpx 0 25rpx 20rpx;
  562. display: flex;
  563. flex-direction: column;
  564. justify-content: space-between;
  565. align-items: flex-start;
  566. .good-name {
  567. font-size: 26rpx;
  568. font-weight: 500;
  569. color: #333333;
  570. }
  571. .good-price {
  572. margin-top: 20rpx;
  573. font-size: 34rpx;
  574. font-weight: bold;
  575. color: #CE372E;
  576. &::before {
  577. content: '¥';
  578. font-size: 24rpx;
  579. color: #CE372E;
  580. }
  581. }
  582. }
  583. .good-img {
  584. width: 133rpx;
  585. height: 133rpx;
  586. border-radius: 10rpx;
  587. background-color: #eee;
  588. }
  589. }
  590. }
  591. .empty {
  592. // display: ;
  593. font-size: 28rpx;
  594. height: 177rpx;
  595. background-color: #ecf1f7;
  596. text-align: center;
  597. line-height: 177rpx;
  598. color: #4472bd;
  599. border-radius: 10rpx;
  600. }
  601. }
  602. }
  603. .mj-info {
  604. width: 712rpx;
  605. height: 200rpx;
  606. background: #FFFFFF;
  607. border-radius: 10px;
  608. margin: 20rpx auto;
  609. padding: 0 20rpx;
  610. }
  611. .mjly {
  612. height: 100rpx;
  613. display: flex;
  614. justify-content: space-between;
  615. align-items: center;
  616. font-size: 26rpx;
  617. .ly-left {
  618. font-weight: 500;
  619. color: #000;
  620. }
  621. .ly-right {
  622. width: 400rpx;
  623. text-align: right;
  624. }
  625. image {
  626. width: 15rpx;
  627. height: 28rpx;
  628. }
  629. }
  630. //指派
  631. .zp-wrap {
  632. margin-top: 20rpx;
  633. width: 750rpx;
  634. height: 216rpx;
  635. white-space: nowrap;
  636. .zp-item {
  637. display: inline-block;
  638. margin-right: 15rpx;
  639. padding-top: 34rpx;
  640. width: 172rpx;
  641. height: 216rpx;
  642. // background: #E02020;
  643. background-color: #fff;
  644. border-radius: 10rpx;
  645. .zp-logo {
  646. display: block;
  647. width: 106rpx;
  648. height: 106rpx;
  649. margin: auto;
  650. border-radius: 50%;
  651. background-color: #999999;
  652. }
  653. .zp-name {
  654. margin-top: 15rpx;
  655. width: 100%;
  656. text-align: center;
  657. font-size: 30rpx;
  658. font-weight: bold;
  659. color: #333333;
  660. }
  661. }
  662. .choose {
  663. background-color: #262261 !important;
  664. .zp-name {
  665. color: #fff !important;
  666. }
  667. }
  668. }
  669. .tj-dd {
  670. width: 750rpx;
  671. height: 100rpx;
  672. position: fixed;
  673. bottom: 0;
  674. display: flex;
  675. justify-content: space-between;
  676. align-items: center;
  677. background-color: #fff;
  678. padding: 0 20rpx;
  679. .tj-btn {
  680. width: 200rpx;
  681. height: 75rpx;
  682. line-height: 75rpx;
  683. color: #fff;
  684. background-color: #999;
  685. border-radius: 10rpx;
  686. text-align: center;
  687. font-size: 28rpx;
  688. font-weight: 500;
  689. }
  690. .canpay {
  691. background-color: #d84840;
  692. }
  693. }
  694. .rmb {
  695. &::before {
  696. content: '¥';
  697. color: #CE372E;
  698. font-size: 30rpx;
  699. }
  700. }
  701. // 门店
  702. .sc-md {
  703. margin: 20rpx auto;
  704. width: 712rpx;
  705. height: 210rpx;
  706. background: #FFFFFF;
  707. border-radius: 10rpx;
  708. .sc-tip {
  709. padding-left: 20rpx;
  710. line-height: 70rpx;
  711. width: 712rpx;
  712. height: 70rpx;
  713. background: #e9e8ef;
  714. border-radius: 10rpx 10rpx 0px 0px;
  715. font-size: 26rpx;
  716. font-weight: 500;
  717. color: #262261;
  718. }
  719. }
  720. .store-info {
  721. display: flex;
  722. justify-content: flex-start;
  723. align-items: center;
  724. height: 140rpx;
  725. padding: 0 30rpx 0 20rpx;
  726. .store-logo {
  727. width: 61rpx;
  728. height: 61rpx;
  729. background-color: #eee;
  730. border-radius: 50%;
  731. }
  732. .info {
  733. flex-grow: 1;
  734. display: flex;
  735. flex-direction: column;
  736. justify-content: center;
  737. padding: 0 40rpx 0 20rpx;
  738. .store-name {
  739. font-size: 25rpx;
  740. font-weight: 500;
  741. color: #333333;
  742. }
  743. .store-address {
  744. margin-top: 15rpx;
  745. font-size: 22rpx;
  746. font-weight: 500;
  747. color: #999999;
  748. }
  749. }
  750. }
  751. .store-list {
  752. min-height: 280rpx;
  753. max-height: 450rpx;
  754. width: 750upx;
  755. padding-top: 1rpx;
  756. background-color: #fff;
  757. .store-info {
  758. width: 712rpx;
  759. margin: 20rpx auto;
  760. border: 1px solid #aaa;
  761. border-radius: 20rpx;
  762. }
  763. .choose-stroe {
  764. border: 1px solid #262261;
  765. }
  766. }
  767. .pay-pop-view {
  768. background-color: #ffffff;
  769. border-top-left-radius: 12upx;
  770. border-top-right-radius: 12upx;
  771. font-size: 28upx;
  772. .pay-sel-title {
  773. padding: 0 30upx;
  774. line-height: 88upx;
  775. font-weight: bold;
  776. font-size: 32upx;
  777. .ibonfont {
  778. color: #999;
  779. font-weight: 400;
  780. }
  781. }
  782. .pay-btn {
  783. height: 90upx;
  784. line-height: 90upx;
  785. color: #000;
  786. font-size: 32upx;
  787. text-align: center;
  788. background-color: #108ee9;
  789. }
  790. .pay-ul {
  791. .pay-li {
  792. line-height: 100upx;
  793. .ibonfont {
  794. padding-left: 30upx;
  795. font-size: 46upx;
  796. vertical-align: middle;
  797. margin-right: 24upx;
  798. }
  799. .ibonweixinzhifu {
  800. color: #04be02;
  801. }
  802. .ibonumidd17 {
  803. color: #108ee9;
  804. }
  805. .ibonhuodaofukuan {
  806. color: #f2b844;
  807. }
  808. .pay-name {
  809. width: 650upx;
  810. display: inline-block;
  811. padding-right: 30upx;
  812. vertical-align: middle;
  813. border-bottom: 1px solid #f5f5f5;
  814. .ibonxuanze1,
  815. .ibonweixuanze {
  816. margin-right: 0;
  817. padding-left: 0;
  818. font-size: 38upx;
  819. }
  820. .balace-num {
  821. font-size: 24rpx;
  822. color: #6c6c6c;
  823. }
  824. }
  825. .balance-pay-name {
  826. position: relative;
  827. padding-bottom: 20rpx;
  828. .balance-tip {
  829. position: absolute;
  830. font-size: 22rpx;
  831. line-height: 36rpx;
  832. bottom: 10rpx;
  833. left: 0;
  834. }
  835. }
  836. }
  837. }
  838. }
  839. </style>