diff --git a/lvdao-miniapp/pages.json b/lvdao-miniapp/pages.json
index 933022d..8426b49 100644
--- a/lvdao-miniapp/pages.json
+++ b/lvdao-miniapp/pages.json
@@ -414,6 +414,14 @@
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTitleText": "商品详情"
}
+ },
+ {
+ "path" : "pages/my/remove",
+ "style" :
+ {
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "navigationBarTitleText": "修改资料"
+ }
}
],
"subpackages": [{
diff --git a/lvdao-miniapp/pages/my/my.vue b/lvdao-miniapp/pages/my/my.vue
index c6470a7..abf6797 100644
--- a/lvdao-miniapp/pages/my/my.vue
+++ b/lvdao-miniapp/pages/my/my.vue
@@ -34,8 +34,8 @@
-
-
+
+
@@ -286,18 +286,21 @@
};
},
onload() {
-
+
},
onShow() {
const isLogin = uni.getStorageSync('token');
- this.user = uni.getStorageSync('user')
+ // this.user = uni.getStorageSync('user')
if (isLogin == '') {
// 如果未登录,跳转到登录页面
uni.navigateTo({
url: '/pages/login/login'
})
} else {
-
+ this.$http.sendRequest('/business/getUserDetails', 'GET', {}).then(res => {
+
+ this.user = res.data.data
+ })
this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST',{pageSize:10,pageNumber:0,phone:uni.getStorageSync('user').phone},1).then(res => {
if(res.data.data.content.length>0) {
let c1 = res.data.data.content[0]
diff --git a/lvdao-miniapp/pages/my/remove.vue b/lvdao-miniapp/pages/my/remove.vue
new file mode 100644
index 0000000..be339ac
--- /dev/null
+++ b/lvdao-miniapp/pages/my/remove.vue
@@ -0,0 +1,169 @@
+
+
+
+
+ 头像
+
+
+
+ 昵称
+
+
+
+ 性别
+
+ {{arr1.sex}}
+
+
+
+
+ 确认
+
+
+
+
+
+
+
+
diff --git a/lvdao-miniapp/pages/workbench/workbench.vue b/lvdao-miniapp/pages/workbench/workbench.vue
index 82bc231..4707686 100644
--- a/lvdao-miniapp/pages/workbench/workbench.vue
+++ b/lvdao-miniapp/pages/workbench/workbench.vue
@@ -318,8 +318,8 @@
"page": 1,
"pageSize": 1
}, 1).then(res => {
- if (res.data.data.list.length > 0) {
- uni.setStorageSync('shopId', res.data.data.list[0].shopId);
+ if (res.data.data.content.length > 0) {
+ uni.setStorageSync('shopId', res.data.data.content[0].shopId);
} else {
// uni.show
uni.setStorageSync('shopId', '');
diff --git a/lvdao-miniapp/pagesA/rentPay/rentPay.vue b/lvdao-miniapp/pagesA/rentPay/rentPay.vue
index cad2ed7..f6b662f 100644
--- a/lvdao-miniapp/pagesA/rentPay/rentPay.vue
+++ b/lvdao-miniapp/pagesA/rentPay/rentPay.vue
@@ -51,7 +51,7 @@
合计:{{payAll}}
- 去支付
+ 去支付
@@ -208,7 +208,7 @@
const msg = JSON.stringify(this.list1[this.ListIndex])
uni.navigateTo({
- url: `/pagesA/rentPay/rentPayDetails?msg=${msg}&merchants=${this.relatedMerchants}`
+ url: `/pagesA/rentPay/rentPayDetails?msg=${encodeURIComponent(msg)}&merchants=${encodeURIComponent(this.relatedMerchants)}`
})
},
async joinShow() {
@@ -236,10 +236,7 @@
})
// return
- const payId = this.$http.sendRequest('/order/rentAggregatePayment', 'POST', arr, 3).then(res => {
- console.log(res.data)
- console.log(JSON.parse(res.data.data).payUrl)
-
+ const payId = await this.$http.sendRequest('/order/rentAggregatePayment', 'POST', arr, 3).then(res => {
if (res.data.data) {
let payUrl = JSON.parse(res.data.data).payUrl
let c1 = payUrl.split('=')[1]
diff --git a/lvdao-miniapp/pagesA/rentPay/rentPayDetails.vue b/lvdao-miniapp/pagesA/rentPay/rentPayDetails.vue
index 0b36dfd..b7cc830 100644
--- a/lvdao-miniapp/pagesA/rentPay/rentPayDetails.vue
+++ b/lvdao-miniapp/pagesA/rentPay/rentPayDetails.vue
@@ -34,7 +34,7 @@
-
+
暂无数据
@@ -57,10 +57,12 @@
this.pageIndex.time = this.getCurrentYear()
},
onLoad(options) {
+ console.error(options)
if (options.msg && options.merchants) {
this.allPay = 0
- let receivedMsg = JSON.parse(options.msg)
- this.merchants = options.merchants
+ let receivedMsg = JSON.parse(decodeURIComponent(options.msg))
+ this.merchants = decodeURIComponent(options.merchants)
+ console.error(this.merchants)
this.getAll(receivedMsg.list)
}
},
@@ -145,6 +147,7 @@
paymentTimeStart: firstDay,
paymentTimeEnd: lastDay
}, 1).then(res => {
+ console.log(res)
if (res.data.data.length > 0) {
this.getAll(res.data.data[0].cerePropertyOrderList)
} else {
@@ -176,7 +179,7 @@
const minutes = String(date.getMinutes()).padStart(2, '0');
// 按照所需格式拼接并返回结果
- return `${month}.${day} ${hours}:${minutes}`;
+ return `${month}月${day}日 ${hours}:${minutes}`;
},
formatDate(dateStr) {
// 使用 split 方法将日期字符串按 - 分割成数组
diff --git a/lvdao-miniapp/utils/request.js b/lvdao-miniapp/utils/request.js
index b24bbdf..529cda7 100644
--- a/lvdao-miniapp/utils/request.js
+++ b/lvdao-miniapp/utils/request.js
@@ -21,7 +21,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
// bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url;
// bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url;
- // bases = 'http://128.10.249.41:9003'+ url;
+ // bases = 'http://128.10.249.23:9003'+ url;
// bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url;
bases = c1 + 'cdwlMall/meserver/admin-server' + url;
@@ -30,7 +30,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
// bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url;
// bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url;
// bases = 'http://128.10.249.22:9003:9007' + url;
- // bases = 'http://128.10.249.41:9007' + url;
+ // bases = 'http://128.10.249.23:9007' + url;
bases = c1 + 'cdwlMall/meserver/api' + url;
}else{
@@ -39,7 +39,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
// bases = 'http://172.16.61.123/cdwlMall/business-server' + url;
// bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url;
// bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url;
- // bases = 'http://128.10.249.41:9004' + url;
+ // bases = 'http://128.10.249.23:9004' + url;
// bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url;
bases = c1 + 'cdwlMall/business-server' + url;