绿满眶商城微信小程序-uniapp
zxl
12 小时以前 f7804b711a09eae4822a70063c63da54b04279d8
pages/order/myOrder.vue
@@ -107,7 +107,7 @@
                shape="circle"
                class="cancel-btn"
                size="mini"
               v-if="order.couponFlag === 'COUPON'"
               v-if="order.couponFlag === 'COUPON'&& order.orderStatus ==='COMPLETED'"
                @click="openCouponPackage(order)"
              >
                优惠券卡包
@@ -161,7 +161,7 @@
                shape="circle"
                class="cancel-btn"
                size="mini"
                v-if="order.orderStatus === 'COMPLETED'"
                v-if="order.orderStatus === 'COMPLETED'&& order.orderType !=='VIRTUAL'"
                @click="buyBack(order)"
              >
                再来一单
@@ -175,6 +175,14 @@
                  </u-button> -->
                </view>
              </view>
            <view style="display: flex;justify-content: space-around;">
               <view class="" @click="callPhone">
                   客服热线: 028-84472936
               </view>
               <view class="" @click="copyToClipboard">
                   客服微信: meiyikuang
               </view>
            </view>
            </view>
          </view>
          <uni-load-more :status="tabItem.loadStatus"></uni-load-more>
@@ -386,6 +394,29 @@
    },
  },
  methods: {
     copyToClipboard(){
        uni.setClipboardData({
           data:'meiyikuang',
           success() {
              uni.showToast({
            title: '复制成功',
            icon: 'none'
              })
           }
        })
     },
     callPhone(){
        uni.showModal({
           title:'确认联系客服吗?',
           success(e) {
              if(e.confirm){
                 uni.makePhoneCall({
                    phoneNumber:'028-84472936'
                 })
              }
           }
        })
     },
     openCouponPackage(order){
        console.log(order)
      uni.navigateTo({
@@ -650,9 +681,13 @@
     * 查看物流
     */
    navigateToLogistics(order) {
      // uni.navigateTo({
      //   url:
      //     "/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn,
      // });
      uni.navigateTo({
        url:
          "/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn,
            `/pages/order/deliverDetail?order_sn=${order.sn}`,
      });
    },
  },