diff --git a/rc-busness/assets/css/index.less b/rc-busness/assets/css/index.less index c8465ce9..dee49787 100644 --- a/rc-busness/assets/css/index.less +++ b/rc-busness/assets/css/index.less @@ -241,7 +241,7 @@ width:100%; height:100%; background:url("../image/btn-play.png") center center no-repeat; - background-size:90px 90px; + background-size:48px 48px; z-index:2; } } diff --git a/rc-busness/assets/css/producted.less b/rc-busness/assets/css/producted.less index 256f7df2..f74ce4b9 100644 --- a/rc-busness/assets/css/producted.less +++ b/rc-busness/assets/css/producted.less @@ -15,6 +15,7 @@ display: inline-flex; flex-wrap: wrap; justify-content: flex-start; + margin-top: 20px; em { font-style: normal; display: flex; @@ -301,7 +302,7 @@ .rc-productdeta { margin-top: 20px; .rc-prodtop { - display: flex; + // display: flex; align-items: flex-start; span { font-size: 14px; @@ -545,7 +546,7 @@ .rc-productdeta { margin-top: 16px; .rc-prodtop { - display: flex; + // display: flex; align-items: flex-start; span { font-size: 18px; diff --git a/rc-busness/components/header.vue b/rc-busness/components/header.vue index f953ad07..574fadb1 100644 --- a/rc-busness/components/header.vue +++ b/rc-busness/components/header.vue @@ -308,7 +308,7 @@
  • 个人中心 - +
  • @@ -353,7 +353,7 @@ export default { data() { return { headerScroll:false, - loginornot:true,//用户是否登录提示点 + loginornot:false,//用户是否登录提示点 usermessage:null,//存储用户信息 }; }, diff --git a/rc-busness/pages/index.vue b/rc-busness/pages/index.vue index 7bab2db7..264b56d6 100644 --- a/rc-busness/pages/index.vue +++ b/rc-busness/pages/index.vue @@ -1,41 +1,58 @@ + //请求犬 + async dogmessage(stype, dataType) { + this.dataLoaded = false; + let data = []; + if (stype == undefined || stype == null) { + data = await biaomessage(1, "", 1, 6); + } else { + data = await biaomessage(this.userserachlist, "", 1, 6); + } + if (data) { + let userlist = []; + //userlist=data.slice(0,6); + if (dataType) { + if (dataType == "Shi") this.dogshi = data; + else if (dataType == "Gan") this.doggan = data; + } else { + this.doglist = data; + //this.doggan=userlist; + //this.dogshi=userlist; + } + this.dataLoaded = true; + } + }, + + selectproduce(item) { + let isRxGoods = false; + let productCode = []; + let mainProductCode = item.productCode; + if (!item.ecPrice && !item.price) { + isRxGoods = 1; + productCode = [item.productCode]; + } else { + for (let i of item.productList) { + productCode.push(i.productCode); + } + } + this.$router.push({ + path: "/productdetails/producted", + query: { + stype: 1, + isRxGoods: isRxGoods, + mainProductCode: mainProductCode, + productCode: productCode.join(","), + }, + }); + }, + + //请求处方量信息数据 + async userchufang(item) { + if (!item) item = this.discounchufang[0].title; + this.dataLoaded = false; + let list = []; + let data = await userque(item, 1, 8); + if (data) { + list = data.slice(0, 8); + this.processinformation = list; + this.chufanlist = data; + this.dataLoaded = true; + } + }, + //点击请求处方量标签信息数据 + async userquery(item) { + this.dataLoaded = false; + let list = []; + let data = await userquery(item); + if (data) { + list = data.slice(0, 8); + this.processinformation = list; + this.dataLoaded = true; + } + }, + //处方用粮筛选 + userclick(item, index) { + this.userchufang(index); + }, + //全价猫干粮筛选 + catclickGan() { + this.userstype = 0; + this.maoganCurIndex = this.maoganCurIndex ? this.maoganCurIndex : 0; + let apiCatAgeType = this.discoun[this.maoshiCurIndex].title; + let petType = { + petType: 0, + tagStatus: 1, //干 + tagUsedAge: apiCatAgeType, + }; + for (let i = 0; i < this.userserachlist.length; i++) { + if (!this.userserachlist.includes(petType)) { + this.userserachlist.push(petType); + } + } + this.catmessage(this.userserachlist, "Gan"); + }, + catclickShi() { + this.userstype = 0; + this.maoshiCurIndex = this.maoshiCurIndex ? this.maoshiCurIndex : 0; + let apiCatAgeType = this.discoun[this.maoshiCurIndex].title; + let petType = { + petType: 0, + tagStatus: 2, //湿 + tagUsedAge: apiCatAgeType, + }; + for (let i = 0; i < this.userserachlist.length; i++) { + if (!this.userserachlist.includes(petType)) { + this.userserachlist.push(petType); + } + } + this.catmessage(this.userserachlist, "Shi"); + }, + userbuy(item) { + let user = localStorage.getItem("userInfo"); + this.courseId(item); + this.$router.push({ + path: "/myorder/userrecord", + }); + }, + + selectGoods(item, index) { + //console.log(item,index); + this.activeIndex = index; + //console.log(item.title); + this.ifadroind(item, index, this.useraindex); + // this.ifAdoid(item,index); + }, + quanshi(item, index) { + this.activeIndex5 = index; + this.userdogShi(); + }, + userdoghot(item, index) { + this.activeIndex6 = index; + this.userdogGan(); + }, + selectGo(item, index) { + this.activeInde2 = index; + }, + selectGoo(item, index) { + this.activeInde3 = index; + }, + }, +}; + \ No newline at end of file diff --git a/rc-busness/pages/productdetails/producted.vue b/rc-busness/pages/productdetails/producted.vue index 03801599..8a372e80 100644 --- a/rc-busness/pages/productdetails/producted.vue +++ b/rc-busness/pages/productdetails/producted.vue @@ -279,7 +279,7 @@ 加入购物车 立即购买 -
    +
    立即购买
    diff --git a/rc-busness/static/images/banner/pc-weixin.png b/rc-busness/static/images/banner/pc-weixin.png new file mode 100644 index 00000000..ed2d4c10 Binary files /dev/null and b/rc-busness/static/images/banner/pc-weixin.png differ diff --git a/rc-busness/static/images/banner/weixin.png b/rc-busness/static/images/banner/weixin.png new file mode 100644 index 00000000..5340fcf5 Binary files /dev/null and b/rc-busness/static/images/banner/weixin.png differ