diff --git a/api/date/index.js b/api/date/index.js
index fcc0cd3..b4e5ae3 100644
--- a/api/date/index.js
+++ b/api/date/index.js
@@ -22,8 +22,8 @@ export function insertOutDate(data) {
// 接单地址-不接单日期列表数据查询
export function outDateList() {
return request({
- 'url': '/applet/outDate/outDateList',
- 'method': 'get'
+ 'url': '/applet/outDate/outDateList',
+ 'method': 'get',
})
}
diff --git a/otherPages/authentication/connectAddress/index.vue b/otherPages/authentication/connectAddress/index.vue
index bf5bbd8..e869ce1 100644
--- a/otherPages/authentication/connectAddress/index.vue
+++ b/otherPages/authentication/connectAddress/index.vue
@@ -43,7 +43,7 @@
编辑
-
+
删除
@@ -61,6 +61,14 @@
+
+
+
+
+ 确认要删除此地址?
+
+
+
\ No newline at end of file
diff --git a/otherPages/authentication/examination/base.vue b/otherPages/authentication/examination/base.vue
index 411c8fa..1749f77 100644
--- a/otherPages/authentication/examination/base.vue
+++ b/otherPages/authentication/examination/base.vue
@@ -15,7 +15,7 @@
选择题
-
+
{{ group.title }}
-
+
-
+
仍需至少注册
-
+
5人
-
+
diff --git a/otherPages/binding/grade/index.vue b/otherPages/binding/grade/index.vue
index d4e62fd..07cbb77 100644
--- a/otherPages/binding/grade/index.vue
+++ b/otherPages/binding/grade/index.vue
@@ -27,7 +27,7 @@
-
+
当月注册用户
@@ -35,7 +35,7 @@
-
+
当月下单用户
@@ -43,7 +43,7 @@
-
+
当月有效用户
@@ -61,7 +61,7 @@
-
+
累积注册用户
@@ -69,7 +69,7 @@
-
+
累积下单用户
@@ -77,7 +77,7 @@
-
+
累积有效用户
diff --git a/otherPages/binding/wallet/index.vue b/otherPages/binding/wallet/index.vue
index 032f970..a511d74 100644
--- a/otherPages/binding/wallet/index.vue
+++ b/otherPages/binding/wallet/index.vue
@@ -13,10 +13,10 @@
初级合伙人
-
+
当前分成比例:25%
-
+
晋级后分成比例:30%
@@ -24,7 +24,7 @@
-
+
钱包余额
@@ -46,18 +46,18 @@
-
+
本月订单分成:
- ¥
+ ¥
0.00
-
+
累积订单分成:
- ¥
+ ¥
0.00
diff --git a/otherPages/binding/withdrawal/index.vue b/otherPages/binding/withdrawal/index.vue
index c644c68..886cfb9 100644
--- a/otherPages/binding/withdrawal/index.vue
+++ b/otherPages/binding/withdrawal/index.vue
@@ -2,7 +2,7 @@
-
+
提现金额
diff --git a/otherPages/myOrdersManage/bond/index.vue b/otherPages/myOrdersManage/bond/index.vue
index 264ff4e..047637c 100644
--- a/otherPages/myOrdersManage/bond/index.vue
+++ b/otherPages/myOrdersManage/bond/index.vue
@@ -33,7 +33,7 @@
履约保证金用于处理轻度违约行为,以及交易纠纷;具体规则可在《履约保证金协议》中查看,如平台有任何私自克扣/乱扣费的情况,可向市场监督局投诉,平台会对违约做出公正的判罚,同时接受公正的处理。
-
+
若在服务过程中由于伴宠师自身原因发生用户的隐私或财产被侵犯等涉及法律相关问题,并不是保证金可以解决的;如若发生恶性事件,平台会坚决走法律程序判定责任并追责,请各位伴宠师严于律己。
diff --git a/otherPages/myOrdersManage/bond/refund.vue b/otherPages/myOrdersManage/bond/refund.vue
index 5a38269..d5bdc7c 100644
--- a/otherPages/myOrdersManage/bond/refund.vue
+++ b/otherPages/myOrdersManage/bond/refund.vue
@@ -3,7 +3,7 @@
-
+
账户总览
diff --git a/otherPages/myOrdersManage/clock/detail.vue b/otherPages/myOrdersManage/clock/detail.vue
index 4628073..603c751 100644
--- a/otherPages/myOrdersManage/clock/detail.vue
+++ b/otherPages/myOrdersManage/clock/detail.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/otherPages/myOrdersManage/date/detail.vue b/otherPages/myOrdersManage/date/detail.vue
index 65b92de..5657cf5 100644
--- a/otherPages/myOrdersManage/date/detail.vue
+++ b/otherPages/myOrdersManage/date/detail.vue
@@ -14,18 +14,18 @@
-
+
{{ selectDateList.length }}天
共不接单时间
-
修改
- -->
-
+
+
清空
@@ -67,10 +67,9 @@
onLoad((options) => {
addressId.value = options.addressId
});
-
+
onShow(() => {
- let response = outDateList();
- console.log("返回数据",response)
+ getOutDateList();
})
const addressId = ref(0)
@@ -153,18 +152,15 @@
groupedDates.value = sortedGroupedDates;
}
+ // 清除全部
const cleanDates = () => {
selectDateList.value = [];
gruopDate(selectDateList.value);
}
+ // 提交
const submit = async () => {
- if (!selectDateList.value.length) {
- return uni.showToast({
- title: '请选择日期',
- icon: "none"
- })
- } else if (!addressId.value) {
+ if (!addressId.value) {
return uni.showToast({
title: '地址标识不能为空',
icon: "none"
@@ -182,6 +178,18 @@
uni.navigateBack(-1);
}
}
+
+ const getOutDateList = async () => {
+ let response = await outDateList();
+ if (response.code == 200 && response.data) {
+ let list = response.data.filter(item => item.date !== null && item.date !== undefined);
+ list = list.map(item => item.date);
+ // 去除重复日期
+ selectDateList.value = [...new Set(list)];
+ console.log(selectDateList)
+ gruopDate(selectDateList.value);
+ }
+ }
\ No newline at end of file
diff --git a/pages/myOrdersManage/index.vue b/pages/myOrdersManage/index.vue
index 95ef21a..6686e8a 100644
--- a/pages/myOrdersManage/index.vue
+++ b/pages/myOrdersManage/index.vue
@@ -50,9 +50,7 @@
import {
onShow
} from "@dcloudio/uni-app"
- import {
- getIsLogin
- } from "@/utils/auth.js"
+ import { getLoginStatus } from "@/utils/useMixin.js"
// import personOrder from "./components/personOrder.vue";
// import lossOrder from "./components/lossOrder.vue";
@@ -62,11 +60,7 @@
} from "@/api/order/order.js"
onShow(() => {
- if (!getIsLogin()) {
- uni.navigateTo({
- url: "/pages/login/index"
- })
- }
+ if (!getLoginStatus())return;
})
const current = ref(0)
diff --git a/pages/orderTakingManage/index.vue b/pages/orderTakingManage/index.vue
index 15d2e64..77ce5d2 100644
--- a/pages/orderTakingManage/index.vue
+++ b/pages/orderTakingManage/index.vue
@@ -29,9 +29,7 @@
import {
onShow
} from "@dcloudio/uni-app"
- import {
- getIsLogin
- } from "@/utils/auth.js"
+ import { getLoginStatus } from "@/utils/useMixin.js"
import {
orderList
} from "@/api/receivingHall/index.js"
@@ -67,11 +65,7 @@
const orderlist = ref([]);
onShow(() => {
- if (!getIsLogin()) {
- uni.navigateTo({
- url: "/pages/login/index"
- })
- }
+ if (!getLoginStatus()) return;
getOrderList();
})
diff --git a/pages/userManage/index.vue b/pages/userManage/index.vue
index 96e52f5..60ead87 100644
--- a/pages/userManage/index.vue
+++ b/pages/userManage/index.vue
@@ -33,7 +33,7 @@
width="68rpx" height="68rpx">
服务酬劳
- {{ userInfo.price }}
+ {{ userInfo.price }}元
提现
|
@@ -46,7 +46,7 @@
width="68rpx" height="68rpx">
保证金
- {{ userInfo.baoPrice }}
+ {{ userInfo.baoPrice }}元
保证金中心
@@ -139,6 +139,7 @@
getToken,
removeIsLogin
} from "../../utils/auth";
+ import { getLoginStatus } from "@/utils/useMixin.js"
import tab from "../../plugins/tab";
import Modal from "@/components/Modal/index.vue"
import {
@@ -153,12 +154,8 @@
} from "@/api/pet/index.js"
onShow(() => {
- if (!getIsLogin()) {
- uni.navigateTo({
- url: "/pages/login/index"
- })
- }
- getPetList();
+ if (!getLoginStatus()) return;
+ getPet();
})
onMounted(() => {
@@ -221,7 +218,7 @@
})
}
- const getPetList = async () => {
+ const getPet = async () => {
let response = await getpetList();
pet.value = response?.data[0] || {};
}
@@ -296,6 +293,6 @@
.tip {
text-align: center;
- padding: 25rpx 0rpx;
+ padding-bottom: 20rpx;
}
\ No newline at end of file
diff --git a/pages/workbenchManage/index.vue b/pages/workbenchManage/index.vue
index 96f7684..a1d91bb 100644
--- a/pages/workbenchManage/index.vue
+++ b/pages/workbenchManage/index.vue
@@ -46,7 +46,7 @@
-
+
diff --git a/utils/useMixin.js b/utils/useMixin.js
index 1634525..512da9f 100644
--- a/utils/useMixin.js
+++ b/utils/useMixin.js
@@ -67,8 +67,8 @@ export const getLoginStatus = () => {
if (getIsLogin() && getToken()) {
return true
} else {
- modal.confirm("请先登录").then(res=>{
- tab.navigateTo('/pages/login/index')
+ uni.navigateTo({
+ url: '/pages/login/index'
})
return false
}