积分兑换
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<img :src="item.goodsPicUrl" alt="">
|
<img :src="item.goodsPicUrl" alt="">
|
||||||
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGType', item.type) }}</div>
|
<div class="type" :class="`type`+item.goodsType">{{ $dict.getLabel('integralSGType', item.goodsType) }}</div>
|
||||||
<div class="flex-right">
|
<div class="flex-right">
|
||||||
<p>{{item.goodsTitle}}</p>
|
<p>{{item.goodsTitle}}</p>
|
||||||
<div class="num-flex">
|
<div class="num-flex">
|
||||||
<h3>{{item.usedIntegral}}积分<span v-if="item.type == 1">+{{item.payMoney}}元</span></h3>
|
<h3>{{item.usedIntegral}}积分<span v-if="item.goodsType == 1">+{{item.payMoney}}元</span></h3>
|
||||||
<div>x {{item.quantity}}</div>
|
<div>x {{item.quantity}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<p class="tips" v-if="item.type == 1"><span>兑换成功后,点击「去购买」前往京东低价购买</span></p>
|
<p class="tips" v-if="item.type == 1"><span>兑换成功后,点击「去购买」前往京东低价购买</span></p>
|
||||||
<p class="tips" v-else>免费兑换商品,可到固定的兑换点进行「核销兑换」</p>
|
<p class="tips" v-else>免费兑换商品,可到固定的兑换点进行「核销兑换」</p>
|
||||||
<p class="remark" v-if="item.remarks">备注:{{item.remarks}}</p>
|
<p class="remark" v-if="item.remarks">备注:{{item.remarks}}</p>
|
||||||
<div class="flex-btn" v-if="item.type == 1">
|
<div class="flex-btn" v-if="item.goodsType == 1">
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="btn confirm" @click="openJd(item)">去购买</div>
|
<div class="btn confirm" @click="openJd(item)">去购买</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -93,10 +93,13 @@ export default {
|
|||||||
},
|
},
|
||||||
cancel(item) {
|
cancel(item) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '确认取消该订单?',
|
title: '确认取消此订单?',
|
||||||
confirmspan: "确认",
|
content: '取消订单后,积分将退回至积分余额',
|
||||||
confirmColor: "#135AB8",
|
confirmColor: "#2D7DFF",
|
||||||
success: function (res) {
|
cancelColor: "#2D7DFF",
|
||||||
|
cancelText: "我在想想",
|
||||||
|
confirmText: "确认取消",
|
||||||
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.cancelOrder(item)
|
this.cancelOrder(item)
|
||||||
}
|
}
|
||||||
@@ -135,6 +138,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
margin-bottom: 32px;
|
||||||
.time-flex {
|
.time-flex {
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
line-height: 64px;
|
line-height: 64px;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default {
|
|||||||
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`})
|
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`})
|
||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
uni.navigateBack({delta: backLevel})
|
uni.navigateBack({delta: this.backLevel})
|
||||||
},
|
},
|
||||||
toOrderList() {
|
toOrderList() {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user