Index content / bug completed, method of login checking in store/index.js added

This commit is contained in:
Vion
2022-01-22 13:29:19 +08:00
parent 60c6a6b8b4
commit debf618d7e
9 changed files with 307 additions and 275 deletions

View File

@@ -14,6 +14,7 @@
show-action
placeholder="请输入搜索关键词"
@search="onSearch"
@cancel="onCancel"
class="rc-keyword"
>
<template #action>
@@ -664,14 +665,20 @@ export default {
element.checked = false;
});
},
selectproduce(item) {
this.$router.push({
path: "/productdetails/producted",
query: {
stype: 1,
productCode: item.productList[0].productCode,
},
});
selectproduce(item,index){
if(item.productList[0]==undefined){
item.productlist[0].productCode=0;
}
if(item.productList[0]==undefined){
item.productlist[0]=[];
}
this.$router.push({
path: "/productdetails/producted",
query: {
stype: 1,
productCode:item.productList[0].productCode
},
});
},
checkRxGoods(toggleSwitch){
let _self = this;
@@ -769,6 +776,10 @@ export default {
onSearch(e) {
this.usetmessage(this.activeIndex1, this.value);
},
onCancel() {
debugger;
this.value='';
},
selectGoods(item, index, onlyRefreshCategory) {
this.activeIndex1 = index;
this.resetAllOptions();