|
|
|
@ -33,7 +33,7 @@ |
|
|
|
}} |
|
|
|
</text> |
|
|
|
</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="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" --> |
|
|
|
<view class="m-r-xs d-flex align-center"> |
|
|
|
@ -264,92 +264,96 @@ import Contract from "@/api/contract.js"; |
|
|
|
import Profile from "@/api/profile"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "mine", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userInfo: {}, |
|
|
|
account: {}, |
|
|
|
list: [], |
|
|
|
tabActive: 0, // 切换选择 |
|
|
|
searchText: "", |
|
|
|
hide: false, |
|
|
|
show: false, |
|
|
|
accountDetail: {}, |
|
|
|
scrollTop: 0, |
|
|
|
refreshing: false, |
|
|
|
otc: {}, |
|
|
|
status: 0, |
|
|
|
}; |
|
|
|
name: "mine", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userInfo: {}, |
|
|
|
account: {}, |
|
|
|
list: [], |
|
|
|
tabActive: 0, // 切换选择 |
|
|
|
searchText: "", |
|
|
|
hide: false, |
|
|
|
show: false, |
|
|
|
accountDetail: {}, |
|
|
|
scrollTop: 0, |
|
|
|
refreshing: false, |
|
|
|
otc: {}, |
|
|
|
status: 0, |
|
|
|
user_auth_level: 0, |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState({ |
|
|
|
hideMoney: "hideMoney", |
|
|
|
theme: "theme", |
|
|
|
}), |
|
|
|
}, |
|
|
|
props: { |
|
|
|
isShow: { |
|
|
|
default: true, |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState({ |
|
|
|
hideMoney: "hideMoney", |
|
|
|
theme: "theme", |
|
|
|
}), |
|
|
|
refresherEnabled: { |
|
|
|
default: true, |
|
|
|
required: false, |
|
|
|
type: Boolean |
|
|
|
}, |
|
|
|
props: { |
|
|
|
isShow: { |
|
|
|
default: true, |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
}, |
|
|
|
refresherEnabled: { |
|
|
|
default: true, |
|
|
|
required: false, |
|
|
|
type: Boolean |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
isShow(n, o) { |
|
|
|
if (n) { |
|
|
|
this.upDateData(); |
|
|
|
this.getAuthInfo();//刷新this.user_auth_level |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
isShow(n, o) { |
|
|
|
if (n) { |
|
|
|
this.upDateData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
tabActive() { |
|
|
|
this.upDateData(); |
|
|
|
} |
|
|
|
tabActive() { |
|
|
|
this.upDateData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
priceDecimals(val) { |
|
|
|
console.info(val); |
|
|
|
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: { |
|
|
|
priceDecimals(val) { |
|
|
|
console.info(val); |
|
|
|
return (parseFloat(val)).toFixed(2) |
|
|
|
} |
|
|
|
onRefresh() { |
|
|
|
if (this.refreshing) return; |
|
|
|
this.refreshing = true; |
|
|
|
this.fundAccount() |
|
|
|
this.personalAssets() |
|
|
|
setTimeout(() => { |
|
|
|
this.refreshing = false; |
|
|
|
}, 1000) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getAuthInfo() { |
|
|
|
|
|
|
|
Profile.getAuthInfo().then(res => { |
|
|
|
// this.detail = res.data |
|
|
|
this.status = res.data.status |
|
|
|
console.log(this.status, '9999') |
|
|
|
console.log(res.data, '9999') |
|
|
|
}) |
|
|
|
}, |
|
|
|
onRefresh() { |
|
|
|
if (this.refreshing) return; |
|
|
|
this.refreshing = true; |
|
|
|
this.fundAccount() |
|
|
|
this.personalAssets() |
|
|
|
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); |
|
|
|
} |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|