createOrderT.vue 54 KB

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