查询
diff --git a/ceres-uniapp-master/pages/tabbar/user/index.vue b/ceres-uniapp-master/pages/tabbar/user/index.vue
index 4a44547..82adcda 100644
--- a/ceres-uniapp-master/pages/tabbar/user/index.vue
+++ b/ceres-uniapp-master/pages/tabbar/user/index.vue
@@ -27,7 +27,7 @@
diff --git a/ceres-uniapp-master/pages_category_page2/userModule/personalDetails.vue b/ceres-uniapp-master/pages_category_page2/userModule/personalDetails.vue
index df4d9f2..cb7c3cd 100644
--- a/ceres-uniapp-master/pages_category_page2/userModule/personalDetails.vue
+++ b/ceres-uniapp-master/pages_category_page2/userModule/personalDetails.vue
@@ -5,9 +5,14 @@
-
+
+
@@ -261,15 +266,44 @@
this.name = res.data.name
this.birthday = res.data.birthday
}).catch(res => {
-
+
})
},
userHeadTap() {
- return
+ // return
uni.chooseImage({
count: 1,
- sizeType: ['compressed'],
- success: (res) => {}
+ sizeType: ['compressed','album', 'camera'],
+ success: (res) => {
+ const tempFilePaths = res.tempFilePaths;
+ // 这里可以进行图片上传操作,以下只是示例更新本地数据
+ this.item.headImage = tempFilePaths[0];
+ // console.log('23423423',res)
+ uni.uploadFile({
+ url: API.UpUrl,
+ filePath: tempFilePaths[0],
+ name: 'file',
+ success: (uploadRes) => {
+ console.log('上传成功', JSON.parse(uploadRes.data).data);
+ NET.request(API.UpdateUser, {
+ headImage:JSON.parse(uploadRes.data).data
+ }, 'POST').then(res => {
+ this.GetUser()
+ uni.hideLoading()
+ uni.showToast({
+ title: '修改成功',
+ icon: "success"
+ })
+ }).catch(res => {
+ uni.hideLoading()
+ })
+ },
+ fail: (err) => {
+ console.log('上传失败', err);
+ }
+ })
+
+ }
})
},
//生日
diff --git a/ceres-uniapp-master/utils/payUtil.js b/ceres-uniapp-master/utils/payUtil.js
index b0f1ea6..c98f737 100644
--- a/ceres-uniapp-master/utils/payUtil.js
+++ b/ceres-uniapp-master/utils/payUtil.js
@@ -21,20 +21,24 @@ async function payH5InEquipment(payInfo) {
// })
// NET.request(API.gotoH5Pay, payInfo, 'POST').then(res1=>{
console.log('支付参数',payInfo)
- NET.request(API.Wenlv, payInfo, 'POST').then(res1=>{
- console.log('文旅支付参数',JSON.parse(res1.data).data.codeUrl)
- uni.setStorageSync('homePageRoute', '/pages/tabbar/user/index');
-
- location.replace(JSON.parse(res1.data).data.codeUrl)
- // NET.request(API.Gethu,payInfo, 'POST').then(res=>{
-
- // // location.replace(res1.data.codeUrl)
- // }).catch(err=>{
- // console.log(err)
- // })
+ // NET.request(API.Wenlv, payInfo, 'POST').then(res1=>{
+ // console.log('文旅支付参数',JSON.parse(res1.data).data.codeUrl)
+ // uni.setStorageSync('homePageRoute', '/pages/tabbar/user/index');
+ // location.replace(JSON.parse(res1.data).data.codeUrl)
+ // NET.request(API.Gethu,payInfo, 'POST').then(res=>{
+
+ // }).catch(err=>{
+ // console.log(err)
+ // })
- })
-
+ // })
+ const res1 = await NET.request(API.Wenlv, payInfo, 'POST');
+ console.log('文旅支付参数', JSON.parse(res1.data).data.codeUrl)
+ const codeUrl = JSON.parse(res1.data).data.codeUrl
+ if(codeUrl){
+ location.replace(codeUrl)
+ }
+
} catch (e) {
this.submitActive = true
uni.showToast({
diff --git a/lvdao-miniapp/pages/shops/shops.vue b/lvdao-miniapp/pages/shops/shops.vue
index 2d98da2..193f442 100644
--- a/lvdao-miniapp/pages/shops/shops.vue
+++ b/lvdao-miniapp/pages/shops/shops.vue
@@ -345,11 +345,15 @@
},
{
value: '2',
- label: '2000-5000'
+ label: '2001-5000'
},
{
value: '3',
- label: '5000-10000'
+ label: '5001-10000'
+ },
+ {
+ value: '4',
+ label: '10001-20000'
}
]
} else {
@@ -442,6 +446,14 @@
})
},
request() {
+ const isLogin = uni.getStorageSync('user');
+ if (isLogin == '') {
+ // 如果未登录,跳转到登录页面
+ uni.navigateTo({
+ url: '/pages/login/login'
+ })
+ return false
+ }
if (!this.formList.belongingRegion) {
uni.showToast({
icon: 'none',
@@ -481,7 +493,8 @@
belongingRegion:this.formList.belongingRegion,
applicableResources:'商铺',
matchingRecord: JSON.stringify(res.data.data.content),
- type:2
+ type:2,
+ shopId:isLogin.phone
}
this.$http.sendRequest('/resourceStrategyMatchingRecord/insert', 'POST', obj, 1).then(
res => {