index.vue 68 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  1. <template>
  2. <view>
  3. <view class="w-full relative z-99 gradient-box" :style="{ 'padding-top': sysHeight + 'px' }">
  4. <view class="w-full px-20 pl-20 h-80 flex-between-center">
  5. <text class="iconfont icon-ic_leftarrow fs-40 text--w111-fff" @click="goPage(3)"></text>
  6. <text class="fs-34 fw-500 text--w111-fff">提交订单</text>
  7. <text></text>
  8. </view>
  9. <view class="px-20 mt-30">
  10. <view class="allAddress">
  11. <!-- isDisplay 0 两个都展示 1 展示配送 2展示自提 -->
  12. <!-- store_self_mention 自提开关 -->
  13. <view class="h-96 relative" v-if="isDisplay.length > 1">
  14. <view class="w-full abs-lb rd-t-24rpx flex bg--w111-fff">
  15. <!-- <view
  16. class="flex-center w-50p h-76 fs-28 rd-lt-24rpx z-2"
  17. :class="shippingType == 0 ? 'bg--w111-fff text-primary-con' : 'bg-primary-light'"
  18. @tap="addressType(0)"
  19. >
  20. 快递配送
  21. </view>
  22. <view
  23. class="flex-center w-50p h-76 fs-28 rd-rt-24rpx z-2"
  24. :class="shippingType == 1 ? 'bg--w111-fff text-primary-con' : 'bg-primary-light'"
  25. @tap="addressType(1)"
  26. >
  27. 到店自提
  28. </view> -->
  29. <view class="flex-center w-50p h-76 fs-28 rd-lt-24rpx z-2"
  30. :class="deliveryType == 1 ? 'bg--w111-fff font-color' : 'bg-primary-light'"
  31. v-if="isDisplay.includes('1')"
  32. @tap="addressType(0,1)">商城配送</view>
  33. <view class="flex-center w-50p h-76 fs-28 z-2"
  34. :class="{
  35. 'rd-lt-24rpx': !isDisplay.includes('1'),
  36. 'bg--w111-fff font-color': deliveryType == 2,
  37. 'bg-primary-light': deliveryType != 2
  38. }"
  39. v-if="isDisplay.includes('2')"
  40. @tap="addressType(1,2)"
  41. >门店自提</view>
  42. <view class="flex-center w-50p h-76 fs-28 rd-rt-24rpx z-2"
  43. :class="deliveryType == 3 ? 'bg--w111-fff font-color' : 'bg-primary-light'"
  44. v-if="isDisplay.includes('3')"
  45. @tap="addressType(0,3)"
  46. >门店配送</view>
  47. </view>
  48. <!-- 选中放大样式 2项的-->
  49. <view v-if="isDisplay.length==2" class="w-50p rd-t-24rpx bg--w111-fff h-96"
  50. :class="(deliveryType == 1 || (deliveryType == 2 && !isDisplay.includes('1'))) ? 'abs-lt' : 'abs-rt'">
  51. <view class="w-full h-full relative active-card"></view>
  52. </view>
  53. <!-- 选中放大样式 3项的-->
  54. <view v-if="isDisplay.length==3" class="w-33-33p rd-t-24rpx bg--w111-fff h-96"
  55. :class="deliveryType == 1 ? 'abs-lt' : deliveryType == 2?'abs-ct':'abs-rt'">
  56. <view class="w-full h-full relative active-card"></view>
  57. </view>
  58. </view>
  59. <view v-else class="bg--w111-fff rd-t-24rpx text--w111-999 fs-24">
  60. <view v-if="Array.isArray(isDisplay) && isDisplay.includes('1')" class="acea-row row-middle h-88 lh-88rpx ml-34 mr-34 border-b b--w111-f5f5f5 border-b-s">
  61. <text class="iconfont icon-icon_truck font-num fs-36 mr-12"></text>
  62. <text class="font-num fs-28 mr-12">商城配送</text>
  63. 线上下单,商城为您配送
  64. </view>
  65. <view v-else-if="Array.isArray(isDisplay) && isDisplay.includes('2')" class="acea-row row-middle h-88 lh-88rpx ml-34 mr-34 border-b b--w111-f5f5f5 border-b-s">
  66. <text class="iconfont icon-a-icon_trailcar font-num fs-36 mr-12"></text>
  67. <text class="font-num fs-28 mr-12">门店自提</text>
  68. 线上下单,到店自提
  69. </view>
  70. <view v-else class="acea-row row-middle h-88 lh-88rpx ml-34 mr-34 border-b b--w111-f5f5f5 border-b-s">
  71. <text class="iconfont icon-icon_truck font-num fs-36 mr-12"></text>
  72. <text class="font-num fs-28 mr-12">门店配送</text>
  73. 线上下单,门店为您配送
  74. </view>
  75. </view>
  76. <!-- <view class="address add1 flex-between-center" :class="[1, 2].includes(isDisplay) ? 'rd-24rpx' : 'rd-b-24rpx'" @tap="onAddress()" v-if="deliveryType == 1">
  77. <view v-if="addressInfo.real_name">
  78. <view class="fs-26 text--w111-666 lh-36rpx">{{ addressInfo.province }}{{ addressInfo.city }}{{ addressInfo.district }}</view>
  79. <view class="fs-30 text--w111-333 lh-42rpx fw-500 mt-8">{{ addressInfo.detail }}</view>
  80. <view class="fs-26 text--w111-666 lh-34rpx mt-10">
  81. <text>{{ addressInfo.real_name }}</text>
  82. <text class="pl-20">{{ addressInfo.phone }}</text>
  83. </view>
  84. </view>
  85. <view class="fs-30 text--w111-333 fw-500 lh-42rpx flex-y-center" v-else>
  86. <image src="@/static/img/location_order_icon.png" class="w-32 h-32"></image>
  87. <text class="pl-8">设置收货地址</text>
  88. </view>
  89. <text class="iconfont icon-ic_rightarrow fs-24 text--w111-999"></text>
  90. </view> -->
  91. <view class='address add1 flex-between-center'
  92. @tap='onAddress(addressInfo.real_name)' v-if="deliveryType == 1">
  93. <view v-if="currentAddress.real_name">
  94. <view class="fs-30 text--w111-333 fw-500 acea-row row-middle">
  95. <text>{{currentAddress.real_name}}</text> <text class='pl-20'>{{currentAddress.phone}}</text>
  96. <text class='default acea-row row-center-wrapper ml-8' v-if="currentAddress.is_default">默认</text>
  97. </view>
  98. <view class="fs-24 text--w111-666 mt-12">{{currentAddress.province}}{{currentAddress.city}}{{currentAddress.district}}{{currentAddress.street}}{{currentAddress.detail}}</view>
  99. </view>
  100. <view class='fs-30 text--w111-333 fw-500 lh-42rpx flex-y-center' v-else>
  101. <!-- <image src="../static/location_order_icon.png" class="w-32 h-32"></image> -->
  102. <text class="pl-8">设置收货地址</text>
  103. </view>
  104. <text class="iconfont icon-ic_rightarrow fs-32 text--w111-666 ml-20"></text>
  105. </view>
  106. <view class="address add1 acea-row row-between-wrapper" :class="[1, 2].includes(isDisplay) ? 'rd-24rpx' : 'rd-b-24rpx'" v-else>
  107. <block v-if="storeList.length > 0">
  108. <view class="w-full">
  109. <view class="w-full flex-between-center pb-26rpx dashed-b">
  110. <view @click="goStore">
  111. <view class="flex-center">
  112. <view class="fs-30 w-410 line1 fw-500 lh-42rpx">{{ currentStore.name }}</view>
  113. <text class="iconfont icon-ic_rightarrow fs-24 text--w111-999"></text>
  114. </view>
  115. <view class="fs-22 w-410 line2 text--w111-666 lh-30rpx mt-12">{{ currentStore.address }}{{ currentStore.detailed_address }}</view>
  116. </view>
  117. <view
  118. class="_map relative"
  119. :style="{ backgroundImage: 'url(' + imgHost + '/statics/images/order/order_map_bg.png' + ')' }"
  120. @tap="showMaoLocation"
  121. >
  122. <!-- <view class="store_distance flex-center bg--w111-fff rd-8rpx fs-20 fw-500 line1">距您{{ (range / 1000).toFixed(1) }}km</view> -->
  123. <view class="store_logo bg--w111-fff rd-8rpx">
  124. <image class="w-full h-full rd-8rpx relative z-2" :src="currentStore.image"></image>
  125. </view>
  126. </view>
  127. </view>
  128. <!-- <view class="flex-1 pt-18 pr-20">
  129. <view class="flex">
  130. <view>
  131. <view class="fs-24 text--w111-999 lh-34rpx">我的姓名</view>
  132. <view class="flex-y-center mt-6">
  133. <input type="text" v-model="userInfo.real_name" :focus="contactsFocus" class="w-78 h-36 fs-26 fw-500 lh-36rpx" />
  134. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(0)"></text>
  135. </view>
  136. </view>
  137. <view class="pl-46">
  138. <view class="fs-24 text--w111-999 lh-34rpx">我的电话</view>
  139. <view class="flex-y-center mt-6">
  140. <input type="number" v-model="userInfo.phone" :focus="telFocus" class="w-222 h-36 fs-30 fw-500 lh-30rpx" />
  141. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(1)"></text>
  142. </view>
  143. </view>
  144. </view>
  145. </view> -->
  146. </view>
  147. <!-- <view class="w-full flex justify-between">
  148. <view class="flex-1 pr-20">
  149. <view class="fs-30 w-full line2 text--w111-333 fw-500 lh-42rpx">{{system_store.detailed_address}}</view>
  150. <view class="flex mt-40">
  151. <view>
  152. <view class="fs-24 text--w111-999 lh-34rpx">我的姓名</view>
  153. <view class="flex-y-center mt-6">
  154. <input type="text" v-model="userInfo.real_name" :focus="contactsFocus" class="w-78 h-36 fs-26 fw-500 lh-36rpx" />
  155. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(0)"></text>
  156. </view>
  157. </view>
  158. <view class="pl-46">
  159. <view class="fs-24 text--w111-999 lh-34rpx">我的电话</view>
  160. <view class="flex-y-center mt-6">
  161. <input type="number" v-model="userInfo.phone" :focus="telFocus" class="w-222 h-36 fs-30 fw-500 lh-30rpx" />
  162. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(1)"></text>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <view class="_map relative"
  168. :style="{backgroundImage:'url('+imgHost+'/statics/images/order/order_map_bg.png'+')'}"
  169. @tap="showMaoLocation">
  170. <view class="store_distance flex-center bg--w111-fff rd-8rpx fs-20 fw-50 line1">距您{{range}}km</view>
  171. <view class="store_logo bg--w111-fff rd-8rpx">
  172. <image class="w-full h-full rd-8rpx" :src="site_logo"></image>
  173. </view>
  174. </view>
  175. </view> -->
  176. </block>
  177. <block v-else>
  178. <view>暂无门店信息</view>
  179. </block>
  180. </view>
  181. <view class="line">
  182. <image src="/static/images/line.jpg"></image>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="order-submission">
  188. <view class="px-20">
  189. <view class="bg--w111-fff rd-16rpx my-20">
  190. <view class="bg--w111-fff rd-16rpx p-24 flex-y-center" v-if="userId == 0">
  191. <image src="@/static/images/def_avatar.png" class="w-60 h-60 rd-50-p111-"></image>
  192. <view class="flex-1 pl-20">
  193. <view class="fs-28 lh-40rpx fw-500">游客</view>
  194. <view class="fs-24 lh-34rpx text--w111-999 mt-4"></view>
  195. </view>
  196. </view>
  197. <view class="bg--w111-fff rd-16rpx p-24 flex-y-center" v-else>
  198. <image :src="userInfo.avatar" class="w-60 h-60 rd-50-p111-"></image>
  199. <view class="flex-1 pl-20">
  200. <view class="flex-y-center">
  201. <view class="fs-28 lh-40rpx fw-500">{{ userInfo.nickname }}</view>
  202. <view class="svip flex-center" v-if="userInfo.isMember == 1">SVIP</view>
  203. <view class="vip flex-center" v-if="userInfo.level_status == 1">
  204. <text class="iconfont icon-huiyuandengji"></text>
  205. V{{ userInfo.level_grade }}
  206. </view>
  207. </view>
  208. <!-- <view class="fs-24 lh-34rpx text--w111-999 mt-4">{{ userPhone }}</view> -->
  209. <view class="fs-24 lh-34rpx text--w111-999 mt-4">ID:{{ userId }}</view>
  210. </view>
  211. </view>
  212. <view class="bg--w111-fff rd-16rpx p-24 flex-y-center border-top" v-if="deliveryType == 2">
  213. <view class="flex-1">
  214. <view class="fs-24 text--w111-999 lh-34rpx">我的姓名</view>
  215. <view class="flex-between-center mt-6">
  216. <input type="text" v-model="userInfo.real_name" :focus="contactsFocus" class="w-78 h-36 fs-26 fw-500 lh-36rpx" />
  217. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(0)"></text>
  218. </view>
  219. </view>
  220. <view class="flex-1 pl-46">
  221. <view class="fs-24 text--w111-999 lh-34rpx">我的电话</view>
  222. <view class="flex-between-center mt-6">
  223. <input type="number" v-model="userInfo.phone" :focus="telFocus" class="w-222 h-36 fs-30 fw-500 lh-30rpx" />
  224. <text class="iconfont icon-ic_edit fs-28 text--w111-999 pl-16" @tap="clearInput(1)"></text>
  225. </view>
  226. </view>
  227. </view>
  228. <view class='address add1 flex-between-center border-line'
  229. @tap='onAddress(currentAddress.real_name)' v-if="deliveryType == 3">
  230. <view v-if="currentAddress.real_name">
  231. <view class="fs-30 text--w111-333 fw-500 acea-row row-middle">
  232. <text>{{currentAddress.real_name}}</text> <text class='pl-20'>{{currentAddress.phone}}</text>
  233. <text class='default acea-row row-center-wrapper ml-8' v-if="currentAddress.is_default">默认</text>
  234. </view>
  235. <view class="fs-24 text--w111-666 mt-12">{{currentAddress.province}}{{currentAddress.city}}{{currentAddress.district}}{{currentAddress.street}}{{currentAddress.detail}}</view>
  236. </view>
  237. <view class='fs-30 text--w111-333 fw-500 lh-42rpx flex-y-center' v-else>
  238. <!-- <image src="../static/location_order_icon.png" class="w-32 h-32"></image> -->
  239. <text class="pl-8">设置收货地址</text>
  240. </view>
  241. <text class="iconfont icon-ic_rightarrow fs-32 text--w111-666 ml-20"></text>
  242. </view>
  243. </view>
  244. <view class="bg--w111-fff rd-16rpx pt-32 pr-24 pl-24 pb-32">
  245. <view class="flex order_goods" v-for="(item, index) in cartInfo" :key="index">
  246. <view class="w-176 h-176 relative">
  247. <image class="w-176 h-176 rd-16rpx" :src="item.productInfo.attrInfo.image" v-if="item.productInfo.attrInfo"></image>
  248. <image class="w-176 h-176 rd-16rpx" :src="item.productInfo.image" v-else></image>
  249. <view class="over flex-center fs-24 text--w111-fff" v-if="!item.is_valid">{{ shippingType == 1 ? '非自提' : '不送达' }}</view>
  250. </view>
  251. <view class="flex-1 flex-col justify-between pl-20">
  252. <view @click="goDetail(item.productInfo.id)">
  253. <view class="w-464 line1 fs-28 lh-40rpx" :class="item.is_valid ? 'text--w111-333' : 'text--w111-ccc'">{{ item.productInfo.store_name }}</view>
  254. <view class="w-322 fs-22 lh-30rpx line1 mt-12" :class="item.is_valid ? 'text--w111-999' : 'text--w111-ccc'" v-if="item.productInfo.attrInfo">
  255. {{ item.productInfo.attrInfo.suk }}
  256. </view>
  257. <view class="flex items-end flex-wrap mt-12 w-full">
  258. <BaseTag
  259. :text="label.label_name"
  260. :color="label.color"
  261. :background="label.bg_color"
  262. :borderColor="label.border_color"
  263. :circle="label.border_color ? true : false"
  264. :imgSrc="label.icon"
  265. v-for="(label, idx) in item.productInfo.store_label"
  266. :key="idx"
  267. ></BaseTag>
  268. </view>
  269. </view>
  270. <view class="flex-between-center">
  271. <baseMoney
  272. :money="item.productInfo.attrInfo ? item.productInfo.attrInfo.price : item.productInfo.price"
  273. symbolSize="20"
  274. integerSize="36"
  275. decimalSize="20"
  276. :color="item.is_valid ? '#333' : '#cccccc'"
  277. weight
  278. ></baseMoney>
  279. <view class="flex-y-center" v-if="[0, 6].includes(goodsType) && news == 0">
  280. <text
  281. class="iconfont icon-ic_Reduce fs-24"
  282. :class="item.cart_num > 1 ? 'text--w111-333' : 'text--w111-999'"
  283. @click.stop="addCart(0, item)"
  284. ></text>
  285. <input
  286. type="number"
  287. maxlength="3"
  288. class="w-72 h-36 rd-4rpx bg--w111-f5f5f5 flex-center text-center fs-24 text--w111-333 mx-6"
  289. @input="setValue($event, item)"
  290. v-model="item.cart_num"
  291. />
  292. <text class="iconfont icon-ic_increase fs-24 text--w111-333" @click.stop="addCart(1, item)"></text>
  293. </view>
  294. <text class="fs-28 text--w111-666" v-else>×{{ item.cart_num }}</text>
  295. </view>
  296. </view>
  297. </view>
  298. <view class="cell flex justify-between mt-32" v-if="giftCount > 0">
  299. <text class="text--w111-333 fs-28">赠品</text>
  300. <view class="w-460 flex-y-center justify-end" @tap="showGiftDrawer = true">
  301. <view class="flex">
  302. <view class="w-64 h-64 mr-8" v-for="(item, index) in giveCartInfo" :key="index">
  303. <image class="h-full w-full rd-8rpx" :src="item.productInfo.attrInfo.image" v-if="item.productInfo.attrInfo"></image>
  304. <image class="h-full w-full rd-8rpx" :src="item.productInfo.image" v-else></image>
  305. </view>
  306. <view class="w-64 h-64 rd-8rpx bg--w111-f5f5f5 flex-center mr-8" v-if="giveData.give_coupon.length">
  307. <text class="gold iconfont icon-a-ic_discount1"></text>
  308. </view>
  309. <view class="w-64 h-64 rd-8rpx bg--w111-f5f5f5 flex-center mr-8" v-if="giveData.give_integral > 0">
  310. <text class="gold iconfont icon-ic_badge11"></text>
  311. </view>
  312. </view>
  313. <view class="fs-26 text--w111-666">
  314. 共{{ giftCount }}件
  315. <text class="iconfont icon-ic_rightarrow"></text>
  316. </view>
  317. </view>
  318. </view>
  319. <view class="cell flex justify-between flex-y-center mt-32" v-if="textareaStatus">
  320. <text class="text--w111-333 fs-28">留言</text>
  321. <textarea
  322. class="w-450 fs-28 text-right h-auto"
  323. :auto-height="true"
  324. wrap-style="wrap"
  325. max-height="100px"
  326. placeholder-class="placeholder"
  327. placeholder="请先与商家沟通一致再留言哦~"
  328. :always-embed="true"
  329. :adjust-position="true"
  330. cursor-spacing="30"
  331. v-if="!coupon.coupon"
  332. @input="bindHideKeyboard"
  333. :value="mark"
  334. :maxlength="150"
  335. name="mark"
  336. ></textarea>
  337. </view>
  338. </view>
  339. <view class="mt-20 bg--w111-fff rd-16rpx pt-32 pr-24 pl-24 pb-32">
  340. <!-- <view class="cell flex-between-center"
  341. v-if="[0, 6].includes(type) && !noCoupon && goodsType != 7 && priceGroup.firstOrderPrice==0"
  342. @tap='couponTap'>
  343. <text class="text--w111-333 fs-28">优惠券</text>
  344. <view>
  345. <text class="text--w111-333 fs-28">{{couponTitle}}</text>
  346. <text class="iconfont icon-ic_rightarrow fs-24 text--w111-999 pl-8"></text>
  347. </view>
  348. </view> -->
  349. <view class="cell flex-between-center" v-if="[0, 6].includes(type) && integral_ratio_status == 1">
  350. <text class="text--w111-333 fs-28">积分抵扣</text>
  351. <view class="flex-y-center">
  352. <view>
  353. {{ useIntegral ? '剩余积分' : '当前积分' }}
  354. <text class="Regular font-color fs-36 pl-8 pr-12">{{ integral || 0 }}</text>
  355. </view>
  356. <text class="iconfont" :class="useIntegral ? 'icon-a-ic_CompleteSelect' : 'icon-ic_unselect text--w111-999'" @tap="ChangeIntegral"></text>
  357. <!-- v-show="integral <= 0 && !useIntegral" -->
  358. </view>
  359. </view>
  360. </view>
  361. <view class="mt-20 bg--w111-fff rd-16rpx pt-32 pr-24 pl-24 pb-32" v-if="type == 4">
  362. <view class="cell flex-between-center">
  363. <text class="text--w111-333 fs-28">可用积分</text>
  364. <text>{{ userInfo.integral }}</text>
  365. </view>
  366. <view class="cell flex-between-center">
  367. <text class="text--w111-333 fs-28">抵扣积分</text>
  368. <text>{{ totalIntegral }}</text>
  369. </view>
  370. </view>
  371. <view class="mt-20 bg--w111-fff rd-16rpx pt-32 pr-24 pl-24 pb-32">
  372. <view class="cell flex-between-center">
  373. <text class="text--w111-333 fs-28">商品总价</text>
  374. <text class="text--w111-333 fs-36 Regular">¥{{ priceGroup.sumPrice }}</text>
  375. </view>
  376. <view class="cell flex-between-center" v-if="priceGroup.firstOrderPrice > 0">
  377. <text class="text--w111-333 fs-28">新人首单优惠</text>
  378. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ priceGroup.firstOrderPrice }}</text>
  379. </view>
  380. <view class="cell flex-between-center" v-if="priceGroup.storePostage > 0">
  381. <text class="text--w111-333 fs-28">配送运费</text>
  382. <text class="text--w111-333 fs-36 Regular font-color">
  383. ¥{{ (parseFloat(priceGroup.storePostage) + parseFloat(priceGroup.storePostageDiscount)).toFixed(2) }}
  384. </text>
  385. </view>
  386. <view class="cell flex-between-center" v-if="priceGroup.vipPrice > 0 && userInfo.vip && [0, 6].includes(type)">
  387. <text class="text--w111-333 fs-28">用户等级优惠</text>
  388. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ parseFloat(priceGroup.vipPrice).toFixed(2) }}</text>
  389. </view>
  390. <view class="cell flex-between-center" v-if="priceGroup.storePostageDiscount > 0">
  391. <text class="text--w111-333 fs-28">会员运费优惠</text>
  392. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ parseFloat(priceGroup.storePostageDiscount).toFixed(2) }}</text>
  393. </view>
  394. <view class="cell flex-between-center" v-if="coupon_price > 0">
  395. <text class="text--w111-333 fs-28">优惠券抵扣</text>
  396. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ parseFloat(coupon_price).toFixed(2) }}</text>
  397. </view>
  398. <view class="cell flex-between-center" v-if="integral_price > 0">
  399. <text class="text--w111-333 fs-28">积分抵扣</text>
  400. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ parseFloat(integral_price).toFixed(2) }}</text>
  401. </view>
  402. <view class="cell flex-between-center" v-for="(item, index) in promotions_detail" :key="index" v-show="parseFloat(item.promotions_price)">
  403. <text class="text--w111-333 fs-28">{{ item.title }}</text>
  404. <text class="text--w111-333 fs-36 Regular font-color">-¥{{ parseFloat(item.promotions_price).toFixed(2) }}</text>
  405. </view>
  406. </view>
  407. </view>
  408. <view class="height-add"></view>
  409. <view class="fixed-lb w-full bg--w111-fff pb-safe">
  410. <view class="h-80 bg--w111-FFF0D1 flex-between-center px-20" v-if="!svip_status && svip_price > 0">
  411. <view class="flex-y-center">
  412. <image src="@/static/img/vip_leval.png" class="w-36 h-36"></image>
  413. <view class="pl-8">
  414. <text class="fs-24 text--w111-7E4B06">开通 SVIP会员 预计省</text>
  415. <text class="font-color fs-28">¥{{ svip_price }}</text>
  416. <text class="fs-24 text--w111-7E4B06">元</text>
  417. </view>
  418. </view>
  419. <view class="fs-24 text--w111-7E4B06" @click="goPage(1, '/pages/annex/vip_paid/index')">
  420. <text>立即开通</text>
  421. <text class="iconfont icon-ic_rightarrow fs-24"></text>
  422. </view>
  423. </view>
  424. <view class="pl-32 pr-20 h-96 flex-between-center">
  425. <view class="flex items-baseline">
  426. <text class="fs-24 fw-500 text--w111-333">合计</text>
  427. <baseMoney :money="totalPrice || 0" symbolSize="26" integerSize="44" decimalSize="26" color="#FF7E00" weight></baseMoney>
  428. <text class="pl-12" v-if="type == 4 && totalIntegral > 0">+{{ totalIntegral }}积分</text>
  429. </view>
  430. <view class="w-168 h-72 rd-36rpx flex-center text--w111-fff fs-26 bg-primary" @tap.stop="payDrawerChange" v-if="canSubmit">提交订单</view>
  431. <view class="w-168 h-72 rd-36rpx flex-center text--w111-fff fs-26 bg-color-hui" v-else>提交订单</view>
  432. </view>
  433. </view>
  434. </view>
  435. <view class="alipaysubmit" v-html="formContent"></view>
  436. <tuiModal :show="isAddress" title="更新地址" content="当前地址功能已更新,请重新修改" @click="handleClick" @cancel="hideModal"></tuiModal>
  437. <!-- 赠品抽屉 -->
  438. <giftDrawer :visible="showGiftDrawer" :giveCartInfo="giveCartInfo" :giveData="giveData" @closeDrawer="closeDrawer"></giftDrawer>
  439. <couponListWindow
  440. :coupon="coupon"
  441. @ChangCouponsClone="ChangCouponsClone"
  442. :openType="openType"
  443. :cartId="cartId"
  444. @ChangCoupons="ChangCoupons"
  445. @ruleToggle="ruleToggle"
  446. ></couponListWindow>
  447. <base-drawer
  448. mode="bottom"
  449. :visible="showAddressDrawer"
  450. backgroundColor="transparent"
  451. @close="closeAddressDrawer">
  452. <view class="w-full bg--w111-fff rd-t-40rpx py-32">
  453. <view class="text-center fs-32 text--w111-333 fw-500">选择地址</view>
  454. <view class="mt-64 px-32">
  455. <view
  456. class="mb-38 flex-between-center"
  457. v-for="(item, index) in addressList"
  458. :key="index"
  459. :class="{ 'font-num': addressActive == index }"
  460. @tap="tapAddress(item, index)"
  461. >
  462. <text class="iconfont icon-ic_location5 fs-36"></text>
  463. <view class="flex-1 pl-40">
  464. <view class="fs-28 fw-500">
  465. {{ item.real_name }}
  466. <text class="phone">{{ item.phone }}</text>
  467. </view>
  468. <view class="w-560 line1 mt-4">{{ item.province }}{{ item.city }}{{ item.district }}{{ item.street }}{{ item.detail }}</view>
  469. </view>
  470. </view>
  471. <view v-if="!addressList.length">
  472. <emptyPage title="暂无地址信息~" src="/statics/images/noAddress.png"></emptyPage>
  473. </view>
  474. </view>
  475. <view class="mx-20 pb-safe">
  476. <view class="mt-52 h-72 flex-center rd-36px bg-primary fs-26 text--w111-fff" @tap="goAddressPages">添加地址</view>
  477. </view>
  478. </view>
  479. </base-drawer>
  480. <base-drawer
  481. mode="bottom"
  482. :visible="showPayDrawer"
  483. background-color="transparent"
  484. mask
  485. maskClosable
  486. @close="closePayDrawer">
  487. <view class="w-full bg--w111-f5f5f5 rd-t-40rpx py-32">
  488. <view class="text-center fs-32 text--w111-333 fw-500">支付方式</view>
  489. <view class="mt-54 px-32">
  490. <view class="w-full h-136 rd-24rpx bg--w111-fff pay-card flex-between-center" @tap="goPay(0)">
  491. <view class="flex-y-center">
  492. <image class="w-52 h-52" :src="imgHost + '/statics/images/order/yue_pay.png'"></image>
  493. <view class="flex-col ml-20">
  494. <text class="fs-28">线上支付</text>
  495. <text class="pt-8 fs-22 text--w111-999">微信/支付宝扫码支付</text>
  496. </view>
  497. </view>
  498. <text class="iconfont icon-ic_rightarrow fs-32 text--w111-999 "></text>
  499. </view>
  500. <view class="w-full h-136 rd-24rpx bg--w111-fff pay-card flex-between-center mt-24" @tap="goPay(1)">
  501. <view class="flex-y-center">
  502. <image class="w-52 h-52" :src="imgHost + '/statics/images/order/xianxia_pay.png'"></image>
  503. <view class="flex-col ml-20">
  504. <text class="fs-28">线下支付</text>
  505. <text class="pt-8 fs-22 text--w111-999">选择线下付款方式</text>
  506. </view>
  507. </view>
  508. <text class="iconfont icon-ic_rightarrow fs-32 text--w111-999 "></text>
  509. </view>
  510. <view v-if="userId" class="w-full h-136 rd-24rpx bg--w111-fff pay-card flex-between-center mt-24" @tap="goPay(2)">
  511. <view class="flex-y-center">
  512. <image class="w-52 h-52" :src="imgHost + '/statics/images/order/xianxia_pay.png'"></image>
  513. <view class="flex-col ml-20">
  514. <text class="fs-28">余额支付</text>
  515. <text class="pt-8 fs-22 text--w111-999">当前余额¥{{userInfo.now_money}}</text>
  516. </view>
  517. </view>
  518. <text class="iconfont icon-ic_rightarrow fs-32 text--w111-999 "></text>
  519. </view>
  520. </view>
  521. <view class="mx-20 pb-safe">
  522. <view class="mt-52 h-72 flex-center rd-36px bg--w111-fff fs-26 text-primary-con btn-border" @click="closePayDrawer">取消</view>
  523. </view>
  524. </view>
  525. </base-drawer>
  526. <base-drawer mode="bottom" :visible="isStore" backgroundColor="transparent" @close="closeStore">
  527. <view class="product-window store">
  528. <view class="storeTitle">选择门店<text class="iconfont icon-guanbi5" @click="closeStore"></text></view>
  529. <scroll-view scroll-y="true" class="scroll-view">
  530. <view class="storeList">
  531. <view class="item" :class="store_id == item.id?'on':''" v-for="(item,index) in storeList" :key="index" @click="tapStore(item,index)">
  532. <text class="iconfont icon-ic_complete"></text>
  533. <view class="name line1">{{item.name}}</view>
  534. <view class="address acea-row row-middle">
  535. <view class="iconfont icon-ic_location51"></view>
  536. <view class="info">{{item.address}}</view>
  537. </view>
  538. <view class="time acea-row row-middle">
  539. <view class="iconfont icon-icon_clock"></view>
  540. <view>营业时间:{{item.day_time}}</view>
  541. </view>
  542. <view class="iconfont icon-xuanzhong6" v-if="store_id == item.id"></view>
  543. </view>
  544. </view>
  545. </scroll-view>
  546. </view>
  547. </base-drawer>
  548. </view>
  549. </template>
  550. <script>
  551. const CACHE_CITY = {};
  552. let sysHeight = uni.getSystemInfoSync().statusBarHeight;
  553. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  554. import {
  555. orderConfirm,
  556. postOrderComputed,
  557. getCouponsOrderPrice,
  558. orderCreate,
  559. adminUserAddressList,
  560. adminCartNum,
  561. getCashierApi,
  562. check_shipping} from '@/api/admin.js';
  563. import { openPaySubscribe } from '@/utils/SubscribeMessage.js';
  564. import { storeListApi, postCartAdd } from '@/api/store.js';
  565. import { checkShipping } from '@/api/order.js';
  566. import { CACHE_LONGITUDE, CACHE_LATITUDE } from '@/config/cache.js';
  567. import couponListWindow from '@/components/couponListWindow';
  568. import giftDrawer from '../components/giftDrawer';
  569. import tuiModal from '@/components/tui-modal/index.vue';
  570. import baseDrawer from '@/components/tui-drawer/tui-drawer.vue';
  571. import emptyPage from '@/components/emptyPage.vue';
  572. import { toLogin } from '@/libs/login.js';
  573. import { mapGetters } from 'vuex';
  574. import colors from '@/mixins/color';
  575. import { HTTP_REQUEST_URL } from '@/config/app';
  576. import { Debounce } from '@/utils/validate.js';
  577. export default {
  578. components: {
  579. couponListWindow,
  580. giftDrawer,
  581. tuiModal,
  582. baseDrawer,
  583. emptyPage
  584. },
  585. mixins: [colors],
  586. data() {
  587. return {
  588. imgHost: HTTP_REQUEST_URL,
  589. sysHeight: sysHeight,
  590. addressInfoArea: [],
  591. cityShow: 2,
  592. display: false,
  593. timeranges: [],
  594. isShow: false,
  595. giveData: {
  596. give_integral: 0,
  597. give_coupon: []
  598. },
  599. giveCartInfo: [],
  600. confirm: [], //自定义留言
  601. id: 0,
  602. isAddress: false,
  603. textareaStatus: true,
  604. formContent: '',
  605. payType: 'weixin', //支付方式
  606. openType: 1, //优惠券打开方式 1=使用
  607. active: 0, //支付方式切换
  608. coupon: {
  609. coupon: false,
  610. list: [],
  611. statusTile: '立即使用'
  612. }, //优惠券组件
  613. showAddressDrawer: false, //地址组件
  614. addressInfo: {}, //地址信息
  615. pinkId: 0, //拼团id
  616. addressId: 0, //地址id
  617. couponId: 0, //优惠券id
  618. cartId: '', //购物车id
  619. type: 0, //活动类型
  620. activityId: 0, //活动ID
  621. BargainId: 0,
  622. combinationId: 0,
  623. seckillId: 0,
  624. discountId: 0,
  625. userInfo: {}, //用户信息
  626. mark: '', //备注信息
  627. couponTitle: '请选择', //优惠券
  628. coupon_price: 0, //优惠券抵扣金额
  629. promotions_detail: [], //优惠活动金额明细
  630. useIntegral: false, //是否使用积分
  631. integral_price: 0, //积分抵扣金额
  632. integral: 0,
  633. ChangePrice: 0, //使用积分抵扣变动后的金额
  634. formIds: [], //收集formid
  635. status: 0,
  636. is_address: false,
  637. shippingType: 0,
  638. system_store: {},
  639. storePostage: 0,
  640. mydata: {},
  641. storeList: [],
  642. store_self_mention: 0,
  643. cartInfo: [],
  644. priceGroup: {},
  645. animated: false,
  646. totalPrice: 0,
  647. totalIntegral: 0,
  648. integralRatio: '0',
  649. orderKey: '',
  650. offlinePostage: '',
  651. isAuto: false, //没有授权的不会自动授权
  652. isShowAuth: false, //是否隐藏授权
  653. from: '',
  654. news: 1,
  655. integral_ratio_status: 1,
  656. header_type: '',
  657. pay_close: false,
  658. noCoupon: 0,
  659. valid_count: 0,
  660. discount_id: 0,
  661. store_id: 0,
  662. product_type: 1,
  663. newImg: [],
  664. isDisplay: 0,
  665. goodsType: 0,
  666. timerangesIndex: 0,
  667. isFocus: false,
  668. latitude: '',
  669. longitude: '',
  670. showGiftDrawer: false,
  671. svip_status: false,
  672. svip_price: 0,
  673. contactsFocus: false,
  674. telFocus: false,
  675. userId: 0,
  676. addressList: [],
  677. addressActive: 0,
  678. userPhone: '',
  679. showPayDrawer: false,
  680. isCash: 0,
  681. deliveryType: 1,
  682. isStore: false
  683. };
  684. },
  685. computed: {
  686. ...mapGetters(['isLogin']),
  687. giftCount() {
  688. let count = 0;
  689. if (this.giveCartInfo.length) {
  690. count = this.giveCartInfo.length;
  691. }
  692. if (this.giveData.give_coupon.length) {
  693. count = count + this.giveData.give_coupon.length;
  694. }
  695. if (this.giveData.give_integral > 0) {
  696. count = count + 1;
  697. }
  698. return count;
  699. },
  700. canSubmit() {
  701. if (
  702. (this.shippingType == 0 && this.addressInfo.city) ||
  703. (this.shippingType == 1 && this.userInfo.real_name && this.userInfo.phone && this.userId != 0) ||
  704. (this.shippingType == 1 && this.userId == 0)
  705. ) {
  706. return true;
  707. } else {
  708. return false;
  709. }
  710. },
  711. currentAddress() {
  712. let address = this.addressList.find(item => {
  713. return item.id == this.addressId;
  714. });
  715. return address || this.addressList[0] || {};
  716. },
  717. currentStore() {
  718. let store = this.storeList.find(item => {
  719. return item.id == this.store_id;
  720. });
  721. return store || this.storeList[0] || {};
  722. },
  723. },
  724. watch: {
  725. currentStore(newValue, oldValue) {
  726. this.store_id = newValue.id;
  727. },
  728. currentAddress(newValue, oldValue) {
  729. this.addressInfo = newValue;
  730. }
  731. },
  732. onLoad: function (options) {
  733. this.getLocation();
  734. // #ifdef H5
  735. this.from = this.$wechat.isWeixin() ? 'weixin' : 'weixinh5';
  736. // #endif
  737. // #ifdef MP
  738. this.from = 'routine';
  739. // #endif
  740. if (!options.cartId)
  741. return this.$util.Tips(
  742. {
  743. title: '请选择要购买的商品'
  744. },
  745. {
  746. tab: 3,
  747. url: 1
  748. }
  749. );
  750. this.cartId = options.cartId;
  751. this.userId = options.uid ? parseInt(options.uid) : 0;
  752. this.news = options.news;
  753. this.is_address = options.is_address ? true : false;
  754. this.deliveryType = options.delivery_type || '1';
  755. this.store_id = options.store_id || 0;
  756. this.addressId = options.addressId || 0;
  757. // #ifndef APP-PLUS
  758. this.textareaStatus = true;
  759. // #endif
  760. if (this.isLogin) {
  761. this.checkShipping();
  762. // this.getAddressInfo();
  763. // this.getConfirm();
  764. } else {
  765. toLogin();
  766. }
  767. },
  768. /**
  769. * 生命周期函数--监听页面显示
  770. */
  771. onShow() {
  772. uni.$on('refresh', (data) => {
  773. this.addressInfo.province = data.address.province;
  774. this.$set(this.addressInfo, 'city', data.address.city);
  775. this.addressInfo.district = data.address.district;
  776. this.addressInfo.street = data.address.street;
  777. this.addressInfo.detail = data.detail;
  778. this.addressInfo.real_name = data.real_name;
  779. this.addressInfo.phone = data.phone;
  780. this.addressInfo.id = 0;
  781. this.showAddressDrawer = false;
  782. });
  783. },
  784. methods: {
  785. goPay(type) {
  786. this.isCash = type;
  787. this.formVerify();
  788. },
  789. getLocation() {
  790. uni.getLocation({
  791. type: 'gcj02',
  792. success: (res) => {
  793. this.latitude = res.latitude;
  794. this.longitude = res.longitude;
  795. }
  796. });
  797. },
  798. /**
  799. * 获取门店列表数据
  800. */
  801. getList: function () {
  802. let data = {
  803. page: 1,
  804. limit: 100,
  805. // product_id: this.productId,
  806. is_store:'', //查找所有门店列表
  807. // latitude: this.latitude,
  808. // longitude: this.longitude
  809. };
  810. storeListApi(data)
  811. .then((res) => {
  812. let list = res.data.list.list || [];
  813. this.$set(this, 'storeList', list);
  814. })
  815. .catch((err) => {});
  816. },
  817. computedPrice: function () {
  818. let shippingType = this.shippingType;
  819. postOrderComputed(this.orderKey, this.userId, {
  820. addressId: this.addressInfo.id,
  821. useIntegral: this.useIntegral ? 1 : 0,
  822. couponId: this.priceGroup.couponPrice == 0 ? 0 : this.couponId,
  823. shipping_type: parseInt(shippingType) + 1,
  824. payType: this.payType,
  825. cartId: this.cartId,
  826. store_id: this.store_id,
  827. })
  828. .then((res) => {
  829. let result = res.data.result;
  830. if (result) {
  831. this.totalPrice = result.payPrice;
  832. this.totalIntegral = result.usedIntegral;
  833. this.integral_price = result.deductionPrice;
  834. this.coupon_price = result.couponPrice;
  835. this.promotions_detail = result.promotionsDetail;
  836. this.integral = this.useIntegral ? result.surplusIntegral : this.userInfo.integral;
  837. this.$set(this.priceGroup, 'storePostage', shippingType == 1 ? 0 : result.pay_postage);
  838. this.$set(this.priceGroup, 'storePostageDiscount', result.storePostageDiscount);
  839. }
  840. })
  841. .catch((err) => {
  842. return this.$util.Tips({
  843. title: err
  844. });
  845. });
  846. },
  847. addressType: function (e,value) {
  848. let index = e;
  849. this.shippingType = parseInt(index);
  850. this.deliveryType = value;
  851. // if (index == 1) {
  852. // this.getList();
  853. // } else {
  854. // this.getConfirm();
  855. // }
  856. this.getConfirm();
  857. },
  858. bindPickerChange: function (e) {
  859. let value = e.detail.value;
  860. this.shippingType = value;
  861. this.computedPrice();
  862. },
  863. ChangCouponsClone: function () {
  864. this.$set(this.coupon, 'coupon', false);
  865. },
  866. /**
  867. * 处理点击优惠券后的事件
  868. *
  869. */
  870. ChangCoupons: function (index) {
  871. let list = this.coupon.list;
  872. if (list[index].is_use) {
  873. list[index].use_title = '';
  874. list[index].is_use = 0;
  875. this.couponTitle = '请选择';
  876. this.couponId = 0;
  877. } else {
  878. list[index].use_title = '不使用';
  879. list[index].is_use = 1;
  880. this.couponTitle = list[index].title;
  881. this.couponId = list[index].id;
  882. }
  883. this.$set(this.coupon, 'coupon', false);
  884. this.$set(this.coupon, 'list', list);
  885. this.getConfirm(1);
  886. },
  887. ruleToggle(index) {
  888. this.coupon.list[index].ruleshow = !this.coupon.list[index].ruleshow;
  889. },
  890. /**
  891. * 使用积分抵扣
  892. */
  893. ChangeIntegral: function () {
  894. this.useIntegral = !this.useIntegral;
  895. this.computedPrice();
  896. },
  897. bindHideKeyboard: function (e) {
  898. this.mark = e.detail.value;
  899. },
  900. // 对象转数组
  901. objToArr(data) {
  902. let obj = Object.keys(data);
  903. let m = obj.map((key) => data[key]);
  904. return m;
  905. },
  906. /**
  907. * 获取当前订单详细信息
  908. *
  909. */
  910. getConfirm: function (numType) {
  911. let that = this;
  912. let shippingType = parseInt(this.shippingType) + 1;
  913. let addressId = 0,
  914. storeid;
  915. if (shippingType == 1) {
  916. addressId = that.addressInfo.id;
  917. storeid = 0;
  918. } else {
  919. addressId = '';
  920. storeid = that.store_id;
  921. }
  922. let body = {
  923. cartId: that.cartId,
  924. new: that.news,
  925. shipping_type: shippingType,
  926. addressId: that.addressId,
  927. store_id: that.store_id,
  928. };
  929. orderConfirm(this.userId, body)
  930. .then((res) => {
  931. if (res.data.upgrade_addr == 1) {
  932. that.id = res.data.addressInfo.id;
  933. this.isAddress = true;
  934. }
  935. that.$set(that, 'goodsType', res.data.type);
  936. that.$set(that, 'userInfo', res.data.userInfo);
  937. that.$set(that, 'userPhone', res.data.userInfo.phone);
  938. that.$set(that, 'integral', res.data.userInfo.integral);
  939. that.$set(that, 'integralRatio', res.data.integralRatio);
  940. that.$set(that, 'offlinePostage', res.data.offlinePostage);
  941. that.$set(that, 'orderKey', res.data.orderKey);
  942. that.$set(that, 'valid_count', res.data.valid_count);
  943. that.$set(that, 'discount_id', res.data.discount_id);
  944. that.$set(that, 'priceGroup', res.data.priceGroup);
  945. that.$set(that, 'type', parseInt(res.data.type));
  946. that.$set(that, 'activityId', parseInt(res.data.activityId));
  947. that.$set(that, 'seckillId', parseInt(res.data.seckill_id));
  948. that.$set(that, 'BargainId', parseInt(res.data.bargain_id));
  949. that.$set(that, 'combinationId', parseInt(res.data.combination_id));
  950. that.$set(that, 'discountId', parseInt(res.data.discount_id));
  951. that.$set(that, 'integral_ratio_status', res.data.integral_ratio_status);
  952. that.$set(that, 'store_self_mention', res.data.store_self_mention);
  953. that.$set(that, 'svip_status', res.data.svip_status);
  954. that.$set(that, 'svip_price', res.data.svip_price);
  955. that.giveData.give_integral = res.data.give_integral;
  956. that.giveData.give_coupon = res.data.give_coupon;
  957. let cartInfo = res.data.cartInfo;
  958. let cartObj = [],
  959. giftObj = [];
  960. cartInfo.forEach((item) => {
  961. if (item.is_gift == 1) {
  962. giftObj.push(item);
  963. } else {
  964. cartObj.push(item);
  965. }
  966. });
  967. that.$set(that, 'cartInfo', cartObj);
  968. that.$set(that, 'giveCartInfo', giftObj);
  969. let giveType = -1;
  970. giftObj.forEach((item) => {
  971. if (item.product_type == 0) {
  972. return (giveType = 0);
  973. }
  974. });
  975. that.$set(that, 'product_type', res.data.product_type == 0 || giveType == 0 ? 0 : 1);
  976. that.$set(that, 'ChangePrice', that.totalPrice);
  977. that.getCouponList();
  978. that.computedPrice();
  979. that.$set(that, 'totalPrice', that.$util.$h.Add(parseFloat(res.data.priceGroup.totalPrice), parseFloat(res.data.priceGroup.storePostage)));
  980. })
  981. .catch((err) => {
  982. return this.$util.Tips({
  983. title: err
  984. });
  985. });
  986. },
  987. /**
  988. * 获取当前金额可用优惠券
  989. *
  990. */
  991. getCouponList: function () {
  992. let that = this;
  993. let data = {
  994. cartId: this.cartId,
  995. new: this.news,
  996. shipping_type: that.$util.$h.Add(that.shippingType, 1),
  997. // store_id: that.system_store ? that.system_store.id : 0
  998. store_id: that.store_id
  999. };
  1000. getCouponsOrderPrice(this.userId, data)
  1001. .then((res) => {
  1002. res.data.map((item) => {
  1003. this.$set(item, 'ruleshow', false);
  1004. });
  1005. that.$set(that.coupon, 'list', res.data);
  1006. that.openType = 1;
  1007. })
  1008. .catch((err) => {
  1009. return that.$util.Tips({
  1010. title: err
  1011. });
  1012. });
  1013. },
  1014. /*
  1015. * 获取默认收货地址或者获取某条地址信息
  1016. */
  1017. getAddressInfo() {
  1018. adminUserAddressList(this.userId, { page: 1, limit: 10 })
  1019. .then((res) => {
  1020. this.addressList = res.data;
  1021. // if (res.data.length) {
  1022. // this.addressInfo = res.data[0];
  1023. // }
  1024. })
  1025. .catch((err) => {
  1026. // uni.hideLoading();
  1027. this.$util.Tips({
  1028. title: err
  1029. });
  1030. });
  1031. },
  1032. showMaoLocation() {
  1033. // uni.openLocation({
  1034. // latitude: parseFloat(this.system_store.longitude),
  1035. // longitude: parseFloat(this.system_store.latitude),
  1036. // scale: 8,
  1037. // name: this.system_store.name,
  1038. // address: this.system_store.address + this.system_store.detailed_address
  1039. // });
  1040. this.isStore = true
  1041. },
  1042. couponTap: function () {
  1043. this.coupon.coupon = true;
  1044. this.coupon.list.forEach((item, index) => {
  1045. if (item.id == this.couponId) {
  1046. item.is_use = 1;
  1047. } else {
  1048. item.is_use = 0;
  1049. }
  1050. });
  1051. this.$set(this.coupon, 'list', this.coupon.list);
  1052. },
  1053. car: function () {
  1054. let that = this;
  1055. that.animated = false;
  1056. },
  1057. onAddress() {
  1058. this.showAddressDrawer = true;
  1059. },
  1060. goAddressPages() {
  1061. uni.navigateTo({
  1062. url: '/pages/users/user_address/addClient'
  1063. });
  1064. },
  1065. tapAddress(item, index) {
  1066. this.addressActive = index;
  1067. this.addressInfo = item;
  1068. this.addressId = item.id;
  1069. },
  1070. payment: function (data) {
  1071. let that = this;
  1072. orderCreate(that.orderKey, that.userId, data)
  1073. .then((res) => {
  1074. this.$Cache.clear('touristId');
  1075. uni.hideLoading();
  1076. if(!this.isCash){
  1077. uni.redirectTo({
  1078. url: `/pages/behalf/cashier/index?order_id=${res.data.result.order_id}&uid=${this.userId}`
  1079. });
  1080. }else{
  1081. let payData = {
  1082. uni: res.data.result.order_id,
  1083. paytype: this.isCash==1?'cash':'yue',
  1084. quitUrl: ''
  1085. };
  1086. getCashierApi(this.userId,payData).then(response=>{
  1087. if(response.data.status == 'SUCCESS'){
  1088. return this.$util.Tips({
  1089. title: '支付成功'
  1090. }, {
  1091. tab: 5,
  1092. url: '/pages/admin/orderDetail/index?id=' + res.data.result.order_id
  1093. });
  1094. } else if (response.data.status == 'PAY_DEFICIENCY') {
  1095. return this.$util.Tips({
  1096. title: response.msg
  1097. });
  1098. }
  1099. }).catch(err=>{
  1100. return this.$util.Tips({
  1101. title: err
  1102. })
  1103. })
  1104. }
  1105. })
  1106. .catch((err) => {
  1107. uni.hideLoading();
  1108. return that.$util.Tips({
  1109. title: err
  1110. });
  1111. });
  1112. },
  1113. clickTextArea() {
  1114. this.$refs.textarea.focus();
  1115. },
  1116. bindDateChange: function (e, index) {
  1117. this.confirm[index].value = e.target.value;
  1118. },
  1119. bindTimeChange: function (e, index) {
  1120. this.confirm[index].value = e.target.value;
  1121. },
  1122. bindSelectChange: function (e, index, item) {
  1123. this.confirm[index].value = item.wordsConfig.list[e.detail.value].val;
  1124. },
  1125. getTimeranges(index) {
  1126. this.isShow = true;
  1127. this.timerangesIndex = index;
  1128. },
  1129. confrim(e) {
  1130. this.isShow = false;
  1131. this.confirm[this.timerangesIndex].value = e.time;
  1132. let arrayNew = [];
  1133. e.val.forEach((item) => {
  1134. arrayNew.push(Number(item));
  1135. });
  1136. this.timeranges = arrayNew;
  1137. },
  1138. formVerify() {
  1139. let that = this;
  1140. if (!that.addressInfo.real_name && !that.shippingType && !that.product_type)
  1141. return that.$util.Tips({
  1142. title: '请选择收货地址'
  1143. });
  1144. if (that.shippingType == 1 && this.userId != 0) {
  1145. if (that.userInfo.real_name == '' || that.userInfo.phone == '') {
  1146. return that.$util.Tips({
  1147. title: '请填写联系人或联系人电话'
  1148. });
  1149. }
  1150. if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(that.userInfo.phone)) {
  1151. return that.$util.Tips({
  1152. title: '请填写正确的手机号'
  1153. });
  1154. }
  1155. if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(that.userInfo.real_name)) {
  1156. return that.$util.Tips({
  1157. title: '请填写您的真实姓名'
  1158. });
  1159. }
  1160. if (that.storeList.length == 0)
  1161. return that.$util.Tips({
  1162. title: '暂无门店,请选择其他方式'
  1163. });
  1164. }
  1165. if (this.type == 4 && this.totalIntegral > this.userInfo.integral) {
  1166. return that.$util.Tips({
  1167. title: '您的积分不足以抵扣本单积分金额'
  1168. });
  1169. }
  1170. this.SubOrder();
  1171. },
  1172. SubOrder: function (e) {
  1173. let that = this,
  1174. data = {};
  1175. data = {
  1176. real_name: that.shippingType == 0 ? that.addressInfo.real_name : that.userInfo.real_name,
  1177. phone: that.shippingType == 0 ? that.addressInfo.phone : that.userInfo.phone,
  1178. address:
  1179. that.shippingType == 0 ? that.addressInfo.province + that.addressInfo.city + that.addressInfo.district + that.addressInfo.street + that.addressInfo.detail : '',
  1180. addressId: that.deliveryType == 2 ? 0 : that.addressInfo.id,
  1181. couponId: that.priceGroup.couponPrice == 0 ? 0 : that.couponId,
  1182. useIntegral: that.useIntegral,
  1183. mark: that.mark,
  1184. shipping_type: that.$util.$h.Add(that.shippingType, 1),
  1185. cartId: that.cartId,
  1186. store_id: that.deliveryType == 1 ? 0 : that.store_id,
  1187. };
  1188. uni.showLoading({
  1189. title: '订单支付中'
  1190. });
  1191. // #ifdef MP
  1192. openPaySubscribe().then(() => {
  1193. that.payment(data);
  1194. });
  1195. // #endif
  1196. // #ifndef MP
  1197. that.payment(data);
  1198. // #endif
  1199. },
  1200. // 去详情页
  1201. goDetail(id) {
  1202. uni.navigateTo({
  1203. url: `/pages/goods_details/index?id=${id}&fromType=1`
  1204. });
  1205. },
  1206. addCart(type, item) {
  1207. if (type == 1 && item.productInfo.stock == item.cart_num)
  1208. return this.$util.Tips({
  1209. title: '该产品没有更多库存了!'
  1210. });
  1211. adminCartNum(this.userId, {
  1212. id: item.id,
  1213. number: type ? item.cart_num + 1 : item.cart_num - 1,
  1214. tourist_uid: this.userId == 0 ? this.$Cache.get('touristId') : ''
  1215. })
  1216. .then((res) => {
  1217. this.getConfirm();
  1218. setTimeout(() => {
  1219. this.computedPrice();
  1220. }, 500);
  1221. })
  1222. .catch((err) => {
  1223. return this.$util.Tips({
  1224. title: err
  1225. });
  1226. });
  1227. },
  1228. setValue: Debounce(function (e, item) {
  1229. let num = e.detail.value;
  1230. if (item.productInfo.limit_num > 0 && num > item.productInfo.limit_num) {
  1231. item.cart_num = item.productInfo.limit_num;
  1232. return this.$util.Tips({
  1233. title: '购物车数量不能大于限购数量'
  1234. });
  1235. }
  1236. adminCartNum(this.userId, {
  1237. id: item.id,
  1238. number: num,
  1239. tourist_uid: this.userId == 0 ? this.$Cache.get('touristId') : ''
  1240. })
  1241. .then((res) => {
  1242. this.getConfirm();
  1243. setTimeout(() => {
  1244. this.computedPrice();
  1245. }, 500);
  1246. })
  1247. .catch((err) => {
  1248. return this.$util.Tips({
  1249. title: err
  1250. });
  1251. });
  1252. }),
  1253. goPage(type, url) {
  1254. if (type == 1) {
  1255. uni.navigateTo({
  1256. url
  1257. });
  1258. } else if (type == 2) {
  1259. uni.switchTab({
  1260. url
  1261. });
  1262. } else if (type == 3) {
  1263. uni.navigateBack();
  1264. }
  1265. },
  1266. closeDrawer() {
  1267. this.showGiftDrawer = false;
  1268. },
  1269. hideModal() {
  1270. this.isAddress = false;
  1271. },
  1272. handleClick(e) {
  1273. let index = e.index;
  1274. if (index == 1) {
  1275. uni.navigateTo({
  1276. url: '/pages/users/user_address/index?id=' + this.id + '&new=' + this.news + '&cartId=' + this.cartId + '&pinkId=' + this.pinkId + '&couponId=' + this.couponId
  1277. });
  1278. }
  1279. this.isAddress = false;
  1280. },
  1281. clearInput(type) {
  1282. if (type == 0) {
  1283. this.userInfo.real_name = '';
  1284. this.contactsFocus = true;
  1285. } else {
  1286. this.userInfo.phone = '';
  1287. this.telFocus = true;
  1288. }
  1289. },
  1290. payDrawerChange(){
  1291. this.showPayDrawer = true;
  1292. },
  1293. checkShipping() {
  1294. check_shipping({
  1295. cartId: this.cartId,
  1296. new: this.news,
  1297. uid: this.userId,
  1298. }).then(res => {
  1299. // 1:快递配送,2:到店自提,3:门店配送
  1300. res.data.type.sort((x,y)=>x - y)//正序
  1301. let isDisplay = res.data.type;
  1302. this.isDisplay = isDisplay;
  1303. // if(isDisplay.indexOf('2') != -1 && isDisplay.indexOf('1') == -1){
  1304. // this.shippingType = 1
  1305. // }
  1306. if (!this.isDisplay.includes(this.deliveryType)) {
  1307. this.deliveryType = this.isDisplay[0] || '1';
  1308. }
  1309. if (this.deliveryType == '2') {
  1310. this.shippingType = 1
  1311. } else{
  1312. this.shippingType = 0
  1313. }
  1314. // 商城配送
  1315. if ([1].includes(this.deliveryType)) {
  1316. this.store_id = 0;
  1317. }
  1318. // 门店自提
  1319. if ([2].includes(this.deliveryType)) {
  1320. this.addressId = 0;
  1321. }
  1322. // 门店自提、门店配送
  1323. if(isDisplay.indexOf('2') != -1 || isDisplay.indexOf('3') != -1){
  1324. this.getList();
  1325. }
  1326. // 商城配送、门店配送
  1327. if(isDisplay.indexOf('1') !=-1 || isDisplay.indexOf('3') !=-1){
  1328. this.getAddressInfo();
  1329. // if(isDisplay.indexOf('1') !=-1 && isDisplay.length == 1){
  1330. // this.getConfirm();
  1331. // }
  1332. }
  1333. this.getConfirm();
  1334. });
  1335. },
  1336. closeStore(){
  1337. this.isStore = false;
  1338. },
  1339. goStore(){
  1340. this.isStore = true;
  1341. },
  1342. // 切换门店
  1343. tapStore(item,index){
  1344. // this.active = index;
  1345. // this.$set(this, 'system_store', item);
  1346. this.$set(this, 'store_id', item.id);
  1347. this.store_id = item.id;
  1348. this.isStore = false;
  1349. },
  1350. closePayDrawer(){
  1351. this.showPayDrawer = false;
  1352. },
  1353. closeAddressDrawer(){
  1354. this.showAddressDrawer = false;
  1355. },
  1356. }
  1357. };
  1358. </script>
  1359. <style lang="scss" scoped>
  1360. /deep/.uni-date-x--border {
  1361. border: 0;
  1362. }
  1363. /deep/.uni-icons {
  1364. font-size: 0 !important;
  1365. }
  1366. /deep/.uni-date-x {
  1367. color: #999;
  1368. font-size: 15px;
  1369. }
  1370. /deep/.uni-date__x-input {
  1371. font-size: 15px;
  1372. }
  1373. .height-add {
  1374. height: calc(176rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1375. height: calc(176rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1376. }
  1377. /deep/uni-checkbox[disabled] .uni-checkbox-input {
  1378. background-color: #eee;
  1379. }
  1380. .alipaysubmit {
  1381. display: none;
  1382. }
  1383. .abs-lt .active-card {
  1384. &:after {
  1385. right: -67rpx;
  1386. }
  1387. }
  1388. .abs-ct .active-card{
  1389. &:after{
  1390. right: -67rpx;
  1391. }
  1392. &:before{
  1393. left:-67rpx;
  1394. transform:scaleX(-1);
  1395. }
  1396. }
  1397. .abs-rt .active-card {
  1398. &:after {
  1399. left: -67rpx;
  1400. -moz-transform: scaleX(-1);
  1401. -webkit-transform: scaleX(-1);
  1402. -o-transform: scaleX(-1);
  1403. transform: scaleX(-1);
  1404. }
  1405. }
  1406. .active-card {
  1407. &:after,&:before{
  1408. content: '';
  1409. width: 67rpx;
  1410. height: 76rpx;
  1411. background-image: url('@/static/img/nav_circle_left.png');
  1412. background-size: contain;
  1413. background-repeat: no-repeat;
  1414. position: absolute;
  1415. bottom: 0;
  1416. z-index: 4;
  1417. }
  1418. }
  1419. .line {
  1420. width: 680rpx;
  1421. margin: auto;
  1422. height: 3rpx;
  1423. }
  1424. .line image {
  1425. width: 100%;
  1426. height: 100%;
  1427. display: block;
  1428. }
  1429. .address {
  1430. background-color: #fff;
  1431. box-sizing: border-box;
  1432. }
  1433. .add1 {
  1434. padding: 36rpx 20rpx 32rpx 32rpx;
  1435. }
  1436. .add2 {
  1437. padding: 36rpx 20rpx 0 32rpx;
  1438. }
  1439. .footer .transparent {
  1440. opacity: 0;
  1441. }
  1442. ._map {
  1443. width: 188rpx;
  1444. height: 104rpx;
  1445. background-size: 100%;
  1446. background-repeat: no-repeat;
  1447. }
  1448. .store_distance {
  1449. position: absolute;
  1450. top: 0;
  1451. left: 30rpx;
  1452. width: 130rpx;
  1453. height: 36rpx;
  1454. box-shadow: 0px 0px 16rpx 0px rgba(0, 0, 0, 0.0784);
  1455. }
  1456. .store_logo {
  1457. position: absolute;
  1458. top: 50%;
  1459. left: 68rpx;
  1460. width: 52rpx;
  1461. height: 52rpx;
  1462. box-shadow: 0px 0px 16rpx 0px rgba(0, 0, 0, 0.0784);
  1463. padding: 6rpx;
  1464. transform: translateY(-50%);
  1465. &:after {
  1466. content: '';
  1467. position: absolute;
  1468. bottom: -10rpx;
  1469. left: 50%;
  1470. transform: translateX(-50%);
  1471. width: 0;
  1472. height: 0;
  1473. border-top: 20rpx solid #fff;
  1474. border-right: 20rpx solid transparent;
  1475. border-left: 20rpx solid transparent;
  1476. }
  1477. }
  1478. .w-322 {
  1479. width: 322rpx;
  1480. }
  1481. .w-450 {
  1482. width: 450rpx;
  1483. }
  1484. .order_goods ~ .order_goods {
  1485. margin-top: 32rpx;
  1486. }
  1487. .cell input {
  1488. width: 450rpx;
  1489. text-align: right;
  1490. }
  1491. .cell .radio {
  1492. margin: 0 22rpx;
  1493. padding: 10rpx 0;
  1494. }
  1495. .cell ~ .cell {
  1496. margin-top: 40rpx;
  1497. }
  1498. .SemiBold {
  1499. font-family: SemiBold;
  1500. }
  1501. .Regular {
  1502. font-family: 'Regular';
  1503. }
  1504. .placeholder {
  1505. color: #ccc;
  1506. }
  1507. .asterisk {
  1508. position: absolute;
  1509. color: red;
  1510. left: 0;
  1511. }
  1512. .gradient-box {
  1513. background: linear-gradient(180deg, $primary-admin 0%, $primary-admin 52%, rgba(233, 51, 35, 0) 100%);
  1514. }
  1515. .w-50p {
  1516. width: 50%;
  1517. }
  1518. .h-auto {
  1519. height: auto;
  1520. }
  1521. .text-primary-con {
  1522. color: $primary-admin;
  1523. }
  1524. .bg-primary {
  1525. background: $primary-admin;
  1526. }
  1527. .bg-primary-light {
  1528. background: $light-primary-admin;
  1529. }
  1530. .rd-lt-24rpx {
  1531. border-radius: 24rpx 0 0 0;
  1532. }
  1533. .rd-rt-24rpx {
  1534. border-radius: 0 24rpx 0 0;
  1535. }
  1536. .z-2 {
  1537. z-index: 2;
  1538. }
  1539. .gold {
  1540. color: #dca658;
  1541. }
  1542. .over {
  1543. width: 104rpx;
  1544. height: 104rpx;
  1545. border-radius: 50%;
  1546. background-color: rgba(51, 51, 51, 0.6);
  1547. position: absolute;
  1548. top: 50%;
  1549. left: 50%;
  1550. transform: translate(-50%, -50%);
  1551. }
  1552. .con-border {
  1553. border: 1px solid $primary-admin;
  1554. }
  1555. .clear-btn {
  1556. border-radius: 0 12rpx 0 12rpx;
  1557. }
  1558. .svip {
  1559. width: 56rpx;
  1560. height: 26rpx;
  1561. background: linear-gradient(270deg, #484643 0%, #1f1b17 100%);
  1562. border-radius: 100rpx;
  1563. font-size: 18rpx;
  1564. font-weight: 600;
  1565. color: #fddaa4;
  1566. margin-left: 10rpx;
  1567. }
  1568. .vip {
  1569. width: 64rpx;
  1570. height: 26rpx;
  1571. background: #fef0d9;
  1572. border: 1px solid #facc7d;
  1573. border-radius: 50rpx;
  1574. font-size: 18rpx;
  1575. font-weight: 500;
  1576. color: #dfa541;
  1577. margin-left: 10rpx;
  1578. .iconfont {
  1579. font-size: 20rpx;
  1580. margin-right: 4rpx;
  1581. }
  1582. }
  1583. .icon-a-ic_CompleteSelect {
  1584. color: $primary-admin;
  1585. }
  1586. .pay-card{
  1587. padding: 28rpx 32rpx;
  1588. }
  1589. .btn-border{
  1590. border: 1rpx solid $primary-admin;;
  1591. }
  1592. .product-window {
  1593. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  1594. padding-bottom: env(safe-area-inset-bottom);///兼容 IOS>11.2/
  1595. &.store{
  1596. background-color: #F5F5F5;
  1597. border-radius: 40rpx 40rpx 0 0;
  1598. // transform: translate3d(0, 0, 0);
  1599. // z-index: 102;
  1600. // margin: 0;
  1601. }
  1602. .storeTitle{
  1603. text-align: center;
  1604. height: 100rpx;
  1605. line-height: 100rpx;
  1606. font-size: 32rpx;
  1607. font-weight: 500;
  1608. color: #282828;
  1609. position: relative;
  1610. .iconfont{
  1611. position: absolute;
  1612. font-size: 35rpx;
  1613. right: 30rpx;
  1614. }
  1615. }
  1616. .scroll-view{
  1617. max-height: 690rpx;
  1618. }
  1619. .storeList{
  1620. .item{
  1621. width: 690rpx;
  1622. background: #FFFFFF;
  1623. border-radius: 12rpx;
  1624. margin: 0 auto 20rpx auto;
  1625. padding: 28rpx 30rpx;
  1626. border: 1px solid #fff;
  1627. position: relative;
  1628. overflow: hidden;
  1629. &::before {
  1630. display: none;
  1631. content: "";
  1632. position: absolute;
  1633. top: 0;
  1634. right: 0;
  1635. border: 36rpx solid #2A7EFB;
  1636. border-bottom-color: transparent;
  1637. border-left-color: transparent;
  1638. }
  1639. .icon-ic_complete {
  1640. display: none;
  1641. position: absolute;
  1642. top: 8rpx;
  1643. right: 8rpx;
  1644. font-size: 32rpx;
  1645. color: #FFFFFF;
  1646. }
  1647. &.on{
  1648. border-color: #2A7EFB;
  1649. &::before {
  1650. display: block;
  1651. }
  1652. .icon-ic_complete {
  1653. display: block;
  1654. }
  1655. }
  1656. .icon-xuanzhong6{
  1657. position: absolute;
  1658. right: -6rpx;
  1659. bottom: -6rpx;
  1660. color: var(--view-theme);
  1661. font-size: 54rpx;
  1662. }
  1663. .name{
  1664. font-weight: 500;
  1665. color: #333333;
  1666. font-size: 28rpx;
  1667. }
  1668. .time{
  1669. font-weight: 400;
  1670. color: #888888;
  1671. font-size: 22rpx;
  1672. margin-top: 15rpx;
  1673. .iconfont{
  1674. font-size: 20rpx;
  1675. margin-right: 8rpx;
  1676. }
  1677. }
  1678. .address{
  1679. font-weight: 400;
  1680. color: #888888;
  1681. font-size: 22rpx;
  1682. margin-top: 13rpx;
  1683. .iconfont{
  1684. font-size: 20rpx;
  1685. margin-right: 8rpx;
  1686. margin-top: 6rpx;
  1687. }
  1688. .info{
  1689. width: 590rpx;
  1690. line-height: 1.5;
  1691. }
  1692. }
  1693. }
  1694. }
  1695. }
  1696. .address {
  1697. .default{
  1698. width: 60rpx;
  1699. height: 34rpx;
  1700. background: #E9F2FE;
  1701. border-radius: 8rpx;
  1702. color: #2A7EFB;
  1703. font-size: 22rpx;
  1704. }
  1705. }
  1706. .font-num {
  1707. color: #2A7EFB !important;
  1708. }
  1709. .border-top {
  1710. position: relative;
  1711. padding-top: 32rpx;
  1712. padding-bottom: 32rpx;
  1713. &::before{
  1714. content: "";
  1715. position: absolute;
  1716. top: 0%;
  1717. left: 24rpx;
  1718. right: 24rpx;
  1719. border-top: 1rpx solid #EEEEEE;
  1720. transform: rotateZ(360deg);
  1721. }
  1722. .flex-1{
  1723. position: relative;
  1724. min-width: 0;
  1725. &::before{
  1726. content: "";
  1727. position: absolute;
  1728. top: 0;
  1729. left: 0;
  1730. bottom: 0;
  1731. border-left: 1rpx solid #EEEEEE;
  1732. transform: rotateZ(360deg);
  1733. }
  1734. &:first-child{
  1735. padding-right: 28rpx;
  1736. &::before{
  1737. display: none;
  1738. }
  1739. }
  1740. }
  1741. }
  1742. .border-line {
  1743. position: relative;
  1744. &::before{
  1745. content: "";
  1746. position: absolute;
  1747. top: 0%;
  1748. left: 24rpx;
  1749. right: 24rpx;
  1750. border-top: 1rpx solid #EEEEEE;
  1751. }
  1752. }
  1753. </style>