wangfukang 3 weeks ago
parent
commit
f0b2616202
  1. 12
      components/tab-bar/delivery.vue
  2. 2
      components/tab-bar/myCenter.vue
  3. 2
      components/tab-bar/tab-bar.vue
  4. 8
      package1/address/addressList.vue
  5. 2
      package1/buyFood/buyFood.vue
  6. 6
      package2/group/groupBuyList.vue
  7. 12
      package2/group/groupBuySingle.vue
  8. 4
      package2/group/searchGroup.vue
  9. 4
      package2/group/shopEvaluate.vue
  10. 6
      package2/myCenter/addGoods.vue
  11. 2
      package2/myCenter/addType.vue
  12. 2
      package2/myCenter/dataStatistics.vue
  13. 4
      package2/myCenter/goodsList.vue
  14. 4
      package2/myCenter/partTimeJobRegister.vue
  15. 4
      package2/myCenter/wallet.vue
  16. 2
      package2/partTimeJob/partTimeJobCenter.vue
  17. 2
      package2/shop/orderDetail.vue
  18. 5
      package2/shop/shopOrderList.vue
  19. 9
      pages/index/index.vue

12
components/tab-bar/delivery.vue

@ -561,7 +561,7 @@
that.totalPages = res.result.pages; // pages =
that.$forceUpdate();
} else {
that.tui.toast(res.message, 1000);
that.tui.toast(res.message);
return;
}
uni.hideLoading();
@ -672,7 +672,7 @@
},
openPopup() {
if (this.isOnLine != 1) {
this.tui.toast('请先上线后配置', 1000);
this.tui.toast('请先上线后配置');
return;
}
let that = this
@ -730,7 +730,7 @@
} */
this.$refs.carPopup.open()
} else {
that.tui.toast(res.message, 1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})
@ -814,9 +814,9 @@
worker.isOnLine = value;
this.isOnLine = value
uni.setStorageSync('worker', worker);
this.tui.toast(res.message, 1000)
this.tui.toast(res.message)
} else {
this.tui.toast(res.message, 1000)
this.tui.toast(res.message)
}
})
@ -833,7 +833,7 @@
if (res.code == 200) {
} else {
this.tui.toast(res.message, 1000)
this.tui.toast(res.message)
}
})

2
components/tab-bar/myCenter.vue

@ -162,7 +162,7 @@
url: url
})
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()

2
components/tab-bar/tab-bar.vue

@ -142,7 +142,7 @@
}
that.$forceUpdate();
} else {
that.tui.toast(res.message,1000);
that.tui.toast(res.message);
return;
}
uni.hideLoading();

8
package1/address/addressList.vue

@ -205,11 +205,11 @@
this.addressForm.userId = uni.getStorageSync('id')
that.tui.request(url, "POST", this.addressForm, false, true).then((res) => {
if (res.code == 200) {
that.tui.toast("保存成功");
that.tui.toast("保存成功",1000);
that.$refs.addBookPopup.close();
that.getAddressList();
} else {
that.tui.toast(res.message);
that.tui.toast(res.message,1000);
}
}).catch(() => {});
},
@ -222,10 +222,10 @@
if (res.confirm) {
that.tui.request("/app/userAddress/delById", "POST", {id: id}, false, true).then((res) => {
if (res.code == 200) {
that.tui.toast("删除成功");
that.tui.toast("删除成功",1000);
that.getAddressList();
} else {
that.tui.toast(res.message);
that.tui.toast(res.message,1000);
}
}).catch(() => {});
}

2
package1/buyFood/buyFood.vue

@ -851,7 +851,7 @@
},
fail: function(err) {
uni.redirectTo({
url: '/package1/order/orderConfirm?id=' + this.currentOrderId + '&amount=' + this.backendTotalAmount
url: '/package1/order/orderDetail?id=' + that.currentOrderId
});
}
});

6
package2/group/groupBuyList.vue

