|
|
@ -2,13 +2,13 @@ |
|
|
<v-paging :ajax="getHistoryEntrust" class="h-max" ref="vPag"> |
|
|
<v-paging :ajax="getHistoryEntrust" class="h-max" ref="vPag"> |
|
|
<template #box="list"> |
|
|
<template #box="list"> |
|
|
<van-empty v-if="!$list(list).length" description="" /> |
|
|
<van-empty v-if="!$list(list).length" description="" /> |
|
|
|
|
|
|
|
|
<!-- @click="showDetail(item)" --> |
|
|
<!-- @click="showDetail(item)" --> |
|
|
<div |
|
|
<div |
|
|
class="item m-md rounded-sm box-shadow color-dark" |
|
|
class="item m-md rounded-sm box-shadow color-dark" |
|
|
v-for="item in $list(list)" |
|
|
v-for="item in $list(list)" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
|
|
|
|
|
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
class="head d-flex align-center border-b p-x-md p-y-xs justify-between" |
|
|
class="head d-flex align-center border-b p-x-md p-y-xs justify-between" |
|
|
@ -56,7 +56,7 @@ |
|
|
<!-- <div class="row d-flex m-y-mini justify-between" v-if="item.profit"> |
|
|
<!-- <div class="row d-flex m-y-mini justify-between" v-if="item.profit"> |
|
|
<div class="label fn-sm">{{$t('contract.b4')}}</div> |
|
|
<div class="label fn-sm">{{$t('contract.b4')}}</div> |
|
|
<div class="color-light"> |
|
|
<div class="color-light"> |
|
|
|
|
|
|
|
|
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain |
|
|
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain |
|
|
:to="{path:'/pages/income/index',query:{ |
|
|
:to="{path:'/pages/income/index',query:{ |
|
|
symbol:item.symbol, |
|
|
symbol:item.symbol, |
|
|
@ -69,7 +69,7 @@ |
|
|
position_side: 2, |
|
|
position_side: 2, |
|
|
}}" |
|
|
}}" |
|
|
>{{$t('contract.c8')}}</v-button> |
|
|
>{{$t('contract.c8')}}</v-button> |
|
|
|
|
|
|
|
|
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain @click="canvasImage(item)">{{$t('contract.c8')}}</v-button> |
|
|
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain @click="canvasImage(item)">{{$t('contract.c8')}}</v-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> --> |
|
|
</div> --> |
|
|
@ -109,7 +109,7 @@ |
|
|
</van-popup> |
|
|
</van-popup> |
|
|
<van-popup |
|
|
<van-popup |
|
|
class="share" |
|
|
class="share" |
|
|
custom-style="width:100%;height:100%;background-color:transparent;padding-top:5%" |
|
|
custom-style="width:100%;height:100%;background-color:transparent;padding-top:5%" |
|
|
:show="canvasShow" |
|
|
:show="canvasShow" |
|
|
@close="canvasShow = false"> |
|
|
@close="canvasShow = false"> |
|
|
<view class="canvas" > |
|
|
<view class="canvas" > |
|
|
@ -184,7 +184,7 @@ export default { |
|
|
arr.push(res) |
|
|
arr.push(res) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
var share_imgs=arr[Math.round(Math.random()*arr.length)]; |
|
|
var share_imgs=arr[Math.round(Math.random()*arr.length)]; |
|
|
if(!share_imgs||!this.detail){ |
|
|
if(!share_imgs||!this.detail){ |
|
|
this.$toast(this.$t('recharge.a6')) |
|
|
this.$toast(this.$t('recharge.a6')) |
|
|
@ -198,7 +198,7 @@ export default { |
|
|
windowWidth=res.windowWidth |
|
|
windowWidth=res.windowWidth |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
let myCanvas = uni.createCanvasContext('mycanvas', this); |
|
|
let myCanvas = uni.createCanvasContext('mycanvas', this); |
|
|
//画布背景 |
|
|
//画布背景 |
|
|
//参数:图片,左偏移,上偏移,宽,高 |
|
|
//参数:图片,左偏移,上偏移,宽,高 |
|
|
myCanvas.drawImage(share_imgs.bg_img,0,0,windowWidth,windowHeight); |
|
|
myCanvas.drawImage(share_imgs.bg_img,0,0,windowWidth,windowHeight); |
|
|
@ -210,7 +210,7 @@ export default { |
|
|
myCanvas.font = '12px Arial';//绘制文字 |
|
|
myCanvas.font = '12px Arial';//绘制文字 |
|
|
myCanvas.fillText('全球合约领跑者',88,windowHeight*0.653); |
|
|
myCanvas.fillText('全球合约领跑者',88,windowHeight*0.653); |
|
|
myCanvas.font = '16px Arial'; |
|
|
myCanvas.font = '16px Arial'; |
|
|
myCanvas.fillText('YbgCoins',88,windowHeight*0.63); |
|
|
myCanvas.fillText('XTZCoin',88,windowHeight*0.63); |
|
|
myCanvas.font = '14px Arial'; |
|
|
myCanvas.font = '14px Arial'; |
|
|
myCanvas.setFillStyle('#717171') |
|
|
myCanvas.setFillStyle('#717171') |
|
|
myCanvas.fillText(i.symbol+'/USDT',25,windowHeight*0.53); |
|
|
myCanvas.fillText(i.symbol+'/USDT',25,windowHeight*0.53); |
|
|
@ -220,7 +220,7 @@ export default { |
|
|
myCanvas.fillText(this.cals(i.side,i.order_type),25,windowHeight*0.555); |
|
|
myCanvas.fillText(this.cals(i.side,i.order_type),25,windowHeight*0.555); |
|
|
myCanvas.fillText(ress.data.price1>1?this.omitTo(ress.data.price1,2):this.omitTo(ress.data.price1,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.345:windowWidth*0.33,windowHeight*0.555); |
|
|
myCanvas.fillText(ress.data.price1>1?this.omitTo(ress.data.price1,2):this.omitTo(ress.data.price1,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.345:windowWidth*0.33,windowHeight*0.555); |
|
|
myCanvas.fillText(ress.data.price2>1?this.omitTo(ress.data.price2,2):this.omitTo(ress.data.price2,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.605:windowWidth*0.6,windowHeight*0.555); |
|
|
myCanvas.fillText(ress.data.price2>1?this.omitTo(ress.data.price2,2):this.omitTo(ress.data.price2,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.605:windowWidth*0.6,windowHeight*0.555); |
|
|
|
|
|
|
|
|
myCanvas.textAlign = 'center'; |
|
|
myCanvas.textAlign = 'center'; |
|
|
myCanvas.setFillStyle('#000000') |
|
|
myCanvas.setFillStyle('#000000') |
|
|
myCanvas.font = '25px Arial'; |
|
|
myCanvas.font = '25px Arial'; |
|
|
@ -244,7 +244,7 @@ export default { |
|
|
uni.setStorageSync('person-card',this.imgurl); |
|
|
uni.setStorageSync('person-card',this.imgurl); |
|
|
}, |
|
|
}, |
|
|
fail: () => { |
|
|
fail: () => { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
@ -271,10 +271,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
saveImage(){ |
|
|
saveImage(){ |
|
|
// uni.showActionSheet({ |
|
|
// uni.showActionSheet({ |
|
|
// itemList: [this.$t('common.save')], |
|
|
// itemList: [this.$t('common.save')], |
|
|
// success: (res) => { |
|
|
// success: (res) => { |
|
|
// if(res.tapIndex == 0){ |
|
|
// if(res.tapIndex == 0){ |
|
|
|
|
|
|
|
|
// } |
|
|
// } |
|
|
// }, |
|
|
// }, |
|
|
// fail: function (res) { |
|
|
// fail: function (res) { |
|
|
@ -295,7 +295,7 @@ export default { |
|
|
fail: () => { |
|
|
fail: () => { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: this.$t('common.b4'), |
|
|
title: this.$t('common.b4'), |
|
|
duration: 2000 |
|
|
duration: 2000 |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -360,7 +360,7 @@ export default { |
|
|
myCanvas.width=0 |
|
|
myCanvas.width=0 |
|
|
myCanvas.height=0 |
|
|
myCanvas.height=0 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
// this.generalizeInfo() |
|
|
// this.generalizeInfo() |
|
|
|