Commit baba9cdf authored by youjie's avatar youjie

no message

parent e60c8808
......@@ -78,7 +78,7 @@ export default {
props:['TCIDs'],
data() {
return {
currencyVisible: true,
currencyVisible: false,
list: [],
current: 0,
indicatorDots: true,
......@@ -100,14 +100,16 @@ export default {
}
},
mounted() {
this.currencyVisible = true
},
methods: {
changeHandler(i) {
this.current = i.detail.current;
},
getTem(TCIDs){
uni.showLoading()
uni.showLoading({
title: "正在生成",
});
this.apipost("dmcstatistics_post_GetExtendLeaderAllStatics",{
TCIDs: TCIDs,
NewCombinationNum: ''
......@@ -116,7 +118,7 @@ export default {
this.BaseInfo = res.data.BaseInfo
this.TCIDsList = this.TCIDs.split(',')
this.TCIDsList.forEach((x,index) => {
this.init(x,index)
this.init(x)
});
}
})
......@@ -133,6 +135,7 @@ export default {
TCNUMS:this.BaseInfo[findIndex].TCNUMS
})
if(this.list.length==this.TCIDsList.length) {
this.currencyVisible = true
this.list.forEach((x,i)=>{
this.drawCtx(i)
})
......@@ -146,9 +149,6 @@ export default {
this.$emit('close')
},
drawCtx(i) {
// uni.showLoading({
// title: "正在生成",
// });
let ctx = uni.createCanvasContext(`firstCanvas_${i}`, this);
let that = this;
ctx.drawImage(that.list[i].Url, 0, 0, 250, 250); //绘制图
......@@ -181,14 +181,10 @@ export default {
}, 200)
},
preservation(){
uni.showLoading({
title: "正在生成",
});
let that = this;
uni.canvasToTempFilePath({
canvasId: `firstCanvas_${that.current}`,
success: (res) => {
uni.hideLoading();
uni.showLoading({
title: "正在保存",
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment