createOrder.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655
  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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIi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2yHLMOIxjH111chmDocXg9XzZFR4fD74e5cA9GtQEulbLGbfaNMvv4+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,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaA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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. //自提点
  529. if (!this.selfRuleId && data.selfExpressRule.length) {
  530. this.self_express_rule = data.selfExpressRule[0].setData;
  531. this.selfRuleId = data.selfExpressRule[0].id;
  532. }
  533. this.delivery = data.delivery;
  534. const wuData = this.delivery.find(item => item.deliveryType === 3);
  535. this.wu_reminder = wuData && wuData.setData ? wuData.setData.reminder : '';
  536. this.vipDiscount = data.vipDiscount;
  537. this.vipDoubleDiscount = data.vipDoubleDiscount;
  538. this.preferential = data.preferential;
  539. this.goodsData = data.goodsData;
  540. this.couponList = data.coupon;
  541. this.vipList = data.vipCard;
  542. this.useCoupon = this.order_detail.useCoupon;
  543. // 支付方式
  544. let payment = [];
  545. if (data.payment) {
  546. if (Array.isArray(data.payment)) {
  547. payment = data.payment;
  548. } else {
  549. payment = Object.values(data.payment);
  550. }
  551. }
  552. this.payment = payment.filter(item => item.title.indexOf('支付宝') === -1);
  553. if (!this.payId.length) {
  554. const payIndex = this.payment.findIndex(item => item.defaultStatus === 5);
  555. if (payIndex > -1) {
  556. if (parseInt(this.payment[payIndex].id) === 7 && this.order_detail.memberBalance <= 0) {
  557. this.payId = [];
  558. } else {
  559. this.payId = payIndex > -1 ? [this.payment[payIndex].id] : [];
  560. }
  561. }
  562. }
  563. // 银行信息
  564. /*const banck_data = data.payment.find(item => item.id === 4);
  565. this.bank_data =
  566. banck_data && banck_data.accountData
  567. ? {
  568. id: banck_data.accountData.id,
  569. name: banck_data.accountData.name,
  570. bankName: banck_data.accountData.bankName,
  571. accountNumber: banck_data.accountData.accountNumber,
  572. image: ''
  573. }
  574. : {};*/
  575. // 配送方式
  576. if (!this.deliveryType) {
  577. const deIndex = this.delivery.findIndex(item => item.defaultStatus === 5);
  578. this.deliveryType = deIndex > -1 ? this.delivery[deIndex].id : this.delivery[0].id;
  579. this.delivery_title = deIndex > -1 ? this.delivery[deIndex].title : this.delivery[0].title;
  580. }
  581. // 验证商品是否在配送范围内
  582. data.goodsData.forEach(item => {
  583. item.is_notExpress = item.shopGoodsData.every(itemS => itemS.notExpress === 5);
  584. });
  585. this.is_notExpress = data.goodsData.every(item => item.is_notExpress);
  586. this.sub_pramas = {
  587. orderRemark: this.orderRemark,
  588. receiveAddressId: this.addressData.id,
  589. source: this.source,
  590. payType: this.payId,
  591. selfRuleId: this.selfRuleId,
  592. deliveryType: this.deliveryType,
  593. goodsData: {
  594. totalMoney: data.totalMoney,
  595. payMoney: data.payMoney,
  596. expressMoney: data.expressMoney,
  597. preferential: data.preferential,
  598. checkNum: data.checkNum,
  599. cartNum: data.cartNum,
  600. goodsData: data.goodsData
  601. }
  602. };
  603. },
  604. // 立即购买
  605. buyNow() {
  606. this.$u.api
  607. .buyNow({
  608. ...this.buy_params,
  609. deliveryId: this.deliveryType,
  610. addressId: this.addressData.id
  611. })
  612. .then(({
  613. data
  614. }) => {
  615. this.getOrderDetail(data);
  616. });
  617. },
  618. // 商品立即购买
  619. goodsBuyNow() {
  620. this.$u.api
  621. .goodsBuyNow({
  622. ...this.goods_buy_obj,
  623. vipCardId: this.vipCardId,
  624. couponId: this.userCouponId,
  625. addressId: this.addressData.id,
  626. deliveryId: this.deliveryType
  627. })
  628. .then(({
  629. data
  630. }) => {
  631. this.getOrderDetail(data);
  632. });
  633. },
  634. // 确认订单
  635. async confirmationOfOrder() {
  636. if (this.buy_params.comBinId) {
  637. await this.buyNow();
  638. } else if (this.goods_buy_obj.skuId) {
  639. await this.goodsBuyNow();
  640. } else {
  641. await this.confirmOrder();
  642. }
  643. },
  644. async confirmOrder() {
  645. await this.$u.api
  646. .confirmationOfOrder({
  647. userCouponId: this.userCouponId,
  648. vipCardId: this.vipCardId,
  649. deliveryId: this.deliveryType,
  650. addressId: this.addressData.id
  651. })
  652. .then(({
  653. data
  654. }) => {
  655. this.getOrderDetail(data);
  656. });
  657. },
  658. selPayFun() {
  659. if (!this.is_notExpress) {
  660. return;
  661. }
  662. this.payPop = true;
  663. },
  664. closePayPop() {
  665. this.payPop = false;
  666. },
  667. // 提交订单
  668. submit() {
  669. if (!this.is_notExpress) {
  670. return;
  671. }
  672. // 验证账户状态
  673. this.userAudit();
  674. if (!this.isUserAudit) {
  675. return;
  676. }
  677. if (!this.payId.length) {
  678. this.$api.msg('请选择支付方式');
  679. return;
  680. }
  681. if (this.order_detail.payMoney > Number(this.order_detail.memberBalance)) {
  682. if (this.payId.indexOf(7) > -1 && this.payId.length !== 2) {
  683. this.$api.msg('可支付余额不足,请搭配其他支付方式');
  684. return;
  685. }
  686. }
  687. if (!this.deliveryType) {
  688. this.$api.msg('请选择配送方式');
  689. return;
  690. }
  691. if (this.delivery_title.indexOf('自提') === -1) {
  692. if (!this.addressData) {
  693. this.$api.msg('请选择收货地址');
  694. return;
  695. }
  696. }
  697. // 余额支付弹窗
  698. if (this.payId.indexOf(7) > -1 && Number(this.order_detail.memberBalance) > 0) {
  699. if (this.userInfo.payPassword) {
  700. this.balanceShowPop();
  701. } else {
  702. this.tip_show = true;
  703. }
  704. return;
  705. }
  706. this.addOrder();
  707. },
  708. addOrder() {
  709. // #ifdef MP-WEIXIN
  710. if (this.tmplIds.length) {
  711. uni.requestSubscribeMessage({
  712. tmplIds: this.tmplIds,
  713. success: res => {
  714. this.createOrder();
  715. },
  716. fail: res => {
  717. console.log(res);
  718. this.createOrder();
  719. }
  720. });
  721. } else {
  722. this.createOrder();
  723. }
  724. // #endif
  725. // #ifdef APP-PLUS||H5
  726. this.createOrder();
  727. // #endif
  728. },
  729. // 订单审核,取消订单提醒
  730. otheMsgTip(url) {
  731. uni.redirectTo({
  732. url: url
  733. });
  734. return;
  735. uni.requestSubscribeMessage({
  736. tmplIds: this.other_tmplIds,
  737. success: res => {
  738. uni.redirectTo({
  739. url: url
  740. });
  741. },
  742. fail: res => {
  743. console.log(res);
  744. uni.redirectTo({
  745. url: url
  746. });
  747. }
  748. });
  749. },
  750. createOrder() {
  751. const goodsData = {
  752. ...this.sub_pramas.goodsData,
  753. vipDiscount: this.vipDiscount || 0,
  754. vipDoubleDiscount: this.vipDoubleDiscount || 0,
  755. preferential: this.preferential || 0
  756. };
  757. // 余额支付数据
  758. let admixPayData = [];
  759. let payType = '';
  760. if (this.payId.length === 2) {
  761. // 查找余额支付的支付方式ID
  762. const balaceObj = this.payment.find(item => item.id === 7);
  763. admixPayData = this.payId.map(item => {
  764. let obj = {};
  765. if (balaceObj.id === item) {
  766. obj = {
  767. payType: item,
  768. title: balaceObj.title,
  769. payMoney: Number(this.order_detail.memberBalance)
  770. };
  771. } else {
  772. obj = {
  773. payType: item,
  774. title: this.payment.find(pay => pay.id === item).title,
  775. payMoney: this.$NP.minus(this.payMoney, this.order_detail.memberBalance)
  776. };
  777. }
  778. return obj;
  779. });
  780. payType = this.payId.join(',');
  781. } else if (this.payId.length === 1) {
  782. payType = parseInt(this.payId[0]);
  783. }
  784. // console.log(admixPayData);
  785. // return;
  786. let params = {
  787. ...this.sub_pramas,
  788. goodsData: goodsData,
  789. receiveAddressId: this.addressData.id || 0,
  790. source: this.source,
  791. payType: payType,
  792. selfRuleId: this.selfRuleId,
  793. deliveryType: this.deliveryType,
  794. orderRemark: this.orderRemark,
  795. useCoupon: this.useCoupon,
  796. admixPayData: admixPayData
  797. };
  798. // if (this.payId.indexOf(4) > -1) {
  799. // params.bankData = this.bank_data;
  800. // }
  801. if (this.buy_params) {
  802. params.comBinId = this.buy_params.comBinId;
  803. }
  804. if (this.sub_loading) {
  805. return;
  806. }
  807. this.sub_loading = true;
  808. this.$u.api
  809. .addOrder(params)
  810. .then(data => {
  811. this.sub_loading = false;
  812. // 如果是支付宝支付,返回的data是一串字符串
  813. this.closePayPop();
  814. // 创建订单成功添加分销上下级关系
  815. this.relationshipBusinessman(2);
  816. // 货到付款 直接进入订单页面
  817. if (this.payId.indexOf(3) > -1) {
  818. // 订单审核,取消订单提醒
  819. this.otheMsgTip('/pagesT/order/order?state=0');
  820. return;
  821. } else if (this.payId.indexOf(4) > -1) {
  822. // 银行打款
  823. const orderId = data.data;
  824. // 订单审核,取消订单提醒
  825. this.otheMsgTip(`/pagesT/money/BankPay?orderId=${orderId}&payAmount=${this.payMoney}`);
  826. return;
  827. }
  828. if (JSON.stringify(data.data) === '{}') {
  829. this.otheMsgTip('/pagesT/order/order?state=0');
  830. return;
  831. }
  832. // 获取提交支付数据
  833. const payInfo = data.data;
  834. console.log('payInfo', payInfo);
  835. // app 支付
  836. // #ifdef APP-PLUS
  837. let provider = '';
  838. if (this.payId.indexOf(1) > 1) {
  839. provider = 'wxpay';
  840. } else if (this.payId.indexOf(2) > 1) {
  841. provider = 'alipay';
  842. }
  843. uni.requestPayment({
  844. provider: provider, //供应商
  845. orderInfo: JSON.stringify(payInfo),
  846. success: res => {
  847. setTimeout(() => {
  848. uni.redirectTo({
  849. url: '/pagesT/money/paySuccess?price=' + this
  850. .order_detail.payMoney
  851. });
  852. }, 100);
  853. },
  854. fail: err => {
  855. console.log('支付失败', err);
  856. this.sub_loading = false;
  857. setTimeout(() => {
  858. uni.redirectTo({
  859. url: '/pagesT/order/order?state=0'
  860. });
  861. }, 100);
  862. }
  863. });
  864. // #endif
  865. // #ifdef MP-WEIXIN
  866. uni.requestPayment({
  867. provider: 'wxpay',
  868. timeStamp: payInfo.timeStamp, //当前时间
  869. nonceStr: payInfo.nonceStr, //随机字符串,长度在32一下
  870. package: payInfo.package, //统一单接口返回的prepay_id
  871. signType: payInfo.signType, //签名算法,目前支持MD5
  872. paySign: payInfo.paySign, //签名
  873. success: res => {
  874. // 订单审核,取消订单提醒
  875. setTimeout(() => {
  876. this.otheMsgTip('/pagesT/money/paySuccess?price=' + this
  877. .order_detail.payMoney);
  878. }, 200);
  879. },
  880. fail: async err => {
  881. console.log('支付失败');
  882. await setTimeout(() => {
  883. uni.redirectTo({
  884. url: '/pagesT/order/order?state=0'
  885. });
  886. }, 100);
  887. }
  888. });
  889. // #endif
  890. // #ifdef MP-TOUTIAO
  891. uni.requestPayment({
  892. provider: 'toutiao',
  893. service: 3, //字节跳动小程序必填,service=3: 微信API支付,不拉起小程序收银台;service=4: 支付宝API支付,不拉起小程序收银台。
  894. orderInfo: payInfo,
  895. success: res => {
  896. this.$u.api
  897. .orderquery({
  898. out_trade_no: payInfo.out_order_no
  899. })
  900. .then(pay => {
  901. const payStatus = pay.data;
  902. if (payStatus === 'SUCCESS') {
  903. uni.redirectTo({
  904. url: '/pagesT/money/paySuccess?price=' + this
  905. .order_detail.payMoney
  906. });
  907. } else {
  908. uni.redirectTo({
  909. url: '/pagesT/order/order?state=0'
  910. });
  911. }
  912. });
  913. },
  914. fail: async err => {
  915. console.log('fail::', err);
  916. await setTimeout(() => {
  917. uni.redirectTo({
  918. url: '/pagesT/order/order?state=0'
  919. });
  920. }, 100);
  921. }
  922. });
  923. // #endif
  924. // #ifdef H5
  925. if (payInfo) {
  926. this.H5pay(payInfo);
  927. }
  928. // #endif
  929. })
  930. .catch(res => {
  931. this.sub_loading = false;
  932. this.balance_pwd = '';
  933. });
  934. },
  935. H5pay(payInfo) {
  936. // #ifdef H5
  937. const u = navigator.userAgent;
  938. const app = navigator.appVersion;
  939. const mobile = !!u.match(/AppleWebKit.*Mobile.*/); //是否为移动终端
  940. if (mobile) {
  941. const ua = navigator.userAgent.toLowerCase(); //获取判断用的对象
  942. if (ua.match(/MicroMessenger/i) == 'micromessenger') {
  943. //在微信中打开
  944. WeixinJSBridge.invoke(
  945. 'getBrandWCPayRequest', {
  946. appId: payInfo.appId, //公众号名称,由商户传入
  947. timeStamp: payInfo.timeStamp, //时间戳,自1970年以来的秒数
  948. nonceStr: payInfo.nonceStr, //随机串
  949. package: payInfo.package, //订单详情扩展字符串
  950. signType: payInfo.signType, //微信签名方式:
  951. paySign: payInfo.paySign //微信签名
  952. },
  953. res => {
  954. if (res.err_msg == 'get_brand_wcpay_request:ok') {
  955. this.$u.toast('支付成功!');
  956. // 订单审核,取消订单提醒
  957. setTimeout(() => {
  958. this.otheMsgTip('/pagesT/money/paySuccess?price=' + this.order_detail
  959. .payMoney);
  960. }, 1500);
  961. } else {
  962. this.$u.toast('支付失败!');
  963. setTimeout(() => {
  964. uni.redirectTo({
  965. url: '/pagesT/order/order?state=0'
  966. });
  967. }, 1500);
  968. }
  969. }
  970. );
  971. } else {
  972. //在自带浏览器中打开
  973. window.location.replace(payInfo);
  974. }
  975. } else {
  976. //在pc中打开
  977. this.$u.toast('该系统暂不支持微信支付');
  978. setTimeout(() => {
  979. uni.redirectTo({
  980. url: '/pagesT/order/order?state=0'
  981. });
  982. }, 1500);
  983. // console.log('在pc中打开');
  984. }
  985. // #endif
  986. },
  987. // 余额支付密码键盘按键被点击(不包含退格键被点击)
  988. balancePopChange(val) {
  989. if (this.balance_pwd.length < 6) {
  990. this.balance_pwd += val;
  991. }
  992. if (this.balance_pwd.length >= 6) {
  993. // 唤起密码验证
  994. this.checkPayPassword();
  995. }
  996. },
  997. //键盘退格键被点击
  998. onBackspace(e) {
  999. if (this.balance_pwd.length > 0) {
  1000. this.balance_pwd = this.balance_pwd.substring(0, this.balance_pwd.length - 1);
  1001. }
  1002. },
  1003. // 余额密码弹窗显示
  1004. balanceShowPop(flag = true) {
  1005. this.balance_pwd = '';
  1006. this.pwd_show = flag;
  1007. },
  1008. // 余额密码输入完成
  1009. balanceFinish() {
  1010. // 唤起支付
  1011. this.addOrder();
  1012. },
  1013. // 添加分销上下级关系 source: 1:首次点击链接 2:首次下单 3:首次付款'
  1014. relationshipBusinessman(source) {
  1015. console.log('上级ID', this.$store.state.businessmanId);
  1016. if (!this.$store.state.businessmanId) {
  1017. return;
  1018. }
  1019. this.$u.api
  1020. .relationshipBusinessman({
  1021. businessmanId: this.$store.state.businessmanId,
  1022. source: source
  1023. })
  1024. .then(res => {
  1025. console.log('上下:', res);
  1026. });
  1027. },
  1028. // 去设置支付密码
  1029. setPassword() {
  1030. this.goPage('/pagesT/money/PayPassword');
  1031. },
  1032. // 支付密码校验
  1033. checkPayPassword() {
  1034. uni.showLoading();
  1035. this.$u.api
  1036. .checkPayPassword({
  1037. id: this.userInfo.id,
  1038. payPassword: this.balance_pwd
  1039. })
  1040. .then(res => {
  1041. this.addOrder();
  1042. })
  1043. .catch(res => {
  1044. this.balance_pwd = '';
  1045. });
  1046. },
  1047. // 获取消息模版ID 下单成功、发货通知、支付成功
  1048. getSettingDataByMessageId() {
  1049. this.$u.api
  1050. .getSettingDataByMessageId({
  1051. id: [1, 2, 3, 5, 6]
  1052. })
  1053. .then(res => {
  1054. if (res.data.length > 0) {
  1055. this.tmplIds = res.data
  1056. .filter(item => [1, 2, 3].includes(item.messageId))
  1057. .map(item => {
  1058. return item.weixinTemplateId;
  1059. });
  1060. this.other_tmplIds = res.data
  1061. .filter(item => [5, 6].includes(item.messageId))
  1062. .map(item => {
  1063. return item.weixinTemplateId;
  1064. });
  1065. }
  1066. });
  1067. }
  1068. }
  1069. };
  1070. </script>
  1071. <style lang="scss">
  1072. body {
  1073. background: $page-color-base;
  1074. padding-bottom: 100upx;
  1075. }
  1076. .placeholder-class {
  1077. font-size: 24upx;
  1078. color: #999;
  1079. }
  1080. .total-view {
  1081. text-align: right;
  1082. font-size: 24upx;
  1083. color: #999;
  1084. padding: 10upx 24upx;
  1085. .price {
  1086. color: $price-color;
  1087. font-size: 30upx;
  1088. font-weight: bold;
  1089. }
  1090. }
  1091. .confirm_box {
  1092. width: 100%;
  1093. padding: 1upx 18upx 0;
  1094. background: $page-color-base;
  1095. min-height: 100%;
  1096. padding-bottom: 150upx;
  1097. position: relative;
  1098. .address-bg {
  1099. position: absolute;
  1100. top: 0;
  1101. left: 0;
  1102. width: 100%;
  1103. height: 180upx;
  1104. }
  1105. .delivery-ul {
  1106. display: flex;
  1107. margin-top: 30upx;
  1108. line-height: 70upx;
  1109. height: 70upx;
  1110. .delivery-li {
  1111. font-size: 28upx;
  1112. background: #fef6f4;
  1113. text-align: center;
  1114. flex: 3;
  1115. position: relative;
  1116. .check-bg {
  1117. display: none;
  1118. position: absolute;
  1119. top: -10upx;
  1120. height: 80upx;
  1121. background-color: #fff;
  1122. width: 100%;
  1123. background: linear-gradient(243deg, transparent 36upx, #ffffff 0);
  1124. }
  1125. }
  1126. .delivery-li:nth-child(2) .check-bg {
  1127. background: linear-gradient(110deg, transparent 30upx, #ffffff 0) top left, linear-gradient(-110deg, transparent 30upx, #ffffff 0) top right;
  1128. background-size: 60% 100%;
  1129. background-repeat: no-repeat;
  1130. }
  1131. .delivery-li:last-child .check-bg {
  1132. background: linear-gradient(113deg, transparent 32upx, #ffffff 0);
  1133. }
  1134. .delivery-on {
  1135. font-weight: bold;
  1136. .check-bg {
  1137. display: block;
  1138. }
  1139. }
  1140. }
  1141. .main-view-box {
  1142. border-radius: 8upx;
  1143. box-shadow: 0px 0px 10upx 4upx #f5f5f5;
  1144. }
  1145. .address-section {
  1146. padding: 30upx 0;
  1147. background: #fff;
  1148. position: relative;
  1149. .order-content {
  1150. display: flex;
  1151. align-items: center;
  1152. }
  1153. .wu-reminder {
  1154. font-size: 24rpx;
  1155. color: $uni-color-warning;
  1156. padding-top: 10rpx;
  1157. padding-left: 90rpx;
  1158. }
  1159. .ibonwuliu,
  1160. .ibondizhi2 {
  1161. flex-shrink: 0;
  1162. display: flex;
  1163. align-items: center;
  1164. justify-content: center;
  1165. width: 90upx;
  1166. color: #888;
  1167. font-size: 44upx;
  1168. }
  1169. .cen {
  1170. display: flex;
  1171. flex-direction: column;
  1172. flex: 1;
  1173. font-size: 28upx;
  1174. color: $font-color-dark;
  1175. }
  1176. .mobile,
  1177. .name {
  1178. font-size: 24upx;
  1179. margin-right: 24upx;
  1180. color: #666;
  1181. }
  1182. .address {
  1183. margin-top: 10upx;
  1184. margin-right: 20upx;
  1185. font-size: 26upx;
  1186. // color: $font-color-light;
  1187. }
  1188. .icon-you {
  1189. font-size: 32upx;
  1190. color: $font-color-light;
  1191. margin-right: 30upx;
  1192. }
  1193. .a-bg {
  1194. position: absolute;
  1195. left: 0;
  1196. bottom: 0;
  1197. display: block;
  1198. width: 100%;
  1199. height: 5upx;
  1200. }
  1201. }
  1202. }
  1203. .empty-tips {
  1204. display: flex;
  1205. font-size: $font-sm + 2upx;
  1206. color: $font-color-disabled;
  1207. .navigator {
  1208. color: $uni-color-primary;
  1209. margin-left: 16upx;
  1210. }
  1211. }
  1212. .goods-section {
  1213. margin-top: 20upx;
  1214. background: #fff;
  1215. padding-bottom: 1px;
  1216. .g-header {
  1217. display: flex;
  1218. align-items: center;
  1219. height: 74upx;
  1220. padding: 0 30upx;
  1221. position: relative;
  1222. }
  1223. .logo {
  1224. display: block;
  1225. width: 35upx;
  1226. height: 35upx;
  1227. border-radius: 35upx;
  1228. }
  1229. .name {
  1230. font-size: 24upx;
  1231. color: $font-color-dark;
  1232. margin-left: 24upx;
  1233. font-weight: bold;
  1234. }
  1235. .g-item {
  1236. display: flex;
  1237. margin: 20upx;
  1238. image {
  1239. flex-shrink: 0;
  1240. display: block;
  1241. width: 140rpx;
  1242. height: 140rpx;
  1243. border-radius: 8upx;
  1244. background-color: #f7f7f7;
  1245. }
  1246. .right {
  1247. flex: 1;
  1248. margin-left: 24upx;
  1249. overflow: hidden;
  1250. border-bottom: 1upx solid #f5f5f5;
  1251. }
  1252. .spec {
  1253. display: inline-block;
  1254. font-size: 24upx;
  1255. color: #999999;
  1256. // margin-bottom: 6upx;
  1257. // padding: 6upx 20upx;
  1258. // background-color: #f5f5f5;
  1259. border-radius: 30upx;
  1260. }
  1261. .price-box {
  1262. font-size: 28upx;
  1263. color: $price-color;
  1264. padding-bottom: 6upx;
  1265. .notExpress-tip {
  1266. color: #e6a23c;
  1267. font-size: 24upx;
  1268. }
  1269. .title {
  1270. font-size: 28upx;
  1271. color: $font-color-dark;
  1272. }
  1273. .price {
  1274. margin-bottom: 4upx;
  1275. font-weight: bold;
  1276. }
  1277. .number {
  1278. font-size: 24upx;
  1279. color: $font-color-base;
  1280. }
  1281. }
  1282. .step-box {
  1283. position: relative;
  1284. }
  1285. }
  1286. }
  1287. .yt-list {
  1288. margin-top: 20upx;
  1289. background: #fff;
  1290. // margin-bottom: 100upx;
  1291. }
  1292. .yt-list-cell {
  1293. display: flex;
  1294. align-items: center;
  1295. padding: 10upx 20upx;
  1296. line-height: 70upx;
  1297. position: relative;
  1298. .ibonfont {
  1299. color: #999;
  1300. padding-left: 10upx;
  1301. transform: translateY(4upx);
  1302. display: inline-block;
  1303. }
  1304. &.cell-hover {
  1305. background: #fafafa;
  1306. }
  1307. &.b-b:after {
  1308. left: 30upx;
  1309. }
  1310. .cell-icon {
  1311. height: 32upx;
  1312. width: 32upx;
  1313. font-size: 22upx;
  1314. color: #fff;
  1315. text-align: center;
  1316. line-height: 32upx;
  1317. background: #f85e52;
  1318. border-radius: 4upx;
  1319. margin-right: 12upx;
  1320. &.hb {
  1321. background: #ffaa0e;
  1322. }
  1323. &.lpk {
  1324. background: #3ab54a;
  1325. }
  1326. }
  1327. .cell-more {
  1328. align-self: center;
  1329. font-size: 24upx;
  1330. color: $font-color-light;
  1331. margin-left: 8upx;
  1332. margin-right: -10upx;
  1333. }
  1334. .cell-tit {
  1335. flex: 1;
  1336. font-size: 28upx;
  1337. color: #666;
  1338. margin-right: 10upx;
  1339. }
  1340. .cell-tip {
  1341. font-size: 28upx;
  1342. color: $font-color-dark;
  1343. &.disabled {
  1344. color: $font-color-light;
  1345. }
  1346. &.active {
  1347. color: #f85e52;
  1348. }
  1349. &.red {
  1350. color: #f85e52;
  1351. }
  1352. }
  1353. &.desc-cell {
  1354. .cell-tit {
  1355. max-width: 116upx;
  1356. }
  1357. }
  1358. .desc {
  1359. flex: 1;
  1360. font-size: $font-base;
  1361. color: $font-color-dark;
  1362. text-align: right;
  1363. }
  1364. }
  1365. .footer {
  1366. position: fixed;
  1367. left: 0;
  1368. bottom: 0;
  1369. z-index: 995;
  1370. width: 100%;
  1371. font-size: 26upx;
  1372. background-color: #fff;
  1373. z-index: 9;
  1374. color: $font-color-base;
  1375. border-top: 1upx solid #f5f5f5;
  1376. .not-express-tip {
  1377. font-size: 22upx;
  1378. background-color: #fdf6ec;
  1379. color: #d48d24;
  1380. text-align: center;
  1381. line-height: 42upx;
  1382. }
  1383. .footer-in {
  1384. height: 100upx;
  1385. justify-content: space-between;
  1386. display: flex;
  1387. align-items: center;
  1388. }
  1389. .price-content {
  1390. padding-left: 20upx;
  1391. }
  1392. .price-tip {
  1393. color: $price-color;
  1394. margin-left: 8upx;
  1395. }
  1396. .price {
  1397. font-size: 48upx;
  1398. color: $price-color;
  1399. // font-weight: bold;
  1400. }
  1401. .submit {
  1402. width: 210upx;
  1403. height: 74upx;
  1404. text-align: center;
  1405. border-radius: 8upx;
  1406. line-height: 74upx;
  1407. margin-right: 20rpx;
  1408. color: #fff;
  1409. font-size: $font-base;
  1410. }
  1411. }
  1412. .pay-pop-view {
  1413. background-color: #ffffff;
  1414. border-top-left-radius: 12upx;
  1415. border-top-right-radius: 12upx;
  1416. font-size: 28upx;
  1417. .pay-sel-title {
  1418. padding: 0 30upx;
  1419. line-height: 88upx;
  1420. font-weight: bold;
  1421. font-size: 32upx;
  1422. .ibonfont {
  1423. color: #999;
  1424. font-weight: 400;
  1425. }
  1426. }
  1427. .pay-btn {
  1428. height: 90upx;
  1429. line-height: 90upx;
  1430. color: #fff;
  1431. font-size: 32upx;
  1432. text-align: center;
  1433. }
  1434. .pay-ul {
  1435. .pay-li {
  1436. line-height: 100upx;
  1437. .ibonfont {
  1438. padding-left: 30upx;
  1439. font-size: 46upx;
  1440. vertical-align: middle;
  1441. margin-right: 24upx;
  1442. }
  1443. .ibonweixinzhifu {
  1444. color: #04be02;
  1445. }
  1446. .ibonumidd17 {
  1447. color: #108ee9;
  1448. }
  1449. .ibonhuodaofukuan {
  1450. color: #f2b844;
  1451. }
  1452. .pay-name {
  1453. width: 650upx;
  1454. display: inline-block;
  1455. padding-right: 30upx;
  1456. vertical-align: middle;
  1457. border-bottom: 1px solid #f5f5f5;
  1458. .ibonxuanze1,
  1459. .ibonweixuanze {
  1460. margin-right: 0;
  1461. padding-left: 0;
  1462. font-size: 38upx;
  1463. }
  1464. .balace-num {
  1465. font-size: 24rpx;
  1466. color: #6c6c6c;
  1467. }
  1468. }
  1469. .balance-pay-name {
  1470. position: relative;
  1471. padding-bottom: 20rpx;
  1472. .balance-tip {
  1473. position: absolute;
  1474. font-size: 22rpx;
  1475. line-height: 36rpx;
  1476. bottom: 10rpx;
  1477. left: 0;
  1478. }
  1479. }
  1480. }
  1481. }
  1482. }
  1483. .self-shop-title {
  1484. padding: 0 30upx;
  1485. line-height: 88upx;
  1486. font-weight: bold;
  1487. font-size: 32upx;
  1488. .ibonfont {
  1489. color: #999;
  1490. font-weight: 400;
  1491. }
  1492. }
  1493. .self-shop-ul {
  1494. background-color: #ffffff;
  1495. padding: 24upx;
  1496. .close-btn {
  1497. width: 690upx;
  1498. height: 80upx;
  1499. line-height: 80upx;
  1500. color: #fff;
  1501. font-size: 32upx;
  1502. text-align: center;
  1503. margin: 20upx auto 0;
  1504. border-radius: 10upx;
  1505. }
  1506. .self-shop-li {
  1507. font-size: 24upx;
  1508. line-height: 36upx;
  1509. padding-bottom: 24upx;
  1510. border-bottom: 1px solid #f5f5f5;
  1511. margin-bottom: 24rpx;
  1512. position: relative;
  1513. .sel-tag {
  1514. position: absolute;
  1515. top: 50%;
  1516. right: 20upx;
  1517. transform: translateY(-50%);
  1518. font-size: 46upx;
  1519. }
  1520. .name {
  1521. font-size: 28upx;
  1522. padding-bottom: 10upx;
  1523. }
  1524. }
  1525. }
  1526. .balance-money {
  1527. font-size: 80rpx;
  1528. color: $u-type-warning;
  1529. position: relative;
  1530. .close {
  1531. position: absolute;
  1532. top: 20rpx;
  1533. right: 20rpx;
  1534. line-height: 28rpx;
  1535. font-size: 28rpx;
  1536. }
  1537. }
  1538. .sc-md {
  1539. margin: 20rpx auto;
  1540. width: 712rpx;
  1541. height: 210rpx;
  1542. background: #FFFFFF;
  1543. border-radius: 10rpx;
  1544. .sc-tip {
  1545. width: 712rpx;
  1546. height: 70rpx;
  1547. background: #EF8381;
  1548. border-radius: 10rpx 10rpx 0px 0px;
  1549. }
  1550. }
  1551. </style>