@ -340,7 +340,7 @@
}
}
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})
@ -358,7 +358,7 @@
}
}
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})
@ -410,7 +410,7 @@
that.isArea = false
that.$forceUpdate()
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()

12
package2/group/groupBuySingle.vue

@ -813,7 +813,7 @@
if (res.code == 200) {
this.tuanzhangOrder = res.result;
} else {
that.tui.toast(res.message, 1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()
@ -993,7 +993,7 @@
that.pageNum = that.searchForm.pageNum;
that.$forceUpdate();
} else {
that.tui.toast(res.message, 1000);
that.tui.toast(res.message);
return;
}
uni.hideLoading();
@ -1013,7 +1013,7 @@
}
that.$forceUpdate()
} else {
that.tui.toast(res.message, 1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()
@ -1174,7 +1174,7 @@
that.$forceUpdate();
} else {
that.tui.toast(res.message, 1000);
that.tui.toast(res.message);
return;
}
uni.hideLoading();
@ -1720,7 +1720,7 @@
});
},
fail: function(err) {
that.tui.toast("支付失败或取消", 1000);
that.tui.toast("支付失败或取消");
}
});
} else {
@ -1739,7 +1739,7 @@
}, 1500);
});
} else {
that.tui.toast(res.message, 1000);
that.tui.toast(res.message);
}
}
})

4
package2/group/searchGroup.vue

@ -260,7 +260,7 @@
console.log(that.shopArea)
}
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})
@ -294,7 +294,7 @@
that.isArea = false
that.$forceUpdate()
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()

4
package2/group/shopEvaluate.vue

@ -231,7 +231,7 @@
that.menuList[0].num = res.result.total
}
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()
@ -267,7 +267,7 @@
this.back()
}, 1000)
} else {
that.tui.toast(res.message,1000);
that.tui.toast(res.message);
}
uni.hideLoading();
}).catch((res) => {});

6
package2/myCenter/addGoods.vue

@ -225,7 +225,7 @@
},
fail() {
this.tui.toast("您未授权,图片上传功能可能会出现错误",1000)
this.tui.toast("您未授权,图片上传功能可能会出现错误")
}
})
this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || ''
@ -264,7 +264,7 @@
this.formData.categoryId = res.result.categoryId
this.edit(this.formData)
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
}).catch((res) => {})
}
@ -380,7 +380,7 @@
}
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
}).catch((res) => {})
},

2
package2/myCenter/addType.vue

@ -107,7 +107,7 @@
if (res.code == 200) {
this.indexList = res.result;
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
}).catch(() => {});
},

2
package2/myCenter/dataStatistics.vue

@ -146,7 +146,7 @@
if (res.code == 200) {
this.shopInfo = res.result
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
})

4
package2/myCenter/goodsList.vue

@ -380,7 +380,7 @@
this.pages = res.result.pages
}
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
}).catch((res) => {})
},
@ -417,7 +417,7 @@
this.categoryId = this.indexList[0].id
this.getShareList();
} else {
this.tui.toast(res.message,1000)
this.tui.toast(res.message)
}
}).catch((res) => {})
},

4
package2/myCenter/partTimeJobRegister.vue

@ -297,7 +297,7 @@
that.$forceUpdate();
}
} else {
that.tui.toast(res.message, 1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})
@ -313,7 +313,7 @@
}
}
} else {
that.tui.toast(res.message, 1000)
that.tui.toast(res.message)
return
}
}).catch((res) => {})

4
package2/myCenter/wallet.vue

@ -200,7 +200,7 @@
this.$refs.payPopup.close();
this.beginData();
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()
@ -231,7 +231,7 @@
}
that.$forceUpdate()
} else {
that.tui.toast(res.message,1000)
that.tui.toast(res.message)
return
}
uni.hideLoading()

2
package2/partTimeJob/partTimeJobCenter.vue

