createOrderT.vue 20 KB

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