|
|
@@ -35,22 +35,9 @@ export default {
|
|
|
if(this.isGhsProduct){
|
|
|
this.initGhsData(id,shopId);//采购-进店下单
|
|
|
}else{
|
|
|
- /*缓存处理*/
|
|
|
- if(uni.getStorageSync('suitInfoList')){
|
|
|
- this.suitInfo = uni.getStorageSync('suitInfoList');
|
|
|
- }else{
|
|
|
- this.initGoodsData();//成品
|
|
|
- }
|
|
|
- if(uni.getStorageSync('productInfoList')){
|
|
|
- this.productInfo = uni.getStorageSync('productInfoList');
|
|
|
- }else{
|
|
|
- this.initData();//组合
|
|
|
- }
|
|
|
- if(uni.getStorageSync('pxClassInfoList')){
|
|
|
- this.pxClassInfo = uni.getStorageSync('pxClassInfoList');
|
|
|
- }else{
|
|
|
- this.initPxClassData();//课程
|
|
|
- }
|
|
|
+ this.initGoodsData();//成品
|
|
|
+ this.initData();//组合
|
|
|
+ this.initPxClassData();//课程
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -270,7 +257,6 @@ export default {
|
|
|
child.className = element.className;
|
|
|
});
|
|
|
});
|
|
|
- uni.setStorageSync('productInfoList',data);
|
|
|
this.productInfo = data;
|
|
|
this.classIndex = 0;
|
|
|
} catch (error) {
|
|
|
@@ -311,7 +297,6 @@ export default {
|
|
|
child.className = element.className;
|
|
|
});
|
|
|
});
|
|
|
- uni.setStorageSync('suitInfoList',data);
|
|
|
this.suitInfo = data;
|
|
|
this.suitClassIndex = 0;
|
|
|
} catch (error) {
|
|
|
@@ -781,7 +766,6 @@ export default {
|
|
|
async initPxClassData() {
|
|
|
try {
|
|
|
const { data } = await getPxClassDataApi({pageSize:50});
|
|
|
- uni.setStorageSync('pxClassInfoList',data.list);
|
|
|
this.pxClassInfo = data.list;
|
|
|
} catch (error) {
|
|
|
} finally {
|