|
@@ -18,7 +18,8 @@ function formatNumber(n) {
|
|
|
|
|
|
function changeCup(e) {
|
|
function changeCup(e) {
|
|
// e== 1正面,2背面,3手柄,4杯底
|
|
// e== 1正面,2背面,3手柄,4杯底
|
|
- let dataPositionObj = null, propSize = null;
|
|
|
|
|
|
+ let dataPositionObj = null,
|
|
|
|
+ propSize = null;
|
|
switch (e) {
|
|
switch (e) {
|
|
case '1':
|
|
case '1':
|
|
// console.log('正面')
|
|
// console.log('正面')
|
|
@@ -139,7 +140,7 @@ function changeCup(e) {
|
|
};
|
|
};
|
|
break;
|
|
break;
|
|
case '9': //黑色T恤
|
|
case '9': //黑色T恤
|
|
- dataPositionObj = {
|
|
|
|
|
|
+ dataPositionObj = {
|
|
top: 254,
|
|
top: 254,
|
|
left: 204,
|
|
left: 204,
|
|
width: 368,
|
|
width: 368,
|
|
@@ -203,36 +204,44 @@ function changeCup(e) {
|
|
dataPositionObj: dataPositionObj,
|
|
dataPositionObj: dataPositionObj,
|
|
propSize: propSize
|
|
propSize: propSize
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+let uploadLocation = {
|
|
|
|
+ '1': '正面',
|
|
|
|
+ '2': '反面',
|
|
|
|
+ '3': '左侧',
|
|
|
|
+ '4': '右侧',
|
|
|
|
+ '5': '顶部',
|
|
|
|
+ '6': '底部'
|
|
}
|
|
}
|
|
let url = 'https://dlz.info666.com';
|
|
let url = 'https://dlz.info666.com';
|
|
-let changeImg={
|
|
|
|
- '5': url+'/temp/box_silvery1.png',//银色箱子正面
|
|
|
|
- '5_1': url +'/temp/box_silvery1_1.png', //银色箱子正面镂空
|
|
|
|
- '5_2': url +'/temp/box_silvery1_2.png', //银色箱子正面
|
|
|
|
- '6': url +'/temp/box_silvery2.png',//银色箱子反面
|
|
|
|
- '6_1': url +'/temp/box_silvery2_1.png', //银色箱子镂空
|
|
|
|
- '6_2': url +'/temp/box_silvery2_2.png', //银色箱子
|
|
|
|
- '7': url +'/temp/box_white1.png',//白色箱子正面
|
|
|
|
- '7_1': url +'/temp/box_white1_1.png', //白色箱子正面有颜色镂空
|
|
|
|
- '7_2': url +'/temp/box_white1_2.png', //白色箱子正面镂空无颜色
|
|
|
|
- '8': url +'/temp/box_white2.png',//白色箱子反面
|
|
|
|
- '8_1': url +'/temp/box_white2_1.png', //白色箱子镂空
|
|
|
|
- '8_2': url +'/temp/box_white2_2.png', //白色箱子镂空无颜色
|
|
|
|
|
|
+let changeImg = {
|
|
|
|
+ '5': url + '/temp/box_silvery1.png', //银色箱子正面
|
|
|
|
+ '5_1': url + '/temp/box_silvery1_1.png', //银色箱子正面镂空
|
|
|
|
+ '5_2': url + '/temp/box_silvery1_2.png', //银色箱子正面
|
|
|
|
+ '6': url + '/temp/box_silvery2.png', //银色箱子反面
|
|
|
|
+ '6_1': url + '/temp/box_silvery2_1.png', //银色箱子镂空
|
|
|
|
+ '6_2': url + '/temp/box_silvery2_2.png', //银色箱子
|
|
|
|
+ '7': url + '/temp/box_white1.png', //白色箱子正面
|
|
|
|
+ '7_1': url + '/temp/box_white1_1.png', //白色箱子正面有颜色镂空
|
|
|
|
+ '7_2': url + '/temp/box_white1_2.png', //白色箱子正面镂空无颜色
|
|
|
|
+ '8': url + '/temp/box_white2.png', //白色箱子反面
|
|
|
|
+ '8_1': url + '/temp/box_white2_1.png', //白色箱子镂空
|
|
|
|
+ '8_2': url + '/temp/box_white2_2.png', //白色箱子镂空无颜色
|
|
|
|
|
|
- '9': url +'/temp/shirt1.png',//黑色T恤
|
|
|
|
- '9_1': url +'/temp/shirt1_1.png', //黑色T恤镂空
|
|
|
|
- '9_2': url +'/temp/shirt1_2.png', //黑色T恤
|
|
|
|
- '10': url +'/temp/shirt2.png',//红色T恤
|
|
|
|
- '10_1': url +'//temp/shirt2_1.png',//红色T恤镂空
|
|
|
|
- '10_2': url +'/temp/shirt2_2.png',//红色T恤
|
|
|
|
- '11': url +'/temp/cup1.png',//白色杯子
|
|
|
|
- '11_1': url +'/temp/cup1_1.png',//白色杯子镂空
|
|
|
|
- '11_2': url +'/temp/cup1_2.png',//白色杯子
|
|
|
|
- '12': url +'/temp/cup2.png',//黑色杯子
|
|
|
|
- '12_1': url +'/temp/cup2_1.png',//黑色杯子镂空
|
|
|
|
- '12_2': url +'/temp/cup2_2.png',//黑色杯子
|
|
|
|
|
|
+ '9': url + '/temp/shirt1.png', //黑色T恤
|
|
|
|
+ '9_1': url + '/temp/shirt1_1.png', //黑色T恤镂空
|
|
|
|
+ '9_2': url + '/temp/shirt1_2.png', //黑色T恤
|
|
|
|
+ '10': url + '/temp/shirt2.png', //红色T恤
|
|
|
|
+ '10_1': url + '//temp/shirt2_1.png', //红色T恤镂空
|
|
|
|
+ '10_2': url + '/temp/shirt2_2.png', //红色T恤
|
|
|
|
+ '11': url + '/temp/cup1.png', //白色杯子
|
|
|
|
+ '11_1': url + '/temp/cup1_1.png', //白色杯子镂空
|
|
|
|
+ '11_2': url + '/temp/cup1_2.png', //白色杯子
|
|
|
|
+ '12': url + '/temp/cup2.png', //黑色杯子
|
|
|
|
+ '12_1': url + '/temp/cup2_1.png', //黑色杯子镂空
|
|
|
|
+ '12_2': url + '/temp/cup2_2.png', //黑色杯子
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|