jiazhipeng 1 year ago
parent
commit
786c290347
  1. 2
      app.js
  2. 4
      pages/info/postProductInfo/index.js

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest149? true : false;
data.isTest = data.isTest148? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

4
pages/info/postProductInfo/index.js

@ -75,7 +75,8 @@ Page({
res.data.flag = res.data.sku.find(item => item.flag == 'on') ? res.data.flag : 0
let resData = res.data
if (resData.product_data) {
try {
if (resData.product_data && resData.is_package==1) {
for(let key in resData.product_data) {
resData.product_data[key] = JSON.parse(resData.product_data[key])
}
@ -89,6 +90,7 @@ Page({
// resData.product_data["食"] = JSON.parse(resData.product_data["食"])
// }
}
} catch(e) {}
this.setData({
info: resData,

Loading…
Cancel
Save