fix: 🐛 解决几个已知的bug

master
Yer 2023-09-14 13:58:50 +08:00
parent 78df54d153
commit 4f915a32b6
3 changed files with 35 additions and 9 deletions

View File

@ -49,10 +49,14 @@ Vue.prototype.linkTo = function (goodsId, skuId) {
window.open(src, "_blank");
};
Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
Vue.prototype.wapLinkTo = function (goodsId, skuId) {
// 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'
Vue.use(priceColorScheme);

View File

@ -241,10 +241,21 @@
},
//
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.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
//

View File

@ -235,10 +235,21 @@
},
//
handleReset() {
this.searchForm = {
//
pageNumber: 1, //
pageSize: 10, //
sort: "createTime", //
order: "desc", //
startDate: "", //
endDate: "", //
serviceType:"RETURN_MONEY",
orderSn:"",
memberName:"",
goodsName:""
}
this.selectDate = ''
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
//