Commit baba9cdf authored by youjie's avatar youjie

no message

parent e60c8808
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
props:['TCIDs'], props:['TCIDs'],
data() { data() {
return { return {
currencyVisible: true, currencyVisible: false,
list: [], list: [],
current: 0, current: 0,
indicatorDots: true, indicatorDots: true,
...@@ -100,14 +100,16 @@ export default { ...@@ -100,14 +100,16 @@ export default {
} }
}, },
mounted() { mounted() {
this.currencyVisible = true
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.current = i.detail.current; this.current = i.detail.current;
}, },
getTem(TCIDs){ getTem(TCIDs){
uni.showLoading() uni.showLoading({
title: "正在生成",
});
this.apipost("dmcstatistics_post_GetExtendLeaderAllStatics",{ this.apipost("dmcstatistics_post_GetExtendLeaderAllStatics",{
TCIDs: TCIDs, TCIDs: TCIDs,
NewCombinationNum: '' NewCombinationNum: ''
...@@ -116,7 +118,7 @@ export default { ...@@ -116,7 +118,7 @@ export default {
this.BaseInfo = res.data.BaseInfo this.BaseInfo = res.data.BaseInfo
this.TCIDsList = this.TCIDs.split(',') this.TCIDsList = this.TCIDs.split(',')
this.TCIDsList.forEach((x,index) => { this.TCIDsList.forEach((x,index) => {
this.init(x,index) this.init(x)
}); });
} }
}) })
...@@ -133,6 +135,7 @@ export default { ...@@ -133,6 +135,7 @@ export default {
TCNUMS:this.BaseInfo[findIndex].TCNUMS TCNUMS:this.BaseInfo[findIndex].TCNUMS
}) })
if(this.list.length==this.TCIDsList.length) { if(this.list.length==this.TCIDsList.length) {
this.currencyVisible = true
this.list.forEach((x,i)=>{ this.list.forEach((x,i)=>{
this.drawCtx(i) this.drawCtx(i)
}) })
...@@ -146,9 +149,6 @@ export default { ...@@ -146,9 +149,6 @@ export default {
this.$emit('close') this.$emit('close')
}, },
drawCtx(i) { drawCtx(i) {
// uni.showLoading({
// title: "正在生成",
// });
let ctx = uni.createCanvasContext(`firstCanvas_${i}`, this); let ctx = uni.createCanvasContext(`firstCanvas_${i}`, this);
let that = this; let that = this;
ctx.drawImage(that.list[i].Url, 0, 0, 250, 250); //绘制图 ctx.drawImage(that.list[i].Url, 0, 0, 250, 250); //绘制图
...@@ -181,14 +181,10 @@ export default { ...@@ -181,14 +181,10 @@ export default {
}, 200) }, 200)
}, },
preservation(){ preservation(){
uni.showLoading({
title: "正在生成",
});
let that = this; let that = this;
uni.canvasToTempFilePath({ uni.canvasToTempFilePath({
canvasId: `firstCanvas_${that.current}`, canvasId: `firstCanvas_${that.current}`,
success: (res) => { success: (res) => {
uni.hideLoading();
uni.showLoading({ uni.showLoading({
title: "正在保存", 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