From ee2eeca204c2c0b946912fe106b0c747208f283b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Fri, 27 Oct 2023 16:52:25 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesB/CommodityOrder/CommodityOrder.vue | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/pagesB/CommodityOrder/CommodityOrder.vue b/pagesB/CommodityOrder/CommodityOrder.vue
index 15bd077..1086955 100644
--- a/pagesB/CommodityOrder/CommodityOrder.vue
+++ b/pagesB/CommodityOrder/CommodityOrder.vue
@@ -302,10 +302,10 @@
uni.removeStorageSync('Refresh');
this.total = res.total
} else if (res.code == 9999) {
- // this.$refs.uToast.show({
- // title: '未登录,请先登录',
- // type: 'error',
- // })
+ this.$refs.uToast.show({
+ title: '未登录,请先登录',
+ type: 'error',
+ })
}
})
},
@@ -318,7 +318,7 @@
},
watch: { //监听
'orderTypeList.goodsName'() {
- this.pageNum = 1
+ this.orderTypeList.pageNum = 1
this.goodsOrderinfo()
},
},
@@ -328,7 +328,7 @@
// });
},
onShow() {
- this.pageNum = 1;
+ this.orderTypeList.pageNum = 1;
this.baseurl = baseurl;
let that = this
const value3 = uni.getStorageSync('Refresh');
@@ -359,7 +359,7 @@
},
onReachBottom() { //下滑加载
if (this.orderlist.length >= this.total) {} else {
- this.pageNum++;
+ this.orderTypeList.pageNum++;
ssgoodsOrder(this.orderTypeList).then(res => {
res.rows.forEach(e => {
// e.timestamp = null
@@ -373,7 +373,7 @@
}
},
onPullDownRefresh() { //下拉刷新
- this.pageNum = 1;
+ this.orderTypeList.pageNum = 1;
this.goodsOrderinfo();
setTimeout(function() {
uni.stopPullDownRefresh();
From d62ff504220dd9038a269674339446858a40e5bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Fri, 27 Oct 2023 16:55:35 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=93=E5=AE=B6=E5=92=A8=E8=AF=A2?=
=?UTF-8?q?=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesB/ExpertlookOrder/ExpertlookOrder.vue | 48 +++++++++++-----------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/pagesB/ExpertlookOrder/ExpertlookOrder.vue b/pagesB/ExpertlookOrder/ExpertlookOrder.vue
index 3a81618..ac33488 100644
--- a/pagesB/ExpertlookOrder/ExpertlookOrder.vue
+++ b/pagesB/ExpertlookOrder/ExpertlookOrder.vue
@@ -11,8 +11,8 @@
placeholder-class="placeholder">
-
+
店铺名称
@@ -129,10 +129,11 @@
export default {
data() {
return {
- tabslist: [{
- name: '全部',
- orderStatus: '',
- },
+ tabslist: [
+ // {
+ // name: '全部',
+ // orderStatus: '',
+ // },
// {
// name: '待付款',
// orderStatus: 'WAIT_PAY',
@@ -147,10 +148,10 @@
// name: '已完成',
// orderStatus: 'EVALUATED',
// },
- {
- name: '待咨询',
- orderStatus: 'RECEIVED_GOODS',
- }
+ // {
+ // name: '待咨询',
+ // orderStatus: 'RECEIVED_GOODS',
+ // }
],
tabscurrent: 0,
background: {
@@ -160,7 +161,7 @@
orderTypeList: {
patientId: '',
orderType: 'HEALTH_CONSULTATION',
- orderStatus: '',
+ orderStatus: 'RECEIVED_GOODS',
// goodsOrderId: '', //
pageSize: 15, //
pageNum: 1, //
@@ -178,15 +179,15 @@
},
methods: {
//点击tabs
- tabschange(index) {
- console.log(this.tabslist)
- this.tabscurrent = index;
- this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
- console.log(this.orderTypeList.orderStatus, '999')
- console.log(this.orderTypeList.orderType, '99')
+ // tabschange(index) {
+ // console.log(this.tabslist)
+ // this.tabscurrent = index;
+ // this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
+ // console.log(this.orderTypeList.orderStatus, '999')
+ // console.log(this.orderTypeList.orderType, '99')
- this.goodsOrderinfo();
- },
+ // this.goodsOrderinfo();
+ // },
//返回上一页
goprevious() {
uni.navigateBack({
@@ -295,7 +296,6 @@
//商品订单请求
goodsOrderinfo() {
// this.orderTypeList.orderType = this.patientId
-
console.log(this.orderTypeList, '45')
ssgoodsOrder(this.orderTypeList).then(
res => {
@@ -310,10 +310,10 @@
uni.removeStorageSync('Refresh');
this.total = res.total
} else if (res.code == 9999) {
- // this.$refs.uToast.show({
- // title: '未登录,请先登录',
- // type: 'error',
- // })
+ this.$refs.uToast.show({
+ title: '未登录,请先登录',
+ type: 'error',
+ })
}
})
},