|
@@ -42,10 +42,10 @@ export default {
|
|
|
if (this.autoLoad) {
|
|
if (this.autoLoad) {
|
|
|
this.initData();
|
|
this.initData();
|
|
|
if(this.isGhsProduct){
|
|
if(this.isGhsProduct){
|
|
|
- //this.initGhsData(id,shopId)
|
|
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
if(!this.$util.isEmpty(this.tabIndex)){
|
|
if(!this.$util.isEmpty(this.tabIndex)){
|
|
|
- this.initData();//组合
|
|
|
|
|
|
|
+ this.initData();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
if(this.pageType == 'cg' && !this.$util.isEmpty(this.option.id)){
|
|
if(this.pageType == 'cg' && !this.$util.isEmpty(this.option.id)){
|
|
|
- //在initGhsData()获取记忆的花材,保证价格有变时取到最新价格
|
|
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
if(uni.getStorageSync('selectList'+this.pageType)){
|
|
if(uni.getStorageSync('selectList'+this.pageType)){
|
|
|
this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList'+this.pageType) })
|
|
this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList'+this.pageType) })
|
|
@@ -362,7 +362,7 @@ export default {
|
|
|
price = Math.round(sum * 100) / 100;
|
|
price = Math.round(sum * 100) / 100;
|
|
|
return price;
|
|
return price;
|
|
|
},
|
|
},
|
|
|
- //成品-请求商品数据
|
|
|
|
|
|
|
+ //请求成品数据
|
|
|
async initGoodsData(extendInfo) {
|
|
async initGoodsData(extendInfo) {
|
|
|
//extendInfo调用时的扩展参数 如 shopId
|
|
//extendInfo调用时的扩展参数 如 shopId
|
|
|
try {
|
|
try {
|