优化请求状态提示信息
This commit is contained in:
@@ -68,7 +68,7 @@ const request = (parameter, hideLoding = true) => {
|
|||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.errMsg,
|
title: '网络错误,请检查您设备网络状态',
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<block v-if="users.length > 0">
|
<block v-if="users.length > 0">
|
||||||
<view class="team-list-flex" v-for="(item, index) in users" :key="index">
|
<view class="team-list-flex" v-for="(item, index) in users" :key="index">
|
||||||
<view class="team-list-flex-item user">
|
<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 class="user-nickname nowrap">{{item.nickname}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="team-list-flex-item number nowrap">{{item.username}}</view>
|
<view class="team-list-flex-item number nowrap">{{item.username}}</view>
|
||||||
|
|||||||
@@ -204,7 +204,7 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
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();
|
this.getInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -282,7 +282,7 @@
|
|||||||
// 退出登录
|
// 退出登录
|
||||||
logOut() {
|
logOut() {
|
||||||
uni.removeStorageSync('isnew')
|
uni.removeStorageSync('isnew')
|
||||||
uni.removeStorageSync('isWalleNum')
|
// uni.removeStorageSync('isWalleNum')
|
||||||
this.$store.commit('setToken', '');
|
this.$store.commit('setToken', '');
|
||||||
this.$Router.replaceAll({name: 'Auth'})
|
this.$Router.replaceAll({name: 'Auth'})
|
||||||
},
|
},
|
||||||
@@ -316,7 +316,7 @@
|
|||||||
this.isWallet = true
|
this.isWallet = true
|
||||||
this.walletNum = 0
|
this.walletNum = 0
|
||||||
this.$refs.onTimeCount.pause();
|
this.$refs.onTimeCount.pause();
|
||||||
uni.setStorageSync('isWalleNum', 1)
|
// uni.setStorageSync('isWalleNum', 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 复制助记词
|
// 复制助记词
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<view class="vip-content-title">会员特权</view>
|
<view class="vip-content-title">会员特权</view>
|
||||||
<view class="vip-privilege">
|
<view class="vip-privilege">
|
||||||
<view class="vip-privilege-item" v-for="(item, index) in rights" :key="index">
|
<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-text">{{item.name}}</view>
|
||||||
<view class="vip-privilege-sub">{{item.remark}}</view>
|
<view class="vip-privilege-sub">{{item.remark}}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -112,7 +112,6 @@
|
|||||||
// 获取会员信息
|
// 获取会员信息
|
||||||
getVipInfo(){
|
getVipInfo(){
|
||||||
vip().then(res =>{
|
vip().then(res =>{
|
||||||
console.log(res)
|
|
||||||
this.firstRule = res.first_rule
|
this.firstRule = res.first_rule
|
||||||
this.isOpen = res.is_open
|
this.isOpen = res.is_open
|
||||||
this.prices = res.prices
|
this.prices = res.prices
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
13173
unpackage/dist/dev/app-plus/app-service.js
vendored
13173
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -19704,7 +19704,7 @@ var render = function() {
|
|||||||
staticClass: _vm._$g("32-" + $30, "sc"),
|
staticClass: _vm._$g("32-" + $30, "sc"),
|
||||||
attrs: {
|
attrs: {
|
||||||
src: _vm._$g("32-" + $30, "a-src"),
|
src: _vm._$g("32-" + $30, "a-src"),
|
||||||
mode: "widthFix",
|
mode: "aspectFill",
|
||||||
_i: "32-" + $30
|
_i: "32-" + $30
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user