绿满眶商城微信小程序-uniapp
peng
2025-11-06 d68fb476c248c6c3ab974ea6b18d6bba638f12d8
pages/order/myOrder.vue
@@ -112,6 +112,17 @@
              >
                优惠券卡包
              </view>
              <!-- 新增:定制商品样式 -->
              <view
                ripple
                shape="circle"
                class="cancel-btn"
                size="mini"
                             v-if="order.customizeFlag === 'CUSTOMIZE'"
                @click="opencustomize(order)"
              >
                定制商品
              </view>
                  <!-- 取消订单 -->
<!--                  <view
                    ripple
@@ -161,7 +172,7 @@
                shape="circle"
                class="cancel-btn"
                size="mini"
                v-if="order.orderStatus === 'COMPLETED'&& order.orderType !=='VIRTUAL'"
                v-if="order.orderStatus === 'COMPLETED'&& order.orderType !=='VIRTUAL'&& order.customizeFlag !=='CUSTOMIZE'"
                @click="buyBack(order)"
              >
                再来一单
@@ -177,7 +188,7 @@
              </view>
            <view style="display: flex;justify-content: space-around;">
               <view class="" @click="callPhone">
                   客服热线: 028-84472936
                   客服热线: 19980834650
               </view>
               <view class="" @click="copyToClipboard">
                   客服微信: meiyikuang
@@ -369,14 +380,14 @@
    // this.loadData(this.status);
  },
  onUnload() {
    let   param = this.actionParam;
    let   param = Object.assign({}, this.actionParam);
    if (this.sendOnShow)return
    param.pageStatus = "LEAVE"
    userAction(param)
  },
  onHide() {
    this.startHidenTime = Date.now()
    let   param = this.actionParam;
    let   param = Object.assign({}, this.actionParam);
    this.sendOnShow = true;
    param.pageStatus = "LEAVE"
    userAction(param)
@@ -384,9 +395,9 @@
  onShow() {
     getSessionId().then(res=>{
        this.pageSessionNo = res.data.data
      this.actionParam.sessionId = this.pageSessionNo
        if(this.pageSessionNo){
        let   param = this.actionParam;
           param.sessionId = this.pageSessionNo
        let   param = Object.assign({}, this.actionParam);
           userAction(param)
        }
     })
@@ -444,7 +455,7 @@
           success(e) {
              if(e.confirm){
                 uni.makePhoneCall({
                    phoneNumber:'028-84472936'
                    phoneNumber:'19980834650'
                 })
              }
           }
@@ -456,6 +467,12 @@
         url:"/pages/order/cardPack?sn=" + order.sn
      })  
     },
     opencustomize(order){
        console.log(order)
           uni.navigateTo({
              url:"/pages/order/constomize/constomize?sn=" + order.sn
           })
     },
     //再来一单
     buyBack(order){
      console.log(JSON.stringify(order))