|
@@ -28,7 +28,7 @@
|
|
|
</template>
|
|
|
<template v-slot:button>
|
|
|
<view class="tui-custom-btn_box">
|
|
|
- <view class="tui-custom-btn" @click.stop="deleteBtn(cell.id,index)">
|
|
|
+ <view class="tui-custom-btn" @click.stop="deleteBtn(cell.id, index)">
|
|
|
<text class="iconfont icon-shanchu3"></text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -77,33 +77,25 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async initData(option) {
|
|
|
- const userInfo = await this.$api.getStorage()
|
|
|
- this.listQuery.messageType = option.messageType
|
|
|
- this.listQuery.commonId = userInfo.clubId ? userInfo.clubId : 0
|
|
|
- this.getUserAuthClubMessageList()
|
|
|
+ const userInfo = await this.$api.getStorage()
|
|
|
+ this.listQuery.messageType = option.messageType
|
|
|
+ this.listQuery.commonId = userInfo.clubId ? userInfo.clubId : 0
|
|
|
+ this.getUserAuthClubMessageList()
|
|
|
},
|
|
|
handleOrderClick(cell) {
|
|
|
- const isOnliyPay = false;
|
|
|
- const statusVal = [ { val: [11, 12, 13, 21, 22, 23, 111], status: true }];
|
|
|
- statusVal.forEach(el => {
|
|
|
- el.val.forEach(value => {
|
|
|
- if (status === value) {
|
|
|
- isOnliyPay = el.status
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- if(orderMessageType === 1){
|
|
|
- if(isOnliyPay){
|
|
|
- const payLinkMap = {
|
|
|
+ if (cell.orderMessageType === 1) {
|
|
|
+ if (this.isOnliyPay(cell)) {
|
|
|
+ let payLinkMap = {
|
|
|
0: `/pages/user/order/order-pay-list?orderId=${cell.orderId}`,
|
|
|
1: `/pages/user/order/order-payunder?orderId=${cell.orderId}`
|
|
|
}
|
|
|
- this.$api.navigateTo(linkJumpMap[cell.orderMessageType])
|
|
|
- }else{
|
|
|
+ let linkJumpMap = { 1: payLinkMap[cell.onlinePayFlag] }
|
|
|
+ this.$api.navigateTo(linkJumpMap[cell.orderMessageType])
|
|
|
+ } else {
|
|
|
this.$util.msg('订单已完成支付', 2000)
|
|
|
}
|
|
|
- }else{
|
|
|
- const linkJumpMap = {
|
|
|
+ } else {
|
|
|
+ let linkJumpMap = {
|
|
|
2: `/pages/user/order/order-details?orderId=${cell.orderId}`,
|
|
|
3: `/pages/user/order/order-details?orderId=${cell.orderId}`,
|
|
|
4: `/pages/user/order/order-details?orderId=${cell.orderId}`,
|
|
@@ -112,6 +104,16 @@ export default {
|
|
|
}
|
|
|
this.$api.navigateTo(linkJumpMap[cell.orderMessageType])
|
|
|
}
|
|
|
+ },
|
|
|
+ isOnliyPay(cell){
|
|
|
+ let onliyPay = false
|
|
|
+ let statusVal = [11, 12, 13, 21, 22, 23, 111]
|
|
|
+ statusVal.forEach(value => {
|
|
|
+ if (cell.status === value) {
|
|
|
+ onliyPay = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return onliyPay
|
|
|
}
|
|
|
},
|
|
|
onReachBottom() {
|