Browse Source

修复初级验证

master
453530270@qq.com 3 years ago
parent
commit
e1780be833
  1. 168
      pages/base/mine.vue

168
pages/base/mine.vue

@ -33,7 +33,7 @@
}} }}
</text> </text>
</v-link> </v-link>
<v-link tag="view" to="/pages/auth/primary" v-if="status==0" @click="getAuthInfo" <v-link tag="view" to="/pages/auth/primary" v-if="user_auth_level==0" @click="getAuthInfo"
class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4"> class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4">
<!-- :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" --> <!-- :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" -->
<view class="m-r-xs d-flex align-center"> <view class="m-r-xs d-flex align-center">
@ -264,92 +264,96 @@ import Contract from "@/api/contract.js";
import Profile from "@/api/profile"; import Profile from "@/api/profile";
export default { export default {
name: "mine", name: "mine",
data() { data() {
return { return {
userInfo: {}, userInfo: {},
account: {}, account: {},
list: [], list: [],
tabActive: 0, // tabActive: 0, //
searchText: "", searchText: "",
hide: false, hide: false,
show: false, show: false,
accountDetail: {}, accountDetail: {},
scrollTop: 0, scrollTop: 0,
refreshing: false, refreshing: false,
otc: {}, otc: {},
status: 0, status: 0,
}; user_auth_level: 0,
};
},
computed: {
...mapState({
hideMoney: "hideMoney",
theme: "theme",
}),
},
props: {
isShow: {
default: true,
type: Boolean,
required: false,
}, },
computed: { refresherEnabled: {
...mapState({ default: true,
hideMoney: "hideMoney", required: false,
theme: "theme", type: Boolean
}),
}, },
props: { },
isShow: { watch: {
default: true, isShow(n, o) {
type: Boolean, if (n) {
required: false, this.upDateData();
}, this.getAuthInfo();//this.user_auth_level
refresherEnabled: { }
default: true,
required: false,
type: Boolean
},
}, },
watch: { tabActive() {
isShow(n, o) { this.upDateData();
if (n) { }
this.upDateData(); },
} filters: {
}, priceDecimals(val) {
tabActive() { console.info(val);
this.upDateData(); return (parseFloat(val)).toFixed(2)
} }
},
methods: {
getAuthInfo() {
Profile.getAuthInfo().then(res => {
// this.detail = res.data
this.status = res.data.status
this.user_auth_level = res.data.primary_status
console.log(this.status, '9999')
console.log(res.data, '8888')
console.log(this.user_auth_level, '7777')
})
}, },
filters: { onRefresh() {
priceDecimals(val) { if (this.refreshing) return;
console.info(val); this.refreshing = true;
return (parseFloat(val)).toFixed(2) this.fundAccount()
} this.personalAssets()
setTimeout(() => {
this.refreshing = false;
}, 1000)
}, },
methods: { scroll(event) {
getAuthInfo() { this.scrollTop = event.detail.scrollTop
},
Profile.getAuthInfo().then(res => { omitTo: math.omitTo,
// this.detail = res.data //
this.status = res.data.status add: math.add,
console.log(this.status, '9999') ...mapActions({
console.log(res.data, '9999') setHide: "hideMoney",
}) }),
}, filterMoney(val, type) {
onRefresh() { if (this.hideMoney) return "******";
if (this.refreshing) return; if (type) {
this.refreshing = true; return this.omitTo(val, 8);
this.fundAccount() } else {
this.personalAssets() return this.omitTo(val, 2);
setTimeout(() => { }
this.refreshing = false;
}, 1000)
},
scroll(event) {
this.scrollTop = event.detail.scrollTop
},
omitTo: math.omitTo,
//
add: math.add,
...mapActions({
setHide: "hideMoney",
}),
filterMoney(val, type) {
if (this.hideMoney) return "******";
if (type) {
return this.omitTo(val, 8);
} else {
return this.omitTo(val, 2);
}
}, },

Loading…
Cancel
Save