createOrder.vue 53 KB

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