优化请求状态提示信息

This commit is contained in:
唐明明
2022-06-14 18:14:16 +08:00
parent 1001b3245b
commit adfc25d91c
8 changed files with 6597 additions and 6597 deletions

View File

@@ -68,7 +68,7 @@ const request = (parameter, hideLoding = true) => {
},
fail(err) {
uni.showToast({
title: err.errMsg,
title: '网络错误,请检查您设备网络状态',
icon : 'none'
})
}

View File

@@ -39,7 +39,7 @@
<block v-if="users.length > 0">
<view class="team-list-flex" v-for="(item, index) in users" :key="index">
<view class="team-list-flex-item user">
<image class="user-cover" :src="item.avatar || ''" mode="aspectFill"></image>
<image class="user-cover" :src="item.avatar || require('@/static/user/cover.png') " mode="aspectFill"></image>
<view class="user-nickname nowrap">{{item.nickname}}</view>
</view>
<view class="team-list-flex-item number nowrap">{{item.username}}</view>

View File

@@ -204,7 +204,7 @@
};
},
onShow() {
if(uni.getStorageSync('isWalleNum') != '' && uni.getStorageSync('isWalleNum') === 1) this.isWallet = true
// if(uni.getStorageSync('isWalleNum') != '' && uni.getStorageSync('isWalleNum') === 1) this.isWallet = true
this.getInfo();
},
methods: {
@@ -282,7 +282,7 @@
// 退出登录
logOut() {
uni.removeStorageSync('isnew')
uni.removeStorageSync('isWalleNum')
// uni.removeStorageSync('isWalleNum')
this.$store.commit('setToken', '');
this.$Router.replaceAll({name: 'Auth'})
},
@@ -316,7 +316,7 @@
this.isWallet = true
this.walletNum = 0
this.$refs.onTimeCount.pause();
uni.setStorageSync('isWalleNum', 1)
// uni.setStorageSync('isWalleNum', 1)
}
},
// 复制助记词

View File

@@ -35,7 +35,7 @@
<view class="vip-content-title">会员特权</view>
<view class="vip-privilege">
<view class="vip-privilege-item" v-for="(item, index) in rights" :key="index">
<image class="vip-privilege-icon" :src="item.cover" mode="widthFix"></image>
<image class="vip-privilege-icon" :src="item.cover" mode="aspectFill"></image>
<view class="vip-privilege-text">{{item.name}}</view>
<view class="vip-privilege-sub">{{item.remark}}</view>
</view>
@@ -112,7 +112,6 @@
// 获取会员信息
getVipInfo(){
vip().then(res =>{
console.log(res)
this.firstRule = res.first_rule
this.isOpen = res.is_open
this.prices = res.prices

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -19704,7 +19704,7 @@ var render = function() {
staticClass: _vm._$g("32-" + $30, "sc"),
attrs: {
src: _vm._$g("32-" + $30, "a-src"),
mode: "widthFix",
mode: "aspectFill",
_i: "32-" + $30
}
}),

File diff suppressed because one or more lines are too long