|
@@ -15,11 +15,20 @@
|
|
</view>
|
|
</view>
|
|
<view class="tc_right">
|
|
<view class="tc_right">
|
|
<view style="width: 100%;">
|
|
<view style="width: 100%;">
|
|
- <view class="text">{{item.order_pack.pack_intro}}</view>
|
|
|
|
|
|
+ <view class="">{{item.order_pack.pack_intro}}</view>
|
|
<!-- <view class="text">{{item.desc}}</view> -->
|
|
<!-- <view class="text">{{item.desc}}</view> -->
|
|
<view class="text">
|
|
<view class="text">
|
|
- <text style="text-align: left;">时长:{{item.order_pack.effective_days}}天</text>
|
|
|
|
- <text style="float: right;color: #FF4F61;font-weight: bold;">¥{{item.order_pack.pack_price/100}}</text>
|
|
|
|
|
|
+ <view class="">
|
|
|
|
+ 图文次数:{{item.order_pack.chat_num}}次
|
|
|
|
+ </view>
|
|
|
|
+ <view class="">
|
|
|
|
+ 电话分钟:{{item.order_pack.phone_minutes}}分
|
|
|
|
+ </view>
|
|
|
|
+ <view class="">
|
|
|
|
+ 门诊次数:{{item.order_pack.appoint_num}}次
|
|
|
|
+ </view>
|
|
|
|
+ <!-- <text style="text-align: left;">时长:{{item.order_pack.effective_days}}天</text> -->
|
|
|
|
+ <!-- <text style="float: right;color: #FF4F61;font-weight: bold;">¥{{item.order_pack.pack_price/100}}</text> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="margin-top-xs">
|
|
<view class="margin-top-xs">
|
|
@@ -48,8 +57,8 @@
|
|
<view class="couponItem-subject">
|
|
<view class="couponItem-subject">
|
|
<view class="couponItem-subject-left">
|
|
<view class="couponItem-subject-left">
|
|
<view class="couponItem-subject-price">
|
|
<view class="couponItem-subject-price">
|
|
- <text class="couponItem-subject-icon">¥</text>
|
|
|
|
- <text class="couponItem-subject-price-min">{{item.money/100}}</text>
|
|
|
|
|
|
+ <text class="couponItem-subject-icon">{{item.type==1?'¥':''}}</text>
|
|
|
|
+ <text class="couponItem-subject-price-min">{{item.type==1?item.money/100:item.discount.substring(0,item.discount.indexOf(".")+2)}}</text>
|
|
<view class="couponItem-subject-price-reduce">{{item.name}}</view>
|
|
<view class="couponItem-subject-price-reduce">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -110,17 +119,17 @@
|
|
<text v-if="infodata.product_type == '6' ">服务包</text>
|
|
<text v-if="infodata.product_type == '6' ">服务包</text>
|
|
</view>
|
|
</view>
|
|
<view slot="footer" style="color:#FF4F61 ;font-weight: 500;">
|
|
<view slot="footer" style="color:#FF4F61 ;font-weight: 500;">
|
|
- {{orderAmount}}
|
|
|
|
|
|
+ {{orderAmount+'元'}}
|
|
</view>
|
|
</view>
|
|
</uni-list-item>
|
|
</uni-list-item>
|
|
<!-- 线条 -->
|
|
<!-- 线条 -->
|
|
<u-line color="#EFEFEF" />
|
|
<u-line color="#EFEFEF" />
|
|
- <uni-list-item :border="false" :link="true" @click="discountshow = true">
|
|
|
|
|
|
+ <uni-list-item :border="false" :link="true" @click="list.length==0?false: discountshow = true" v-if="paytype!=3">
|
|
<view slot="header" style="color:#666666 ; font-size: 28rpx;">
|
|
<view slot="header" style="color:#666666 ; font-size: 28rpx;">
|
|
优惠券
|
|
优惠券
|
|
</view>
|
|
</view>
|
|
<view slot="footer" style="font-size: 30rpx;">
|
|
<view slot="footer" style="font-size: 30rpx;">
|
|
- {{coupon}}
|
|
|
|
|
|
+ {{list.length==0?'暂无优惠卷':coupon}}
|
|
</view>
|
|
</view>
|
|
</uni-list-item>
|
|
</uni-list-item>
|
|
</uni-list>
|
|
</uni-list>
|
|
@@ -147,7 +156,7 @@
|
|
<view class="cu-bar bg-white tabbar border shop" style="position: fixed; bottom: 0; z-index: 99;width: 100%;">
|
|
<view class="cu-bar bg-white tabbar border shop" style="position: fixed; bottom: 0; z-index: 99;width: 100%;">
|
|
<view class="" style="width:75%;">
|
|
<view class="" style="width:75%;">
|
|
<text style="padding-left: 30rpx;font-size: 32rpx;">合计:</text>
|
|
<text style="padding-left: 30rpx;font-size: 32rpx;">合计:</text>
|
|
- <text style="padding-left: 20rpx;font-size: 36;font-weight: 500;color: #FF4F61;">{{orderAmount}}</text>
|
|
|
|
|
|
+ <text style="padding-left: 20rpx;font-size: 36;font-weight: 500;color: #FF4F61;">{{orderAmount+'元'}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="submit text-white" @click="confirmpay" style="background-color: rgb(11,115,186); font-size: 32rpx;">确认支付</view>
|
|
<view class="submit text-white" @click="confirmpay" style="background-color: rgb(11,115,186); font-size: 32rpx;">确认支付</view>
|
|
</view>
|
|
</view>
|
|
@@ -172,7 +181,7 @@
|
|
console.log(this.infodata)
|
|
console.log(this.infodata)
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.orderAmount = this.norderAmount + "元"
|
|
|
|
|
|
+ this.orderAmount = this.norderAmount
|
|
this.getUserInfo()
|
|
this.getUserInfo()
|
|
this.pageindex = 1
|
|
this.pageindex = 1
|
|
this.pageservice = 1
|
|
this.pageservice = 1
|
|
@@ -230,6 +239,7 @@
|
|
getserviceList: async function() {
|
|
getserviceList: async function() {
|
|
let res = await this.$request.post("/api/v1/order/orderList", {
|
|
let res = await this.$request.post("/api/v1/order/orderList", {
|
|
page: this.pageservice,
|
|
page: this.pageservice,
|
|
|
|
+ // docter_id:this.infodata.docter_id
|
|
list_type: 1,
|
|
list_type: 1,
|
|
product_type: 6,
|
|
product_type: 6,
|
|
is_pack_expire: 2
|
|
is_pack_expire: 2
|
|
@@ -290,27 +300,49 @@
|
|
setmode(item) {
|
|
setmode(item) {
|
|
this.value = item.name
|
|
this.value = item.name
|
|
if (this.value == '服务包抵扣') {
|
|
if (this.value == '服务包抵扣') {
|
|
- this.paytype = 3
|
|
|
|
- this.showservice = true
|
|
|
|
|
|
+ if (this.serviceList.length == 0) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "暂无服务包",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ } else {
|
|
|
|
+ this.paytype = 3
|
|
|
|
+ this.showservice = true
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if (this.value == '钱包余额支付') {
|
|
} else if (this.value == '钱包余额支付') {
|
|
this.paytype = 2
|
|
this.paytype = 2
|
|
}
|
|
}
|
|
},
|
|
},
|
|
collectCoupons(item, index) {
|
|
collectCoupons(item, index) {
|
|
|
|
+ this.norderAmount = this.infodata.total_amount
|
|
|
|
+ this.orderAmount = this.infodata.total_amount
|
|
if (item.type == 1) {
|
|
if (item.type == 1) {
|
|
- if (item.max_reduce_amount > this.infodata.total_amount * 100) {
|
|
|
|
|
|
+ if (this.infodata.total_amount * 100 < item.min_consume_amount) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "满减金额不够",
|
|
title: "满减金额不够",
|
|
icon: "none"
|
|
icon: "none"
|
|
})
|
|
})
|
|
|
|
+ this.discountshow = false
|
|
return false
|
|
return false
|
|
} else {
|
|
} else {
|
|
this.coupon = item.name
|
|
this.coupon = item.name
|
|
this.couponid = item.id
|
|
this.couponid = item.id
|
|
let price = (this.norderAmount * 100) - item.money
|
|
let price = (this.norderAmount * 100) - item.money
|
|
- this.norderAmount = price
|
|
|
|
|
|
+ this.norderAmount = price / 100
|
|
|
|
+ this.orderAmount = price / 100
|
|
|
|
+ this.discountshow = false
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
}
|
|
}
|
|
|
|
+ } else if (item.type == 2) {
|
|
|
|
+ this.coupon = item.name
|
|
|
|
+ this.couponid = item.id
|
|
|
|
+ let price = (this.norderAmount * 100) * ((item.discount.substring(0, item.discount.indexOf(".") + 2) - 0) / 10)
|
|
|
|
+ this.norderAmount = price / 100
|
|
|
|
+ this.orderAmount = price / 100
|
|
|
|
+ this.discountshow = false
|
|
|
|
+ this.$forceUpdate()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
confirmpay() {
|
|
confirmpay() {
|