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