diff --git a/pages/user/user.vue b/pages/user/user.vue index 550a866..c441ac9 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -10,7 +10,7 @@ class="headImg" v-else> {{userInfo.nickname}} - 请登录/注册 > + 请登录/注册 > 个人信息 diff --git a/static/js/request.js b/static/js/request.js index 4b9a3b8..03fc80e 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -2,6 +2,10 @@ import Vue from 'vue'; import store from '@/store'; // 定义 API URL +<<<<<<< HEAD +======= +// const DEV_API_URL = 'https://api.cloud.sz-trip.com'; +>>>>>>> f0f6523fe7690c25b235c63518b27786424d6afb const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index 0ef834d..6cdfb76 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -80,7 +80,7 @@ - + @@ -521,7 +521,7 @@ .btn-list { position: fixed; - z-index: 9999; + z-index: 50; bottom: 0; width: 750rpx; height: 140rpx; diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 1a1bfdf..810f55c 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -17,7 +17,7 @@ - + {{item.name}} @@ -207,7 +207,7 @@ - + {{item.name}} @@ -230,7 +230,7 @@ statusBarHeight: 0, headImg: "https://cgc.js-dyyj.com/uploads/20250513/f8b255f965efcd71b6843e4b72c3f1f3.png", - type_pid: 20, + type_pid: 646, typeParam: [], typeIndex: 0, list:[], diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue index ef36145..6d9d148 100644 --- a/subPackages/techan/order.vue +++ b/subPackages/techan/order.vue @@ -42,7 +42,7 @@ - + 自提点 @@ -105,15 +105,15 @@ - + 优惠券 选择优惠券
- -¥{{coupon.discounts/100}} - -{{coupon.percent}}% + -¥{{coupon.activity.money/100}} + -{{coupon.activity.fold*10}}% >
@@ -203,16 +203,25 @@ export default { popShow: false, // 解决滚动穿透 - addressTitle: '添加收货地址' + addressTitle: '添加收货地址', + + isShoppingCart: false, + }; }, - onLoad() { + onLoad(options) { + if (options.isShoppingCart) { + this.isShoppingCart = options.isShoppingCart + } this.$store.commit("choseCoupon", ""); this.handleOrderGoods() }, onShow() { - this.coupon = this.$store.state.user.coupon + if (!this.isShoppingCart) { + this.coupon = this.$store.state.user.coupon + } + // 更新自提点 uni.$on("updateDataByConnect",this.getDataByConnect) @@ -234,10 +243,11 @@ export default { uni.navigateBack(); return } - + // use_type 0邮寄 1自提 3邮寄或自提 + // is_post 1邮寄 2自提 默认邮寄1 orderList.forEach(v=>{ - v.is_post = v.sInfo.is_post || "1" // 产品自己的方式 - v.is_user_post = v.sInfo.is_post==2?2:"1" // 用户自选方式 + v.is_post = v.sInfo.use_type==0?1:v.sInfo.use_type==1?2:3 // 产品自己的方式 + v.is_user_post = v.sInfo.use_type==1?2:1 // 用户自选方式 v.pickupAddress = {} // 自提信息 v.contacts = null // 收货地址 v.post = null // 运费信息 @@ -298,9 +308,6 @@ export default { }); }, getPost() { - - return - let tempList = [] this.orderList.forEach(v=>{ if( v.sInfo.contacts && v.is_user_post == 1) { @@ -419,19 +426,18 @@ export default { } this.allprice = allPrice + postPrice if (this.coupon) { - if (this.coupon.percent == 0) { - if (this.coupon.discounts>allPrice) { - price =postPrice + if (this.coupon.activity.fold == 0) { + if (this.coupon.activity.money>allPrice) { + price =0 }else{ - price = allPrice + postPrice - (this.coupon.discounts) + price = allPrice - (this.coupon.activity.money) } } else{ - // 有bug折扣券不加邮费 - price = (allPrice + postPrice) - (allPrice * this.coupon.percent/100) + price = allPrice - allPrice * (this.coupon.activity.fold*10/100) } } else { - price = allPrice + postPrice + price = allPrice } return price < 0 ? 0 : (price/100).toFixed(2) }, @@ -1140,4 +1146,23 @@ view { padding-bottom: 12rpx; min-height: fit-content; } + .tickets-container { + width: 698rpx; + background: #fff; + height: 120rpx; + margin: 22rpx auto 0; + .order-title { + margin: 31rpx 0 31rpx 30rpx; + font-size: 31rpx; + font-family: PingFang SC; + font-weight: bold; + color: #000000; + } + + .coupon-price { + color:#DD0000; + font-size: 30rpx; + font-weight: bold; + } + } \ No newline at end of file