|
@@ -34,7 +34,6 @@ Page({
|
|
touchStatic:true,
|
|
touchStatic:true,
|
|
fontContent:'可定制区域',
|
|
fontContent:'可定制区域',
|
|
rpx:1, // 获取页面的rpx
|
|
rpx:1, // 获取页面的rpx
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -188,4 +187,34 @@ Page({
|
|
fontTouch: madeTouchFont ? madeTouchFont : {},
|
|
fontTouch: madeTouchFont ? madeTouchFont : {},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ finishDesign(){ // 完成设计
|
|
|
|
+ let designObj = {
|
|
|
|
+ '1':'正面',
|
|
|
|
+ '2': '背面',
|
|
|
|
+ '3': '手柄',
|
|
|
|
+ '4': '杯底',
|
|
|
|
+ },designVal = '';
|
|
|
|
+ for(let i=1;i<5;i++){
|
|
|
|
+
|
|
|
|
+ if (!wx.getStorageSync('madeCupImgData'+ i) && !wx.getStorageSync('madeCupFontData'+ i)){
|
|
|
|
+ designVal += designObj[i]+','
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (!designVal){
|
|
|
|
+ console.log('可以完成')
|
|
|
|
+ } else {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ title: '温馨提示',
|
|
|
|
+ content: '您的' + designVal.substring(0, designVal.length-1) + ' 还没有设计,是否确定不设计了?',
|
|
|
|
+ success:function(res){
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ console.log('用户点击确定,不设计了,直接完成')
|
|
|
|
+ } else {
|
|
|
|
+ console.log('用户点击取消')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
})
|
|
})
|