修改
This commit is contained in:
parent
191f81a3a6
commit
87c7f1b694
@ -615,13 +615,6 @@
|
|||||||
this.couponListtrue = []
|
this.couponListtrue = []
|
||||||
this.couponListfalse = []
|
this.couponListfalse = []
|
||||||
this.goodsDetailslist = res.data
|
this.goodsDetailslist = res.data
|
||||||
this.goodsDetailslist.couponList.forEach(e => {
|
|
||||||
if (this.totalPrice >= e.couponConsumePrice) {
|
|
||||||
this.couponListtrue.push(e)
|
|
||||||
} else {
|
|
||||||
this.couponListfalse.push(e)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.updata.goodsName = this.goodsDetailslist.goodsName
|
this.updata.goodsName = this.goodsDetailslist.goodsName
|
||||||
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
|
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
|
||||||
this.updata.goodsUnit = res.data.goodsUnit
|
this.updata.goodsUnit = res.data.goodsUnit
|
||||||
@ -630,11 +623,19 @@
|
|||||||
this.updata.img = this.goodDetailsLists[0].attributePitureUrl
|
this.updata.img = this.goodDetailsLists[0].attributePitureUrl
|
||||||
this.updata.goodsAttributeName = this.goodDetailsLists[0].attributeDetailsName
|
this.updata.goodsAttributeName = this.goodDetailsLists[0].attributeDetailsName
|
||||||
this.updata.goodsPrice = this.goodDetailsLists[0].goodsPrice
|
this.updata.goodsPrice = this.goodDetailsLists[0].goodsPrice
|
||||||
|
this.totalPrice = this.goodDetailsLists[0].goodsPrice
|
||||||
this.updata.goodsPrice = this.updata.goodsPrice.toFixed(2)
|
this.updata.goodsPrice = this.updata.goodsPrice.toFixed(2)
|
||||||
this.updata.attributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
this.updata.attributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
||||||
this.updata.goodsStock = this.goodDetailsLists[0].goodsStock
|
this.updata.goodsStock = this.goodDetailsLists[0].goodsStock
|
||||||
this.updata.goodsAttributeId = this.goodDetailsLists[0].goodsAttributeId
|
this.updata.goodsAttributeId = this.goodDetailsLists[0].goodsAttributeId
|
||||||
this.updata.goodsAttributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
this.updata.goodsAttributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
||||||
|
this.goodsDetailslist.couponList.forEach(e => {
|
||||||
|
if (this.totalPrice >= e.couponConsumePrice) {
|
||||||
|
this.couponListtrue.push(e)
|
||||||
|
} else {
|
||||||
|
this.couponListfalse.push(e)
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
var list = {}
|
var list = {}
|
||||||
this.goodsDetailslist.goodAttributeDetailsLists.forEach(e => {
|
this.goodsDetailslist.goodAttributeDetailsLists.forEach(e => {
|
||||||
@ -649,6 +650,13 @@
|
|||||||
this.updata.goodsAttributeName = list.attributeDetailsName
|
this.updata.goodsAttributeName = list.attributeDetailsName
|
||||||
this.updata.goodsPrice = list.goodsPrice
|
this.updata.goodsPrice = list.goodsPrice
|
||||||
this.totalPrice = list.goodsPrice
|
this.totalPrice = list.goodsPrice
|
||||||
|
this.goodsDetailslist.couponList.forEach(e => {
|
||||||
|
if (this.totalPrice >= e.couponConsumePrice) {
|
||||||
|
this.couponListtrue.push(e)
|
||||||
|
} else {
|
||||||
|
this.couponListfalse.push(e)
|
||||||
|
}
|
||||||
|
})
|
||||||
this.updata.attributeDetailsId = list.attributeDetailsId
|
this.updata.attributeDetailsId = list.attributeDetailsId
|
||||||
this.updata.goodsStock = list.goodsStock
|
this.updata.goodsStock = list.goodsStock
|
||||||
this.updata.img = list.attributePitureUrl
|
this.updata.img = list.attributePitureUrl
|
||||||
|
|||||||
@ -155,7 +155,7 @@
|
|||||||
}
|
}
|
||||||
.nickname {
|
.nickname {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 265rpx;
|
top: 275rpx;
|
||||||
left: 35%;
|
left: 35%;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
{{item.useStatus=='EXPIRED'?'已过期':''}}
|
{{item.useStatus=='EXPIRED'?'已过期':''}}
|
||||||
{{item.useStatus=='USED'?'已使用':''}}
|
{{item.useStatus=='USED'?'已使用':''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" v-else>
|
<view class="btn" v-else @tap='goshoping'>
|
||||||
{{item.useStatus=='NOT_USED'?'使用':''}}
|
{{item.useStatus=='NOT_USED'?'使用':''}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -112,6 +112,11 @@
|
|||||||
}
|
}
|
||||||
this.getlist();
|
this.getlist();
|
||||||
},
|
},
|
||||||
|
goshoping() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/shopping/shopping'
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.couponlist.length >= this.total) {} else {
|
if (this.couponlist.length >= this.total) {} else {
|
||||||
@ -183,14 +188,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btngq {
|
.btngq {
|
||||||
width: 109rpx;
|
width: 110rpx;
|
||||||
height: 180rpx;
|
height: 50rpx;
|
||||||
background: #DFDEDE;
|
border: 2rpx solid #DFDEDE;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 70rpx;
|
||||||
right: 0;
|
right: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 180rpx;
|
line-height: 50rpx;
|
||||||
|
background: #DFDEDE;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@ -203,14 +211,14 @@
|
|||||||
top: 70rpx;
|
top: 70rpx;
|
||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 49rpx;
|
line-height: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 120rpx;
|
top: 120rpx;
|
||||||
left: 200rpx;
|
left: 240rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.texts {
|
.texts {
|
||||||
@ -218,7 +226,7 @@
|
|||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 44rpx;
|
top: 44rpx;
|
||||||
left: 200rpx;
|
left: 240rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
{{item.useStatus=='EXPIRED'?'已过期':''}}
|
{{item.useStatus=='EXPIRED'?'已过期':''}}
|
||||||
{{item.useStatus=='USED'?'已使用':''}}
|
{{item.useStatus=='USED'?'已使用':''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" v-if="item.useStatus=='NOT_USED'">
|
<view class="btn" v-if="item.useStatus=='NOT_USED'" @tap='goshoping'>
|
||||||
{{item.useStatus=='NOT_USED'?'使用':''}}
|
{{item.useStatus=='NOT_USED'?'使用':''}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -172,6 +172,11 @@
|
|||||||
url: '/pages/information/information'
|
url: '/pages/information/information'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goshoping() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/shopping/shopping'
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.couponlist.length >= this.total) {} else {
|
if (this.couponlist.length >= this.total) {} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user