This commit is contained in:
lym
2026-03-18 17:27:43 +08:00
parent 4a5d7353ed
commit c076cf32b0
34 changed files with 480 additions and 264 deletions

View File

@@ -68,11 +68,24 @@ Page( {
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
var userInfodata = wx.getStorageSync("userInfo")
if(userId&&LoginId){
var userInfo = JSON.parse(userInfodata)
that.setData({
uid:userInfo.id
})
if(!userId || !LoginId){
wx.showModal({
title: "提示",
content: "请先登录后再申请",
showCancel: false,
success: function() {
wx.navigateBack({})
}
})
return
}
if(userId && LoginId && userInfodata){
var userInfo = JSON.parse(userInfodata)
that.setData({
uid:userInfo.id
})
}
wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx",
@@ -235,6 +248,11 @@ wx.getLocation({
sectionHidden0:true,
savebutton:"提交"
})
wx.showToast({
title: "地图标注已保存",
icon: "success",
duration: 1500
})
},insection:function(e) {
},onsjimage:function(e) {
@@ -643,14 +661,24 @@ wx.getLocation({
}, 2000);
}else{
that.setData({
savebutton:"保存"
})
savebutton:"提交"
})
wx.showToast({
title: res.data.msg,
icon: "none",
duration: 3000
})
}
},
fail: function(err) {
that.setData({
savebutton:"提交"
})
wx.showToast({
title: "网络请求失败,请重试",
icon: "none",
duration: 3000
})
}
})
}

View File

@@ -1,3 +1,3 @@
{
"navigationBarTitleText": "申请线上供应链"
"navigationBarTitleText": "申请健康驿站"
}

View File

@@ -1,5 +1,8 @@
<view class="container">
<form bindsubmit='saveaddress' wx:if="{{uid>68}}">
<view wx:if="{{uid<=0}}" class="nodata" style="padding-top: 50%;">
<text>请先登录后再申请</text>
</view>
<form bindsubmit='saveaddress' wx:if="{{uid>0}}">
<view class="myaddress-box">
<view class="frombody">