提交修改

master
秦子超 2024-07-04 09:16:30 +08:00
parent ab854f6499
commit 128cfe4b90
3 changed files with 35 additions and 15 deletions

View File

@ -19,7 +19,15 @@
{ {
"path": "pages/homeIndex/index", "path": "pages/homeIndex/index",
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": "",
"enablePullDownRefresh": true,
"app-plus": {
"pullToRefresh": {
"support": true,
"style": "default",
"offset": "70px"
}
}
} }
}, },
{ {

View File

@ -403,7 +403,16 @@ export default {
numPic: 0, numPic: 0,
allStatus: false allStatus: false
} }
}, },
onPullDownRefresh() {
this.getSwiperList()
this.getOverview()
this.getDataTime()
this.getResponseLevel()
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
},
computed: { computed: {
getNavList () { getNavList () {
const adcd = uni.getStorageSync('value').adcd const adcd = uni.getStorageSync('value').adcd

View File

@ -27,8 +27,8 @@
>记住用户名和密码</text >记住用户名和密码</text
> >
</uni-forms-item> </uni-forms-item>
<!-- <button type="primary" class="button" @click="xian"></button> --> <button type="primary" class="button" @click="xian"></button>
<!-- <button type="primary" class="button" @click="xiang"></button> --> <button type="primary" class="button" @click="xiang"></button>
<button type="primary" class="button" @click="login(formData)"> <button type="primary" class="button" @click="login(formData)">
登录 登录
</button> </button>
@ -113,9 +113,9 @@ export default {
} }
// //
uni.$http.post('/gunshiApp/xfflood/doLogin', postForm).then(res => { uni.$http.post('/gunshiApp/xfflood/doLogin', postForm).then(res => {
uni.showLoading({ title: '努力登录中...', mask: true }) // uni.showLoading({ title: '...', mask: true })
if (res.data.code === 200) { if (res.data.code === 200) {
//localStoragetoken //localStoragetoken
@ -150,17 +150,20 @@ export default {
} else { } else {
uni.setStorageSync('avatar', '../../static/tabs/touxiang.png') uni.setStorageSync('avatar', '../../static/tabs/touxiang.png')
} }
uni.showLoading({title:'努力登录中...', mask:true});
//
setTimeout(function () {
uni.hideLoading()
uni.reLaunch({
url: '/pages/homeIndex/index'
})
}, 1000)
clearTimeout()
}) })
} }
//
setTimeout(function () {
uni.hideLoading()
uni.reLaunch({
url: '/pages/homeIndex/index'
})
}, 1000)
clearTimeout()
} else if (res.data.code === 400) { } else if (res.data.code === 400) {
// //
setTimeout(function () { setTimeout(function () {