Browse Source

小程序样式修改

master
王健 4 years ago
parent
commit
90ad8b8548
  1. 24
      pages/auth/auth.js
  2. 6
      pages/look-detail/look-detail.wxss
  3. 2
      pages/lookStay-detail/lookStay-detail.wxss
  4. 11
      utils/api.js
  5. 11
      utils/gisApi.js

24
pages/auth/auth.js

@ -76,11 +76,12 @@ Page({
wx.setStorageSync(
'access_token', res.access_token
)
setTimeout(() => {
wx.switchTab({
url: '/pages/look/look'
})
}, 1500)
wx.switchTab({
url: '/pages/look/look'
})
// setTimeout(() => {
// }, 1500)
}
})
},
@ -138,12 +139,13 @@ Page({
duration: 1500,
})
wx.setStorageSync('access_token', res.access_token);
console.log(res);
setTimeout(() => {
wx.switchTab({
url: '/pages/look/look'
})
}, 1500)
wx.switchTab({
url: '/pages/look/look'
})
// console.log(res);
// setTimeout(() => {
// }, 1500)
})
},
/**

6
pages/look-detail/look-detail.wxss

@ -58,22 +58,26 @@
}
.gener-tag.dgp{
background: #F7A40F;
margin-top: 9rpx;
}
.gener-tag.gpz{
background: #10C769;
margin-top: 9rpx;
}
.gener-tag.lp{
background: #666A7A;
margin-top: 9rpx;
}
.gener-tag.ycj{
background: #FF652F;
margin-top: 9rpx;
}
.gener-top {
display: flex;
align-items: center;
/* align-items: center; */
}
.gener-title {

2
pages/lookStay-detail/lookStay-detail.wxss

@ -73,7 +73,7 @@
.gener-top {
display: flex;
align-items: center;
/* align-items: center; */
}
.gener-title {

11
utils/api.js

@ -35,11 +35,12 @@ function request(method, url, data, hasToke = true) {
mask: true,
})
wx.clearStorage();
setTimeout(() => {
wx.navigateTo({
url: "/pages/auth/auth",
})
}, 1500)
wx.navigateTo({
url: "/pages/auth/auth",
})
// setTimeout(() => {
// }, 1500)
} else {
resolve(res.data);
}

11
utils/gisApi.js

@ -36,11 +36,12 @@ function request(method, url, data, hasToke = true) {
mask: true,
})
wx.clearStorage();
setTimeout(() => {
wx.navigateTo({
url: "/pages/auth/auth",
})
}, 1500)
wx.navigateTo({
url: "/pages/auth/auth",
})
// setTimeout(() => {
// }, 1500)
} else {
resolve(res.data);
}

Loading…
Cancel
Save