Browse Source

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

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

4
config.js

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

14
pages/index.vue

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

4
pages/login.vue

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

7
pages/owner.vue

@ -49,7 +49,7 @@
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> --> </view> -->
<view class="row"> <view class="row">
<view class="notice-wrapper" v-if="noticeTotal > 0"> <view class="notice-wrapper" v-if="noticeTotal > 0">
<u-count-to <u-count-to
:startVal="0" :startVal="0"
:endVal="policyTotal" :endVal="policyTotal"
@ -179,6 +179,11 @@ export default {
} }
}, },
computed: {}, computed: {},
async onLoad() {
await uni.hideTabBar({
animation: false
})
},
onShow() { onShow() {
this.init() this.init()
}, },

4
sub/owner/edit.vue

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

Loading…
Cancel
Save