Browse Source

优化页面加载体验,调整空数据占位符和按钮文案,更新基础URL配置

master
parent
commit
26c01a6dbd
  1. 4
      config.js
  2. 12
      pages/index.vue
  3. 4
      pages/login.vue
  4. 5
      pages/owner.vue
  5. 4
      sub/owner/edit.vue

4
config.js

@ -2,8 +2,8 @@
module.exports = {
// baseUrl: 'http://188.188.5.188:48080',
// baseUrl: 'https://www.jzce.com',
// baseUrl: 'https://yxsthj.cn',
baseUrl: 'http://188.188.3.232:48080',
baseUrl: 'https://yxsthj.cn',
// baseUrl: 'http://188.188.3.232:48080',
// baseUrl: 'http://localhost:48080',
baseApi: '/admin-api',
// 应用信息

12
pages/index.vue

@ -168,7 +168,11 @@
</view>
</view>
<view style="min-height: 440rpx">
<cs-emty marginTop="0" v-if="list.length == 0" height="400rpx"></cs-emty>
<cs-emty
marginTop="0"
v-if="list.length == 0"
height="400rpx"
></cs-emty>
<view
v-for="(item, index) in list"
:key="index"
@ -234,9 +238,6 @@ export default {
},
onLoad: async function () {
await uni.hideTabBar()
uni.hideTabBar({
animation: false
})
await this.getDict()
await this.init()
},
@ -282,7 +283,9 @@ export default {
}
})
]
if (this.dropOption.area.length > 0) {
this.queryParams.region = this.dropOption.area[0].value
}
},
async init() {
if (this.queryParams.region) {
@ -307,7 +310,6 @@ export default {
this.setPieData(data, this.detail.taskCompletionRate)
this.getList()
}
},
async getList() {
const res = await HomeApi.getListData(this.queryParams)

4
pages/login.vue

@ -31,8 +31,7 @@ export default {
methods: {
//
async initApp() {
await uni.hideTabBar()
uni.hideTabBar({
await uni.hideTabBar({
animation: false
})
if (!getOpenId()) {
@ -115,7 +114,6 @@ export default {
return
}
uni.switchTab({
url: '/pages/owner'
})

5
pages/owner.vue

@ -179,6 +179,11 @@ export default {
}
},
computed: {},
async onLoad() {
await uni.hideTabBar({
animation: false
})
},
onShow() {
this.init()
},

4
sub/owner/edit.vue

@ -103,7 +103,9 @@
<button class="button audit" v-if="form.audit == 1">
{{ $dict.echoDicValue(dictMap.user_audit_type, form.audit) }}
</button>
<button class="button submit" @click="submit" v-else>提交</button>
<button class="button submit" @click="submit" v-else>
提交申请
</button>
</view>
</view>
<u-picker

Loading…
Cancel
Save