You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
5.9 KiB

3 weeks ago
"use strict";(self["webpackChunkshiweisuzhou"]=self["webpackChunkshiweisuzhou"]||[]).push([[825],{3825:function(t,s,i){i.r(s),i.d(s,{default:function(){return h}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"bg"},[s("HomeLayout",{attrs:{topBanner:t.topBanner,tagList:t.tagList}}),s("div",{staticClass:"product-box"},[s("h2",[t._v("今日推荐")]),s("ProductList",{attrs:{products:t.prouctList[0].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("热销排行")]),s("ProductList",{attrs:{products:t.prouctList[1].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("新品上市")]),s("ProductList",{attrs:{products:t.prouctList[2].list}})],1)],1)},e=[],r=(i(8111),i(1701),function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-layout-container"},[s("div",{staticClass:"left-nav"},[s("ul",{staticClass:"nav-list"},t._l(t.tagList,function(i){return s("router-link",{key:i.id,staticClass:"nav-item",attrs:{to:"/productList?id="+i.id,tag:"li"}},[s("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),t._v(t._s(i.name)+" ")])}),1)]),s("div",{staticClass:"main-content"},[s("el-carousel",{staticStyle:{height:"100%"}},t._l(t.topBanner,function(t){return s("el-carousel-item",{key:t.id},[s("img",{staticClass:"carousel-img",attrs:{src:t.head_img}})])}),1)],1),s("div",{staticClass:"right-info"},[t.$store.getters.isUserLogin?s("div",{staticClass:"avatar-container"},[s("img",{staticClass:"user-avatar",attrs:{src:t.$store.getters.getUserInfo.avatar,alt:"用户头像"}}),s("div",{staticClass:"welcome-text"},[t._v("Hi-欢迎您")])]):t._e(),t._e(),s("div",{staticClass:"func-icons"},[s("router-link",{staticClass:"icon-item",attrs:{to:"/User/UserCenter"}},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/OrderList"}},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/CommentManage"}},[s("i",{staticClass:"icon el-icon-star-off"}),s("span",[t._v("评价管理")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/NoticeList"}},[s("i",{staticClass:"icon el-icon-pie-chart"}),s("span",[t._v("公告中心")])])],1),s("router-link",{staticClass:"announcement",attrs:{to:"/NoticeDetail?type=notice&id="+t.notice.id}},[s("el-tag",{attrs:{type:"danger",size:"mini"}},[t._v("公告")]),s("span",{staticClass:"text-overflowRows"},[t._v(t._s(t.notice.title))])],1)],1)])}),c=[],o={name:"HomeLayout",data(){return{notice:""}},props:{topBanner:{type:Array,default:()=>[]},tagList:{type:Array,default:()=>[]}},mounted(){this.post({},"/api/anncmnt/getLatest").then(t=>{this.notice=t.data})}},n=o,l=i(1656),p=(0,l.A)(n,r,c,!1,null,"185af175",null),d=p.exports,u=i(5457),g={components:{HomeLayout:d,ProductList:u.A},data(){return{topBanner:[],tagList:[],prouctList:[{id:this.VUE_APP_GLOBAL_TAGS.pc_index_recommend,title:"今日推荐",list:[]},{id:this.VUE_APP_GLOBAL_TAGS.pc_index_hot,title:"热销排行",list:[]},{id:this.VUE_APP_GLOBAL_TAGS.pc_index_new,title:"新品上市",list:[]}],newProducts:[{id:7,name:"高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪",price:3299,originalPrice:3699,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:342,categoryId:6}]}},created(){this.getTopBanner(),this.getTags(),this.getProductList()},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})},getTags(){this.p
//# sourceMappingURL=825.fc36db19.js.map