Browse Source

零售端开单去除缓存列表设置

jf 5 years ago
parent
commit
be2181d30b

+ 3 - 19
hdApp/src/mixins/product.js

@@ -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 {

+ 1 - 0
pt/src/components/module/sj-list-layer.vue

@@ -91,6 +91,7 @@ export default {
     },
     onLoad ({ ctx, app }) {
       this.app = app;
+      /**姜枫 2021.05.04**/
       ctx.service(this.$service.merchant)
         .set('table', {
           columns: [

+ 1 - 0
pt/src/saas/shop/list.vue

@@ -300,6 +300,7 @@ export default {
     // crud
     onLoad ({ ctx, app }) {
       this.app = app;
+		/**姜枫 2021.05.04**/
       ctx.service(this.$service.merchant)
         .set('table', {
           columns: [

+ 1 - 1
pt/src/service/merchant/index.js

@@ -1,5 +1,5 @@
 import { BaseService, Service } from '@/cool';
-@Service('merchant')
+@Service('merchant')/**姜枫 2021.05.04**/
 export class MerchantService extends BaseService {
     getH5MallQrCode(data) {
         return this.request({