Browse Source

调整部分内容,修改行政区划显示

master
ZhaoYang 1 week ago
parent
commit
f2f39e038f
  1. 8
      pages/home/home.js
  2. 4
      pages/home/home.wxml
  3. 2
      pages/personal/personal.js
  4. 4
      utils/baseUrl.js

8
pages/home/home.js

@ -21,9 +21,9 @@ Page({
http.UserInfo({
data: {},
success: res => {
console.log(11111,res);
console.log(111,res);
this.setData({
user: res.data.area
user: res.data.user.area
})
}
})
@ -48,7 +48,6 @@ Page({
http.experience({
data: {},
success: res => {
console.log(111, res);
const zyfx = []
zyfx.push(res.rows[0])
this.setData({
@ -222,7 +221,6 @@ Page({
},
onLoad() {
this.getUserInfo()
this.getDisaster()
this.getCarousel()
this.getLocation()
@ -231,8 +229,8 @@ Page({
},
onShow() {
// 页面显示时重置轮播图(解决某些手机上的轮播问题)
this.resetSwiper()
this.getUserInfo()
},
// 重置轮播图(解决轮播不自动播放的问题)

4
pages/home/home.wxml

@ -11,9 +11,9 @@
</view> -->
<!-- 行政区划 -->
<view class="orientation3" wx:if="{{user.code}}" bind:tap="bindXzqh">
<view class="orientation3" bind:tap="bindXzqh">
<image src="/pages/images/dw.png" mode="" />
<view>{{user.name}}</view>
<view>{{user.name || '去选择'}}</view>
</view>
</view>

2
pages/personal/personal.js

@ -86,7 +86,6 @@ Page({
http.revise({
data: dataToUpdate,
success: (res) => {
console.log('更新成功:', res)
// 清空表单数据
this.setData({
'formData.avatar': null,
@ -290,7 +289,6 @@ Page({
content:content
},
success:res=>{
console.log(111111,res);
if(res.code==200){
this.showToast('感谢您的反馈!')
}else{

4
utils/baseUrl.js

@ -1,5 +1,5 @@
// var baseUrl = 'https://wx.chenhaitech.com/ymtx-prod-api'
var baseUrl = 'http://192.168.101.109:8080'
// var baseUrl = 'http://192.168.101.105:8082'
// var baseUrl = 'http://192.168.101.109:8080'
var baseUrl = 'http://192.168.101.105:8082'
// var baseUrl = 'http://192.168.101.111:8081'
module.exports = baseUrl
Loading…
Cancel
Save