This commit is contained in:
曹辉 2023-03-03 16:08:20 +08:00
parent 8bb8cae37f
commit 3ac085f866
2 changed files with 6 additions and 6 deletions

View File

@ -137,7 +137,7 @@
<view class="bottomcontent topcontent" <view class="bottomcontent topcontent"
@tap="goodsDetailslist.couponList.length>0?couponshow=true:''"> @tap="goodsDetailslist.couponList.length>0?couponshow=true:''">
<view class="header"> <view class="header">
优惠卷 优惠券
</view> </view>
<view class="coupon" v-if='coupon' style="color: #D43953;"> <view class="coupon" v-if='coupon' style="color: #D43953;">
已选择 {{coupon.couponTitle}} 已选择 {{coupon.couponTitle}}
@ -182,7 +182,7 @@
<image class="close" src="../../static/gb.png" mode="" @tap='couponshow=false'></image> <image class="close" src="../../static/gb.png" mode="" @tap='couponshow=false'></image>
</image> </image>
<view class="titles"> <view class="titles">
选择优惠卷 选择优惠券
</view> </view>
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper" <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper"
@scrolltolower="lower" @scroll="scroll" style="background-color: #fff;height: 700rpx;"> @scrolltolower="lower" @scroll="scroll" style="background-color: #fff;height: 700rpx;">
@ -279,7 +279,7 @@
goodsPrice: '', //页面价格 goodsPrice: '', //页面价格
totalPrice: 0.00, //总价 totalPrice: 0.00, //总价
Paidinprice: null, //实付价格 Paidinprice: null, //实付价格
couponId: null, //使用的优惠卷id couponId: null, //使用的优惠券id
coupon: null, coupon: null,
goodsDetailslist: { goodsDetailslist: {
couponList: [], couponList: [],
@ -287,7 +287,7 @@
goodDetailsLists: [], //提前预备商品规格数组 goodDetailsLists: [], //提前预备商品规格数组
goodshow: true, //商品规格开关 goodshow: true, //商品规格开关
buyshow: false, //立即购买遮罩层开关 buyshow: false, //立即购买遮罩层开关
couponshow: false, //优惠卷遮罩层开关 couponshow: false, //优惠券遮罩层开关
info: [], //轮播list info: [], //轮播list
goodsAttributeId: null, //商品规格id goodsAttributeId: null, //商品规格id
updata: { //订单表 updata: { //订单表
@ -338,7 +338,7 @@
}, },
}, },
methods: { methods: {
//使用优惠卷 //使用优惠券
tapcoupon(item) { tapcoupon(item) {
if (this.couponId == item.couponId) { if (this.couponId == item.couponId) {
this.couponId = null this.couponId = null

View File

@ -296,7 +296,7 @@
url: '/pages/login/login' url: '/pages/login/login'
}) })
}, },
//优惠卷 //优惠券
gocoupon() { gocoupon() {
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');