no message
This commit is contained in:
+21
-24
@@ -54,6 +54,7 @@
|
||||
<!-- (2)转盘抽奖获得 -->
|
||||
</view>
|
||||
<!-- <DownPopup :show="true"></DownPopup> -->
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -62,7 +63,7 @@ import { getUserInfo } from '@/api/auth.js';
|
||||
import Header from '@/components/common/header.vue';
|
||||
import TopSafe from '@/components/common/top-safe.nvue'
|
||||
import DownPopup from '@/components/common/down-popup.vue';
|
||||
import { getContractList,signContract } from '@/api/contract.js'
|
||||
import { quickens } from '@/api/contract.js'
|
||||
|
||||
import func from '@/utils/func.js';
|
||||
|
||||
@@ -81,38 +82,33 @@ export default {
|
||||
],
|
||||
tableHead:['加速比例','释放TBC数量','时间'],
|
||||
tableList:[
|
||||
{one:'12%',two:'888',three:'2022-12-15'},
|
||||
{one:'12%',two:'888',three:'2022-12-15'},
|
||||
{one:'12%',two:'888',three:'2022-12-15'},
|
||||
{one:'12%',two:'888',three:'2022-12-15'},
|
||||
|
||||
]
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
// this.init();
|
||||
onLoad() {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
init(){
|
||||
// this.isSignContract()
|
||||
this.getSignContract()
|
||||
this.getQuichens()
|
||||
},
|
||||
isSignContract(){
|
||||
signContract().then(res=>{
|
||||
getQuichens(){
|
||||
quickens().then(res=>{
|
||||
if(res.bizcode == 100){
|
||||
this.type = res.data;
|
||||
}else{
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: res.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
getSignContract(){
|
||||
getContractList().then(res=>{
|
||||
if(res.bizcode == 100){
|
||||
this.obj = res.data[0];
|
||||
this.obj.time = func.formatDate(new Date(res.data[0].signatureTime),3)
|
||||
// this.type = res.data;
|
||||
this.tList[0].text = res.data.vcoinsLock;
|
||||
this.tList[1].text = res.data.quickenBalance;
|
||||
this.topList[0].value = res.data.quickenTotal;
|
||||
this.topList[1].value = res.data.quickenValue;
|
||||
this.topList[2].value = res.data.quickenBalance;
|
||||
this.tableList = res.data.quickenDetail;
|
||||
this.tableList.forEach(item=>{
|
||||
item.one = item.quickenRate * 100 + '%';
|
||||
item.two = item.quickenValue;
|
||||
item.three = func.formatDate(new Date(item.ctdate), 3)
|
||||
})
|
||||
}else{
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
@@ -121,6 +117,7 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onBtn(){
|
||||
if(this.type){
|
||||
//查看
|
||||
|
||||
Reference in New Issue
Block a user