|
@@ -46,6 +46,7 @@ Page({
|
|
|
buildSrcArray: [],
|
|
|
dataId:[],
|
|
|
customGoodsImg: "",
|
|
|
+ customGoodsMaterial:"",//定制资源图片
|
|
|
|
|
|
},
|
|
|
|
|
@@ -140,6 +141,11 @@ Page({
|
|
|
imgTouch = wx.getStorageSync('madeCupImgData' + i);
|
|
|
dataPositionObj = util.changeCup(i.toString()).dataPositionObj;
|
|
|
console.log(dataPositionObj, imgTouch,"dataPositionObj")
|
|
|
+ let customGoodsMaterial = that.data.customGoodsMaterial;
|
|
|
+ customGoodsMaterial += imgTouch.src.replace(host,'')+',';
|
|
|
+ that.setData({
|
|
|
+ customGoodsMaterial: customGoodsMaterial
|
|
|
+ })
|
|
|
wx.getSystemInfo({
|
|
|
success: function (res) {
|
|
|
let rpx = res.windowWidth / 750;
|
|
@@ -380,6 +386,7 @@ Page({
|
|
|
customGoodsNum: 1,
|
|
|
userId: app.globalData.user_id,
|
|
|
customGoodsId:wx.getStorageSync('detail').id,
|
|
|
+ customGoodsMaterial: that.data.customGoodsMaterial.substring(0, that.data.customGoodsMaterial.length-1),
|
|
|
},
|
|
|
success: function (res) {
|
|
|
console.log(res, "加入购物车")
|