createOrder.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657
  1. <template>
  2. <view :class="['qn-page-' + theme]" class="page-contanier">
  3. <view class="confirm_box">
  4. <view class="address-bg primary-bg"></view>
  5. <block v-if="JSON.stringify(order_detail) !== '{}'">
  6. <!-- 地址 -->
  7. <view class="main-view-box" style="background-color: #FFFFFF;">
  8. <view class="delivery-ul">
  9. <view class="delivery-li" @click="deliveryChange(item)" v-for="(item, index) in delivery"
  10. :key="index" :class="[deliveryType === item.id ? 'delivery-on' : '']">
  11. <text>{{ item.title }}</text>
  12. <view class="check-bg">{{ item.title }}</view>
  13. </view>
  14. </view>
  15. <view @click="goPage('/pagesT/address/address?source=1')" class="address-section "
  16. v-if="deliveryType === 1 || deliveryType === 3">
  17. <view class="order-content">
  18. <text class="ibonfont ibondizhi2"></text>
  19. <view v-if="addressData" class="cen">
  20. <view class="top">
  21. <text class="name">{{ addressData.name }}</text>
  22. <text class="mobile">{{ addressData.mobile }}</text>
  23. </view>
  24. <text
  25. class="address">{{ addressData.provinceName }}{{ addressData.cityName }}{{ addressData.districtName }}{{ addressData.address }}</text>
  26. </view>
  27. <text v-if="addressData" class="ibonfont ibonjinru"></text>
  28. <view v-else class="empty-tips">
  29. <view class="navigator primary-color">去添加收货地址></view>
  30. </view>
  31. </view>
  32. <view class="wu-reminder" v-if="deliveryType === 3">{{ wu_reminder }}</view>
  33. <image class="a-bg"
  34. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaAWmiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjA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1BO2yHLMOIxjH111chmDocXg9XzZFR4fD74e5cA9GtQEulbLGbfaNMvv4+BfG3hiet9wxlUeDGdDPn68uqXVgVKKezbiBN/HHYoTnrqlORkDx0BHr/ABzVVbknbZysZ3wnRVyda6HU1UIjvpt28p2C+T+GEtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==">
  35. </image>
  36. </view>
  37. <view class="address-section " v-else-if="deliveryType === 2">
  38. <view class="order-content" @click="openShopPop">
  39. <text class="ibonfont ibondizhi2"></text>
  40. <view v-if="self_express_rule" class="cen">
  41. <view class="top">
  42. <text class="name">{{ self_express_rule.name }}</text>
  43. <text class="mobile">{{ self_express_rule.mobile }}</text>
  44. </view>
  45. <view class="top">
  46. <text class="name" v-if="self_express_rule.startTime && self_express_rule.endTime">
  47. 营业时间:{{ self_express_rule.startTime }}-{{ self_express_rule.endTime }}
  48. </text>
  49. <text class="name" v-else>营业时间:全天</text>
  50. <text class="mobile">{{ self_express_rule.day.join(',') }}</text>
  51. </view>
  52. <text class="address">
  53. {{ self_express_rule.provinceName }}{{ self_express_rule.cityName }}{{ self_express_rule.districtName }}{{ self_express_rule.address }}
  54. </text>
  55. </view>
  56. <text v-if="self_express_rule" class="ibonfont ibonjinru"></text>
  57. <view class="empty-tips" v-else>
  58. <view class="navigator primary-color">
  59. <text style="font-size: 32upx; margin-right: 10upx;">+</text>
  60. <text>选择自提点</text>
  61. </view>
  62. </view>
  63. </view>
  64. <image class="a-bg"
  65. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAA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m+Dfsdn2+QYpeH7/8CBe+mAsq7nIsevKEjivgv1dQdzYUGH7dMlXe3FmwxZMTRyFgiZkW48mF0/XMYWqm75JfH8IUmPA1tlUMnHv+8T3N3J8d3Hkey6I3re6Djvaam1v/urhswjdsQ2jf/kVJRI1xHdPrh1lltzTWUxXai5H07N74P7KettnPDQyjWtf/ohglyJfl7jz/drP+vDrzgYsLZdtP2PRnz6B/u4t9I+U9cYCH81hddoFuBG4bxNq7v9xSfh+G/H9wKkIwF5JkR38fF3VLb73dDXhpsYS8P0Vxve7MZ14E04EkX2SumDj40Lkjz2LS9x1nZVqcK1rh1L/GaiZDB1GYwGPRi9+sA4r63odGEjAoKTZS0mTwUtoS2sTPioc1jd64KJqNZXRP9EtLFrLT5KQOd6H1JtvQ/SUQ1CUC1Z/tjp5MgXn51bAfc1VpAUVb6pqi+bsqRlrOB0ITSI0kUa1IvF7JcribPbxZnt9BYIeBZm0ap1BO2yHLMOIxjH111chmDocXg9XzZFR4fD74e5cA9GtQEulbLGbfaNMvv4+BfG3hiet9wxlUeDGdDPn68uqXVgVKKezbiBN/HHYoTnrqlORkDx0BHr/ABzVVbknbZysZ3wnRVyda6HU1UIjvpt28p2C+T+GEtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==">
  66. </image>
  67. </view>
  68. </view>
  69. <view class="goods-section main-view-box" v-for="(item, index) in goodsData" :key="index">
  70. <view class="g-header b-b">
  71. <image class="logo" :src="item.shopLogo" mode="aspectFit"></image>
  72. <text class="name">{{ item.shopName }}</text>
  73. </view>
  74. <!-- 商品列表 -->
  75. <view class="g-item" v-for="(itemS, indexS) in item.shopGoodsData"
  76. @click="goPage(`/pagesT/product/product?id=${itemS.goodsId}`)" :key="indexS">
  77. <image :src="itemS.goodsImages" mode="aspectFill"
  78. :style="{ opacity: itemS.notExpress === 4 ? '0.6' : '1' }"></image>
  79. <view class="right">
  80. <view class="price-box clearfix">
  81. <view class="title" :style="{ color: itemS.notExpress === 4 ? '#999999' : '#333333' }">
  82. {{ itemS.goodsName }}
  83. </view>
  84. </view>
  85. <view class="price-box clearfix">
  86. <view class="spec float_left">
  87. <text>{{ itemS.unitName }}</text>
  88. <block v-for="(itemU, indexU) in itemS.specGroup" :key="indexU">
  89. <!-- style="padding-left: 4upx;" -->
  90. <text>_{{ itemU.specValueName }}</text>
  91. </block>
  92. </view>
  93. <view class="number float_right">x {{ itemS.buyNum }}</view>
  94. </view>
  95. <view class="price-box clearfix">
  96. <view class="float_left notExpress-tip" v-if="itemS.notExpress === 4">
  97. 抱歉,该商品在您当前收货地址内已无库存</view>
  98. <view class="price float_right primary-color" v-if="itemS.notExpress === 5">
  99. ¥{{ itemS.price }}</view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- <view class="total-view">
  104. 小计:
  105. <text class="price">
  106. <span class="icon-rmb">¥</span>
  107. {{ item.totalMoney }}
  108. </text>
  109. </view> -->
  110. </view>
  111. <!-- 会员卡 -->
  112. <view class="yt-list main-view-box" v-if="vipList.length && JSON.stringify(vipCardList) !== '{}'">
  113. <view class="yt-list-cell b-b" @click="chooseVip(true)">
  114. <view class="cell-icon">卡</view>
  115. <text class="cell-tit clamp">会员卡</text>
  116. <text class="cell-tip active primary-color" v-if="vipName">{{ vipName }}</text>
  117. <text class="cell-tip active primary-color" v-else>选择会员卡</text>
  118. <text class="cell-more wanjia wanjia-gengduo-d"></text>
  119. </view>
  120. <view class="yt-list-cell b-b" v-if="false">
  121. <view class="cell-icon hb">减</view>
  122. <text class="cell-tit clamp">商家促销</text>
  123. <text class="cell-tip disabled">暂无可用优惠</text>
  124. </view>
  125. </view>
  126. <!-- 优惠明细 -->
  127. <view class="yt-list main-view-box" v-if="couponList.length">
  128. <view class="yt-list-cell b-b" @click="toggleMask(true)">
  129. <view class="cell-icon">券</view>
  130. <text class="cell-tit clamp">优惠券</text>
  131. <text class="cell-tip active primary-color"
  132. v-if="coupon_price > 0">-¥{{ order_detail.preferential }}</text>
  133. <text class="cell-tip active primary-color" v-else>选择优惠券</text>
  134. <text class="cell-more wanjia wanjia-gengduo-d"></text>
  135. </view>
  136. <view class="yt-list-cell b-b" v-if="false">
  137. <view class="cell-icon hb">减</view>
  138. <text class="cell-tit clamp">商家促销</text>
  139. <text class="cell-tip disabled">暂无可用优惠</text>
  140. </view>
  141. </view>
  142. <!-- 金额明细 -->
  143. <view class="yt-list main-view-box">
  144. <view class="yt-list-cell b-b">
  145. <text class="cell-tit clamp">商品金额</text>
  146. <text class="cell-tip">¥{{ order_detail.totalMoney || 0 }}</text>
  147. </view>
  148. <view class="yt-list-cell b-b">
  149. <text class="cell-tit clamp">优惠金额</text>
  150. <text class="cell-tip primary-color">-¥{{ order_detail.preferential || 0 }}</text>
  151. </view>
  152. <view class="yt-list-cell b-b">
  153. <text class="cell-tit clamp">会员卡折扣</text>
  154. <text class="cell-tip primary-color">- {{ order_detail.vipDiscount || 0 }}元</text>
  155. </view>
  156. <view class="yt-list-cell b-b" v-if="deliveryType === 1">
  157. <text class="cell-tit clamp">运费</text>
  158. <text class="cell-tip primary-color">¥{{ order_detail.expressMoney || 0 }}</text>
  159. </view>
  160. <view class="yt-list-cell desc-cell">
  161. <text class="cell-tit">买家留言</text>
  162. <input class="desc" type="text" v-model="orderRemark" placeholder="请输入留言信息给卖家"
  163. placeholder-class="placeholder-class" />
  164. </view>
  165. </view>
  166. </block>
  167. </view>
  168. <!-- 底部 -->
  169. <view class="footer">
  170. <!-- <view class="not-express-tip" v-if="!is_notExpress">抱歉,您当前订单有商品不在配送范围内,请重新调整商品后下单</view> -->
  171. <view class="footer-in">
  172. <view class="price-content">
  173. <text style="font-size: 26upx;color: #666;">实付:</text>
  174. <text class="price-tip rmb-icon">¥</text>
  175. <text class="price primary-color">{{ payMoney }}</text>
  176. </view>
  177. <view class="submit primary-btn" @click="selPayFun">提交订单</view>
  178. </view>
  179. </view>
  180. <u-popup v-model="payPop" mode="bottom" :border-radius="12">
  181. <view class="pay-pop-view">
  182. <view class="pay-sel-title clearfix">
  183. <text class="float_left">付款方式</text>
  184. <text class="float_right ibonfont ibonguanbi" @click="closePayPop"></text>
  185. </view>
  186. <view class="pay-ul">
  187. <block v-for="(item, index) in payment" :key="index">
  188. <view v-if="item.id === 7" class="pay-li" @click="paymentChange(item)">
  189. <text class="ibonfont ibonhuodaofukuan"></text>
  190. <view class="pay-name clearfix"
  191. :class="[order_detail.payMoney > Number(order_detail.memberBalance) ? 'balance-pay-name' : '']">
  192. <view class="float_left">
  193. <text>{{ item.title }}</text>
  194. <text class="balace-num">(余额:¥{{ Number(order_detail.memberBalance) }})</text>
  195. </view>
  196. <text v-if="Number(order_detail.memberBalance) > 0"
  197. class="float_right ibonfont primary-color"
  198. :class="[payId.indexOf(item.id) > -1 ? 'ibonxuanze1' : 'ibonweixuanze']"></text>
  199. <text v-else class="float_right ibonfont ibonxuanze1" style="color: #CCCCCC;"></text>
  200. <view v-if="order_detail.payMoney > Number(order_detail.memberBalance)"
  201. class="balance-tip primary-color">可支付余额不足,请搭配其他支付方式</view>
  202. </view>
  203. </view>
  204. <view v-else class="pay-li" @click="paymentChange(item)">
  205. <text class="ibonfont ibonweixinzhifu" v-if="item.title.indexOf('微信') !== -1"></text>
  206. <text class="ibonfont ibonumidd17" v-else-if="item.title.indexOf('支付宝') !== -1"></text>
  207. <text class="ibonfont ibonhuodaofukuan" v-else></text>
  208. <view class="pay-name clearfix">
  209. <text class="float_left">{{ item.title }}</text>
  210. <text class="float_right ibonfont primary-color"
  211. :class="[payId.indexOf(item.id) > -1 ? 'ibonxuanze1' : 'ibonweixuanze']"></text>
  212. </view>
  213. </view>
  214. </block>
  215. </view>
  216. <view class="pay-btn primary-btn" @click="submit">
  217. <u-loading :show="sub_loading" color="#ffffff" mode="flower"></u-loading>
  218. <text>确定</text>
  219. </view>
  220. </view>
  221. </u-popup>
  222. <!-- 自提店 -->
  223. <u-popup v-model="shopPop" mode="bottom" :border-radius="12">
  224. <view class="self-shop-title clearfix">
  225. <text class="float_left">自提点</text>
  226. <text class="float_right ibonfont ibonguanbi" @click="closeShopPop"></text>
  227. </view>
  228. <view class="self-shop-ul">
  229. <view class="self-shop-li" v-for="(item, index) in order_detail.selfExpressRule" :key="index"
  230. @click="changeSelShop(item)">
  231. <view class="name">{{ item.setData.name }} {{ item.setData.mobile }}</view>
  232. <view>营业时间:{{ item.setData.startTime }}-{{ item.setData.endTime }} {{ item.setData.day.join(',') }}
  233. </view>
  234. <view>
  235. {{ item.setData.provinceName }}{{ item.setData.cityName }}{{ item.setData.districtName }}{{ item.setData.address }}
  236. </view>
  237. <text class="ibonfont sel-tag primary-color"
  238. :class="[selfRuleId === item.id ? 'ibonxuanze1' : 'ibonweixuanze']"></text>
  239. </view>
  240. <view class="close-btn primary-btn" @click="closeShopPop">取消</view>
  241. </view>
  242. </u-popup>
  243. <!-- 优惠券面板 -->
  244. <CouponView v-if="couponList.length" @selCoupon="selCoupon" @dontUse="dontUse" :maskState="maskState"
  245. :discountList="couponList" />
  246. <!-- 会员卡面板 -->
  247. <VipView v-if="vipList.length" @selvip="selvip" @dontUse="dontUseVip" :maskState="vipState"
  248. :vipList="vipList" />
  249. <!-- 余额支付密码弹窗 -->
  250. <u-keyboard default="" ref="uKeyboard" mode="number" :mask="true" :mask-close-able="false" :dot-enabled="false"
  251. v-model="pwd_show" :safe-area-inset-bottom="true" :tooltip="false" @change="balancePopChange"
  252. @backspace="onBackspace">
  253. <view>
  254. <view class="u-text-center u-padding-20 balance-money">
  255. <text v-if="payId.length > 1">{{ order_detail.memberBalance }}</text>
  256. <text v-else>{{ payMoney }}</text>
  257. <text class="u-font-20 u-padding-left-10">元</text>
  258. <view class="u-padding-10 close" data-flag="false" @tap="balanceShowPop(false)">
  259. <u-icon name="close" color="#333333" size="28"></u-icon>
  260. </view>
  261. </view>
  262. <view class="u-flex u-row-center">
  263. <u-message-input mode="box" :maxlength="6" :dot-fill="true" v-model="balance_pwd"
  264. :disabled-keyboard="true" @finish="balanceFinish"></u-message-input>
  265. </view>
  266. <view class="u-text-center u-padding-top-10 u-padding-bottom-20 tips">支付键盘</view>
  267. </view>
  268. </u-keyboard>
  269. <!-- 提示去设置支付密码 -->
  270. <u-modal v-model="tip_show" content="抱歉,您未设置支付密码,无法使用余额支付" :show-cancel-button="true" confirm-text="立即设置"
  271. cancel-text="取消" @confirm="setPassword"></u-modal>
  272. </view>
  273. </template>
  274. <script>
  275. import CouponView from '../components/coupon/CouponView.vue';
  276. import VipView from '../components/coupon/VipView.vue';
  277. export default {
  278. components: {
  279. CouponView,
  280. VipView
  281. },
  282. computed: {
  283. payMoney() {
  284. return this.order_detail.payMoney || 0;
  285. },
  286. userInfo() {
  287. return this.$store.state.userStatus;
  288. }
  289. },
  290. data() {
  291. return {
  292. wu_reminder: '',
  293. tip_show: false, // 余额支付提示
  294. pwd_show: false, // 余额支付密码输入弹窗
  295. balance_pwd: '', // 余额支付密码
  296. bank_data: {
  297. // 银行信息
  298. id: '',
  299. name: '',
  300. bankName: '',
  301. accountNumber: '',
  302. image: ''
  303. },
  304. sub_loading: false,
  305. payPop: false, //付款方式弹窗
  306. shopPop: false, //自提点弹窗
  307. is_notExpress: true, //商品是否都在配送范围内
  308. couponList: [], // 优惠券列表
  309. // 优惠券id
  310. userCouponId: '',
  311. maskState: false, //优惠券面板显示状态
  312. vipState: false,
  313. orderRemark: '', //备注
  314. coupon_price: 0, //优惠券金额
  315. addressData: '', // 收货地址
  316. self_express_rule: '', // 自提点数据
  317. delivery: [],
  318. deIndex: 0,
  319. goodsData: [],
  320. payment: [],
  321. payIndex: 0,
  322. order_detail: {
  323. selfExpressRule: []
  324. },
  325. source: 3,
  326. payId: [],
  327. deliveryType: '',
  328. delivery_title: '',
  329. selfRuleId: '', //自提点id
  330. sub_pramas: {},
  331. useCoupon: {},
  332. vipList: '',
  333. vipName: '',
  334. //跳转选择会员卡
  335. // vipSel: '',
  336. vipCardId: 0,
  337. vipDiscount: '',
  338. vipDoubleDiscount: '',
  339. preferential: '', //优惠金额
  340. location_lon: '',
  341. location_lat: '',
  342. vipCardList: [],
  343. buy_params: {}, //立即购买参数
  344. orderId: 0,
  345. goods_buy_obj: {},
  346. tmplIds: [],
  347. other_tmplIds: []
  348. };
  349. },
  350. async onLoad(options) {
  351. uni.setNavigationBarColor({
  352. frontColor: '#ffffff',
  353. backgroundColor: this.theme === 'red' ? '#f2242c' : this.primaryColor
  354. });
  355. this.source = this.$common.source();
  356. await this.orderVipCard();
  357. if (options.params) {
  358. this.buy_params = JSON.parse(options.params);
  359. } else if (options.skuId) {
  360. this.goods_buy_obj = options;
  361. console.log(this.goods_buy_obj);
  362. }
  363. await this.confirmationOfOrder();
  364. // #ifdef MP-WEIXIN
  365. await this.getSettingDataByMessageId();
  366. // #endif
  367. },
  368. onShow() {
  369. if (this.addressData !== '') {
  370. this.addressData = {
  371. ...this.addressData,
  372. provinceName: this.addressData.area.provinceName,
  373. cityName: this.addressData.area.cityName,
  374. districtName: this.addressData.area.districtName
  375. };
  376. this.confirmationOfOrder();
  377. }
  378. },
  379. methods: {
  380. // 复制到剪贴板
  381. copyData(data) {
  382. uni.setClipboardData({
  383. data: data,
  384. success: () => {
  385. this.$u.toast('已复制到剪贴板');
  386. }
  387. });
  388. },
  389. // 上传银行凭证
  390. uploadSuccess(imgData, uploadPicUrl) {
  391. this.bank_data.image = uploadPicUrl;
  392. },
  393. // 打开选择自提点弹窗
  394. openShopPop() {
  395. this.shopPop = true;
  396. },
  397. closeShopPop() {
  398. this.shopPop = false;
  399. },
  400. // 切换自提点
  401. changeSelShop(row) {
  402. this.self_express_rule = row.setData;
  403. this.selfRuleId = row.id;
  404. this.closeShopPop();
  405. },
  406. // 获取会员卡
  407. async orderVipCard() {
  408. await this.$u.api.orderVipCard().then(({
  409. data
  410. }) => {
  411. this.vipCardList = data;
  412. this.vipCardId = data.id || 0;
  413. this.vipName = data.name;
  414. });
  415. },
  416. //显示优惠券面板
  417. toggleMask(type) {
  418. this.maskState = !!type;
  419. },
  420. //不使用优惠
  421. dontUse() {
  422. this.toggleMask(false);
  423. this.userCouponId = 0;
  424. this.coupon_price = 0;
  425. this.confirmationOfOrder();
  426. },
  427. // 选择会员卡
  428. chooseVip(type) {
  429. this.vipState = !!type;
  430. },
  431. // 不使用优惠券
  432. dontUseVip() {
  433. this.chooseVip(false);
  434. this.vipName = '';
  435. this.order_detail.vipDiscount = 0;
  436. this.vipCardId = 0;
  437. this.vipDiscount = this.vipDoubleDiscount || 0;
  438. this.confirmationOfOrder();
  439. },
  440. // 选择会员卡
  441. selvip(row) {
  442. this.vipState = false;
  443. this.vipName = row.name;
  444. this.vipCardId = row.vipCardId;
  445. this.confirmationOfOrder();
  446. },
  447. // 选择优惠券
  448. selCoupon(row) {
  449. this.userCouponId = row.id;
  450. this.toggleMask(false);
  451. // this.coupon_price = row.reducePrice;
  452. if (this.order_detail.payMoney > row.reducePrice) {
  453. this.coupon_price = row.reducePrice;
  454. } else {
  455. this.coupon_price = this.order_detail.payMoney;
  456. }
  457. this.confirmationOfOrder();
  458. },
  459. // 切换配送方式
  460. deliveryChange(item) {
  461. this.deliveryType = item.id;
  462. this.delivery_title = item.title;
  463. this.confirmationOfOrder();
  464. },
  465. // 切换付款方式
  466. paymentChange(item) {
  467. if (item.id === 7 && Number(this.order_detail.memberBalance) <= 0) {
  468. this.$u.toast('抱歉,您的可用余额不足');
  469. } else {
  470. // 已选择过该支付方式就把支付方式从数组去掉
  471. const payIndex = this.payId.indexOf(item.id);
  472. if (payIndex > -1) {
  473. this.payId.splice(payIndex, 1);
  474. return;
  475. }
  476. // 用户可支付余额不足
  477. if (this.order_detail.payMoney > Number(this.order_detail.memberBalance)) {
  478. // 查找余额支付的支付方式ID
  479. const balaceObj = this.payment.find(item => item.id === 7);
  480. // 已选择过余额支付,可选择其他支付
  481. const balaceindex = balaceObj ? this.payId.indexOf(balaceObj.id) : -1;
  482. if (balaceObj && balaceindex > -1) {
  483. //余额付款只能和微信支付做组合支付
  484. if (item.id !== 1) {
  485. this.payId = [item.id];
  486. return;
  487. }
  488. if (this.payId.length >= 2) {
  489. if (balaceindex === 0) {
  490. this.$set(this.payId, 1, item.id);
  491. } else {
  492. this.$set(this.payId, 0, item.id);
  493. }
  494. } else {
  495. this.payId.push(item.id);
  496. }
  497. } else {
  498. // 未选择余额支付,当支付数组length未0,直接把支付方式放入数组
  499. if (this.payId.length === 0) {
  500. this.payId.push(item.id);
  501. } else {
  502. //余额付款只能和微信支付做组合支付
  503. if (this.payId.indexOf(1) === -1) {
  504. // 替换 之前选择的支付方式
  505. this.payId.splice(0, 1, item.id);
  506. } else {
  507. // 如果当前选择的支付方式是余额支付,则放入数组
  508. if (item.id === 7) {
  509. this.payId.push(item.id);
  510. } else {
  511. // 否则 替换 之前选择的支付方式
  512. this.payId.splice(0, 1, item.id);
  513. }
  514. }
  515. }
  516. }
  517. } else {
  518. this.$set(this.payId, 0, item.id);
  519. }
  520. }
  521. },
  522. getOrderDetail(data) {
  523. this.order_detail = data;
  524. // 收货地址
  525. if (!this.addressData.id) {
  526. this.addressData = JSON.stringify(data.address) === '{}' ? '' : data.address;
  527. }
  528. console.log(data.selfExpressRule,'data.selfExpressRule');
  529. //自提点
  530. if (!this.selfRuleId && data.selfExpressRule.length) {
  531. this.self_express_rule = data.selfExpressRule[0].setData;
  532. this.selfRuleId = data.selfExpressRule[0].id;
  533. }
  534. this.delivery = data.delivery;
  535. const wuData = this.delivery.find(item => item.deliveryType === 3);
  536. this.wu_reminder = wuData && wuData.setData ? wuData.setData.reminder : '';
  537. this.vipDiscount = data.vipDiscount;
  538. this.vipDoubleDiscount = data.vipDoubleDiscount;
  539. this.preferential = data.preferential;
  540. this.goodsData = data.goodsData;
  541. console.log(this.goodsData,'this.goodsData');
  542. this.couponList = data.coupon;
  543. this.vipList = data.vipCard;
  544. this.useCoupon = this.order_detail.useCoupon;
  545. // 支付方式
  546. let payment = [];
  547. if (data.payment) {
  548. if (Array.isArray(data.payment)) {
  549. payment = data.payment;
  550. } else {
  551. payment = Object.values(data.payment);
  552. }
  553. }
  554. this.payment = payment.filter(item => item.title.indexOf('支付宝') === -1);
  555. if (!this.payId.length) {
  556. const payIndex = this.payment.findIndex(item => item.defaultStatus === 5);
  557. if (payIndex > -1) {
  558. if (parseInt(this.payment[payIndex].id) === 7 && this.order_detail.memberBalance <= 0) {
  559. this.payId = [];
  560. } else {
  561. this.payId = payIndex > -1 ? [this.payment[payIndex].id] : [];
  562. }
  563. }
  564. }
  565. // 银行信息
  566. /*const banck_data = data.payment.find(item => item.id === 4);
  567. this.bank_data =
  568. banck_data && banck_data.accountData
  569. ? {
  570. id: banck_data.accountData.id,
  571. name: banck_data.accountData.name,
  572. bankName: banck_data.accountData.bankName,
  573. accountNumber: banck_data.accountData.accountNumber,
  574. image: ''
  575. }
  576. : {};*/
  577. // 配送方式
  578. if (!this.deliveryType) {
  579. const deIndex = this.delivery.findIndex(item => item.defaultStatus === 5);
  580. this.deliveryType = deIndex > -1 ? this.delivery[deIndex].id : this.delivery[0].id;
  581. this.delivery_title = deIndex > -1 ? this.delivery[deIndex].title : this.delivery[0].title;
  582. }
  583. // 验证商品是否在配送范围内
  584. data.goodsData.forEach(item => {
  585. item.is_notExpress = item.shopGoodsData.every(itemS => itemS.notExpress === 5);
  586. });
  587. this.is_notExpress = data.goodsData.every(item => item.is_notExpress);
  588. this.sub_pramas = {
  589. orderRemark: this.orderRemark,
  590. receiveAddressId: this.addressData.id,
  591. source: this.source,
  592. payType: this.payId,
  593. selfRuleId: this.selfRuleId,
  594. deliveryType: this.deliveryType,
  595. goodsData: {
  596. totalMoney: data.totalMoney,
  597. payMoney: data.payMoney,
  598. expressMoney: data.expressMoney,
  599. preferential: data.preferential,
  600. checkNum: data.checkNum,
  601. cartNum: data.cartNum,
  602. goodsData: data.goodsData
  603. }
  604. };
  605. },
  606. // 立即购买
  607. buyNow() {
  608. this.$u.api
  609. .buyNow({
  610. ...this.buy_params,
  611. deliveryId: this.deliveryType,
  612. addressId: this.addressData.id
  613. })
  614. .then(({
  615. data
  616. }) => {
  617. this.getOrderDetail(data);
  618. });
  619. },
  620. // 商品立即购买
  621. goodsBuyNow() {
  622. this.$u.api
  623. .goodsBuyNow({
  624. ...this.goods_buy_obj,
  625. vipCardId: this.vipCardId,
  626. couponId: this.userCouponId,
  627. addressId: this.addressData.id,
  628. deliveryId: this.deliveryType
  629. })
  630. .then(({
  631. data
  632. }) => {
  633. this.getOrderDetail(data);
  634. });
  635. },
  636. // 确认订单
  637. async confirmationOfOrder() {
  638. if (this.buy_params.comBinId) {
  639. await this.buyNow();
  640. } else if (this.goods_buy_obj.skuId) {
  641. await this.goodsBuyNow();
  642. } else {
  643. await this.confirmOrder();
  644. }
  645. },
  646. async confirmOrder() {
  647. await this.$u.api
  648. .confirmationOfOrder({
  649. userCouponId: this.userCouponId,
  650. vipCardId: this.vipCardId,
  651. deliveryId: this.deliveryType,
  652. addressId: this.addressData.id
  653. })
  654. .then(({
  655. data
  656. }) => {
  657. this.getOrderDetail(data);
  658. });
  659. },
  660. selPayFun() {
  661. if (!this.is_notExpress) {
  662. return;
  663. }
  664. this.payPop = true;
  665. },
  666. closePayPop() {
  667. this.payPop = false;
  668. },
  669. // 提交订单
  670. submit() {
  671. if (!this.is_notExpress) {
  672. return;
  673. }
  674. // 验证账户状态
  675. this.userAudit();
  676. if (!this.isUserAudit) {
  677. return;
  678. }
  679. if (!this.payId.length) {
  680. this.$api.msg('请选择支付方式');
  681. return;
  682. }
  683. if (this.order_detail.payMoney > Number(this.order_detail.memberBalance)) {
  684. if (this.payId.indexOf(7) > -1 && this.payId.length !== 2) {
  685. this.$api.msg('可支付余额不足,请搭配其他支付方式');
  686. return;
  687. }
  688. }
  689. if (!this.deliveryType) {
  690. this.$api.msg('请选择配送方式');
  691. return;
  692. }
  693. if (this.delivery_title.indexOf('自提') === -1) {
  694. if (!this.addressData) {
  695. this.$api.msg('请选择收货地址');
  696. return;
  697. }
  698. }
  699. // 余额支付弹窗
  700. if (this.payId.indexOf(7) > -1 && Number(this.order_detail.memberBalance) > 0) {
  701. if (this.userInfo.payPassword) {
  702. this.balanceShowPop();
  703. } else {
  704. this.tip_show = true;
  705. }
  706. return;
  707. }
  708. this.addOrder();
  709. },
  710. addOrder() {
  711. // #ifdef MP-WEIXIN
  712. if (this.tmplIds.length) {
  713. uni.requestSubscribeMessage({
  714. tmplIds: this.tmplIds,
  715. success: res => {
  716. this.createOrder();
  717. },
  718. fail: res => {
  719. console.log(res);
  720. this.createOrder();
  721. }
  722. });
  723. } else {
  724. this.createOrder();
  725. }
  726. // #endif
  727. // #ifdef APP-PLUS||H5
  728. this.createOrder();
  729. // #endif
  730. },
  731. // 订单审核,取消订单提醒
  732. otheMsgTip(url) {
  733. uni.redirectTo({
  734. url: url
  735. });
  736. return;
  737. uni.requestSubscribeMessage({
  738. tmplIds: this.other_tmplIds,
  739. success: res => {
  740. uni.redirectTo({
  741. url: url
  742. });
  743. },
  744. fail: res => {
  745. console.log(res);
  746. uni.redirectTo({
  747. url: url
  748. });
  749. }
  750. });
  751. },
  752. createOrder() {
  753. const goodsData = {
  754. ...this.sub_pramas.goodsData,
  755. vipDiscount: this.vipDiscount || 0,
  756. vipDoubleDiscount: this.vipDoubleDiscount || 0,
  757. preferential: this.preferential || 0
  758. };
  759. // 余额支付数据
  760. let admixPayData = [];
  761. let payType = '';
  762. if (this.payId.length === 2) {
  763. // 查找余额支付的支付方式ID
  764. const balaceObj = this.payment.find(item => item.id === 7);
  765. admixPayData = this.payId.map(item => {
  766. let obj = {};
  767. if (balaceObj.id === item) {
  768. obj = {
  769. payType: item,
  770. title: balaceObj.title,
  771. payMoney: Number(this.order_detail.memberBalance)
  772. };
  773. } else {
  774. obj = {
  775. payType: item,
  776. title: this.payment.find(pay => pay.id === item).title,
  777. payMoney: this.$NP.minus(this.payMoney, this.order_detail.memberBalance)
  778. };
  779. }
  780. return obj;
  781. });
  782. payType = this.payId.join(',');
  783. } else if (this.payId.length === 1) {
  784. payType = parseInt(this.payId[0]);
  785. }
  786. // console.log(admixPayData);
  787. // return;
  788. let params = {
  789. ...this.sub_pramas,
  790. goodsData: goodsData,
  791. receiveAddressId: this.addressData.id || 0,
  792. source: this.source,
  793. payType: payType,
  794. selfRuleId: this.selfRuleId,
  795. deliveryType: this.deliveryType,
  796. orderRemark: this.orderRemark,
  797. useCoupon: this.useCoupon,
  798. admixPayData: admixPayData
  799. };
  800. // if (this.payId.indexOf(4) > -1) {
  801. // params.bankData = this.bank_data;
  802. // }
  803. if (this.buy_params) {
  804. params.comBinId = this.buy_params.comBinId;
  805. }
  806. if (this.sub_loading) {
  807. return;
  808. }
  809. this.sub_loading = true;
  810. this.$u.api
  811. .addOrder(params)
  812. .then(data => {
  813. this.sub_loading = false;
  814. // 如果是支付宝支付,返回的data是一串字符串
  815. this.closePayPop();
  816. // 创建订单成功添加分销上下级关系
  817. this.relationshipBusinessman(2);
  818. // 货到付款 直接进入订单页面
  819. if (this.payId.indexOf(3) > -1) {
  820. // 订单审核,取消订单提醒
  821. this.otheMsgTip('/pagesT/order/order?state=0');
  822. return;
  823. } else if (this.payId.indexOf(4) > -1) {
  824. // 银行打款
  825. const orderId = data.data;
  826. // 订单审核,取消订单提醒
  827. this.otheMsgTip(`/pagesT/money/BankPay?orderId=${orderId}&payAmount=${this.payMoney}`);
  828. return;
  829. }
  830. if (JSON.stringify(data.data) === '{}') {
  831. this.otheMsgTip('/pagesT/order/order?state=0');
  832. return;
  833. }
  834. // 获取提交支付数据
  835. const payInfo = data.data;
  836. console.log('payInfo', payInfo);
  837. // app 支付
  838. // #ifdef APP-PLUS
  839. let provider = '';
  840. if (this.payId.indexOf(1) > 1) {
  841. provider = 'wxpay';
  842. } else if (this.payId.indexOf(2) > 1) {
  843. provider = 'alipay';
  844. }
  845. uni.requestPayment({
  846. provider: provider, //供应商
  847. orderInfo: JSON.stringify(payInfo),
  848. success: res => {
  849. setTimeout(() => {
  850. uni.redirectTo({
  851. url: '/pagesT/money/paySuccess?price=' + this
  852. .order_detail.payMoney
  853. });
  854. }, 100);
  855. },
  856. fail: err => {
  857. console.log('支付失败', err);
  858. this.sub_loading = false;
  859. setTimeout(() => {
  860. uni.redirectTo({
  861. url: '/pagesT/order/order?state=0'
  862. });
  863. }, 100);
  864. }
  865. });
  866. // #endif
  867. // #ifdef MP-WEIXIN
  868. uni.requestPayment({
  869. provider: 'wxpay',
  870. timeStamp: payInfo.timeStamp, //当前时间
  871. nonceStr: payInfo.nonceStr, //随机字符串,长度在32一下
  872. package: payInfo.package, //统一单接口返回的prepay_id
  873. signType: payInfo.signType, //签名算法,目前支持MD5
  874. paySign: payInfo.paySign, //签名
  875. success: res => {
  876. // 订单审核,取消订单提醒
  877. setTimeout(() => {
  878. this.otheMsgTip('/pagesT/money/paySuccess?price=' + this
  879. .order_detail.payMoney);
  880. }, 200);
  881. },
  882. fail: async err => {
  883. console.log('支付失败');
  884. await setTimeout(() => {
  885. uni.redirectTo({
  886. url: '/pagesT/order/order?state=0'
  887. });
  888. }, 100);
  889. }
  890. });
  891. // #endif
  892. // #ifdef MP-TOUTIAO
  893. uni.requestPayment({
  894. provider: 'toutiao',
  895. service: 3, //字节跳动小程序必填,service=3: 微信API支付,不拉起小程序收银台;service=4: 支付宝API支付,不拉起小程序收银台。
  896. orderInfo: payInfo,
  897. success: res => {
  898. this.$u.api
  899. .orderquery({
  900. out_trade_no: payInfo.out_order_no
  901. })
  902. .then(pay => {
  903. const payStatus = pay.data;
  904. if (payStatus === 'SUCCESS') {
  905. uni.redirectTo({
  906. url: '/pagesT/money/paySuccess?price=' + this
  907. .order_detail.payMoney
  908. });
  909. } else {
  910. uni.redirectTo({
  911. url: '/pagesT/order/order?state=0'
  912. });
  913. }
  914. });
  915. },
  916. fail: async err => {
  917. console.log('fail::', err);
  918. await setTimeout(() => {
  919. uni.redirectTo({
  920. url: '/pagesT/order/order?state=0'
  921. });
  922. }, 100);
  923. }
  924. });
  925. // #endif
  926. // #ifdef H5
  927. if (payInfo) {
  928. this.H5pay(payInfo);
  929. }
  930. // #endif
  931. })
  932. .catch(res => {
  933. this.sub_loading = false;
  934. this.balance_pwd = '';
  935. });
  936. },
  937. H5pay(payInfo) {
  938. // #ifdef H5
  939. const u = navigator.userAgent;
  940. const app = navigator.appVersion;
  941. const mobile = !!u.match(/AppleWebKit.*Mobile.*/); //是否为移动终端
  942. if (mobile) {
  943. const ua = navigator.userAgent.toLowerCase(); //获取判断用的对象
  944. if (ua.match(/MicroMessenger/i) == 'micromessenger') {
  945. //在微信中打开
  946. WeixinJSBridge.invoke(
  947. 'getBrandWCPayRequest', {
  948. appId: payInfo.appId, //公众号名称,由商户传入
  949. timeStamp: payInfo.timeStamp, //时间戳,自1970年以来的秒数
  950. nonceStr: payInfo.nonceStr, //随机串
  951. package: payInfo.package, //订单详情扩展字符串
  952. signType: payInfo.signType, //微信签名方式:
  953. paySign: payInfo.paySign //微信签名
  954. },
  955. res => {
  956. if (res.err_msg == 'get_brand_wcpay_request:ok') {
  957. this.$u.toast('支付成功!');
  958. // 订单审核,取消订单提醒
  959. setTimeout(() => {
  960. this.otheMsgTip('/pagesT/money/paySuccess?price=' + this.order_detail
  961. .payMoney);
  962. }, 1500);
  963. } else {
  964. this.$u.toast('支付失败!');
  965. setTimeout(() => {
  966. uni.redirectTo({
  967. url: '/pagesT/order/order?state=0'
  968. });
  969. }, 1500);
  970. }
  971. }
  972. );
  973. } else {
  974. //在自带浏览器中打开
  975. window.location.replace(payInfo);
  976. }
  977. } else {
  978. //在pc中打开
  979. this.$u.toast('该系统暂不支持微信支付');
  980. setTimeout(() => {
  981. uni.redirectTo({
  982. url: '/pagesT/order/order?state=0'
  983. });
  984. }, 1500);
  985. // console.log('在pc中打开');
  986. }
  987. // #endif
  988. },
  989. // 余额支付密码键盘按键被点击(不包含退格键被点击)
  990. balancePopChange(val) {
  991. if (this.balance_pwd.length < 6) {
  992. this.balance_pwd += val;
  993. }
  994. if (this.balance_pwd.length >= 6) {
  995. // 唤起密码验证
  996. this.checkPayPassword();
  997. }
  998. },
  999. //键盘退格键被点击
  1000. onBackspace(e) {
  1001. if (this.balance_pwd.length > 0) {
  1002. this.balance_pwd = this.balance_pwd.substring(0, this.balance_pwd.length - 1);
  1003. }
  1004. },
  1005. // 余额密码弹窗显示
  1006. balanceShowPop(flag = true) {
  1007. this.balance_pwd = '';
  1008. this.pwd_show = flag;
  1009. },
  1010. // 余额密码输入完成
  1011. balanceFinish() {
  1012. // 唤起支付
  1013. this.addOrder();
  1014. },
  1015. // 添加分销上下级关系 source: 1:首次点击链接 2:首次下单 3:首次付款'
  1016. relationshipBusinessman(source) {
  1017. console.log('上级ID', this.$store.state.businessmanId);
  1018. if (!this.$store.state.businessmanId) {
  1019. return;
  1020. }
  1021. this.$u.api
  1022. .relationshipBusinessman({
  1023. businessmanId: this.$store.state.businessmanId,
  1024. source: source
  1025. })
  1026. .then(res => {
  1027. console.log('上下:', res);
  1028. });
  1029. },
  1030. // 去设置支付密码
  1031. setPassword() {
  1032. this.goPage('/pagesT/money/PayPassword');
  1033. },
  1034. // 支付密码校验
  1035. checkPayPassword() {
  1036. uni.showLoading();
  1037. this.$u.api
  1038. .checkPayPassword({
  1039. id: this.userInfo.id,
  1040. payPassword: this.balance_pwd
  1041. })
  1042. .then(res => {
  1043. this.addOrder();
  1044. })
  1045. .catch(res => {
  1046. this.balance_pwd = '';
  1047. });
  1048. },
  1049. // 获取消息模版ID 下单成功、发货通知、支付成功
  1050. getSettingDataByMessageId() {
  1051. this.$u.api
  1052. .getSettingDataByMessageId({
  1053. id: [1, 2, 3, 5, 6]
  1054. })
  1055. .then(res => {
  1056. if (res.data.length > 0) {
  1057. this.tmplIds = res.data
  1058. .filter(item => [1, 2, 3].includes(item.messageId))
  1059. .map(item => {
  1060. return item.weixinTemplateId;
  1061. });
  1062. this.other_tmplIds = res.data
  1063. .filter(item => [5, 6].includes(item.messageId))
  1064. .map(item => {
  1065. return item.weixinTemplateId;
  1066. });
  1067. }
  1068. });
  1069. }
  1070. }
  1071. };
  1072. </script>
  1073. <style lang="scss">
  1074. body {
  1075. background: $page-color-base;
  1076. padding-bottom: 100upx;
  1077. }
  1078. .placeholder-class {
  1079. font-size: 24upx;
  1080. color: #999;
  1081. }
  1082. .total-view {
  1083. text-align: right;
  1084. font-size: 24upx;
  1085. color: #999;
  1086. padding: 10upx 24upx;
  1087. .price {
  1088. color: $price-color;
  1089. font-size: 30upx;
  1090. font-weight: bold;
  1091. }
  1092. }
  1093. .confirm_box {
  1094. width: 100%;
  1095. padding: 1upx 18upx 0;
  1096. background: $page-color-base;
  1097. min-height: 100%;
  1098. padding-bottom: 150upx;
  1099. position: relative;
  1100. .address-bg {
  1101. position: absolute;
  1102. top: 0;
  1103. left: 0;
  1104. width: 100%;
  1105. height: 180upx;
  1106. }
  1107. .delivery-ul {
  1108. display: flex;
  1109. margin-top: 30upx;
  1110. line-height: 70upx;
  1111. height: 70upx;
  1112. .delivery-li {
  1113. font-size: 28upx;
  1114. background: #fef6f4;
  1115. text-align: center;
  1116. flex: 3;
  1117. position: relative;
  1118. .check-bg {
  1119. display: none;
  1120. position: absolute;
  1121. top: -10upx;
  1122. height: 80upx;
  1123. background-color: #fff;
  1124. width: 100%;
  1125. background: linear-gradient(243deg, transparent 36upx, #ffffff 0);
  1126. }
  1127. }
  1128. .delivery-li:nth-child(2) .check-bg {
  1129. background: linear-gradient(110deg, transparent 30upx, #ffffff 0) top left, linear-gradient(-110deg, transparent 30upx, #ffffff 0) top right;
  1130. background-size: 60% 100%;
  1131. background-repeat: no-repeat;
  1132. }
  1133. .delivery-li:last-child .check-bg {
  1134. background: linear-gradient(113deg, transparent 32upx, #ffffff 0);
  1135. }
  1136. .delivery-on {
  1137. font-weight: bold;
  1138. .check-bg {
  1139. display: block;
  1140. }
  1141. }
  1142. }
  1143. .main-view-box {
  1144. border-radius: 8upx;
  1145. box-shadow: 0px 0px 10upx 4upx #f5f5f5;
  1146. }
  1147. .address-section {
  1148. padding: 30upx 0;
  1149. background: #fff;
  1150. position: relative;
  1151. .order-content {
  1152. display: flex;
  1153. align-items: center;
  1154. }
  1155. .wu-reminder {
  1156. font-size: 24rpx;
  1157. color: $uni-color-warning;
  1158. padding-top: 10rpx;
  1159. padding-left: 90rpx;
  1160. }
  1161. .ibonwuliu,
  1162. .ibondizhi2 {
  1163. flex-shrink: 0;
  1164. display: flex;
  1165. align-items: center;
  1166. justify-content: center;
  1167. width: 90upx;
  1168. color: #888;
  1169. font-size: 44upx;
  1170. }
  1171. .cen {
  1172. display: flex;
  1173. flex-direction: column;
  1174. flex: 1;
  1175. font-size: 28upx;
  1176. color: $font-color-dark;
  1177. }
  1178. .mobile,
  1179. .name {
  1180. font-size: 24upx;
  1181. margin-right: 24upx;
  1182. color: #666;
  1183. }
  1184. .address {
  1185. margin-top: 10upx;
  1186. margin-right: 20upx;
  1187. font-size: 26upx;
  1188. // color: $font-color-light;
  1189. }
  1190. .icon-you {
  1191. font-size: 32upx;
  1192. color: $font-color-light;
  1193. margin-right: 30upx;
  1194. }
  1195. .a-bg {
  1196. position: absolute;
  1197. left: 0;
  1198. bottom: 0;
  1199. display: block;
  1200. width: 100%;
  1201. height: 5upx;
  1202. }
  1203. }
  1204. }
  1205. .empty-tips {
  1206. display: flex;
  1207. font-size: $font-sm + 2upx;
  1208. color: $font-color-disabled;
  1209. .navigator {
  1210. color: $uni-color-primary;
  1211. margin-left: 16upx;
  1212. }
  1213. }
  1214. .goods-section {
  1215. margin-top: 20upx;
  1216. background: #fff;
  1217. padding-bottom: 1px;
  1218. .g-header {
  1219. display: flex;
  1220. align-items: center;
  1221. height: 74upx;
  1222. padding: 0 30upx;
  1223. position: relative;
  1224. }
  1225. .logo {
  1226. display: block;
  1227. width: 35upx;
  1228. height: 35upx;
  1229. border-radius: 35upx;
  1230. }
  1231. .name {
  1232. font-size: 24upx;
  1233. color: $font-color-dark;
  1234. margin-left: 24upx;
  1235. font-weight: bold;
  1236. }
  1237. .g-item {
  1238. display: flex;
  1239. margin: 20upx;
  1240. image {
  1241. flex-shrink: 0;
  1242. display: block;
  1243. width: 140rpx;
  1244. height: 140rpx;
  1245. border-radius: 8upx;
  1246. background-color: #f7f7f7;
  1247. }
  1248. .right {
  1249. flex: 1;
  1250. margin-left: 24upx;
  1251. overflow: hidden;
  1252. border-bottom: 1upx solid #f5f5f5;
  1253. }
  1254. .spec {
  1255. display: inline-block;
  1256. font-size: 24upx;
  1257. color: #999999;
  1258. // margin-bottom: 6upx;
  1259. // padding: 6upx 20upx;
  1260. // background-color: #f5f5f5;
  1261. border-radius: 30upx;
  1262. }
  1263. .price-box {
  1264. font-size: 28upx;
  1265. color: $price-color;
  1266. padding-bottom: 6upx;
  1267. .notExpress-tip {
  1268. color: #e6a23c;
  1269. font-size: 24upx;
  1270. }
  1271. .title {
  1272. font-size: 28upx;
  1273. color: $font-color-dark;
  1274. }
  1275. .price {
  1276. margin-bottom: 4upx;
  1277. font-weight: bold;
  1278. }
  1279. .number {
  1280. font-size: 24upx;
  1281. color: $font-color-base;
  1282. }
  1283. }
  1284. .step-box {
  1285. position: relative;
  1286. }
  1287. }
  1288. }
  1289. .yt-list {
  1290. margin-top: 20upx;
  1291. background: #fff;
  1292. // margin-bottom: 100upx;
  1293. }
  1294. .yt-list-cell {
  1295. display: flex;
  1296. align-items: center;
  1297. padding: 10upx 20upx;
  1298. line-height: 70upx;
  1299. position: relative;
  1300. .ibonfont {
  1301. color: #999;
  1302. padding-left: 10upx;
  1303. transform: translateY(4upx);
  1304. display: inline-block;
  1305. }
  1306. &.cell-hover {
  1307. background: #fafafa;
  1308. }
  1309. &.b-b:after {
  1310. left: 30upx;
  1311. }
  1312. .cell-icon {
  1313. height: 32upx;
  1314. width: 32upx;
  1315. font-size: 22upx;
  1316. color: #fff;
  1317. text-align: center;
  1318. line-height: 32upx;
  1319. background: #f85e52;
  1320. border-radius: 4upx;
  1321. margin-right: 12upx;
  1322. &.hb {
  1323. background: #ffaa0e;
  1324. }
  1325. &.lpk {
  1326. background: #3ab54a;
  1327. }
  1328. }
  1329. .cell-more {
  1330. align-self: center;
  1331. font-size: 24upx;
  1332. color: $font-color-light;
  1333. margin-left: 8upx;
  1334. margin-right: -10upx;
  1335. }
  1336. .cell-tit {
  1337. flex: 1;
  1338. font-size: 28upx;
  1339. color: #666;
  1340. margin-right: 10upx;
  1341. }
  1342. .cell-tip {
  1343. font-size: 28upx;
  1344. color: $font-color-dark;
  1345. &.disabled {
  1346. color: $font-color-light;
  1347. }
  1348. &.active {
  1349. color: #f85e52;
  1350. }
  1351. &.red {
  1352. color: #f85e52;
  1353. }
  1354. }
  1355. &.desc-cell {
  1356. .cell-tit {
  1357. max-width: 116upx;
  1358. }
  1359. }
  1360. .desc {
  1361. flex: 1;
  1362. font-size: $font-base;
  1363. color: $font-color-dark;
  1364. text-align: right;
  1365. }
  1366. }
  1367. .footer {
  1368. position: fixed;
  1369. left: 0;
  1370. bottom: 0;
  1371. z-index: 995;
  1372. width: 100%;
  1373. font-size: 26upx;
  1374. background-color: #fff;
  1375. z-index: 9;
  1376. color: $font-color-base;
  1377. border-top: 1upx solid #f5f5f5;
  1378. .not-express-tip {
  1379. font-size: 22upx;
  1380. background-color: #fdf6ec;
  1381. color: #d48d24;
  1382. text-align: center;
  1383. line-height: 42upx;
  1384. }
  1385. .footer-in {
  1386. height: 100upx;
  1387. justify-content: space-between;
  1388. display: flex;
  1389. align-items: center;
  1390. }
  1391. .price-content {
  1392. padding-left: 20upx;
  1393. }
  1394. .price-tip {
  1395. color: $price-color;
  1396. margin-left: 8upx;
  1397. }
  1398. .price {
  1399. font-size: 48upx;
  1400. color: $price-color;
  1401. // font-weight: bold;
  1402. }
  1403. .submit {
  1404. width: 210upx;
  1405. height: 74upx;
  1406. text-align: center;
  1407. border-radius: 8upx;
  1408. line-height: 74upx;
  1409. margin-right: 20rpx;
  1410. color: #fff;
  1411. font-size: $font-base;
  1412. }
  1413. }
  1414. .pay-pop-view {
  1415. background-color: #ffffff;
  1416. border-top-left-radius: 12upx;
  1417. border-top-right-radius: 12upx;
  1418. font-size: 28upx;
  1419. .pay-sel-title {
  1420. padding: 0 30upx;
  1421. line-height: 88upx;
  1422. font-weight: bold;
  1423. font-size: 32upx;
  1424. .ibonfont {
  1425. color: #999;
  1426. font-weight: 400;
  1427. }
  1428. }
  1429. .pay-btn {
  1430. height: 90upx;
  1431. line-height: 90upx;
  1432. color: #fff;
  1433. font-size: 32upx;
  1434. text-align: center;
  1435. }
  1436. .pay-ul {
  1437. .pay-li {
  1438. line-height: 100upx;
  1439. .ibonfont {
  1440. padding-left: 30upx;
  1441. font-size: 46upx;
  1442. vertical-align: middle;
  1443. margin-right: 24upx;
  1444. }
  1445. .ibonweixinzhifu {
  1446. color: #04be02;
  1447. }
  1448. .ibonumidd17 {
  1449. color: #108ee9;
  1450. }
  1451. .ibonhuodaofukuan {
  1452. color: #f2b844;
  1453. }
  1454. .pay-name {
  1455. width: 650upx;
  1456. display: inline-block;
  1457. padding-right: 30upx;
  1458. vertical-align: middle;
  1459. border-bottom: 1px solid #f5f5f5;
  1460. .ibonxuanze1,
  1461. .ibonweixuanze {
  1462. margin-right: 0;
  1463. padding-left: 0;
  1464. font-size: 38upx;
  1465. }
  1466. .balace-num {
  1467. font-size: 24rpx;
  1468. color: #6c6c6c;
  1469. }
  1470. }
  1471. .balance-pay-name {
  1472. position: relative;
  1473. padding-bottom: 20rpx;
  1474. .balance-tip {
  1475. position: absolute;
  1476. font-size: 22rpx;
  1477. line-height: 36rpx;
  1478. bottom: 10rpx;
  1479. left: 0;
  1480. }
  1481. }
  1482. }
  1483. }
  1484. }
  1485. .self-shop-title {
  1486. padding: 0 30upx;
  1487. line-height: 88upx;
  1488. font-weight: bold;
  1489. font-size: 32upx;
  1490. .ibonfont {
  1491. color: #999;
  1492. font-weight: 400;
  1493. }
  1494. }
  1495. .self-shop-ul {
  1496. background-color: #ffffff;
  1497. padding: 24upx;
  1498. .close-btn {
  1499. width: 690upx;
  1500. height: 80upx;
  1501. line-height: 80upx;
  1502. color: #fff;
  1503. font-size: 32upx;
  1504. text-align: center;
  1505. margin: 20upx auto 0;
  1506. border-radius: 10upx;
  1507. }
  1508. .self-shop-li {
  1509. font-size: 24upx;
  1510. line-height: 36upx;
  1511. padding-bottom: 24upx;
  1512. border-bottom: 1px solid #f5f5f5;
  1513. margin-bottom: 24rpx;
  1514. position: relative;
  1515. .sel-tag {
  1516. position: absolute;
  1517. top: 50%;
  1518. right: 20upx;
  1519. transform: translateY(-50%);
  1520. font-size: 46upx;
  1521. }
  1522. .name {
  1523. font-size: 28upx;
  1524. padding-bottom: 10upx;
  1525. }
  1526. }
  1527. }
  1528. .balance-money {
  1529. font-size: 80rpx;
  1530. color: $u-type-warning;
  1531. position: relative;
  1532. .close {
  1533. position: absolute;
  1534. top: 20rpx;
  1535. right: 20rpx;
  1536. line-height: 28rpx;
  1537. font-size: 28rpx;
  1538. }
  1539. }
  1540. .sc-md {
  1541. margin: 20rpx auto;
  1542. width: 712rpx;
  1543. height: 210rpx;
  1544. background: #FFFFFF;
  1545. border-radius: 10rpx;
  1546. .sc-tip {
  1547. width: 712rpx;
  1548. height: 70rpx;
  1549. background: #EF8381;
  1550. border-radius: 10rpx 10rpx 0px 0px;
  1551. }
  1552. }
  1553. </style>