@ -199,7 +199,7 @@
}
that.$forceUpdate();
} else {
that.tui.toast(res.message,1000);
that.tui.toast(res.message);
return;
}
uni.hideLoading();

2
package2/shop/orderDetail.vue

@ -22,7 +22,7 @@
</view>
<view class="box1" style="display: flex;height: 100rpx;line-height: 100rpx;padding: 0 20rpx;">
<view style="border: 1px solid #48D1CC;height: 50rpx;line-height: 50rpx;padding: 0 20rpx;border-radius: 20rpx;margin-top: auto;margin-bottom: auto;color: #48D1CC;font-weight: 700;">
{{data.deliveryType == 2?'自取订单':'配送订单'}}
{{data.deliveryType == 1?'配送订单':data.isPack == 1?'自取-打包':data.isPack == 0?'自取-堂食':'自取'}}
</view>
<view v-if="data.deliveryType == 1" style="display: flex;flex: 1;padding-left: 20rpx;">
<text style="flex: 1;">配送员{{(data.deliveryInfo.workerName == 'null' || !data.deliveryInfo.workerName) ?"":data.deliveryInfo.workerName}}</text>

5
package2/shop/shopOrderList.vue

@ -54,8 +54,8 @@
</view>
</view>
<view style="height: 80rpx;border-top: 1px solid #eee;display: flex;">
<view class="pinzi" @tap.stop="tanchuang(item.deliveryType)" style="width:80rpx;font-weight:700;margin-right: 20rpx;color:#00231C;background:linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1))">
{{item.deliveryType == 1?'配送':'自取'}}
<view class="pinzi" @tap.stop="tanchuang(item.deliveryType)" style="width:auto;font-weight:700;margin-right: 20rpx;color:#00231C;background:linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1));padding:0 12rpx;">
{{item.deliveryType == 1?'配送':item.isPack == 1?'自取-打包':item.isPack == 0?'自取-堂食':'自取'}}
</view>
<view v-if="item.orderType != 1 && item.groupInfo != null" @tap.stop="getGroupOrders(item.id)" class="pinzi">
@ -259,7 +259,6 @@
if (that.currentIndex == 7) {
that.orderList[i].goodsList = that.orderList[i].items
}
console.log('哈哈哈哈哈1',that.orderList)
that.orderList[i].goodsNum = 0
for (let m = 0; m < that.orderList[i].goodsList.length; m++) {
that.orderList[i].goodsNum += that.orderList[i].goodsList[m].quantity

9
pages/index/index.vue

@ -291,6 +291,9 @@
:style="{'background':checkYongjin==true?'linear-gradient(135deg, rgba(255, 247, 215, 0.95), rgba(166, 255, 234, 0.72))':'rgba(248, 255, 250, 0.86)','border':checkYongjin==true?'1px solid rgba(255, 188, 119, 0.72)':'1px solid rgba(166, 255, 234, 0.46)'}">
佣金
</view>
<view @tap="searchOrder('shuaxin')" class="sort-member" hover-class="box-hover" style="border-radius: 60rpx">
刷新
</view>
</view>
<view class="sort-text"
v-if="getAreaData.id != undefined || putAreaData.id != undefined || checkYongjin"
@ -677,7 +680,7 @@
hallOnly: true,
status: 0,
pageNum: 1,
pageSize:5,
pageSize:10,
getAreaId: '',
putAreaId: '',
paths: ['home_top', 'home_center_left_top', 'home_center_left_bottom', 'home_center_right_top',
@ -1250,6 +1253,7 @@
this.checkYongjin = false
this.searchForm.order = ''
}
console.log("shuaxin")
this.searchForm.pageNum = 1
this.getDelivery();
},
@ -2807,4 +2811,7 @@
color: #ff7043;
font-weight: 900;
}
.box-hover {
background: rgba(248, 255, 237, 0.86);
}
</style>
Loading…
Cancel
Save