fix: 🐛 解决几个已知的bug
This commit is contained in:
		
							parent
							
								
									78df54d153
								
							
						
					
					
						commit
						4f915a32b6
					
				@ -49,10 +49,14 @@ Vue.prototype.linkTo = function (goodsId, skuId) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  window.open(src, "_blank");
 | 
					  window.open(src, "_blank");
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
 | 
					Vue.prototype.wapLinkTo = function (goodsId, skuId) {
 | 
				
			||||||
  return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
 | 
					  // app端二维码
 | 
				
			||||||
 | 
					  if (skuId) {
 | 
				
			||||||
 | 
					    return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`;
 | 
				
			||||||
 | 
					  } else {
 | 
				
			||||||
 | 
					    return `${WAP_URL}/pages/product/goods?goodsId=${goodsId}`;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					 | 
				
			||||||
// 引入价格格式化组件
 | 
					// 引入价格格式化组件
 | 
				
			||||||
import priceColorScheme from 'price-color'
 | 
					import priceColorScheme from 'price-color'
 | 
				
			||||||
Vue.use(priceColorScheme);
 | 
					Vue.use(priceColorScheme);
 | 
				
			||||||
 | 
				
			|||||||
@ -241,10 +241,21 @@
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
      // 重置
 | 
					      // 重置
 | 
				
			||||||
      handleReset() {
 | 
					      handleReset() {
 | 
				
			||||||
        this.searchForm = {};
 | 
					        const defaultForm = {
 | 
				
			||||||
 | 
					          // 搜索框初始化对象
 | 
				
			||||||
 | 
					          pageNumber: 1, // 当前页数
 | 
				
			||||||
 | 
					          pageSize: 10, // 页面大小
 | 
				
			||||||
 | 
					          sort: "createTime", // 默认排序字段
 | 
				
			||||||
 | 
					          order: "desc", // 默认排序方式
 | 
				
			||||||
 | 
					          startDate: "", // 起始时间
 | 
				
			||||||
 | 
					          endDate: "", // 终止时间
 | 
				
			||||||
 | 
					          serviceType:"RETURN_GOODS",
 | 
				
			||||||
 | 
					          orderSn:"",
 | 
				
			||||||
 | 
					          memberName:"",
 | 
				
			||||||
 | 
					          goodsName:""
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        this.searchForm = defaultForm;
 | 
				
			||||||
        this.selectDate = ''
 | 
					        this.selectDate = ''
 | 
				
			||||||
        this.searchForm.pageNumber = 1;
 | 
					 | 
				
			||||||
        this.searchForm.pageSize = 10;
 | 
					 | 
				
			||||||
        this.getDataList();
 | 
					        this.getDataList();
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      // 范围时间选择格式化
 | 
					      // 范围时间选择格式化
 | 
				
			||||||
 | 
				
			|||||||
@ -235,10 +235,21 @@
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
      // 重置
 | 
					      // 重置
 | 
				
			||||||
      handleReset() {
 | 
					      handleReset() {
 | 
				
			||||||
 | 
					        this.searchForm = {
 | 
				
			||||||
 | 
					          // 搜索框初始化对象
 | 
				
			||||||
 | 
					          pageNumber: 1, // 当前页数
 | 
				
			||||||
 | 
					          pageSize: 10, // 页面大小
 | 
				
			||||||
 | 
					          sort: "createTime", // 默认排序字段
 | 
				
			||||||
 | 
					          order: "desc", // 默认排序方式
 | 
				
			||||||
 | 
					          startDate: "", // 起始时间
 | 
				
			||||||
 | 
					          endDate: "", // 终止时间
 | 
				
			||||||
 | 
					          serviceType:"RETURN_MONEY",
 | 
				
			||||||
 | 
					          orderSn:"",
 | 
				
			||||||
 | 
					          memberName:"",
 | 
				
			||||||
 | 
					          goodsName:""
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        this.selectDate = ''
 | 
					        this.selectDate = ''
 | 
				
			||||||
        this.searchForm = {}
 | 
					
 | 
				
			||||||
        this.searchForm.pageNumber = 1;
 | 
					 | 
				
			||||||
        this.searchForm.pageSize = 10;
 | 
					 | 
				
			||||||
        this.getDataList();
 | 
					        this.getDataList();
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      // 范围时间重新赋值
 | 
					      // 范围时间重新赋值
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user