confirmOrder.vue 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057
  1. <template>
  2. <view style="marginTop: 20rpx;" v-if='loadFlag' id="container">
  3. <!-- 地址 -->
  4. <view @click="operateAddress" class="address-section">
  5. <view class="order-content">
  6. <view class="cen" v-if="orderAddress.addressId!=undefined">
  7. <view class="top flex_row_start_center">
  8. <image v-if='orderAddress.isDefault==1' :src="imgUrl+'default_address_tag.png'" />
  9. <text>{{orderAddress.addressAll}}</text>
  10. </view>
  11. <text class="address">{{orderAddress.addressAll}}{{orderAddress.detailAddress}}</text>
  12. <view class="member_info flex_row_start_center">
  13. <text class="name">{{orderAddress.memberName}}</text>
  14. <text class="mobile">{{orderAddress.telMobile}}</text>
  15. </view>
  16. </view>
  17. <view class="empty_address flex_row_center_center" v-if="orderAddress.addressId==undefined">
  18. <text class="add_icon">+</text>
  19. <text class="tit">{{$L('新建收货地址')}}</text>
  20. </view>
  21. <text class="iconfont iconziyuan11"></text>
  22. </view>
  23. <image class="a-bg" :src="imgUrl+'address_split_border.png'"></image>
  24. </view>
  25. <view class="goods-section flex_column_start_start" v-if="goodsData.length>0">
  26. <!-- 商品列表 -->
  27. <view class="store_list" v-for="(item,key,index) in goodsData" :key='index'>
  28. <view class="store_name">
  29. <image class="store_logo" :src="imgUrl+'goods_detail/store_logo.png'"></image>
  30. <text class="store_name_text">{{item.storeName}}</text>
  31. <text class="iconfont iconziyuan11"></text>
  32. </view>
  33. <view class="product_con" v-for="(product,key,index) in item.productList" :key='index'>
  34. <view class="g-item flex_row_start_start">
  35. <view class="image" :style="{backgroundImage: 'url('+product.image+')'}"></view>
  36. <view class="right flex_column_between_start">
  37. <view class="flex_column_start_start">
  38. <text class="title">{{product.goodsName}}</text>
  39. </view>
  40. <view class="goods_item_specs">
  41. <text class="goods_item_spec" v-if="product.specValues">{{product.specValues}}</text>
  42. <text class="goods_item_buynum">*{{product.buyNum}}</text>
  43. </view>
  44. <view class="price-box">
  45. <text class="unit">¥</text>
  46. <text class="price_int">{{$getPartNumber(product.price,'int')}}</text>
  47. <text class="price_decimal">{{$getPartNumber(product.price,'decimal')}}</text>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="yt-list store_info">
  53. <!-- 满赠商品 -->
  54. <view class="yt-list-cell-giveaway b-b" v-if="item.sendProductList.length>0">
  55. <text class="cell-tit clamp">{{$L('赠品信息')}}</text>
  56. <view class="giveaway_list">
  57. <view class="giveaway_item" v-for="(giveaway,index) in item.sendProductList">
  58. <view class="giveaway_item_left">
  59. <text class="giveaway_item_index">{{$L('赠品')}}{{index+1}}:</text>
  60. <text class="giveaway_item_name">{{giveaway.goodsName}}</text>
  61. <text>{{$L('(赠完即止)')}}</text>
  62. </view>
  63. <text class="giveaway_item_number">*{{giveaway.num}}</text>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 暂无优惠卷 -->
  68. <!-- 付定金的时候不显示优惠券 -->
  69. <template
  70. v-if="!(allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101||allData.promotionType==103&&allData.presellInfo.presellState==101)||allData.promotionType==103&&allData.presellInfo.type==2">
  71. <view class="yt-list-cell b-b" v-if="item.availableCouponList.length==0">
  72. <text class="cell-tit clamp ">{{$L('店铺优惠券')}}</text>
  73. <text class="cell-tip voice">{{$L('暂无可用优惠卷')}}</text>
  74. <text class="iconfont iconziyuan11"></text>
  75. </view>
  76. <view class="yt-list-cell b-b" v-else @click="select_store_red(JSON.stringify(item))">
  77. <text class="cell-tit clamp ">{{$L('店铺优惠券')}}</text>
  78. <text
  79. class="cell-tip">{{item.storeCouponCodeText?('-'+item.storeCouponCodeText):item.storeCouponCodeText}}</text>
  80. <text class="iconfont iconziyuan11"></text>
  81. </view>
  82. </template>
  83. <template
  84. v-if="!(allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101||allData.promotionType==103&&allData.presellInfo.presellState==101)||allData.promotionType==103&&allData.presellInfo.type==2">
  85. <view class="yt-list-cell b-b" v-if="goodsData.length==1">
  86. <text class="cell-tit clamp">{{$L('商品金额')}}</text>
  87. <text
  88. class="cell-tip">¥{{$getPartNumber(item.goodsAmount,'int')}}{{$getPartNumber(item.goodsAmount,'decimal')}}</text>
  89. </view>
  90. </template>
  91. <!-- 付定金的时候不显示运费、优惠信息 -->
  92. <template
  93. v-if="!(allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101||allData.promotionType==103&&allData.presellInfo.presellState==101)||allData.promotionType==103&&allData.presellInfo.type==2">
  94. <view class="yt-list-cell b-b">
  95. <text class="cell-tit clamp">{{$L('运费')}}</text>
  96. <text
  97. class="cell-tip">{{item.expressFee? ('+¥' + $getPartNumber(item.expressFee,'int')+$getPartNumber(item.expressFee,'decimal')):'免运费'}}</text>
  98. </view>
  99. <view class="yt-list-cell b-b">
  100. <text class="cell-tit clamp">{{$L('优惠')}}</text>
  101. <text
  102. class="cell-tip">-¥{{$getPartNumber(item.totalDiscount,'int')}}{{$getPartNumber(item.totalDiscount,'decimal')}}</text>
  103. </view>
  104. </template>
  105. <view class="yt-list-cell b-b" v-if="goodsData.length>1">
  106. <text class="cell-tit clamp">{{$L('小计')}}</text>
  107. <text
  108. class="cell-tip">¥{{$getPartNumber((item.totalAmount*1000+item.expressFee*1000)/1000,'int')}}{{$getPartNumber((item.totalAmount*1000+item.expressFee*1000)/1000,'decimal')}}</text>
  109. </view>
  110. </view>
  111. <!-- 付定金的时候不备注 -->
  112. <template
  113. v-if="!(allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101||allData.promotionType==103&&allData.presellInfo.presellState==101)||allData.promotionType==103&&allData.presellInfo.type==2">
  114. <view class="yt-list order_remark">
  115. <text class="title">{{$L('订单备注')}}</text>
  116. <!-- #ifndef MP-WEIXIN -->
  117. <textarea :placeholder="$L('给商家留言,最多100字')" v-model="item.remark" :adjust-position="true"
  118. placeholder-class="placeholder" class="content uni-input" maxlength='100'
  119. cursor-spacing="10" @focus="handleFocus" @blur="handleBlur"></textarea>
  120. <!-- #endif -->
  121. <!-- #ifdef MP-WEIXIN -->
  122. <textarea :placeholder="$L('给商家留言,最多100字')" v-model="item.remark" :adjust-position="true"
  123. placeholder-class="placeholder" class="content uni-input" maxlength='100'
  124. cursor-spacing="20" @focus="handleFocus" @blur="handleBlur"></textarea>
  125. <!-- #endif -->
  126. </view>
  127. </template>
  128. </view>
  129. </view>
  130. <!-- 阶梯团start -->
  131. <view class="ladder_list" v-if="allData.promotionType==105">
  132. <text class="ladder_tip">{{$L('其他优惠可在支付尾款时选择')}}</text>
  133. <view class="ladder_process">
  134. <view class="process_level on">
  135. <view class="level_top">
  136. <view class="level_left">
  137. <image :src="imgUrl+'ladder/icon1.png'" mode=""></image>
  138. <text>{{$L('定金支付')}}</text>
  139. </view>
  140. <view class="level_right">
  141. <text>¥{{$getPartNumber(allData.ladderGroupInfo.advanceDeposit,'int')}}{{$getPartNumber(allData.ladderGroupInfo.advanceDeposit,'decimal')}}</text>
  142. </view>
  143. </view>
  144. <view class="level_gang"></view>
  145. </view>
  146. <view :class="{process_level:true,on:allData.ladderGroupInfo.ladderGroupState==102}">
  147. <view class="level_gang"></view>
  148. <view class="level_top">
  149. <view class="level_left">
  150. <image :src="imgUrl+'ladder/qian.png'" mode=""></image>
  151. <text>{{$L('尾款结算')}}</text>
  152. </view>
  153. <view :class="{level_right:allData.ladderGroupInfo.ladderGroupState==102}">
  154. <text
  155. v-if="allData.ladderGroupInfo.ladderGroupState==102">¥{{$getPartNumber(allData.ladderGroupInfo.advanceDeposit,'int')}}{{$getPartNumber(allData.ladderGroupInfo.advanceDeposit,'decimal')}}</text>
  156. <text v-else>--</text>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="ladder_total">
  162. <text>{{$L('共')}}{{goodsData[0].productList[0].buyNum}}{{$L('件')}}</text>
  163. <text>{{$L('小计')}}:</text>
  164. <text>¥{{$getPartNumber(allData.totalAmount,'int')}}{{$getPartNumber(allData.totalAmount,'decimal')}}</text>
  165. </view>
  166. </view>
  167. <!-- 阶梯团send -->
  168. <!-- 预售start -->
  169. <view class="ladder_list" v-if="allData.promotionType==103&&allData.presellInfo.type!=2">
  170. <text class="ladder_tip">{{$L('其他优惠可在支付尾款时选择')}}</text>
  171. <view class="ladder_process">
  172. <view class="process_level on">
  173. <view class="level_top">
  174. <view class="level_left">
  175. <image :src="imgUrl+'ladder/icon1.png'" mode=""></image>
  176. <text>{{$L('定金支付')}}</text>
  177. </view>
  178. <view class="level_right">
  179. <text>¥{{allData.presellInfo.firstMoney}}</text>
  180. </view>
  181. </view>
  182. <view class="level_gang"></view>
  183. </view>
  184. <view :class="{process_level:true,on:allData.presellInfo.presellState==102}">
  185. <view class="level_gang"></view>
  186. <view class="level_top">
  187. <view class="level_left">
  188. <image :src="imgUrl+'ladder/qian_ac.png'" mode=""
  189. v-if="allData.presellInfo.presellState==102"></image>
  190. <image :src="imgUrl+'ladder/qian.png'" mode="" v-else></image>
  191. <text>{{$L('尾款结算')}}</text>
  192. </view>
  193. <view :class="{level_right:allData.presellInfo.presellState==102}">
  194. <text>¥{{allData.presellInfo.secondMoney}}</text>
  195. </view>
  196. </view>
  197. </view>
  198. <view class="preDesc_con" style="margin-top: 48rpx;">
  199. <view class="preSale_desc">
  200. <text style="color:#FC1C1C">{{allData.presellInfo.remainStartTime}}</text><text
  201. style="color:#2D2D2D;">开始支付尾款</text>
  202. </view>
  203. <view class="preSale_desc">
  204. 预售定金可抵{{allData.presellInfo.firstExpand}}元,支付定金后尾款优惠{{allData.presellInfo.finalDiscount}}元
  205. </view>
  206. </view>
  207. </view>
  208. <view class="ladder_total">
  209. <text>{{$L('共')}}{{goodsData[0].productList[0].buyNum}}{{$L('件')}}</text>
  210. <text>{{$L('小计')}}:</text>
  211. <text>¥{{$getPartNumber(allData.totalAmount,'int')}}{{$getPartNumber(allData.totalAmount,'decimal')}}</text>
  212. </view>
  213. </view>
  214. <!-- 预售end -->
  215. <!-- 发票、平台优惠券(阶梯团付定金的时候不显示发票、平台优惠券) -->
  216. <template
  217. v-if="!(allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101||(allData.promotionType==103&&allData.presellInfo.presellState==101&&allData.presellInfo.type!=2))">
  218. <view class="yt-list">
  219. <view class="yt-list-cell b-b" @click="toInvoice">
  220. <text class="cell-tit clamp">{{$L('发票')}}</text>
  221. <text class="cell-tip voice">{{this.invoice_info == ''?'不需要发票':this.invoice_info}}</text>
  222. <text class="iconfont iconziyuan11"></text>
  223. </view>
  224. <!-- 暂无平台优惠卷 -->
  225. <view class="yt-list-cell b-b" v-if="platformCouponList.length==0">
  226. <text class="cell-tit clamp">{{$L('平台优惠券')}}</text>
  227. <text class="cell-tip voice">{{$L('暂无优惠卷')}}</text>
  228. <text class="iconfont iconziyuan11"></text>
  229. </view>
  230. <!-- 平台优惠券 -->
  231. <view class="yt-list-cell b-b" v-else @click="select_platform_red">
  232. <text class="cell-tit clamp">{{$L('平台优惠券')}}</text>
  233. <text
  234. class="cell-tip">{{platformCouponCodeText?'-'+platformCouponCodeText:platformCouponCodeText}}</text>
  235. <text class="iconfont iconziyuan11"></text>
  236. </view>
  237. </view>
  238. </template>
  239. <template v-if="allData.promotionType==105&&allData.ladderGroupInfo.ladderGroupState==101">
  240. <view class="agreement-part flex_row_start_center">
  241. <image @click="checkAgrement" class="register_icon" :src="show_check_icon" mode="aspectFill" />
  242. {{$L('我已阅读并同意')}}
  243. <text class="agreement" @click="agreement('ladder')">{{$L('《阶梯团定金协议》')}}</text>
  244. </view>
  245. </template>
  246. <template v-if="allData.promotionType==103&&allData.presellInfo.presellState==101&&allData.presellInfo.type!=2">
  247. <view class="agreement-part flex_row_start_center">
  248. <image @click="checkAgrement" class="register_icon" :src="show_check_icon" mode="aspectFill" />
  249. {{$L('我已阅读并同意')}}
  250. <text class="agreement" @click="agreement('preSale')">{{$L('《预售定金协议》')}}</text>
  251. </view>
  252. </template>
  253. <!-- <view class="empty_h"></view> -->
  254. <!-- 金额明细 -->
  255. <view class="empty_h"></view>
  256. <!-- 底部 -->
  257. <view class="footer flex_row_end_center" v-if="isBottomShow">
  258. <view class="price-content flex_column_center_end">
  259. <view class="should_pay flex_row_end_end">
  260. <text class="tit">{{$L('待付金额')}}:</text>
  261. <text class="unit">¥</text>
  262. <text class="big_price">{{(allData.totalAmount+'').split('.')[0]}}.</text>
  263. <text
  264. class="small_price">{{(allData.totalAmount+'').split('.')[1]!=undefined?((allData.totalAmount+'').split('.')[1]):'00'}}</text>
  265. </view>
  266. <!-- <view class="promotion_total">
  267. 优惠金额:¥{{$getPartNumber(totalDiscount,'int')}}{{$getPartNumber(totalDiscount,'decimal')}}
  268. </view> -->
  269. </view>
  270. <text class="submit flex_row_center_center"
  271. @click="testConfirmOrder">{{orderSn?$L('去付尾款'):$L('提交订单')}}</text>
  272. </view>
  273. <!-- 使用店铺优惠券(注:阶梯团付定金的时候不可以使用优惠券) -->
  274. <view id="store_red_wrap" @tap="hide_store_red" v-if="store_show_flag" @touchmove.stop.prevent="moveHandle">
  275. <view class="store_red">
  276. <view class="title">{{$L('使用店铺优惠券')}}</view>
  277. <scroll-view scroll-y class="store_red_list">
  278. <view v-for="(reditem, index) in currentStore.availableCouponList" :key="index" class="ticket-item">
  279. <view class="circle_radio a" :for="'red_id_' + index" :data-id="index">
  280. <view class="red_item_wrap">
  281. <view class="red_h1" v-if="reditem.couponType==2"><text>{{reditem.value}}</text>
  282. {{$L('折')}}</view>
  283. <view class="red_h1" v-else><text>{{reditem.value}}</text>{{$L('元')}} </view>
  284. <view class="red_h2">
  285. <view>
  286. <!-- <block v-if="reditem.redinfo_money == reditem.redinfo_full">
  287. {{reditem.redinfo_full}}元直减
  288. </block>
  289. <block v-else>
  290. 满{{reditem.redinfo_full}}减{{reditem.redinfo_money}}
  291. </block> -->
  292. <block>
  293. {{reditem.content}}
  294. </block>
  295. </view>
  296. <view>
  297. {{reditem.useTime}}
  298. </view>
  299. </view>
  300. <view class="red_h3">
  301. <view class="red_h3_top">
  302. <image :src="imgUrl+'ok_w.png'"></image>
  303. <text>{{$L('您已领券')}}</text>
  304. </view>
  305. <view class="red_h3_bottom" @tap="store_red(reditem.couponCode)">
  306. {{currentStore.storeCouponCode==reditem.couponCode?'已选择':'点击使用'}}
  307. </view>
  308. </view>
  309. </view>
  310. </view>
  311. <view class="line_left"></view>
  312. <view class="line_right"></view>
  313. <view class="red_p">
  314. <text style="margin-left: 40rpx;">{{reditem.description}}</text>
  315. <image :src="imgUrl+'more.png'"></image>
  316. </view>
  317. </view>
  318. </scroll-view>
  319. </view>
  320. </view>
  321. <view id="store_red_wrap" @tap="hide_platform_red" v-if="store_show_flag_platform">
  322. <view class="store_red">
  323. <view class="title">使用平台优惠券</view>
  324. <scroll-view scroll-y class="store_red_list">
  325. <view v-for="(reditem, index) in platformCouponList" :key="index" class="ticket-item">
  326. <view class="circle_radio a" :for="'red_id_' + index" :data-id="index">
  327. <view class="red_item_wrap">
  328. <s v-if="reditem.red_type == 2"></s>
  329. <view class="red_h1">
  330. <text>{{reditem.value}}</text> 元
  331. </view>
  332. <view class="red_h2">
  333. <view>
  334. <!-- <block v-if="reditem.redinfo_money == reditem.redinfo_full">
  335. {{reditem.redinfo_full}}元直减
  336. </block>
  337. <block v-else>
  338. 满{{reditem.redinfo_full}}减{{reditem.redinfo_money}}
  339. </block> -->
  340. <block>
  341. {{reditem.content}}
  342. </block>
  343. </view>
  344. <view>
  345. {{reditem.useTime}}
  346. </view>
  347. </view>
  348. <view class="red_h3">
  349. <view class="red_h3_top">
  350. <image :src="imgUrl+'ok_w.png'"></image>
  351. <text>您已领券</text>
  352. </view>
  353. <view class="red_h3_bottom" @tap="platform_red(reditem.couponCode)">
  354. {{platformCouponCode==reditem.couponCode?'已选择':'点击使用'}}
  355. </view>
  356. </view>
  357. </view>
  358. </view>
  359. <view class="line_left"></view>
  360. <view class="line_right"></view>
  361. <view class="red_p">
  362. <text style="margin-left: 40rpx;">{{reditem.description}}</text>
  363. <image :src="imgUrl+'more.png'"></image>
  364. </view>
  365. </view>
  366. </scroll-view>
  367. </view>
  368. </view>
  369. <!-- 商品全部,部分无货弹窗 start-->
  370. <view id="store_no_good" v-if="store_show_no_good" @touchmove.stop.prevent="moveHandle">
  371. <view class="content">
  372. <view class="content_title">
  373. <text> {{no_good_info.stateValue}}</text>
  374. <image @tap="hide_good_dialog" :src="imgUrl+'/order/store_no_good_cancel.png'" mode=""></image>
  375. </view>
  376. <view class="good_list">
  377. <view v-for="(item,index) in no_good_info.productList" :key='index' class="good_item">
  378. <image :src="item.image" mode=""></image>
  379. <view class="good_info">
  380. <view class="good_name">
  381. {{item.goodsName}}
  382. </view>
  383. <view class="good_spec">
  384. <text>{{item.specValues}}</text>
  385. </view>
  386. <text class="num">*{{item.buyNum}}</text>
  387. </view>
  388. </view>
  389. </view>
  390. <view v-if='no_good_info.state==2' class="part_no_goods">
  391. <view class="return" @click="returnLastPage">
  392. {{$L('返回')}}
  393. </view>
  394. <view class="remove" @click='clearFailureGoods'>
  395. {{$L('移除无货商品')}}
  396. </view>
  397. </view>
  398. <view v-else class="part_no_goods_another">
  399. <view class="return" @click="returnLastPage">
  400. {{$L('返回')}}
  401. </view>
  402. </view>
  403. </view>
  404. </view>
  405. <!-- 商品全部,部分无货弹窗 end-->
  406. </view>
  407. </template>
  408. <script>
  409. import {
  410. mapState
  411. } from 'vuex';
  412. export default {
  413. data() {
  414. return {
  415. imgUrl: getApp().globalData.imgUrl,
  416. loadFlag: false,
  417. preParam: {}, //上一个页面的参数
  418. orderAddress: {}, //下单所用的地址信息
  419. goodsData: [], //商品数据
  420. allData: {}, //确认下单返回的所有数据信息
  421. maskState: 0, //优惠券面板显示状态
  422. desc: '', //备注
  423. payType: 1, //1微信 2支付宝
  424. isBottomShow: true, //底部是否显示
  425. windowHeight: '',
  426. remark: '',
  427. cartIds: '', //购物车id集合
  428. ifOnShow: false,
  429. invoice_info: '', //发票信息
  430. invoiceId: '', //发票id
  431. store_show_flag: false,
  432. currentStore: {},
  433. platformCouponList: [], //平台优惠券列表
  434. platformCouponCode: '',
  435. platformCouponCodeText: '',
  436. store_show_flag_platform: false,
  437. totalDiscount: '',
  438. store_show_no_good: false,
  439. no_good_info: {},
  440. timer: '',
  441. isVatInvoice: true,
  442. orderSn: '', //订单号,目前阶梯团付尾款的时候会用到
  443. check_agreement: false,
  444. show_check_icon: getApp().globalData.imgUrl + 'register_uncheck.png',
  445. isAloneBuy: false, //拼团是否单独购买
  446. spellTeamId: 0,
  447. spreaderMemberId: 0 //专门的推手分享ID设置
  448. }
  449. },
  450. async onLoad(option) {
  451. //商品数据
  452. this.getAddressList()
  453. this.preParam = option;
  454. this.orderSn = option.orderSn != undefined && option.orderSn ? option.orderSn : '';
  455. this.isAloneBuy = option.isAloneBuy ? option.isAloneBuy : false
  456. this.spellTeamId = option.spellTeamId ? option.spellTeamId : 0
  457. let spreaderTmp = uni.getStorageSync('spreaderId')
  458. if (spreaderTmp) {
  459. this.spreaderMemberId = spreaderTmp
  460. }
  461. },
  462. computed: {
  463. ...mapState(['hasLogin', 'userInfo'])
  464. },
  465. onHide() {
  466. this.ifOnShow = true
  467. //清除定时器
  468. if (this.timer) {
  469. clearInterval(this.timer);
  470. this.timer = 0;
  471. }
  472. },
  473. onUnload() {
  474. //清除定时器
  475. if (this.timer) {
  476. clearInterval(this.timer);
  477. this.timer = 0;
  478. }
  479. },
  480. onShow() {
  481. if (this.ifOnShow) {
  482. const is_need_invoice = uni.getStorageSync('is_need_invoice')
  483. const invoice_msg = uni.getStorageSync('invoice_info')
  484. if (!is_need_invoice) {
  485. this.invoice_info = this.$L('不需要发票');
  486. }
  487. if (invoice_msg != '') {
  488. if (invoice_msg.invoice_title) {
  489. this.invoice_info = invoice_msg.invoice_title + ' ' + invoice_msg.invoice_content
  490. } else {
  491. this.invoice_info = invoice_msg.company_name + ' ' + invoice_msg.invoice_content
  492. }
  493. this.invoiceId = invoice_msg.invoiceId
  494. }
  495. }
  496. },
  497. methods: {
  498. //阶梯团定金协议点击事件
  499. checkAgrement() {
  500. this.check_agreement = !this.check_agreement;
  501. this.show_check_icon = this.check_agreement ? getApp().globalData.imgUrl + 'register_checked.png' :
  502. getApp().globalData.imgUrl + 'register_uncheck.png';
  503. },
  504. agreement(type) {
  505. if (type == 'ladder') {
  506. uni.navigateTo({
  507. url: '/standard/ladder/agreement/agreement'
  508. })
  509. } else if (type == 'preSale') {
  510. uni.navigateTo({
  511. url: '/standard/presale/agreement/agreement'
  512. })
  513. }
  514. },
  515. operateAddress() {
  516. uni.navigateTo({
  517. url: `/pages/address/list?source=1&sourceId=${this.orderAddress.addressId!=undefined?this.orderAddress.addressId:''}`
  518. })
  519. },
  520. moveHandle() {},
  521. // 隐藏商品无货弹窗
  522. hide_good_dialog() {
  523. this.store_show_no_good = false
  524. },
  525. // 隐藏优惠券弹窗
  526. hide_store_red(e) {
  527. this.store_show_flag = false
  528. },
  529. // 显示店铺优惠券弹窗
  530. select_store_red(store) {
  531. this.store_show_flag = true
  532. this.currentStore = JSON.parse(store)
  533. },
  534. //选择店铺优惠卷
  535. store_red(couponCode) {
  536. if (this.currentStore.storeCouponCode == couponCode) {
  537. this.currentStore.storeCouponCode = ''
  538. } else {
  539. this.currentStore.storeCouponCode = couponCode
  540. }
  541. this.confirmOrder(2)
  542. },
  543. // h隐藏平台优惠券弹窗
  544. hide_platform_red(e) {
  545. this.store_show_flag_platform = false
  546. },
  547. // 显示平台优惠券弹窗
  548. select_platform_red() {
  549. this.store_show_flag_platform = true
  550. },
  551. //选择平台优惠卷
  552. platform_red(platformCouponCode) {
  553. if (this.platformCouponCode == platformCouponCode) {
  554. this.platformCouponCode = ''
  555. } else {
  556. this.platformCouponCode = platformCouponCode
  557. }
  558. this.confirmOrder(2)
  559. },
  560. //获取地址列表
  561. getAddressList() {
  562. this.$request({
  563. url: 'v3/member/front/memberAddress/list',
  564. method: 'GET'
  565. }).then(res => {
  566. if (res.state == 200) {
  567. if (res.data.list.length > 0) {
  568. var default_address = res.data.list.filter(function(item) {
  569. return item.isDefault == 1;
  570. })
  571. if (default_address.length > 0) {
  572. this.orderAddress = default_address[0]
  573. } else {
  574. this.orderAddress = res.data.list[0]
  575. }
  576. if (uni.getStorageSync('addressId')) {
  577. let addressID = uni.getStorageSync('addressId')
  578. if (res.data.list.filter(i => i.addressId == addressID)[0]) {
  579. let tmp = res.data.list.filter(i => i.addressId == addressID)[0]
  580. this.orderAddress = tmp
  581. }
  582. }
  583. }
  584. this.confirmOrder(1);
  585. } else {
  586. this.confirmOrder(1);
  587. this.$api.msg(res.msg);
  588. }
  589. }).catch((e) => {
  590. //异常处理
  591. })
  592. },
  593. returnLastPage(state) {
  594. uni.navigateBack({
  595. delta: 1
  596. });
  597. },
  598. //用于切换地址,使用优惠券,获取信息,运费等
  599. confirmOrder(type) {
  600. const {
  601. preParam
  602. } = this;
  603. let param = {};
  604. let url = this.orderSn ? 'v3/business/front/orderOperate/balanceConfirm' :
  605. 'v3/business/front/orderOperate/confirm'
  606. param.url = url;
  607. param.method = 'POST';
  608. param.data = {};
  609. param.header = {
  610. "Content-Type": "application/json"
  611. };
  612. param.data.addressId = this.orderAddress.addressId
  613. param.data.platformCouponCode = this.platformCouponCode
  614. param.data.orderSn = this.orderSn ? this.orderSn : '';
  615. param.data.isAloneBuy = this.isAloneBuy //拼团商品是否单独购买
  616. if (this.spellTeamId != 0) {
  617. param.data.spellTeamId = this.spellTeamId
  618. }
  619. let storeInfoList = []
  620. this.goodsData.map(item => {
  621. let storeitem = {}
  622. storeitem.invoiceId = this.invoiceId
  623. storeitem.remark = item.remark
  624. storeitem.storeCouponCode = item.storeCouponCode
  625. storeitem.storeId = item.storeId
  626. storeInfoList.push(storeitem)
  627. })
  628. param.data.storeInfoList = storeInfoList
  629. param.data.source = type
  630. if (preParam.isCart == 'true') {
  631. //来自于购物车
  632. param.data.isCart = true;
  633. // param.data.orderType = preParam.orderType;
  634. } else {
  635. //立即购买
  636. // param.data.orderType = preParam.orderType;
  637. // param.data.goodsId = preParam.goodsId;
  638. param.data.productId = preParam.productId;
  639. param.data.number = preParam.numbers;
  640. param.data.isCart = false;
  641. }
  642. this.$request(param).then(res => {
  643. if (res.state == 200) {
  644. let result = res.data;
  645. // this.orderAddress = result.defaultAddress || {};
  646. this.goodsData = result.storeGroupList;
  647. this.isVatInvoice = result.isVatInvoice
  648. this.totalDiscount = result.totalDiscount
  649. //处理平台优惠券
  650. this.platformCouponList = result.availableCouponList
  651. let default_plat_coupon = this.platformCouponList.filter(function(coupon) {
  652. return coupon.checked == true;
  653. })
  654. if (default_plat_coupon.length > 0) {
  655. this.platformCouponCodeText = default_plat_coupon[0].discount
  656. this.platformCouponCode = default_plat_coupon[0].couponCode
  657. } else {
  658. this.platformCouponCodeText = ''
  659. this.platformCouponCode = ''
  660. }
  661. this.allData = result;
  662. this.loadFlag = true;
  663. //处理店铺优惠卷
  664. this.goodsData.map(item => {
  665. this.$set(item, 'remark', '')
  666. let default_coupon = item.availableCouponList.filter(function(coupon) {
  667. return coupon.checked == true;
  668. })
  669. if (default_coupon.length > 0) {
  670. this.$set(item, 'storeCouponCode', default_coupon[0].couponCode)
  671. this.$set(item, 'storeCouponCodeText', default_coupon[0].discount)
  672. } else {
  673. this.$set(item, 'storeCouponCode', '')
  674. }
  675. })
  676. } else {
  677. this.$api.msg(res.msg);
  678. }
  679. }).catch((e) => {
  680. //异常处理
  681. })
  682. },
  683. //显示优惠券面板
  684. toggleMask(type) {
  685. let timer = type === 'show' ? 10 : 300;
  686. let state = type === 'show' ? 1 : 0;
  687. this.maskState = 2;
  688. setTimeout(() => {
  689. this.maskState = state;
  690. }, timer)
  691. },
  692. numberChange(data) {
  693. this.number = data.number;
  694. },
  695. changePayType(type) {
  696. this.payType = type;
  697. },
  698. clearFailureGoods() {
  699. let _this = this
  700. let param = {}
  701. param.url = 'v3/business/front/cart/emptyInvalid'
  702. param.method = 'POST'
  703. _this.$request(param).then(res => {
  704. if (res.state == 200) {
  705. this.store_show_no_good = false
  706. this.confirmOrder(2)
  707. }
  708. })
  709. },
  710. //确认订单前,检验商品是否可结算
  711. testConfirmOrder() {
  712. const {
  713. preParam
  714. } = this;
  715. let param = {};
  716. param.method = 'POST';
  717. param.data = {};
  718. param.header = {
  719. "Content-Type": "application/json"
  720. };
  721. if (this.allData.promotionType == 105 && this.allData.ladderGroupInfo.ladderGroupState == 101) {
  722. //阶梯团付定金阶段
  723. if (!this.check_agreement) {
  724. this.$api.msg('请同意阶梯团定金协议!');
  725. return false;
  726. }
  727. } else if (this.allData.promotionType == 103 && this.allData.presellInfo.presellState == 101 && this
  728. .allData.presellInfo.type != 2) {
  729. //阶梯团付定金阶段
  730. if (!this.check_agreement) {
  731. this.$api.msg('请同意预售定金协议!');
  732. return false;
  733. }
  734. }
  735. if (this.orderSn) {
  736. //阶梯团付尾款时用
  737. param.url = 'v3/business/front/orderOperate/balanceConfirm';
  738. preParam.isCart = 'false'; //目的是要让param.data.isCart为false
  739. param.data.source = 2;
  740. param.data.orderSn = this.orderSn;
  741. } else {
  742. param.url = 'v3/business/front/orderOperate/check';
  743. }
  744. if (preParam.isCart == 'true') {
  745. param.data.isCart = true
  746. } else {
  747. param.data.isCart = false
  748. param.data.productId = JSON.parse(preParam.productId);
  749. param.data.number = preParam.numbers;
  750. }
  751. this.$request(param).then(res => {
  752. if (res.state == 267) {
  753. this.no_good_info = res.data
  754. this.store_show_no_good = true
  755. } else if (res.state == 200) {
  756. this.submit()
  757. } else if (res.state == 255) {
  758. this.$api.msg(res.msg)
  759. }
  760. }).catch((e) => {
  761. //异常处理
  762. })
  763. },
  764. //提交订单
  765. submit() {
  766. // #ifdef H5
  767. this.order_from = 2
  768. // #endif
  769. // #ifdef APP-PLUS
  770. switch (uni.getSystemInfoSync().platform) {
  771. case 'android':
  772. this.order_from = 3
  773. break;
  774. case 'ios':
  775. this.order_from = 4
  776. break;
  777. default:
  778. break;
  779. }
  780. // #endif
  781. // #ifdef MP
  782. this.order_from = 5
  783. // #endif
  784. const {
  785. preParam
  786. } = this;
  787. let param = {};
  788. param.method = 'POST';
  789. param.header = {
  790. "Content-Type": "application/json"
  791. };
  792. param.data = {};
  793. let storeInfoList = []
  794. this.goodsData.map(item => {
  795. let storeitem = {}
  796. storeitem.invoiceId = this.invoiceId
  797. storeitem.remark = item.remark
  798. storeitem.storeCouponCode = item.storeCouponCode
  799. storeitem.storeId = item.storeId
  800. storeInfoList.push(storeitem)
  801. })
  802. param.data.platformCouponCode = this.platformCouponCode
  803. param.data.addressId = this.orderAddress.addressId
  804. param.data.storeInfoList = storeInfoList
  805. param.data.orderFrom = this.order_from
  806. if (this.orderSn) {
  807. param.url = 'v3/business/front/orderOperate/balanceSubmit';
  808. preParam.isCart = 'false';
  809. param.data.source = 2;
  810. param.data.orderSn = this.orderSn;
  811. } else {
  812. param.url = 'v3/business/front/orderOperate/submit';
  813. param.data.source = 3;
  814. }
  815. if (preParam.isCart == 'true') {
  816. //来自于购物车
  817. param.data.isCart = true;
  818. } else {
  819. param.data.productId = JSON.parse(preParam.productId);
  820. param.data.number = preParam.numbers;
  821. param.data.isCart = false;
  822. if (this.spellTeamId != 0) {
  823. param.data.spellTeamId = this.spellTeamId
  824. }
  825. param.data.isAloneBuy = this.isAloneBuy
  826. }
  827. this.$request(param).then(res => {
  828. if (res.state == 200) {
  829. let need_pay = res.data.needPay
  830. let paySn = res.data.paySn
  831. this.timer = setInterval(() => {
  832. this.queryPayState(paySn);
  833. }, 100);
  834. // if(need_pay){
  835. // uni.redirectTo({
  836. // url: `/pages/order/pay?paySn=${paySn}&payMethodType=create`
  837. // })
  838. // }else{
  839. // uni.navigateTo({
  840. // url:'/pages/order/list?state=0'
  841. // })
  842. // }
  843. } else {
  844. this.$api.msg(res.msg);
  845. }
  846. }).catch((e) => {
  847. //异常处理
  848. })
  849. },
  850. stopPrevent() {},
  851. // 定时查询是否可以支付
  852. queryPayState(paySn) {
  853. this.getPayInfo(paySn);
  854. },
  855. //获取订单支付数据
  856. getPayInfo(paySn) {
  857. let _this = this
  858. let param = {};
  859. param.url = 'v3/business/front/orderPay/payInfo';
  860. param.method = 'get';
  861. param.data = {
  862. paySn: paySn,
  863. payFrom: 1
  864. };
  865. this.$request(param)
  866. .then(res => {
  867. if (_this.timer) {
  868. clearInterval(_this.timer);
  869. _this.timer = 0;
  870. }
  871. if (res.state == 200) {
  872. if (res.data.dealState == 3) {
  873. uni.redirectTo({
  874. url: `/pages/order/pay?paySn=${paySn}&payMethodType=create`
  875. })
  876. //清除定时器
  877. } else if (res.data.dealState == 2) {
  878. this.$api.msg("提交订单失败,请稍后重试");
  879. }
  880. } else if (res.state == 267) {
  881. this.$api.msg(res.msg + ",2s后自动跳转订单列表");
  882. setTimeout(() => {
  883. uni.navigateTo({
  884. url: '/pages/order/list?state=0'
  885. })
  886. }, 2000);
  887. } else {
  888. this.$api.msg(res.msg);
  889. }
  890. })
  891. .catch(() => {
  892. //异常处理
  893. });
  894. },
  895. //根据收货地址id获取总的运费
  896. changeAddress(selAddress) {
  897. this.orderAddress = selAddress;
  898. this.confirmOrder(2)
  899. uni.setStorageSync('addressId', this.orderAddress.addressId)
  900. // const {
  901. // preParam
  902. // } = this;
  903. // let param = {};
  904. // param.url = 'v1/front/order/calcShipFee';
  905. // param.method = 'POST';
  906. // param.data = {};
  907. // param.data.key = this.userInfo.access_token;
  908. // param.data.addressId = selAddress.memberAddrId;
  909. // if (preParam.isCart == 'true') {
  910. // //来自于购物车
  911. // param.data.orderFrom = 'cart';
  912. // param.data.cartIds = this.cartIds
  913. // } else {
  914. // //立即购买
  915. // // param.data.cartId = preParam.cartId
  916. // param.data.goodsId = preParam.goodsId;
  917. // param.data.productId = preParam.productId;
  918. // param.data.number = preParam.numbers;
  919. // }
  920. // this.$request(param).then(res => {
  921. // if (res.state == 200) {
  922. // let result = res.data;
  923. // this.allData.transFee = result.transFee;
  924. // this.allData.totalPay = result.totalPay;
  925. // this.allData.goodsAmount = result.goodsAmount;
  926. // } else {
  927. // this.$api.msg(res.msg);
  928. // }
  929. // }).catch((e) => {
  930. // //异常处理
  931. // })
  932. },
  933. //备注输入框聚焦
  934. handleFocus() {
  935. // #ifdef MP-WEIXIN
  936. this.isBottomShow = false;
  937. // #endif
  938. },
  939. //失去焦点
  940. handleBlur() {
  941. this.isBottomShow = true;
  942. },
  943. // 跳转我的发票页面
  944. toInvoice() {
  945. uni.navigateTo({
  946. url: '/pages/invoice/myInvoice?isVatInvoice=' + this.isVatInvoice
  947. })
  948. },
  949. }
  950. }
  951. </script>
  952. <style lang="scss">
  953. page {
  954. background: $bg-color-split;
  955. padding-bottom: 100rpx;
  956. width: 750rpx;
  957. margin: 0 auto;
  958. }
  959. .preSale_desc {
  960. margin-top: 18rpx;
  961. font-size: 24rpx;
  962. font-family: PingFang SC;
  963. font-weight: 500;
  964. color: #949494;
  965. }
  966. .address-section {
  967. background: #fff;
  968. position: relative;
  969. .order-content {
  970. display: flex;
  971. align-items: center;
  972. justify-content: space-between;
  973. padding: 20rpx;
  974. // height: 249rpx;
  975. .iconfont {
  976. color: $main-second-color;
  977. font-size: 26rpx;
  978. }
  979. .cen {
  980. .top {
  981. image {
  982. width: 63rpx;
  983. height: 30rpx;
  984. border-radius: 6rpx;
  985. margin-right: 20rpx;
  986. }
  987. text {
  988. color: #2D2D2D;
  989. font-size: 26rpx;
  990. }
  991. }
  992. .address {
  993. margin-top: 16rpx;
  994. margin-right: 20rpx;
  995. color: #2D2D2D;
  996. font-size: 32rpx;
  997. font-weight: bold;
  998. line-height: 40rpx;
  999. text-overflow: -o-ellipsis-lastline;
  1000. overflow: hidden;
  1001. text-overflow: ellipsis;
  1002. display: -webkit-box;
  1003. -webkit-line-clamp: 2;
  1004. line-clamp: 2;
  1005. -webkit-box-orient: vertical;
  1006. }
  1007. .member_info {
  1008. margin-top: 15rpx;
  1009. font-size: 28rpx;
  1010. .name {
  1011. color: #2D2D2D;
  1012. }
  1013. .mobile {
  1014. color: $main-third-color;
  1015. margin-left: 40rpx;
  1016. }
  1017. }
  1018. }
  1019. .empty_address {
  1020. color: $main-font-color;
  1021. font-size: 34rpx;
  1022. flex: 1;
  1023. .add_icon {
  1024. margin-right: 20rpx;
  1025. margin-top: -8rpx;
  1026. font-size: 40rpx;
  1027. }
  1028. }
  1029. }
  1030. .cen {
  1031. display: flex;
  1032. flex-direction: column;
  1033. flex: 1;
  1034. font-size: 28rpx;
  1035. }
  1036. .a-bg {
  1037. position: absolute;
  1038. left: 0;
  1039. bottom: 0;
  1040. display: block;
  1041. width: 100%;
  1042. height: 7rpx;
  1043. }
  1044. }
  1045. .goods-section {
  1046. margin-top: 20rpx;
  1047. background: #fff;
  1048. box-sizing: border-box;
  1049. .store_list {
  1050. width: 100%;
  1051. }
  1052. .product_con {
  1053. border-bottom: 1rpx solid rgba(0, 0, 0, .1);
  1054. .product_giveaway {
  1055. color: #666666;
  1056. background-color: #f8f8f8;
  1057. padding: 6rpx 10rpx;
  1058. font-size: 24rpx;
  1059. width: fit-content;
  1060. margin-bottom: 20rpx;
  1061. margin-left: 20rpx;
  1062. border-radius: 3px;
  1063. }
  1064. }
  1065. .g-item {
  1066. display: flex;
  1067. padding: 20rpx 20rpx 20rpx 0;
  1068. margin-left: 20rpx;
  1069. width: calc(750rpx - 20rpx);
  1070. .image {
  1071. flex-shrink: 0;
  1072. display: block;
  1073. width: 220rpx;
  1074. height: 220rpx;
  1075. border-radius: 15rpx;
  1076. background-size: cover;
  1077. background-position: center center;
  1078. background-repeat: no-repeat;
  1079. background-color: #F8F6F7;
  1080. }
  1081. .right {
  1082. flex: 1;
  1083. padding: 15rpx 0 15rpx 24rpx;
  1084. overflow: hidden;
  1085. height: 220rpx;
  1086. }
  1087. .title {
  1088. font-size: 28rpx;
  1089. color: $main-font-color;
  1090. overflow: hidden;
  1091. text-overflow: ellipsis;
  1092. display: -webkit-box;
  1093. -webkit-line-clamp: 2;
  1094. -webkit-box-orient: vertical;
  1095. word-break: break-word;
  1096. line-height: 40rpx;
  1097. }
  1098. .spec {
  1099. font-size: 24rpx;
  1100. color: #949494;
  1101. overflow: hidden;
  1102. text-overflow: ellipsis;
  1103. display: -webkit-box;
  1104. -webkit-line-clamp: 1;
  1105. -webkit-box-orient: vertical;
  1106. word-break: break-word;
  1107. line-height: 40rpx;
  1108. }
  1109. .goods_item_specs {
  1110. display: flex;
  1111. align-items: center;
  1112. font-size: 24rpx;
  1113. font-family: PingFang SC;
  1114. font-weight: 500;
  1115. color: #999999;
  1116. line-height: 34rpx;
  1117. .goods_item_spec {
  1118. margin-right: 10rpx;
  1119. }
  1120. }
  1121. .price-box {
  1122. font-size: 32rpx;
  1123. color: $main-color;
  1124. .unit {
  1125. font-size: 24rpx;
  1126. font-weight: bold;
  1127. }
  1128. .price_int {
  1129. font-size: 34rpx;
  1130. margin-left: 4rpx;
  1131. font-weight: bold;
  1132. }
  1133. .price_decimal {
  1134. font-size: 24rpx;
  1135. font-weight: bold;
  1136. }
  1137. }
  1138. .step-box {
  1139. position: relative;
  1140. }
  1141. }
  1142. }
  1143. .ladder_list {
  1144. padding: 20rpx 40rpx;
  1145. background-color: #fff;
  1146. .ladder_tip {
  1147. font-size: 24rpx;
  1148. font-family: PingFang SC;
  1149. font-weight: 400;
  1150. color: #2D2D2D;
  1151. }
  1152. .ladder_process {
  1153. margin-top: 40rpx;
  1154. .on {
  1155. .level_left {
  1156. text {
  1157. color: #FC1D1C !important;
  1158. }
  1159. }
  1160. .level_right {
  1161. color: #FC1D1C !important;
  1162. }
  1163. .level_gang {
  1164. background: #FE7837 !important;
  1165. }
  1166. }
  1167. .process_level {
  1168. .level_top {
  1169. display: flex;
  1170. align-items: center;
  1171. justify-content: space-between;
  1172. margin-bottom: 6rpx;
  1173. margin-top: 6rpx;
  1174. .level_left {
  1175. display: flex;
  1176. align-items: center;
  1177. text {
  1178. line-height: 43rpx;
  1179. margin-left: 32rpx;
  1180. font-size: 28rpx;
  1181. font-family: PingFang SC;
  1182. font-weight: 400;
  1183. color: #2D2D2D;
  1184. }
  1185. image {
  1186. width: 39rpx;
  1187. height: 43rpx;
  1188. }
  1189. }
  1190. .level_right {
  1191. font-size: 28rpx;
  1192. font-family: PingFang SC;
  1193. font-weight: bold;
  1194. color: #2D2D2D;
  1195. }
  1196. }
  1197. .level_gang {
  1198. width: 1px;
  1199. height: 31rpx;
  1200. background: #E1E1E1;
  1201. margin-left: 18rpx;
  1202. }
  1203. }
  1204. }
  1205. .ladder_total {
  1206. display: flex;
  1207. justify-content: flex-end;
  1208. margin-top: 42rpx;
  1209. font-size: 28rpx;
  1210. font-family: PingFang SC;
  1211. text:first-child {
  1212. color: #666666;
  1213. margin-right: 10rpx;
  1214. }
  1215. text:nth-child(2) {
  1216. color: #2D2D2D;
  1217. // font-weight:bold;
  1218. }
  1219. text:nth-child(3) {
  1220. color: #FC1C1C;
  1221. }
  1222. }
  1223. }
  1224. .yt-list {
  1225. margin-top: 20rpx;
  1226. background: #fff;
  1227. &.order_remark {
  1228. padding: 10rpx 20rpx 20rpx;
  1229. .title {
  1230. color: $main-font-color;
  1231. font-size: 28rpx;
  1232. line-height: 32rpx;
  1233. }
  1234. .placeholder {
  1235. color: $main-third-color;
  1236. font-size: 24rpx;
  1237. }
  1238. .content {
  1239. width: inherit;
  1240. height: 103rpx;
  1241. background: rgba(245, 245, 245, 1);
  1242. border-radius: 6rpx;
  1243. padding: 20rpx;
  1244. color: $main-second-color;
  1245. font-size: 26rpx;
  1246. margin-top: 10rpx;
  1247. }
  1248. }
  1249. }
  1250. .store_info {
  1251. margin-top: 0;
  1252. }
  1253. .yt-list-cell-giveaway {
  1254. padding: 20rpx;
  1255. line-height: 60rpx;
  1256. &.b-b:after {
  1257. left: 20rpx;
  1258. }
  1259. position: relative;
  1260. .cell-tit {
  1261. flex: 1;
  1262. font-size: 26rpx;
  1263. color: #333333;
  1264. margin-right: 20rpx;
  1265. }
  1266. .giveaway_list {
  1267. padding: 30rpx 20rpx;
  1268. background: #F5F5F5;
  1269. border-radius: 6px 6px 6px 6px;
  1270. font-size: 24rpx;
  1271. .giveaway_item {
  1272. display: flex;
  1273. align-items: center;
  1274. justify-content: space-between;
  1275. }
  1276. .giveaway_item_left {
  1277. display: flex;
  1278. align-items: center;
  1279. .giveaway_item_index {
  1280. color: #999999;
  1281. }
  1282. .giveaway_item_name {
  1283. color: #333333;
  1284. max-width: 400rpx;
  1285. white-space: nowrap;
  1286. text-overflow: ellipsis;
  1287. overflow: hidden;
  1288. display: inline-block;
  1289. }
  1290. }
  1291. .giveaway_item_number {
  1292. float: right;
  1293. }
  1294. }
  1295. }
  1296. .yt-list-cell {
  1297. display: flex;
  1298. align-items: center;
  1299. padding: 20rpx;
  1300. line-height: 60rpx;
  1301. position: relative;
  1302. .iconfont {
  1303. color: #999999;
  1304. font-size: 26rpx;
  1305. margin-left: 19rpx;
  1306. }
  1307. &.cell-hover {
  1308. background: #fafafa;
  1309. }
  1310. &.b-b:after {
  1311. left: 20rpx;
  1312. }
  1313. .cell-icon {
  1314. height: 32rpx;
  1315. width: 32rpx;
  1316. font-size: 22rpx;
  1317. color: #fff;
  1318. text-align: center;
  1319. line-height: 32rpx;
  1320. background: #f85e52;
  1321. border-radius: 4rpx;
  1322. margin-right: 12rpx;
  1323. &.hb {
  1324. background: #ffaa0e;
  1325. }
  1326. &.lpk {
  1327. background: #3ab54a;
  1328. }
  1329. }
  1330. .voice {
  1331. color: #333333 !important;
  1332. font-weight: 500 !important;
  1333. }
  1334. .cell-more {
  1335. align-self: center;
  1336. font-size: 24rpx;
  1337. color: $font-color-light;
  1338. margin-left: 8rpx;
  1339. margin-right: -10rpx;
  1340. }
  1341. .cell-tit {
  1342. flex: 1;
  1343. font-size: 26rpx;
  1344. color: #333333;
  1345. margin-right: 20rpx;
  1346. }
  1347. .cell-tip {
  1348. font-size: 26rpx;
  1349. color: $main-color;
  1350. font-weight: bold;
  1351. &.disabled {
  1352. color: $font-color-light;
  1353. }
  1354. &.active {
  1355. color: $base-color;
  1356. }
  1357. &.red {
  1358. color: $base-color;
  1359. }
  1360. }
  1361. &.desc-cell {
  1362. .cell-tit {
  1363. max-width: 90rpx;
  1364. }
  1365. }
  1366. .desc {
  1367. flex: 1;
  1368. font-size: $font-base;
  1369. color: $font-color-dark;
  1370. }
  1371. }
  1372. /* 支付列表 */
  1373. .pay-list {
  1374. padding-left: 40rpx;
  1375. margin-top: 16rpx;
  1376. background: #fff;
  1377. .pay-item {
  1378. display: flex;
  1379. align-items: center;
  1380. padding-right: 20rpx;
  1381. line-height: 1;
  1382. height: 110rpx;
  1383. position: relative;
  1384. }
  1385. .icon-weixinzhifu {
  1386. width: 80rpx;
  1387. font-size: 40rpx;
  1388. color: #6BCC03;
  1389. }
  1390. .icon-alipay {
  1391. width: 80rpx;
  1392. font-size: 40rpx;
  1393. color: #06B4FD;
  1394. }
  1395. .icon-xuanzhong2 {
  1396. display: flex;
  1397. align-items: center;
  1398. justify-content: center;
  1399. width: 60rpx;
  1400. height: 60rpx;
  1401. font-size: 40rpx;
  1402. color: $base-color;
  1403. }
  1404. .tit {
  1405. font-size: 32rpx;
  1406. color: $font-color-dark;
  1407. flex: 1;
  1408. }
  1409. }
  1410. .footer {
  1411. position: fixed;
  1412. left: 0;
  1413. right: 0;
  1414. margin: 0 auto;
  1415. bottom: 0;
  1416. z-index: 995;
  1417. width: 750rpx;
  1418. height: 98rpx;
  1419. font-size: 30rpx;
  1420. background-color: #fff;
  1421. z-index: 998;
  1422. color: $main-color;
  1423. .price-content {
  1424. .should_pay {
  1425. .tit {
  1426. color: $main-font-color;
  1427. font-size: 30rpx;
  1428. line-height: 30rpx;
  1429. }
  1430. .unit,
  1431. .small_price {
  1432. font-size: 24rpx;
  1433. font-weight: bold;
  1434. line-height: 26rpx;
  1435. }
  1436. .big_price {
  1437. font-size: 30rpx;
  1438. font-weight: bold;
  1439. line-height: 30rpx;
  1440. }
  1441. }
  1442. .promotion_total {
  1443. color: $main-font-color;
  1444. font-size: 22rpx;
  1445. margin-top: 8rpx;
  1446. }
  1447. }
  1448. .submit {
  1449. width: 200rpx;
  1450. height: 70rpx;
  1451. background: #F30300;
  1452. border-radius: 35rpx;
  1453. color: #fff;
  1454. font-size: 30rpx;
  1455. margin: 0 20rpx;
  1456. }
  1457. }
  1458. /* 优惠券面板 */
  1459. .mask {
  1460. display: flex;
  1461. align-items: flex-end;
  1462. position: fixed;
  1463. left: 0;
  1464. top: var(--window-top);
  1465. bottom: 0;
  1466. width: 100%;
  1467. background: rgba(0, 0, 0, 0);
  1468. z-index: 9995;
  1469. transition: .3s;
  1470. .mask-content {
  1471. width: 100%;
  1472. min-height: 30vh;
  1473. max-height: 70vh;
  1474. background: #f3f3f3;
  1475. transform: translateY(100%);
  1476. transition: .3s;
  1477. overflow-y: scroll;
  1478. }
  1479. &.none {
  1480. display: none;
  1481. }
  1482. &.show {
  1483. background: rgba(0, 0, 0, .4);
  1484. .mask-content {
  1485. transform: translateY(0);
  1486. }
  1487. }
  1488. }
  1489. /* 优惠券列表 */
  1490. .coupon-item {
  1491. display: flex;
  1492. flex-direction: column;
  1493. margin: 20rpx 24rpx;
  1494. background: #fff;
  1495. .con {
  1496. display: flex;
  1497. align-items: center;
  1498. position: relative;
  1499. height: 120rpx;
  1500. padding: 0 30rpx;
  1501. &:after {
  1502. position: absolute;
  1503. left: 0;
  1504. bottom: 0;
  1505. content: '';
  1506. width: 100%;
  1507. height: 0;
  1508. border-bottom: 1px dashed #f3f3f3;
  1509. transform: scaleY(50%);
  1510. }
  1511. }
  1512. .left {
  1513. display: flex;
  1514. flex-direction: column;
  1515. justify-content: center;
  1516. flex: 1;
  1517. overflow: hidden;
  1518. height: 100rpx;
  1519. }
  1520. .title {
  1521. font-size: 32rpx;
  1522. color: $font-color-dark;
  1523. margin-bottom: 10rpx;
  1524. }
  1525. .time {
  1526. font-size: 24rpx;
  1527. color: $font-color-light;
  1528. }
  1529. .right {
  1530. display: flex;
  1531. flex-direction: column;
  1532. justify-content: center;
  1533. align-items: center;
  1534. font-size: 26rpx;
  1535. color: $font-color-base;
  1536. height: 100rpx;
  1537. }
  1538. .price {
  1539. font-size: 44rpx;
  1540. color: $base-color;
  1541. &:before {
  1542. content: '¥';
  1543. font-size: 34rpx;
  1544. }
  1545. }
  1546. .tips {
  1547. font-size: 24rpx;
  1548. color: $font-color-light;
  1549. line-height: 60rpx;
  1550. padding-left: 30rpx;
  1551. }
  1552. .circle {
  1553. position: absolute;
  1554. left: -6rpx;
  1555. bottom: -10rpx;
  1556. z-index: 10;
  1557. width: 20rpx;
  1558. height: 20rpx;
  1559. background: #f3f3f3;
  1560. border-radius: 100px;
  1561. &.r {
  1562. left: auto;
  1563. right: -6rpx;
  1564. }
  1565. }
  1566. }
  1567. .empty_h {
  1568. width: 750rpx;
  1569. height: 20rpx;
  1570. }
  1571. .store_name {
  1572. padding-left: 20rpx;
  1573. padding-bottom: 30rpx;
  1574. margin-top: 30rpx;
  1575. display: flex;
  1576. align-items: center;
  1577. border-bottom: 1rpx solid rgba(0, 0, 0, .1);
  1578. .ladder_group {
  1579. height: 32rpx;
  1580. border-radius: 15rpx;
  1581. line-height: 32rpx;
  1582. padding: 0 10rpx;
  1583. margin-right: 10rpx;
  1584. background: linear-gradient(22deg, #FE901E 0%, #FEAD28 100%);
  1585. font-size: 22rpx;
  1586. color: #ffffff;
  1587. }
  1588. image {
  1589. width: 34rpx;
  1590. height: 32rpx;
  1591. }
  1592. .store_name_text {
  1593. font-size: 32rpx;
  1594. color: #2d2d2d;
  1595. font-weight: bold;
  1596. margin-left: 10rpx;
  1597. }
  1598. .iconfont {
  1599. // width: 13rpx;
  1600. // height: 22rpx;
  1601. font-size: 24rpx;
  1602. margin-left: 10rpx;
  1603. }
  1604. }
  1605. #store_red_wrap,
  1606. #store_no_good {
  1607. position: fixed;
  1608. top: 0;
  1609. left: 0;
  1610. width: 750rpx;
  1611. height: 100vh;
  1612. background-color: rgba(0, 0, 0, 0.6);
  1613. z-index: 999;
  1614. right: 0;
  1615. margin: 0 auto;
  1616. }
  1617. .store_red {
  1618. position: absolute;
  1619. bottom: 0;
  1620. left: 0;
  1621. width: 750rpx;
  1622. height: 50vh;
  1623. background-color: #fff;
  1624. box-sizing: border-box;
  1625. }
  1626. .store_red .title {
  1627. line-height: 110rpx;
  1628. padding: 0 30rpx;
  1629. border-bottom: 1rpx solid #eee;
  1630. font-size: 30rpx;
  1631. color: #666;
  1632. }
  1633. .store_red_list {
  1634. height: 78%;
  1635. box-sizing: border-box;
  1636. padding: 30rpx 30rpx 0;
  1637. }
  1638. .store_red_list .ticket-item {
  1639. position: relative;
  1640. display: block;
  1641. margin-bottom: 30rpx;
  1642. border-radius: 20rpx;
  1643. }
  1644. .ticket-item .line_left,
  1645. .ticket-item .line_right {
  1646. position: absolute;
  1647. top: 150rpx;
  1648. width: 20rpx;
  1649. height: 20rpx;
  1650. border-radius: 50%;
  1651. background-color: #fff;
  1652. }
  1653. .ticket-item .line_left {
  1654. left: -10rpx;
  1655. }
  1656. .ticket-item .line_right {
  1657. right: -10rpx;
  1658. }
  1659. .store_red_list .ticket-item:last-child {
  1660. margin: 0;
  1661. }
  1662. .store_red_list .circle_radio {
  1663. display: flex;
  1664. align-items: center;
  1665. height: 160rpx;
  1666. color: #fff;
  1667. background: -webkit-gradient(linear, 25% 100%, 75% 100%, from(#ff8580), to(#ea5165));
  1668. }
  1669. .circle_radio .red_item_wrap {
  1670. display: flex;
  1671. width: 100%;
  1672. padding: 0 30rpx 0 50rpx;
  1673. align-items: center;
  1674. justify-content: space-between;
  1675. }
  1676. .circle_radio .red_item_wrap .red_h1 {
  1677. font-size: 26rpx;
  1678. }
  1679. .circle_radio .red_item_wrap .red_h1 em {
  1680. font-size: 54rpx;
  1681. }
  1682. .circle_radio .red_item_wrap .red_h2 {
  1683. font-size: 26rpx;
  1684. }
  1685. .circle_radio .red_item_wrap .red_h2 em {
  1686. display: block;
  1687. }
  1688. .circle_radio .red_item_wrap .red_h2 em:nth-child(2) {
  1689. font-size: 20rpx;
  1690. padding-top: 10rpx;
  1691. }
  1692. .circle_radio .red_item_wrap .red_h3 .red_h3_top {
  1693. display: flex;
  1694. align-items: center;
  1695. justify-content: center;
  1696. font-size: 22rpx;
  1697. }
  1698. .red_h3 .red_h3_top image {
  1699. width: 20rpx;
  1700. height: 20rpx;
  1701. margin-right: 15rpx;
  1702. }
  1703. .circle_radio .red_item_wrap .red_h3 .red_h3_bottom {
  1704. padding: 10rpx 15rpx;
  1705. font-size: 28rpx;
  1706. color: #ec5667;
  1707. background-color: #f9ccd1;
  1708. margin-top: 18rpx;
  1709. border-radius: 6rpx;
  1710. }
  1711. .ticket-item .red_p {
  1712. display: flex;
  1713. align-items: center;
  1714. justify-content: space-between;
  1715. height: 80rpx;
  1716. font-size: 26rpx;
  1717. color: #84292b;
  1718. background: -webkit-gradient(linear, 25% 100%, 75% 100%, from(#d6706b), to(#c44654));
  1719. border-top: 3rpx dashed #fff;
  1720. }
  1721. .ticket-item .red_p image {
  1722. width: 26rpx;
  1723. height: 26rpx;
  1724. margin-right: 10rpx;
  1725. }
  1726. #store_no_good {
  1727. display: flex;
  1728. align-items: center;
  1729. justify-content: center;
  1730. }
  1731. #store_no_good .content {
  1732. width: 580rpx;
  1733. height: 773rpx;
  1734. background-color: white;
  1735. border-radius: 15rpx;
  1736. .content_title {
  1737. margin-top: 24rpx;
  1738. margin-bottom: 24rpx;
  1739. display: flex;
  1740. align-items: center;
  1741. justify-content: space-between;
  1742. padding: 0 30rpx;
  1743. font-size: 32rpx;
  1744. color: #2D2D2D;
  1745. image {
  1746. width: 22rpx;
  1747. height: 22rpx;
  1748. }
  1749. }
  1750. .good_list {
  1751. height: 593rpx;
  1752. overflow-y: scroll;
  1753. width: 100%;
  1754. .good_item {
  1755. display: flex;
  1756. align-items: center;
  1757. padding: 30rpx;
  1758. border-top: 1rpx solid #f2f2f2;
  1759. image {
  1760. width: 70rpx;
  1761. height: 70rpx;
  1762. border-radius: 6rpx;
  1763. }
  1764. .good_info {
  1765. margin-left: 20rpx;
  1766. position: relative;
  1767. .good_name {
  1768. width: 382rpx;
  1769. overflow: hidden;
  1770. white-space: nowrap;
  1771. text-overflow: ellipsis;
  1772. font-size: 26rpx;
  1773. }
  1774. .good_spec {
  1775. margin-top: 20rpx;
  1776. font-size: 22rpx;
  1777. color: #999999;
  1778. }
  1779. .num {
  1780. position: absolute;
  1781. bottom: 0rpx;
  1782. right: 0rpx;
  1783. font-size: 24rpx;
  1784. color: #333333;
  1785. }
  1786. }
  1787. }
  1788. }
  1789. .part_no_goods {
  1790. width: 520rpx;
  1791. height: 60rpx;
  1792. font-size: 30rpx;
  1793. color: white;
  1794. display: flex;
  1795. align-items: center;
  1796. margin: 0 auto;
  1797. border-radius: 30rpx;
  1798. margin-top: 15rpx;
  1799. .return {
  1800. width: 50%;
  1801. height: 60rpx;
  1802. line-height: 60rpx;
  1803. background-color: #FF8809;
  1804. text-align: center;
  1805. border-radius: 30rpx 0 0 30rpx;
  1806. }
  1807. .remove {
  1808. width: 50%;
  1809. height: 60rpx;
  1810. line-height: 60rpx;
  1811. background-color: #F90208;
  1812. text-align: center;
  1813. border-radius: 0 30rpx 30rpx 0;
  1814. }
  1815. }
  1816. }
  1817. .part_no_goods_another {
  1818. width: 520rpx;
  1819. height: 60rpx;
  1820. font-size: 30rpx;
  1821. color: white;
  1822. display: flex;
  1823. align-items: center;
  1824. margin: 0 auto;
  1825. border-radius: 30rpx;
  1826. background-color: #F90208;
  1827. .return {
  1828. width: 100%;
  1829. text-align: center;
  1830. }
  1831. }
  1832. .agreement-part {
  1833. width: 100%;
  1834. font-size: 24rpx;
  1835. color: #999999;
  1836. text-align: center;
  1837. box-sizing: border-box;
  1838. padding: 15rpx 0 15rpx 10rpx;
  1839. .register_icon {
  1840. width: 46rpx;
  1841. height: 46rpx;
  1842. }
  1843. .agreement {
  1844. color: #FC1E1E;
  1845. border-bottom: 1rpx solid #FC1E1E;
  1846. }
  1847. }
  1848. </style>