|
@@ -101,11 +101,11 @@
|
|
|
<view class="box-yhj-top-xs">限时优惠价</view>
|
|
<view class="box-yhj-top-xs">限时优惠价</view>
|
|
|
<view class="box-yhj-top-nr adffcac">
|
|
<view class="box-yhj-top-nr adffcac">
|
|
|
<view class="box-yhj-top-nr-title">PERILL团队发展动态评估(团队版)</view>
|
|
<view class="box-yhj-top-nr-title">PERILL团队发展动态评估(团队版)</view>
|
|
|
- <view class="box-yhj-top-nr-price">¥{{priceData.discountPrice||priceData.price}}</view>
|
|
|
|
|
- <view class="box-yhj-top-nr-yj" v-if="priceData.discountPrice">原价 ¥{{priceData.price}}/次,推广价 ¥1680/次</view>
|
|
|
|
|
|
|
+ <view class="box-yhj-top-nr-price">¥{{priceData.discountPrice===null?priceData.price:priceData.discountPrice}}</view>
|
|
|
|
|
+ <view class="box-yhj-top-nr-yj" v-if="priceData.discountPrice!==null">原价 ¥{{priceData.price}}/次,推广价 ¥1680/次</view>
|
|
|
<view class="box-yhj-top-nr-yj" style="margin-top: 50rpx;" v-else></view>
|
|
<view class="box-yhj-top-nr-yj" style="margin-top: 50rpx;" v-else></view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="box-yhj-top-tip" v-if="priceData.discountPrice">活动有效期:{{priceData.startDate||''}} ~ {{priceData.endDate||''}}</view>
|
|
|
|
|
|
|
+ <view class="box-yhj-top-tip" v-if="priceData.discountPrice!==null">活动有效期:{{priceData.startDate||''}} ~ {{priceData.endDate||''}}</view>
|
|
|
<view class="box-yhj-top-tip" v-else></view>
|
|
<view class="box-yhj-top-tip" v-else></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="box-yhj-title">内容配置对比</view>
|
|
<view class="box-yhj-title">内容配置对比</view>
|
|
@@ -264,28 +264,14 @@
|
|
|
this.productId = this.priceData.id;
|
|
this.productId = this.priceData.id;
|
|
|
this.priceData.startDate = this.priceData.beginAt?new Date(this.priceData.beginAt).Format('yyyy年MM月dd日'):'';
|
|
this.priceData.startDate = this.priceData.beginAt?new Date(this.priceData.beginAt).Format('yyyy年MM月dd日'):'';
|
|
|
this.priceData.endDate = this.priceData.endAt?new Date(this.priceData.endAt).Format('yyyy年MM月dd日'):'';
|
|
this.priceData.endDate = this.priceData.endAt?new Date(this.priceData.endAt).Format('yyyy年MM月dd日'):'';
|
|
|
- this.sumPrice = this.priceData.discountPrice||this.priceData.price||0;
|
|
|
|
|
|
|
+ this.sumPrice = this.priceData.discountPrice===null?this.priceData.price:this.priceData.discountPrice;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- changePrice(item,index){
|
|
|
|
|
- this.productId = item.id;
|
|
|
|
|
- this.pindex = index;
|
|
|
|
|
- this.frequency = item.frequency;
|
|
|
|
|
- this.price = item.price;
|
|
|
|
|
- this.times = item.frequency;
|
|
|
|
|
- if(this.frequency>10){
|
|
|
|
|
- this.otherTimes = 11;
|
|
|
|
|
- this.sumPrice = this.price*this.otherTimes;
|
|
|
|
|
- } else this.sumPrice = this.price;
|
|
|
|
|
- },
|
|
|
|
|
- valueChange(val){
|
|
|
|
|
- this.otherTimes = val;
|
|
|
|
|
- this.times = this.otherTimes;
|
|
|
|
|
- this.sumPrice = this.price*this.otherTimes;
|
|
|
|
|
- },
|
|
|
|
|
confirmBuy(){
|
|
confirmBuy(){
|
|
|
- this.$api.post('/que/order/createOrder',{
|
|
|
|
|
|
|
+ let url = '/que/order/createOrder';
|
|
|
|
|
+ if(this.sumPrice===0) url = '/que/order/addOrder';
|
|
|
|
|
+ this.$api.post(url,{
|
|
|
payAmount:this.sumPrice,
|
|
payAmount:this.sumPrice,
|
|
|
productId:this.productId,
|
|
productId:this.productId,
|
|
|
totalAmount:this.sumPrice,
|
|
totalAmount:this.sumPrice,
|
|
@@ -295,6 +281,12 @@
|
|
|
}).then(({data:res})=>{
|
|
}).then(({data:res})=>{
|
|
|
if(res.code!==0) return this.$showToast(res.msg||'购买失败,请稍微重试')
|
|
if(res.code!==0) return this.$showToast(res.msg||'购买失败,请稍微重试')
|
|
|
this.orderNo = res.data;
|
|
this.orderNo = res.data;
|
|
|
|
|
+ if(this.sumPrice===0){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:'/pagesPublish/payResult'
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.$refs.wxPay.payShow = true;
|
|
this.$refs.wxPay.payShow = true;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|