!84 2022-1-23 Leung

Merge pull request !84 from Admin/sit-Leung
This commit is contained in:
Admin 2022-01-22 16:38:30 +00:00 committed by Gitee
commit 43857121c4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 31 additions and 20 deletions

View File

@ -81,10 +81,11 @@ export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,pr
* 删除购物车
*/
export const deleteCart = ( productCode) => {
debugger;
var data = {
productCode:productCode
productCode
}
return fetch('cancelCartProductInfo',data,'POST')
return fetch('cancelCartProductInfo',productCode,'POST')
}
/**
* 购物车批量提交
@ -187,16 +188,14 @@ export const userquery = (stype, ) => {
return fetch('goods?petType='+stype, data, 'POST' )
}
//处方信息
export const userque = (stype, curPage,curRow) => {
export const userque = (goodsName, curPage,curRow) => {
if(!curPage)
curPage=1;
if(!curRow)
curRow=10;
let queryTail='page='+curPage+'&rows='+curRow;
if(stype)
queryTail = '?stype='+queryTail+'&'+queryTail;
else
queryTail = '?'+queryTail;
if(goodsName)
queryTail = '?goodsName='+goodsName;
var data = {
}
return fetch('goods'+queryTail, data, 'POST' )

View File

@ -1468,9 +1468,9 @@
this.dataLoaded=false;
let data=[];
if(stype==undefined||stype==null){
data = await biaomessage(0,'',1,6);
data = await biaomessage(0,'',1,12);
}else{
data = await biaomessage(this.userserachlist,'',1,6);
data = await biaomessage(this.userserachlist,'',1,12);
}
if(data){
let userlist=[];
@ -1546,12 +1546,14 @@
},
//
async userchufang() {
async userchufang(item) {
if(!item)
item = this.discounchufang[0].title;
this.dataLoaded=false;
let list=[];
let data = await userque();
let data = await userque(item,1,8);
if(data){
list=data.slice(0,6);
list=data.slice(0,8);
this.processinformation=list;
this.chufanlist=data;
this.dataLoaded=true;
@ -1560,15 +1562,17 @@
//
async userquery(item) {
this.dataLoaded=false;
let list=[];
let data = await userquery(item);
if(data){
this.processinformation=data;
list=data.slice(0,8);
this.processinformation=list;
this.dataLoaded=true;
}
},
//
userclick(item,index){
this.userquery(index)
this.userchufang(index)
},
//
catclickGan(){

View File

@ -343,6 +343,7 @@ export default {
activeIndexd: "-1",
activeIndexe: "-1",
activeIndexf: "-1",
inRxGoods:false,
isadrond: true,
isshow: false,
openshow: false,
@ -527,7 +528,7 @@ export default {
}
}
}
data = await searchchanpin(searchCriteria, usertype, 1, 12);
data = await searchchanpin(searchCriteria, usertype, 1, 120);
}
if (data) {
this.rccontair = data;
@ -698,9 +699,12 @@ export default {
tmp.checked=true;
}
});
this.inRxGoods=true;
}
else
else {
this.prefecture[this.rxGoodsIndexPointer].checked=false;
this.inRxGoods=false;
}
},
resetAllOptions(){
let _self = this;
@ -736,7 +740,7 @@ export default {
let isRxGoods=false;
let productCode = [];
let mainProductCode = item.productCode;
if(!item.ecPrice && !item.price)
if(this.inRxGoods)
{
isRxGoods=1;
productCode = [item.productCode];

View File

@ -363,6 +363,7 @@ export default {
activeIndexd: "-1",
activeIndexe: "-1",
activeIndexf: "-1",
inRxGoods:false,
isadrond: true,
isshow: false,
openshow: false,
@ -590,7 +591,7 @@ export default {
}
}
}
data = await searchchanpin(searchCriteria, usertype, 1, 12);
data = await searchchanpin(searchCriteria, usertype, 1, 120);
}
if (data) {
this.rccontair = data;
@ -706,9 +707,12 @@ export default {
tmp.checked=true;
}
});
this.inRxGoods=true;
}
else
else {
this.prefecture[this.rxGoodsIndexPointer].checked=false;
this.inRxGoods=false;
}
},
resetAllOptions(){
let _self = this;