index.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  1. <template>
  2. <view :data-theme="theme">
  3. <!-- #ifndef APP-PLUS -->
  4. <view class='cart_nav'>
  5. <nav-bar :navTitle='navTitle' iconColor='#fff' :isBackgroundColor="true" ref="navBarRef"></nav-bar>
  6. </view>
  7. <!-- #endif -->
  8. <view class='order-submission' @touchstart="touchStart">
  9. <!-- 拼团切换样式 -->
  10. <view class="allAddress"
  11. v-if="Number(orderInfoVo.secondType)<5 && Number(orderInfoVo.secondType)!==2&&orderInfoVo.type==2">
  12. <view class="h-96 relative"
  13. v-if="orderInfoVo.merchantInfoList[0].deliveryMethodMer.split(',').length==2">
  14. <view class="w-full abs-lb rd-t-24rpx flex bg--w111-fff">
  15. <view class="flex-center w-50p h-76 fs-28 rd-lt-24rpx z-2"
  16. :class="shippingType == 1 ? 'bg--w111-fff font_color' : 'bg-primary-light'"
  17. @tap="addressType(1)">商家配送</view>
  18. <view class="flex-center w-50p h-76 fs-28 rd-rt-24rpx z-2"
  19. :class="shippingType == 2 ? 'bg--w111-fff font_color' : 'bg-primary-light'"
  20. @tap="addressType(2)">到店自提</view>
  21. </view>
  22. <view class="w-50p rd-t-24rpx bg--w111-fff h-96" :class="shippingType == 1 ? 'abs-lt' : 'abs-rt'">
  23. <view class="w-full h-full relative active-card"></view>
  24. </view>
  25. </view>
  26. <view class='address group acea-row row-between-wrapper' :class="orderInfoVo.merchantInfoList[0].deliveryMethodMer.split(',').length == 1?'bd-r-14':'' " @tap='onAddress'
  27. v-if='shippingType == 1'>
  28. <view class='addressCon' v-if="addressInfo.realName">
  29. <view class='name acea-row'>
  30. <view class="line1 select-name">{{addressInfo.realName}}</view>
  31. <view class='phone'>{{addressInfo.phone}}</view>
  32. </view>
  33. <view class="acea-row">
  34. <view class="line1"><text class='default font_color' v-if="addressInfo.isDefault">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{ addressInfo.street}}{{addressInfo.detail}}</view>
  35. </view>
  36. </view>
  37. <view class='addressCon' v-else>
  38. <view class='setaddress'>设置收货地址</view>
  39. </view>
  40. <view class='iconfont icon-jiantou mt30'></view>
  41. </view>
  42. <view class='address group acea-row row-between-wrapper' v-if='shippingType == 2' :class="orderInfoVo.merchantInfoList[0].deliveryMethodMer.split(',').length == 1?'bd-r-14':'' ">
  43. <view class='addressCon' v-for="(item, index) in merchantOrderVoList" :key="index"
  44. @click="goMap(item)">
  45. <view class='name acea-row'>
  46. <view class="line1 select-name">{{item.merName}}</view>
  47. <view class='phone'>{{item.phone}}</view>
  48. </view>
  49. <view class="acea-row">
  50. <view class="line1">{{item.addressDetail}}</view>
  51. </view>
  52. </view>
  53. <view class='iconfont icon-jiantou mt30'></view>
  54. </view>
  55. <view class='line'>
  56. <image src='../static/images/line.png'></image>
  57. </view>
  58. </view>
  59. <view v-if="Number(orderInfoVo.secondType)<5 && Number(orderInfoVo.secondType)!==2&&orderInfoVo.type!=2"
  60. class="allAddress">
  61. <view class='address acea-row row-between-wrapper' @tap='onAddress'>
  62. <view class='addressCon' v-if="addressInfo.realName">
  63. <view class='name'>{{addressInfo.realName}}
  64. <text class='phone'>{{addressInfo.phone}}</text>
  65. </view>
  66. <view class="acea-row line2">
  67. <text class='default font_color' v-if="addressInfo.isDefault">[默认]</text>
  68. <text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{ addressInfo.street}}{{addressInfo.detail}}</text>
  69. </view>
  70. </view>
  71. <view class='addressCon' v-else>
  72. <view class='setaddress'>设置收货地址</view>
  73. </view>
  74. <view class='iconfont icon-jiantou'></view>
  75. </view>
  76. <view class='line'>
  77. <image src='../static/images/line.png'></image>
  78. </view>
  79. </view>
  80. <view class="borderPad">
  81. <view v-for="(item, index) in merchantOrderVoList" :key="index" class='wrapper borRadius14'>
  82. <orderGoods :cartInfo="item.orderInfoList" :orderInfo="item" :secondType="secondType"
  83. :orderProNum="orderProNum" :isShowBtn="false">
  84. </orderGoods>
  85. <view v-show="Number(orderInfoVo.secondType)===0&&orderInfoVo.type!=2" class="boxs">
  86. <view class='item acea-row row-between-wrapper'>
  87. <view>配送方式</view>
  88. <view v-if="item.deliveryMethodMer.length===3 && item.takeTheirSwitch"
  89. class='discount acea-row row-middle'>
  90. <text
  91. @tap="openShowBox(item,index)">{{item.shippingType === 1 ? '商家配送' : '到店自提'}}</text>
  92. <text @tap="openShowBox(item,index)" class='iconfont icon-jiantou'></text>
  93. </view>
  94. <view v-else class='discount'>
  95. {{item.shippingType === 1 ? '商家配送' : '到店自提'}}
  96. </view>
  97. </view>
  98. <view v-if="item.shippingType == 2 && item.takeTheirSwitch" class="store-address acea-row">
  99. <view>
  100. <view class="name phone">{{item.phone}}</view>
  101. <view class="name w-480px">{{item.addressDetail}}</view>
  102. </view>
  103. <view class="map" @click="goMap(item)">
  104. <text class="iconfont icon-chakanditu"></text>
  105. <view class="map_text">查看地图</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view v-show="item.shippingType === 1 && Number(orderInfoVo.secondType)===0"
  110. class='item acea-row row-between-wrapper'>
  111. <view>快递费用</view>
  112. <view v-if='!item.freightFee || item.freightFee == 0' class="noCoupon">免运费</view>
  113. <view v-else class='money'>¥{{item.freightFee}}</view>
  114. </view>
  115. <view v-show="item.svipDiscountPrice != 0&&orderInfoVo.type!=2"
  116. class='item acea-row row-between-wrapper'>
  117. <view>会员优惠</view>
  118. <view class='money'>-¥{{item.svipDiscountPrice}}</view>
  119. </view>
  120. <view v-if="isProductType" class='item acea-row row-between-wrapper'>
  121. <view>店铺优惠</view>
  122. <view v-if="item.merCouponUserList && item.merCouponUserList.length"
  123. @tap='couponTap(item.merCouponUserList,item.merId, index)'>
  124. <view class='discount acea-row row-between-wrapper'>
  125. <text
  126. class="couponTitle line1">{{item.couponFee==0?`有${item.merCouponUserList.length}张优惠券可选`:`-¥${item.couponFee}`}}</text>
  127. <text class='iconfont icon-jiantou'></text>
  128. </view>
  129. </view>
  130. <view v-else class="noCoupon">暂无优惠券</view>
  131. </view>
  132. <view class='item acea-row row-between-wrapper' v-if="textareaStatus" style="height: auto;">
  133. <view>买家留言</view>
  134. <input placeholder-class='placeholder' value="" name="mark" placeholder='选填买家留言'
  135. v-model="item.remark" @input='bindHideKeyboard(item.remark,index)'
  136. style="width: 484rpx;text-align: right;"></input>
  137. </view>
  138. </view>
  139. <!--商品关联系统表单-->
  140. <view v-if="orderInfoVo.systemFormValue && orderInfoVo.systemFormValue.length"
  141. class='wrapper borRadius14'>
  142. <systemFrom v-model="orderInfoVo.systemFormValue"></systemFrom>
  143. <!-- <systemFrom :orderForm="orderInfoVo.systemFormValue" ></systemFrom>-->
  144. </view>
  145. <view class='moneyList borRadius14'>
  146. <view v-show="secondType !== ProductTypeEnum.Integral" class='item acea-row row-between-wrapper'>
  147. <view>商品总价</view>
  148. <view class='money'>¥{{orderInfoVo.proTotalFee || 0}}</view>
  149. </view>
  150. <view class='item acea-row row-between-wrapper' v-if="parseInt(orderInfoVo.freightFee) > 0">
  151. <view>运费:</view>
  152. <view class='money'>+¥{{orderInfoVo.freightFee}}</view>
  153. </view>
  154. <view v-show="orderInfoVo.svipDiscountPrice != 0 &&orderInfoVo.type!=2"
  155. class='item acea-row row-between-wrapper'>
  156. <view>会员优惠</view>
  157. <view class='money'>-¥{{orderInfoVo.svipDiscountPrice}}</view>
  158. </view>
  159. <view class='item acea-row row-between-wrapper' v-if="parseInt(merCouponFee) > 0 && isProductType">
  160. <view>店铺优惠</view>
  161. <view class='money'>-¥{{merCouponFee}}</view>
  162. </view>
  163. <view v-if="isProductType" class='item acea-row row-between-wrapper'>
  164. <view>平台优惠</view>
  165. <view v-if="orderInfoVo.platCouponUserList && orderInfoVo.platCouponUserList.length"
  166. class='discount acea-row row-between-wrapper'
  167. @tap='couponTap(orderInfoVo.platCouponUserList,0)'>
  168. <text
  169. class="couponTitle line1">{{platCouponFee==0?`有${orderInfoVo.platCouponUserList.length}张优惠券可选`:`-¥${platCouponFee}`}}</text>
  170. <text class='iconfont icon-jiantou'></text>
  171. </view>
  172. <view v-else class="noCoupon">暂无优惠券</view>
  173. </view>
  174. <view class='item acea-row row-between-wrapper'
  175. v-if="orderInfoVo.integralDeductionSwitch && isProductType">
  176. <view>积分抵扣</view>
  177. <view class='discount acea-row row-middle'>
  178. <view class="mr14"> {{isUseIntegral ? "使用积分":"当前积分"}}
  179. <text
  180. class='num font_color'>{{ isUseIntegral ? orderInfoVo.surplusIntegral : orderInfoVo.userIntegral}}</text>
  181. </view>
  182. <checkbox-group @change="ChangeIntegral">
  183. <checkbox :checked='isUseIntegral ? true : false'
  184. :disabled="orderInfoVo.userIntegral==0 && !isUseIntegral" />
  185. </checkbox-group>
  186. </view>
  187. </view>
  188. <view class='item acea-row row-between-wrapper' v-if="Number(orderInfoVo.deductionPrice) > 0">
  189. <view>抵扣金额</view>
  190. <view class='money'>-¥{{orderInfoVo.deductionPrice}}</view>
  191. </view>
  192. </view>
  193. <view style='height:120rpx;'></view>
  194. </view>
  195. <view class='footer acea-row row-between-wrapper'>
  196. <view class="acea-row row-middle">合计:
  197. <!-- 积分价格 -->
  198. <PointsPrice v-if="orderInfoVo.secondType === ProductTypeEnum.Integral" :pointsPrice="orderInfoVo"
  199. :pointsGoodsStyle="hotPointsStyle"></PointsPrice>
  200. <!-- 其他价格 -->
  201. <text v-else class='price_color'>¥{{orderInfoVo.payFee || 0}}</text>
  202. </view>
  203. <view class='settlement' style='z-index:100' @tap="SubOrder">
  204. {{secondType === ProductTypeEnum.Integral?"确认兑换":"立即下单"}}
  205. </view>
  206. </view>
  207. </view>
  208. <couponListWindow :coupon='coupon' @ChangCouponsClone="ChangCouponsClone" :openType='openType'
  209. @ChangCoupons="ChangCoupons" :orderShow="orderShow" :surplusFee="surplusFee"></couponListWindow>
  210. <view v-if="isShowBox">
  211. <checkDelivery :isShowBox="isShowBox" :activeObj="activeObj" @close="boxClose"
  212. @confirmBtn="getShippingType">
  213. </checkDelivery>
  214. </view>
  215. <!-- 满员提示 -->
  216. <uni-popup ref="sh_popup" background-color="#fff" borderRadius="10px">
  217. <view class="sh_popup-content">
  218. <view class="sh_popup_title">
  219. 提示
  220. </view>
  221. <view class="sh_popup_text">
  222. 该团已拼成,是否自行开团?
  223. </view>
  224. <view class="sh_popup_btn">
  225. <view class="no_btn btn font_color" @click="popupClose">返回首页</view>
  226. <view class="yes_btn btn" @click="toAudit">去开团</view>
  227. </view>
  228. </view>
  229. </uni-popup>
  230. </view>
  231. </template>
  232. <script>
  233. // +----------------------------------------------------------------------
  234. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  235. // +----------------------------------------------------------------------
  236. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  237. // +----------------------------------------------------------------------
  238. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  239. // +----------------------------------------------------------------------
  240. // | Author: CRMEB Team <admin@crmeb.com>
  241. // +----------------------------------------------------------------------
  242. import {
  243. getCouponsOrderPrice,
  244. orderCreate,
  245. postOrderComputed,
  246. loadPreOrderApi
  247. } from '@/api/order.js';
  248. import {
  249. getAddressDetail,
  250. getAddressDefault
  251. } from '@/api/user.js';
  252. // import {
  253. // openPaySubscribe
  254. // } from '@/utils/SubscribeMessage.js';
  255. import {
  256. takeTheirApi
  257. } from '@/api/merchant.js';
  258. import {
  259. CACHE_LONGITUDE,
  260. CACHE_LATITUDE
  261. } from '@/config/cache.js';
  262. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  263. import couponListWindow from '../components/couponListWindow';
  264. import orderGoods from '../components/orderGoods'
  265. import navBar from '@/components/navBar';
  266. import checkDelivery from '../components/checkDelivery/index.vue';
  267. import systemFrom from '../components/systemFrom/index.vue';
  268. import PointsPrice from '@/components/PointsPrice.vue';
  269. import {
  270. toLogin
  271. } from '@/libs/login.js';
  272. import {
  273. mapGetters
  274. } from "vuex";
  275. import {
  276. Debounce
  277. } from '@/utils/validate.js'
  278. import {
  279. ProductTypeEnum,
  280. ProductMarketingTypeEnum
  281. } from "../../../enums/productEnums";
  282. import orderPay from "@/mixins/OrderPay.js";
  283. let app = getApp();
  284. /**
  285. * 积分商品推荐样式
  286. */
  287. const hotPointsStyle = {
  288. iconStyle: {
  289. width: '28rpx',
  290. height: '28rpx'
  291. },
  292. priceStyle: {
  293. fontSize: '28rpx',
  294. },
  295. unitStyle: {
  296. fontSize: '26rpx',
  297. },
  298. }
  299. export default {
  300. mixins: [orderPay],
  301. components: {
  302. navBar,
  303. couponListWindow,
  304. orderGoods,
  305. checkDelivery,
  306. systemFrom,
  307. PointsPrice
  308. },
  309. computed: {
  310. // 是否可以使用优惠券、积分抵扣。 基础订单/云盘订单,卡密,虚拟,可以使用优惠券、积分抵扣
  311. isProductType() {
  312. return this.type === ProductMarketingTypeEnum.Normal && this.secondType !== this.ProductTypeEnum
  313. .Integral && this.secondType !== this.ProductTypeEnum.Video
  314. },
  315. ...mapGetters(['productType', 'isLogin'])
  316. },
  317. data() {
  318. return {
  319. hotPointsStyle: hotPointsStyle,
  320. ProductMarketingTypeEnum: ProductMarketingTypeEnum,
  321. ProductTypeEnum: ProductTypeEnum,
  322. navTitle: '提交订单',
  323. homeTop: 20,
  324. orderShow: 'orderShow', //下单页面使用优惠券组件不展示tab切换页
  325. textareaStatus: true,
  326. openType: 1, //优惠券打开方式 1=使用
  327. couponShow: false,
  328. coupon: {
  329. coupon: false,
  330. list: [], //商户优惠券
  331. statusTile: '立即使用',
  332. couponMoney: 0
  333. }, //优惠券组件
  334. addressInfo: {}, //地址信息
  335. addressId: 0, //地址id
  336. orderMerchantRequestList: [], //商户属性集合
  337. cartId: '', //购物车id
  338. userInfo: {}, //用户信息
  339. mark: '', //买家留言
  340. couponFee: '请选择', //优惠券
  341. coupon_price: 0, //优惠券抵扣金额
  342. isUseIntegral: false, //是否使用积分
  343. integral_price: 0, //积分抵扣金额
  344. integral: 0,
  345. ChangePrice: 0, //使用积分抵扣变动后的金额
  346. formIds: [], //收集formid
  347. status: 0,
  348. is_address: false,
  349. toPay: false, //修复进入支付时页面隐藏从新刷新页面
  350. shippingType: 1,
  351. storePostage: 0,
  352. contacts: '',
  353. contactsTel: '',
  354. mydata: {},
  355. merchantOrderVoList: [],
  356. priceGroup: {},
  357. animated: false,
  358. totalPrice: 0,
  359. integralRatio: "0",
  360. orderKey: "",
  361. // usableCoupon: {},
  362. offlinePostage: "",
  363. news: true,
  364. again: false,
  365. addAgain: false,
  366. bargain: false, //是否是砍价
  367. combination: false, //是否是拼团
  368. secKill: false, //是否是秒杀
  369. orderInfoVo: {},
  370. addressList: [], //地址列表数据
  371. orderProNum: 0,
  372. orderNo: '', //预下单订单号
  373. theme: app.globalData.theme,
  374. addressChangeId: 0,
  375. isShowBox: false,
  376. activeObj: {},
  377. activeIndex: 0, // 选中店铺索引
  378. type: 0, // 0-基础订单,1-秒杀订单,2-拼团订单
  379. secondType: 0, //订单二级类型:0-普通订单,1-积分订单,2-虚拟订单,4-视频号订单,5-云盘订单,6-卡密订单
  380. merId: 0, //商户id,用于判断商户优惠券还是平台优惠券,平台优惠券商户id为0
  381. platUserCouponObj: {}, //平台优惠券对象,用于缓存数据使用
  382. platUserCouponId: 0, //平台优惠券id
  383. platCouponFee: '', //平台优惠券金额
  384. merCouponFee: '', //店铺优惠券总金额
  385. surplusFee: 0, //商品总金额-商户优惠券金额=平台端可使用优惠券的门槛
  386. merUserCouponId: 0, //店铺使用优惠券的id
  387. tempCouponObj: {}, //临时优惠券数据
  388. merchangtInfo: {}, //商户信息
  389. orderForm: [], //系统表单配置的数据
  390. orderExtend: {}, //提交接口表单的数据
  391. productId:'',
  392. groupActivityId:''
  393. };
  394. },
  395. watch: {
  396. isLogin: {
  397. handler: function(newV, oldV) {
  398. if (newV) {
  399. this.getloadPreOrder();
  400. }
  401. },
  402. deep: true
  403. },
  404. },
  405. onLoad(options) {
  406. this.orderNo = options.orderNo || 0;
  407. this.addressChangeId = parseInt(options.addressId) || 0;
  408. this.is_address = options.is_address ? true : false;
  409. if (this.isLogin) {
  410. this.getloadPreOrder();
  411. } else {
  412. toLogin();
  413. }
  414. },
  415. /**
  416. * 生命周期函数--监听页面显示
  417. */
  418. onShow: function() {
  419. let _this = this
  420. this.textareaStatus = true;
  421. },
  422. methods: {
  423. //滚动
  424. touchStart() {
  425. this.$refs.navBarRef.currentPage = false;
  426. },
  427. popupClose() {
  428. this.$refs.sh_popup.close()
  429. uni.switchTab({
  430. url: '/pages/index/index'
  431. });
  432. },
  433. //去开团
  434. toAudit() {
  435. this.$refs.sh_popup.close()
  436. uni.navigateTo({
  437. url:`/pages/goods/goods_details/index?id=${this.productId}&mt=2&gd=${this.groupActivityId}`
  438. })
  439. },
  440. addressType(type) {
  441. this.merchantOrderVoList[0].shippingType = type
  442. this.getShippingType(this.merchantOrderVoList[0])
  443. if(type==2){
  444. setTimeout(()=>{
  445. this.shippingType = type
  446. },300)
  447. }else{
  448. this.shippingType = type
  449. }
  450. },
  451. //选择配送方式回调
  452. getShippingType(item) {
  453. this.orderMerchantRequestList[this.activeIndex].shippingType = item.shippingType;
  454. this.$set(this.merchantOrderVoList[this.activeIndex], 'shippingType', item.shippingType);
  455. if (item.shippingType === 2) this.getTakeTheir(item.merId);
  456. this.computedPrice();
  457. this.isShowBox = false;
  458. },
  459. getTakeTheir(id) {
  460. takeTheirApi(id).then(res => {
  461. this.merchangtInfo = res.data; //商户信息
  462. this.$set(this.merchantOrderVoList[this.activeIndex], 'addressDetail', res.data.addressDetail);
  463. this.$set(this.merchantOrderVoList[this.activeIndex], 'phone', res.data.phone);
  464. this.$set(this.merchantOrderVoList[this.activeIndex], 'latitude', res.data.latitude);
  465. this.$set(this.merchantOrderVoList[this.activeIndex], 'longitude', res.data.longitude);
  466. }).catch(err => {
  467. return this.$util.Tips({
  468. title: err
  469. });
  470. })
  471. },
  472. //查看内置地图
  473. goMap(item) {
  474. let that = this;
  475. //#ifdef H5
  476. if (that.$wechat.isWeixin() === true) {
  477. that.$wechat.seeLocation({
  478. latitude: parseFloat(this.merchantOrderVoList[this.activeIndex].latitude),
  479. longitude: parseFloat(this.merchantOrderVoList[this.activeIndex].longitude),
  480. name: item.merName,
  481. address: item.addressDetail ? item.addressDetail : '',
  482. }).then(res => {
  483. console.log('success');
  484. })
  485. } else {
  486. //#endif
  487. uni.openLocation({
  488. latitude: parseFloat(this.merchantOrderVoList[this.activeIndex].latitude),
  489. longitude: parseFloat(this.merchantOrderVoList[this.activeIndex].longitude),
  490. scale: 8,
  491. name: item.merName,
  492. address: item.addressDetail ? item.addressDetail : '',
  493. success: function(res) {
  494. that.go_map = true
  495. },
  496. });
  497. // #ifdef H5
  498. }
  499. //#endif
  500. },
  501. // 打开配送方式弹窗
  502. openShowBox(item, index) {
  503. this.activeObj = item
  504. this.activeIndex = index
  505. this.isShowBox = true
  506. },
  507. boxClose() {
  508. this.isShowBox = false
  509. },
  510. // 订单详情
  511. getloadPreOrder: function() {
  512. loadPreOrderApi(this.orderNo).then(res => {
  513. let orderInfoVo = res.data;
  514. if(orderInfoVo.merchantInfoList[0].orderInfoList[0].groupBuyActivityId){
  515. this.groupActivityId=orderInfoVo.merchantInfoList[0].orderInfoList[0].groupBuyActivityId
  516. this.productId=orderInfoVo.merchantInfoList[0].orderInfoList[0].productId
  517. }
  518. if (orderInfoVo.merchantInfoList[0].deliveryMethodMer.split(',').length == 1) {
  519. this.shippingType = orderInfoVo.merchantInfoList[0].deliveryMethodMer
  520. }
  521. this.orderInfoVo = {
  522. ...orderInfoVo,
  523. systemFormValue: orderInfoVo.systemFormValue ? this.$util.objToArr(JSON.parse(
  524. orderInfoVo.systemFormValue)) : []
  525. };
  526. this.merchantOrderVoList = orderInfoVo.merchantInfoList; //商户端数据
  527. this.platCouponFee = orderInfoVo.platCouponFee; //平台优惠券总金额
  528. this.platUserCouponId = orderInfoVo.platUserCouponId;
  529. this.merCouponFee = orderInfoVo.merCouponFee; //店铺优惠券总金额
  530. orderInfoVo.merchantInfoList.map(item => {
  531. this.orderMerchantRequestList.push({
  532. shippingType: item.shippingType,
  533. merId: item.merId,
  534. remark: '',
  535. userCouponId: item.userCouponId
  536. })
  537. if (item.shippingType === 2) this.getTakeTheir(item.merId)
  538. item.addressDetail = this.merchangtInfo.addressDetail;
  539. item.phone = this.merchangtInfo.phone;
  540. item.latitude = this.merchangtInfo.latitude;
  541. item.longitude = this.merchangtInfo.longitude;
  542. });
  543. this.type = orderInfoVo.type; //订单类型
  544. this.secondType = orderInfoVo
  545. .secondType; //订单二级类型:0-普通订单,1-积分订单,2-虚拟订单,4-视频号订单,5-云盘订单,6-卡密订单
  546. this.orderProNum = orderInfoVo.orderProNum;
  547. if (orderInfoVo.addressId && this.addressChangeId === 0) {
  548. this.addressId = orderInfoVo.addressId;
  549. } else {
  550. this.addressId = this.addressChangeId;
  551. if (orderInfoVo.addressId != this.addressChangeId && this.addressChangeId > 0)
  552. this.computedPrice();
  553. }
  554. this.getaddressInfo();
  555. }).catch(err => {
  556. uni.navigateTo({
  557. url: '/pages/goods/order_list/index'
  558. });
  559. })
  560. },
  561. // 计算订单价格
  562. computedPrice: function() {
  563. uni.showLoading({
  564. title: '加载中...'
  565. });
  566. let shippingType = this.shippingType;
  567. postOrderComputed({
  568. addressId: this.addressId,
  569. isUseIntegral: this.isUseIntegral,
  570. orderMerchantRequestList: this.orderMerchantRequestList,
  571. preOrderNo: this.orderNo,
  572. platUserCouponId: this.platUserCouponId
  573. }).then(res => {
  574. let data = res.data;
  575. //usedIntegral 使用的积分,surplusIntegral 剩余积分
  576. data.merOrderResponseList.map((item, i) => {
  577. this.merchantOrderVoList[i].freightFee = item.freightFee
  578. this.merchantOrderVoList[i].couponFee = item.couponFee
  579. });
  580. this.orderInfoVo.platCouponUserList = data.platCouponUserList; //平台优惠券数据
  581. this.merCouponFee = data.merCouponFee; //店铺优惠券总金额
  582. this.orderInfoVo.couponFee = data.couponFee; //优惠券优惠金额
  583. this.orderInfoVo.userIntegral = data.surplusIntegral; //使用的积分
  584. this.orderInfoVo.deductionPrice = data.deductionPrice;
  585. this.orderInfoVo.freightFee = data.freightFee;
  586. this.orderInfoVo.payFee = data.payFee;
  587. this.orderInfoVo.proTotalFee = data.proTotalFee;
  588. this.orderInfoVo.surplusIntegral = data.usedIntegral; //剩余积分
  589. this.platCouponFee = data.platCouponFee; //平台优惠金额
  590. this.orderInfoVo.integralDeductionSwitch = data.integralDeductionSwitch //积分抵扣开关
  591. //选中商户优惠券的值
  592. this.merchantOrderVoList[this.activeIndex].merCouponUserList = data.merOrderResponseList[
  593. this.activeIndex].merCouponUserList; //商户数据
  594. this.merUserCouponId = data.merOrderResponseList[this.activeIndex]
  595. .userCouponId //店铺使用优惠券的id
  596. uni.hideLoading();
  597. }).catch(err => {
  598. uni.hideLoading();
  599. return this.$util.Tips({
  600. title: err
  601. });
  602. });
  603. },
  604. bindPickerChange: function(e) {
  605. let value = e.detail.value;
  606. this.shippingType = value;
  607. this.computedPrice();
  608. },
  609. /**
  610. * 使用积分抵扣
  611. */
  612. ChangeIntegral: function() {
  613. this.isUseIntegral = !this.isUseIntegral;
  614. this.computedPrice();
  615. },
  616. bindHideKeyboard: function(e, i) {
  617. this.orderMerchantRequestList[i].remark = e;
  618. },
  619. /*
  620. * 获取默认收货地址或者获取某条地址信息
  621. */
  622. getaddressInfo: function() {
  623. if (this.addressId) {
  624. getAddressDetail(this.addressId).then(res => {
  625. if (res.data) {
  626. res.data.isDefault = res.data.isDefault;
  627. this.addressInfo = res.data || {};
  628. }
  629. })
  630. }
  631. },
  632. //关闭优惠券弹窗
  633. ChangCouponsClone: function(coupon) {
  634. this.coupon.list = [];
  635. this.coupon.coupon = false;
  636. },
  637. //点击优惠券弹窗确定后
  638. ChangCoupons: function(item) {
  639. this.coupon.list = [];
  640. if (item.merId === 0) {
  641. this.platUserCouponId = item.isChecked ? item.id : 0;
  642. } else {
  643. this.$set(this.orderMerchantRequestList[this.activeIndex], 'userCouponId', item.isChecked ? item
  644. .id : 0);
  645. }
  646. this.coupon.coupon = false;
  647. this.computedPrice();
  648. },
  649. /**
  650. * 选择优惠券
  651. * @param {Object} item优惠券对象
  652. * @param {Number} merId商户id
  653. * @param {Number} index索引
  654. */
  655. couponTap: function(item, merId, index) {
  656. this.$set(this.coupon, 'list', item);
  657. this.$set(this.coupon, 'couponMoney', item);
  658. this.coupon.coupon = true;
  659. this.merId = merId; //商户id
  660. if (merId !== 0) this.activeIndex = index;
  661. this.coupon.loading = false;
  662. },
  663. /**
  664. * 获取当前金额可用优惠券
  665. *
  666. */
  667. getCouponList: function(item, merId) {
  668. this.$set(this.coupon, 'list', item);
  669. this.openType = 1;
  670. uni.hideLoading();
  671. },
  672. onAddress: function() {
  673. uni.navigateTo({
  674. url: '/pages/address/user_address_list/index?orderNo=' + this.orderNo
  675. });
  676. },
  677. realName: function(e) {
  678. this.contacts = e.detail.value;
  679. },
  680. phone: function(e) {
  681. this.contactsTel = e.detail.value;
  682. },
  683. payment: function(data) {
  684. let that = this;
  685. // #ifdef MP
  686. uni.checkBeforeAddOrder({
  687. success(res) {
  688. console.log("下单前置检查 成功:", JSON.stringify(res));
  689. const traceId = res.data.traceId;
  690. data.traceId = traceId;
  691. that.onCreate(data);
  692. },
  693. fail(res) {
  694. console.log("下单前置检查 失败:", JSON.stringify(res));
  695. }
  696. });
  697. // #endif
  698. // #ifndef MP
  699. that.onCreate(data);
  700. // #endif
  701. },
  702. onCreate(data) {
  703. orderCreate(data).then(res => {
  704. if(res.data.groupBuyIsFull==1){
  705. uni.hideLoading();
  706. return this.$refs.sh_popup.open('center')
  707. }
  708. if (this.secondType === this.ProductTypeEnum.Integral && this.orderInfoVo.payFee == 0) {
  709. // 积分商品并且支付金额为0时,直接默认走余额支付的逻辑,订单支付成功跳转到支付结果页
  710. this.changeOrderPay(res.data.orderNo, 'yue', 'yue', 'integral', 'integral', '0')
  711. } else {
  712. // 其他商品走正常流程,去支付收银台页面
  713. this.getToPayment(this.secondType, res.data)
  714. }
  715. uni.hideLoading();
  716. }).catch(err=>{
  717. uni.hideLoading();
  718. return this.$util.Tips({
  719. title: err
  720. });
  721. });
  722. },
  723. //立即下单
  724. SubOrder: Debounce(function(e) {
  725. let that = this,
  726. data = {};
  727. let flag = false;
  728. that.orderMerchantRequestList.map(function(v) {
  729. if (v.shippingType === 1 && !that.addressId && that.orderInfoVo.secondType !== 2) {
  730. flag = true;
  731. }
  732. });
  733. if (flag) {
  734. that.$util.Tips({
  735. title: '请选择收货地址'
  736. });
  737. return;
  738. }
  739. let systemFormValue = Array.from(this.orderInfoVo.systemFormValue)
  740. let systemFormData = []
  741. for (var i = 0; i < systemFormValue.length; i++) {
  742. let curdata = systemFormValue[i]
  743. if (['radios'].indexOf(curdata.name) == -1 && (curdata.titleShow.val || (['uploadPicture',
  744. 'dateranges'
  745. ].indexOf(curdata.name) == -1 && curdata.value && curdata.value.trim()))) {
  746. if ((curdata.name === 'texts' && curdata.valConfig.tabVal == 0) || ['dates', 'times',
  747. 'selects', 'citys', 'checkboxs'
  748. ].indexOf(curdata.name) != -1) {
  749. if (!curdata.value || (curdata.value && !curdata.value.trim())) {
  750. return that.$util.Tips({
  751. title: `请填写${curdata.titleConfig.val}`
  752. });
  753. }
  754. }
  755. if (curdata.name === 'timeranges') {
  756. if (!curdata.value) {
  757. return that.$util.Tips({
  758. title: `请选择${curdata.titleConfig.val}`
  759. });
  760. }
  761. }
  762. if (curdata.name === 'dateranges') {
  763. if (!curdata.value.length) {
  764. return that.$util.Tips({
  765. title: `请选择${curdata.titleConfig.val}`
  766. });
  767. }
  768. }
  769. if (curdata.name === 'texts' && curdata.valConfig.tabVal == 4) {
  770. if (curdata.value <= 0) {
  771. return that.$util.Tips({
  772. title: `请填写大于0的${curdata.titleConfig.val}`
  773. });
  774. }
  775. }
  776. if (curdata.name === 'texts' && curdata.valConfig.tabVal == 3) {
  777. if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(curdata.value)) {
  778. return that.$util.Tips({
  779. title: `请填写正确的${curdata.titleConfig.val}`
  780. });
  781. }
  782. }
  783. if (curdata.name === 'texts' && curdata.valConfig.tabVal == 1) {
  784. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(curdata.value)) {
  785. return that.$util.Tips({
  786. title: `请填写正确的${curdata.titleConfig.val}`
  787. });
  788. }
  789. }
  790. if (curdata.name === 'texts' && curdata.valConfig.tabVal == 2) {
  791. if (!
  792. /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i
  793. .test(curdata.value)) {
  794. return that.$util.Tips({
  795. title: `请填写正确的${curdata.titleConfig.val}`
  796. });
  797. }
  798. }
  799. if (curdata.name === 'uploadPicture') {
  800. if (!curdata.value.length) {
  801. return that.$util.Tips({
  802. title: `请上传${curdata.titleConfig.val}`
  803. });
  804. }
  805. }
  806. }
  807. this.orderExtend[curdata.key] = curdata.value
  808. systemFormData.push({
  809. title: curdata.titleConfig.val,
  810. value: curdata.value,
  811. })
  812. }
  813. data = {
  814. addressId: that.addressId,
  815. orderMerchantRequestList: that.orderMerchantRequestList,
  816. isUseIntegral: that.isUseIntegral,
  817. preOrderNo: that.orderNo,
  818. platUserCouponId: this.platUserCouponId,
  819. systemFormId: this.orderInfoVo.systemFormId,
  820. orderExtend: JSON.stringify(systemFormData)
  821. };
  822. uni.showLoading({
  823. title: '订单提交中'
  824. });
  825. that.payment(data);
  826. //// #ifdef MP
  827. // openPaySubscribe().then(() => {
  828. // that.payment(data);
  829. // });
  830. // // #endif
  831. // // #ifndef MP
  832. // that.payment(data);
  833. // // #endif
  834. })
  835. }
  836. }
  837. </script>
  838. <style lang="scss" scoped>
  839. .w-480px{
  840. width: 480rpx;
  841. }
  842. .noCoupon {
  843. color: #999999;
  844. }
  845. .icon-jiantou {
  846. font-size: 26rpx;
  847. color: #515151;
  848. margin-left: 14rpx;
  849. }
  850. .mr14 {
  851. margin-right: 14rpx;
  852. }
  853. .couponTitle {
  854. width: 430rpx;
  855. display: inline-block;
  856. text-align: right;
  857. @include main_color(theme);
  858. }
  859. .store-address {
  860. padding: 20rpx;
  861. margin: 0 24rpx;
  862. background: #F6F6F6;
  863. border-radius: 8rpx;
  864. font-size: 24rpx;
  865. /*垂直居中*/
  866. -webkit-box-align: center;
  867. /*旧版本*/
  868. -moz-box-align: center;
  869. /*旧版本*/
  870. -ms-flex-align: center;
  871. /*混合版本*/
  872. -webkit-align-items: center;
  873. /*新版本*/
  874. align-items: center;
  875. /*新版本*/
  876. .phone {
  877. margin-bottom: 10rpx;
  878. color: #282828;
  879. font-weight: bold;
  880. }
  881. .name {
  882. padding-right: 20rpx;
  883. }
  884. .info {
  885. flex: 1;
  886. }
  887. .line2 {
  888. width: 456rpx !important;
  889. }
  890. .map {
  891. text-align: center;
  892. padding-left: 36rpx;
  893. position: relative;
  894. @include main_color(theme);
  895. &::before {
  896. content: '';
  897. display: inline-block;
  898. width: 2rpx;
  899. height: 42rpx;
  900. background-color: #DDDDDD;
  901. position: absolute;
  902. left: 0;
  903. top: 18rpx;
  904. }
  905. .iconfont {
  906. color: var(--view-theme);
  907. }
  908. .map_text {
  909. color: var(--view-theme);
  910. }
  911. }
  912. }
  913. .font_color {
  914. @include main_color(theme);
  915. }
  916. .price_color {
  917. @include price_color(theme);
  918. }
  919. .line2 {
  920. width: 624rpx;
  921. }
  922. .textR {
  923. text-align: right;
  924. }
  925. .order-submission .line {
  926. width: 100%;
  927. height: 3rpx;
  928. }
  929. .order-submission .line image {
  930. width: 100%;
  931. height: 100%;
  932. display: block;
  933. }
  934. .order-submission .address {
  935. padding: 40rpx 24rpx;
  936. background-color: #fff;
  937. box-sizing: border-box;
  938. }
  939. .order-submission .address .addressCon {
  940. width: 596rpx;
  941. font-size: 26rpx;
  942. color: #666;
  943. }
  944. .order-submission .address .addressCon .name {
  945. font-size: 30rpx;
  946. color: #282828;
  947. font-weight: bold;
  948. // margin-bottom: 10rpx;
  949. }
  950. .order-submission .address .addressCon .name .phone {
  951. margin-left: 50rpx;
  952. }
  953. .order-submission .address .addressCon .default {
  954. margin-right: 12rpx;
  955. }
  956. .order-submission .address .addressCon .setaddress {
  957. color: #333;
  958. font-size: 28rpx;
  959. }
  960. .order-submission .address .iconfont {
  961. color: #707070;
  962. }
  963. .order-submission .allAddress {
  964. width: 100%;
  965. @include index-gradient(theme);
  966. padding: 30rpx 24rpx 0 24rpx;
  967. }
  968. .order-submission .allAddress .address.group {
  969. border-radius: 0;
  970. }
  971. .order-submission .allAddress .address {
  972. max-height: 180rpx;
  973. margin: -2rpx auto 0 auto;
  974. border-radius: 14rpx 14rpx 0 0;
  975. }
  976. .order-submission .allAddress .line {
  977. width: 100%;
  978. margin: 0 auto;
  979. }
  980. .order-submission .wrapper .item .discount .placeholder {
  981. color: #ccc;
  982. }
  983. .order-submission .wrapper {
  984. background-color: #fff;
  985. margin-top: 24rpx;
  986. }
  987. .order-submission .wrapper .item {
  988. padding: 28rpx 24rpx;
  989. font-size: 30rpx;
  990. color: #333333;
  991. }
  992. .order-submission .wrapper .item .discount {
  993. font-size: 30rpx;
  994. color: #333;
  995. }
  996. .order-submission .wrapper .item .discount .iconfont {
  997. color: #515151;
  998. }
  999. .order-submission .wrapper .item .discount .num {
  1000. font-size: 32rpx;
  1001. margin-right: 20rpx;
  1002. }
  1003. .order-submission .wrapper .item .shipping {
  1004. font-size: 30rpx;
  1005. color: #999;
  1006. position: relative;
  1007. padding-right: 58rpx;
  1008. }
  1009. .order-submission .wrapper .item .shipping .iconfont {
  1010. font-size: 35rpx;
  1011. color: #707070;
  1012. position: absolute;
  1013. right: 0;
  1014. top: 50%;
  1015. transform: translateY(-50%);
  1016. margin-left: 30rpx;
  1017. }
  1018. .order-submission .wrapper .item textarea {
  1019. background-color: #f9f9f9;
  1020. width: auto !important;
  1021. height: 140rpx;
  1022. border-radius: 14rpx;
  1023. margin-top: 30rpx;
  1024. padding: 15rpx;
  1025. box-sizing: border-box;
  1026. font-weight: 400;
  1027. }
  1028. .order-submission .wrapper .item .placeholder {
  1029. color: #ccc;
  1030. }
  1031. .order-submission .wrapper .item .list {
  1032. margin-top: 35rpx;
  1033. }
  1034. .order-submission .wrapper .item .list .payItem {
  1035. border: 1px solid #eee;
  1036. border-radius: 14rpx;
  1037. height: 86rpx;
  1038. width: 100%;
  1039. box-sizing: border-box;
  1040. margin-top: 20rpx;
  1041. font-size: 28rpx;
  1042. color: #282828;
  1043. }
  1044. .order-submission .wrapper .item .list .payItem.on {
  1045. // border-color: #fc5445;
  1046. @include coupons_border_color(theme);
  1047. color: $theme-color;
  1048. }
  1049. .order-submission .wrapper .item .list .payItem .name {
  1050. width: 50%;
  1051. text-align: center;
  1052. border-right: 1px solid #eee;
  1053. }
  1054. .order-submission .wrapper .item .list .payItem .name .iconfont {
  1055. width: 44rpx;
  1056. height: 44rpx;
  1057. border-radius: 50%;
  1058. text-align: center;
  1059. line-height: 44rpx;
  1060. background-color: #fe960f;
  1061. color: #fff;
  1062. font-size: 30rpx;
  1063. margin-right: 15rpx;
  1064. }
  1065. .order-submission .wrapper .item .list .payItem .name .iconfont.icon-weixin2 {
  1066. background-color: #41b035;
  1067. }
  1068. .order-submission .wrapper .item .list .payItem .name .iconfont.icon-zhifubao {
  1069. background-color: #00AAEA;
  1070. }
  1071. .order-submission .wrapper .item .list .payItem .tip {
  1072. width: 49%;
  1073. text-align: center;
  1074. font-size: 26rpx;
  1075. color: #aaa;
  1076. }
  1077. .order-submission .moneyList {
  1078. margin-top: 15rpx;
  1079. background-color: #fff;
  1080. padding: 0 30rpx;
  1081. margin-bottom: calc(constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1082. margin-bottom: calc(env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1083. }
  1084. .order-submission .moneyList .item {
  1085. font-size: 30rpx;
  1086. color: #282828;
  1087. height: 96rpx;
  1088. }
  1089. .order-submission .moneyList .item~.item {
  1090. // margin-top: 20rpx;
  1091. }
  1092. .order-submission .moneyList .item .money {
  1093. color: #666666;
  1094. }
  1095. .order-submission .footer {
  1096. width: 100%;
  1097. height: 100rpx;
  1098. background-color: #fff;
  1099. padding: 0 30rpx;
  1100. font-size: 28rpx;
  1101. color: #333;
  1102. box-sizing: border-box;
  1103. position: fixed;
  1104. bottom: 0;
  1105. left: 0;
  1106. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1107. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1108. z-index: 999;
  1109. }
  1110. .order-submission .footer .settlement {
  1111. background-color: #fff;
  1112. font-size: 30rpx;
  1113. color: #fff;
  1114. width: 240rpx;
  1115. height: 70rpx;
  1116. @include main_bg_color(theme);
  1117. border-radius: 50rpx;
  1118. text-align: center;
  1119. line-height: 70rpx;
  1120. }
  1121. .footer .transparent {
  1122. opacity: 0
  1123. }
  1124. /deep/ checkbox .uni-checkbox-input.uni-checkbox-input-checked {
  1125. @include main_bg_color(theme);
  1126. border: none !important;
  1127. color: #fff !important
  1128. }
  1129. /deep/ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  1130. @include main_bg_color(theme);
  1131. border: none !important;
  1132. color: #fff !important;
  1133. margin-right: 0 !important;
  1134. }
  1135. // 切换
  1136. /deep/.uni-date-x--border {
  1137. border: 0;
  1138. }
  1139. /deep/.uni-icons {
  1140. font-size: 0 !important;
  1141. }
  1142. /deep/.uni-date-x {
  1143. color: #999;
  1144. font-size: 15px;
  1145. }
  1146. /deep/.uni-date__x-input {
  1147. font-size: 15px;
  1148. }
  1149. /deep/uni-checkbox[disabled] .uni-checkbox-input {
  1150. background-color: #eee;
  1151. }
  1152. .abs-lt .active-card {
  1153. &:after {
  1154. right: -67rpx;
  1155. }
  1156. }
  1157. .abs-rt .active-card {
  1158. &:after {
  1159. left: -67rpx;
  1160. -moz-transform: scaleX(-1);
  1161. -webkit-transform: scaleX(-1);
  1162. -o-transform: scaleX(-1);
  1163. transform: scaleX(-1);
  1164. }
  1165. }
  1166. .active-card {
  1167. &:after {
  1168. content: "";
  1169. width: 67rpx;
  1170. height: 76rpx;
  1171. background-image: url('../static/images/nav_circle_left.png');
  1172. background-size: contain;
  1173. background-repeat: no-repeat;
  1174. position: absolute;
  1175. bottom: 0;
  1176. z-index: 4;
  1177. }
  1178. }
  1179. .line {
  1180. width: 680rpx;
  1181. margin: auto;
  1182. height: 3rpx;
  1183. }
  1184. .line image {
  1185. width: 100%;
  1186. height: 100%;
  1187. display: block;
  1188. }
  1189. .address {
  1190. background-color: #fff;
  1191. box-sizing: border-box;
  1192. }
  1193. .footer .transparent {
  1194. opacity: 0
  1195. }
  1196. .w-322 {
  1197. width: 322rpx;
  1198. }
  1199. .w-450 {
  1200. width: 450rpx;
  1201. }
  1202. .w-50p {
  1203. width: 50%;
  1204. }
  1205. .h-auto {
  1206. height: auto;
  1207. }
  1208. .bd-r-14 {
  1209. border-radius: 14rpx 14rpx 0 0 !important;
  1210. }
  1211. .mt30{
  1212. margin-top: 30rpx;
  1213. }
  1214. .bg-primary-light {
  1215. @include main_rgba_color(theme);
  1216. }
  1217. .rd-lt-24rpx {
  1218. border-radius: 24rpx 0 0 0;
  1219. }
  1220. .rd-rt-24rpx {
  1221. border-radius: 0 24rpx 0 0;
  1222. }
  1223. .z-2 {
  1224. z-index: 2;
  1225. }
  1226. .gold {
  1227. color: #DCA658;
  1228. }
  1229. .select-name {
  1230. max-width: 300rpx;
  1231. }
  1232. .font-color {
  1233. font-weight: 500 !important;
  1234. }
  1235. /deep/ .uni-popup__wrapper {
  1236. background: #FFFFFF;
  1237. border-radius: 32rpx;
  1238. }
  1239. .sh_popup-content {
  1240. padding: 40rpx;
  1241. .sh_popup_title {
  1242. font-weight: 500;
  1243. font-size: 32rpx;
  1244. color: #333333;
  1245. text-align: center;
  1246. }
  1247. .sh_popup_text {
  1248. font-weight: 400;
  1249. font-size: 30rpx;
  1250. color: #666666;
  1251. text-align: center;
  1252. margin-top: 36rpx;
  1253. }
  1254. .sh_popup_btn {
  1255. display: flex;
  1256. margin-top: 60rpx;
  1257. justify-content: space-between;
  1258. .btn {
  1259. width: 244rpx;
  1260. height: 72rpx;
  1261. border-radius: 50rpx;
  1262. text-align: center;
  1263. line-height: 72rpx;
  1264. }
  1265. .no_btn {
  1266. @include coupons_border_color(theme);
  1267. color: $theme-color;
  1268. margin-right: 32rpx;
  1269. }
  1270. .yes_btn {
  1271. @include main_bg_color(theme);
  1272. color: #FFFFFF;
  1273. }
  1274. }
  1275. }
  1276. </style>