main
fanfan 6 months ago
parent 3679cb0d6c
commit 5eab12358b
  1. 6
      pages/member/index.vue
  2. 63
      pages/order/index.vue

@ -197,7 +197,8 @@
.then((result) => {
console.log(22,result)
uni.showToast({
title: "支付成功"
title: "支付成功",
icon: 'success'
})
this.isClick = true;
@ -209,7 +210,8 @@
})
.catch(err => {
uni.showToast({
title: "支付失败"
title: "支付失败",
icon:'none'
})
this.isClick = true;
})

@ -54,7 +54,8 @@
<view class="mask" @click="changeMenu(index)">
</view>
<view class="menulist">
<view class="" v-if="item.order_status == OrderStatusEnum.COMPLETED.value &&item.pay_status == PayStatusEnum.SUCCESS.value"
<view class=""
v-if="item.order_status == OrderStatusEnum.COMPLETED.value &&item.pay_status == PayStatusEnum.SUCCESS.value"
@click="onInvoicing(item.order_id,item)">
申请开票
</view>
@ -262,7 +263,7 @@
},
methods: {
handleOk() {
},
meKone() {
this.cdDia = false
@ -273,9 +274,14 @@
app.getOrderList(1)
},
changeMenu(index) {
this.list.forEach((item, ind) => {
item.menushow = !item.menushow;
});
let that = this;
this.list.map((item, inx) => {
if (index == inx) {
item.menushow = item.menushow == true ? false : true
} else {
item.menushow = false
}
})
},
toggleImage() {
this.isToggle = !this.isToggle
@ -307,7 +313,7 @@
});
if (status == 200) {
uni.hideLoading();
this.list = this.arrayUnique(this.list.concat(data.list.data),'order_id')
this.list = this.arrayUnique(this.list.concat(data.list.data), 'order_id')
this.total = data.list.total
}
},
@ -334,7 +340,7 @@
}
},
onCopyLink(str){
onCopyLink(str) {
uni.setClipboardData({
data: str, // value
success: function() {
@ -360,9 +366,11 @@
//
app.$toast(result.message)
//
app.list = []
app.pageNum = 1
app.getOrderList()
setTimeout(() => {
app.list = []
app.pageNum = 1
app.getOrderList()
}, 1500)
})
}
}
@ -382,10 +390,11 @@
.then(result => {
//
app.$toast(result.message)
//
app.list = []
app.pageNum = 1
app.getOrderList()
setTimeout(() => {
app.list = []
app.pageNum = 1
app.getOrderList()
}, 1500)
})
}
}
@ -411,9 +420,11 @@
//
app.$success(result.message)
//
app.list = []
app.pageNum = 1
app.getOrderList()
setTimeout(() => {
app.list = []
app.pageNum = 1
app.getOrderList()
}, 1500)
})
}
}
@ -461,15 +472,15 @@
return new RegExp(mix.split('').join('\\w*')).test(str)
},
//
arrayUnique(arr, name) {
    var hash = {};
    return arr.reduce(function (item, next) {
        hash[next[name]]
            ? ""
            : (hash[next[name]] = true && item.push(next));
        return item;
    }, []);
},
arrayUnique(arr, name) {
var hash = {};
return arr.reduce(function(item, next) {
hash[next[name]] ?
"" :
(hash[next[name]] = true && item.push(next));
return item;
}, []);
},
//
onLogistics(orderId, item) {
if (item.delivery) {

Loading…
Cancel
Save