1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-zmt"],{"04e6":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=r,e.getUserInfo=o,e.spreadBanner=s,e.getAddressList=d,e.addressEdit=c,e.addressDel=u,e.setAddressDefault=l,e.getCartList=f,e.getCartNum=p,e.cartDel=g,e.getcollectList=h,e.delcollect=b,e.spread=v,e.stylelist=m,e.auth=w,e.subscribe=x,e.enDetails=y,e.my_reply=A,e.to_my_reply=L;var n=i(a("4c3b"));function r(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function b(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function m(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"GET",data:t})}function w(t){return(0,n.default)({url:"/api/user/auth",method:"POST",data:t})}function x(t){return(0,n.default)({url:"/api/user/subscribe",method:"GET",data:t})}function y(t){return(0,n.default)({url:"/api/enterprise/details",method:"GET",data:t})}function A(t){return(0,n.default)({url:"/api/article/my_reply",method:"GET",data:t})}function L(t){return(0,n.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}},2526:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.groom4=r,e.groom1=o,e.groom3=s,e.loadIndexs=d;var n=i(a("4c3b"));function r(t){return(0,n.default)({url:"/api/groom/list/4",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/groom/list/1",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/groom/list/3",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/index",method:"get",data:t})}},"53a0":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("c975"),a("d81d"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("ade3"));a("96cf");var r,o=i(a("1da1")),s=i(a("5530")),d=a("2526"),c=(a("04e6"),a("a306")),u=a("26cb"),l=a("7984"),f=(r={data:function(){return{isDy:!1,height:"",classIndex:0,topNavWidth:"25%",navList:[{id:0,title:"推荐",loadingType:"more",list:[],page:1,limit:10}],pageProportion:0,swiperHeight:0,checkid:0,titleNViewBackground:"",swiperCurrent:0,swiperLength:0,bargainlist:[],carouselList:[],goodsList:[],bastList:[],bastBanner:[],menusList:[],page:1,limit:5,userServant:[{image:""}],couponArray:[],recommend:[{id:0,re_title:"精选",re_name:"为你推荐"},{id:1,re_title:"最新",re_name:"最新好货优选"},{id:2,re_title:"便宜好货",re_name:"90天便宜好货"}],actTime:new Date,keyword:""}},computed:(0,s.default)((0,s.default)((0,s.default)({},(0,u.mapState)(["loginInterceptor"])),(0,u.mapState)("user",["hasLogin","userInfo"])),{},{scrollLeft:function(){return this.classIndex>1?this.itemWidht*(this.classIndex-1.5):0}}),onLoad:function(t){t.spread&&uni.setStorageSync("spread",t.spread),this.getArtTypeList()},onShow:function(){this.loginInterceptor&&!this.hasLogin&&(0,c.interceptor)(),this.loadData()},onPullDownRefresh:function(){this.loadData()},onNavigationBarSearchInputClicked:function(t){this.clickSearch()},onNavigationBarButtonTap:function(t){var e=t.index;0===e?this.$api.msg("点击了扫描"):1===e&&uni.navigateTo({url:"/pages/user/notice"})},onReady:function(t){var e=this;uni.getSystemInfo({success:function(t){var a=uni.createSelectorQuery();a.select(".good-content").boundingClientRect(),a.exec((function(a){e.height=t.windowHeight-a[0].top+"px"}))},fail:function(t){}})}},(0,n.default)(r,"onReady",(function(t){var e=this;uni.getSystemInfo({success:function(t){var a=uni.createSelectorQuery();a.select(".nav-swiper").boundingClientRect(),a.exec((function(a){e.height=t.windowHeight-a[0].top+"px"}))},fail:function(t){}})})),(0,n.default)(r,"methods",{numClassWidht:function(){var t=this;uni.createSelectorQuery().select(".container").fields({size:!0},(function(e){t.itemWidht=Math.floor(e.width/750*187.5)})).exec()},navTo:function(t){console.log(t),uni.navigateTo({url:t})},tabClass:function(t){this.classIndex=t,this.getZmtList("tab")},clickSearch:function(){},onImageError:function(t,e){this[t][e].image="/static/error/errorImage.jpg"},loadData:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,d.loadIndexs)({}).then((function(e){var a=e.data,i=a.info;t.carouselList=a.banner,t.swiperLength=t.carouselList.length,t.menusList=a.menus,t.goodsList=i.firstList,t.bastList=i.bastList,t.bastBanner=a.benefit,t.$set(t,"couponArray",a.couponList),uni.stopPullDownRefresh()})).catch((function(t){uni.stopPullDownRefresh()}));case 1:case"end":return e.stop()}}),e)})))()},swiperChange:function(t){var e=t.detail.current;this.swiperCurrent=e,this.titleNViewBackground=this.carouselList[e].background},navToDetailPage:function(t){var e=t.id;uni.navigateTo({url:"/pages/product/product?id="+e})},bannerNavToUrl:function(t){t.wap_url.indexOf("http")>0&&(window.location.href=t.wap_url),uni.navigateTo({url:t.wap_url})},getArtTypeList:function(){var t=this,e=this;(0,l.getQyType)().then((function(a){console.log(a);var i=a.data.map((function(t){return t.loadingType="more",t.page=1,t.limit=10,t.loaded=!1,t.list=[],t}));e.navList=e.navList.concat(i),console.log(e.navList),e.$nextTick((function(){e.numClassWidht()})),t.getZmtList()}))},getZmtList:function(t){var e=this,a=e.classIndex,i=e.navList[a];if(("tab"!=t||!i.loaded)&&"loading"!=i.loadingType&&"noMore"!=i.loadingType){i.loadingType="loading";var n={};n=0==i.id?{page:i.page,rows:i.limit}:{page:i.page,rows:i.limit,type:i.id},(0,l.getZmtList)(n).then((function(t){console.log(t),i.list=i.list.concat(t.data.list),i.page++,t.data.list.length==i.limit?i.loadingType="more":i.loadingType="noMore",i.loaded=!0}))}},dingYue:function(t){var e=this;1==t.is_sub?uni.showModal({title:"提示",content:"是否取消关注?",complete:function(a){a.confirm&&(0,l.dingYue)({id:t.id}).then((function(a){console.log(a);var i=e.navList[e.classIndex].list.indexOf(t);e.navList[e.classIndex].list[i].is_sub=0,e.$api.msg("已取消关注")}))}}):(0,l.dingYue)({id:t.id}).then((function(a){var i=e.navList[e.classIndex].list.indexOf(t);e.navList[e.classIndex].list[i].is_sub=1,e.$api.msg("已关注")}))}}),r);e.default=f},"5bac":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-scroll-view",{staticClass:"class-box flex b-t",attrs:{"scroll-x":"true","scroll-left":t.scrollLeft,"scroll-with-animation":!0}},t._l(t.navList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",style:{width:t.topNavWidth},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClass(a)}}},[i("v-uni-view",{staticClass:"status",class:{action:a==t.classIndex}},[t._v(t._s(e.title))])],1)})),1),i("v-uni-swiper",{staticClass:"nav-swiper",style:{height:t.height},attrs:{interval:3e3,duration:500,current:t.classIndex,"disable-touch":!0}},[t._l(t.navList,(function(e){return i("v-uni-swiper-item",[i("v-uni-scroll-view",{style:{height:t.height},attrs:{"scroll-y":"true"}},[i("v-uni-view",{staticClass:"Search-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/index/searchZmt")}}},[i("v-uni-view",{staticClass:"Search-box-size"},[i("v-uni-image",{staticClass:"box-img",attrs:{src:a("f45c")}}),i("v-uni-input",{staticClass:"box-word",attrs:{type:"text",disabled:!0,placeholder:"请输入关键字"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)],1),t._l(e.list,(function(e){return i("v-uni-view",{staticClass:"dy-wrap flex",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navTo("/pages/user/dydetail?id="+e.id)}}},[i("v-uni-view",{staticClass:"user-logo"},[i("v-uni-image",{attrs:{src:e.headimg,mode:""}})],1),i("v-uni-view",{staticClass:"user-num"},[i("v-uni-view",{staticClass:"user-name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"sub-num"},[t._v("发表文章:"+t._s(e.count))]),i("v-uni-view",{staticClass:"read-num"},[t._v("阅读量:"+t._s(e.visit))])],1),i("v-uni-view",{staticClass:"dy-btn",class:{dying:1==e.is_sub},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.dingYue(e)}}},[t._v(t._s(1==e.is_sub?"已订阅":"订阅"))])],1)}))],2)],1)})),i("v-uni-swiper-item",[i("v-uni-view",{staticClass:"swiper-item"})],1)],2)],1)},r=[]},7984:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getZmtList=r,e.getArtTypeList=o,e.getArtList=s,e.getArtDetail=d,e.getQyType=c,e.getQyArtList=u,e.dingYue=l,e.searchZmt=f,e.searchArt=p,e.getPlList=g,e.getXgList=h,e.dianZan=b,e.subPl=v;var n=i(a("4c3b"));function r(t){return(0,n.default)({url:"/api/enterprise/putlist",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/article/category/list",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/article/hot/list",method:"get",data:t})}function d(t,e){return(0,n.default)({url:"/api/article/details/"+e,method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/enterprise/lists",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/user/sub",method:"get",data:t})}function f(t){return(0,n.default)({url:"/api/enterprise/search",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/article/keyword",method:"get",data:t})}function g(t,e){return(0,n.default)({url:"/api/article/reply_list/"+e,method:"get",data:t})}function h(t){return(0,n.default)({url:"/api/article/relevant/list",method:"get",data:t})}function b(t,e){return(0,n.default)({url:"/api/article/good/"+e,method:"post",data:t})}function v(t,e){return(0,n.default)({url:"/api/article/reply/"+e,method:"post",data:t})}},"7a09":function(t,e,a){var i=a("ddbc");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("74846efc",i,!0,{sourceMap:!1,shadowMode:!1})},9255:function(t,e,a){"use strict";a.r(e);var i=a("5bac"),n=a("ea6d");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("a25a");var o,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"edb3c0c4",null,!1,i["a"],o);e["default"]=d.exports},a25a:function(t,e,a){"use strict";var i=a("7a09"),n=a.n(i);n.a},ddbc:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-edb3c0c4]{background:#f7f8f7}.navbar[data-v-edb3c0c4]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-edb3c0c4]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-edb3c0c4]{color:#000;font-weight:700}.navbar .nav-item.current[data-v-edb3c0c4]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #e60012}.nav-swiper[data-v-edb3c0c4]{background-color:#fff}.top-swiper[data-v-edb3c0c4]{position:relative}.top-swiper .banner-swiper[data-v-edb3c0c4]{width:%?750?%;height:%?390?%}.top-swiper .banner-swiper .swiper-img[data-v-edb3c0c4]{display:block;width:%?750?%;height:%?390?%}.top-swiper .banner-swiper uni-swiper-item[data-v-edb3c0c4]{width:%?750?%;height:%?390?%}.class-box[data-v-edb3c0c4]{white-space:nowrap;height:40px;position:relative;background-color:#fff}.class-box .item[data-v-edb3c0c4]{text-align:center;display:inline-block;color:#606266;height:100%;background-color:#fff;line-height:1}.class-box .item .status[data-v-edb3c0c4]{font-size:%?30?%;margin:0 auto;width:60px;height:100%;line-height:40px}.class-box .item .status.action[data-v-edb3c0c4]{color:#000;font-weight:700;position:relative}.class-box .item .status.action[data-v-edb3c0c4]:after{content:"";position:absolute;left:50%;bottom:5px;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:33px;height:0;border-bottom:2px solid #e60012}.dy-wrap[data-v-edb3c0c4]{width:%?707?%;background:#fff;margin:auto;border-bottom:#e9e9e9 solid 1px;padding:%?20?% 0}.dy-wrap .user-logo[data-v-edb3c0c4]{flex-shrink:0;height:%?100?%;width:%?100?%;border-radius:50%}.dy-wrap .user-logo uni-image[data-v-edb3c0c4]{width:100%;height:100%;border-radius:50%}.dy-wrap .user-num[data-v-edb3c0c4]{flex-grow:1;padding-left:%?10?%;font-size:%?24?%;font-weight:500;color:#999}.dy-wrap .user-num .user-name[data-v-edb3c0c4]{font-size:%?34?%;font-weight:600;color:#333;padding-right:%?20?%;padding:0 %?20?% %?20?% 0}.dy-wrap .dy-btn[data-v-edb3c0c4]{flex-shrink:0;text-align:center;width:%?136?%;line-height:%?66?%;border-radius:%?10?%;font-size:%?28?%;font-weight:500;background:#e6645f;color:#fff}.dy-wrap .dying[data-v-edb3c0c4]{color:#999;background:#e9e9e9}.input-box[data-v-edb3c0c4]{width:100%;padding:%?25?%;z-index:999;height:44px}.input-box .iconsearch[data-v-edb3c0c4]{font-size:%?50?%}.input-box .input-content[data-v-edb3c0c4]{border-radius:%?99?%;flex-grow:1;padding:%?10?% %?30?%;background-color:hsla(0,0%,100%,.7);border:1px solid #000}.input-box .input-content .input[data-v-edb3c0c4]{flex-grow:1}.input-box .input-content .input uni-input[data-v-edb3c0c4]{font-size:%?32?%}.input-box .input-button[data-v-edb3c0c4]{padding-left:%?20?%;font-size:%?32?%;height:100%}.Search-box[data-v-edb3c0c4]{padding-left:%?20?%;padding-right:%?20?%;height:%?100?%;background:#fff;display:flex;justify-content:center;align-items:center}.Search-box .Search-box-sort[data-v-edb3c0c4]{font-size:%?30?%;font-weight:500;color:#666}.Search-box .Search-box-sort .sort-text[data-v-edb3c0c4]{width:%?57?%;height:%?29?%;font-size:%?30?%;font-weight:500;color:#333;line-height:%?58?%;margin-right:%?19?%}.Search-box .Search-box-sort .sort-img[data-v-edb3c0c4]{width:%?21?%;height:%?11?%;margin-bottom:%?4?%}.Search-box .Search-box-size[data-v-edb3c0c4]{width:%?700?%;height:%?65?%;border-radius:%?32?%;background-color:#f1f1f1;padding-left:%?36?%;display:flex;align-items:center}.Search-box .Search-box-size .box-img[data-v-edb3c0c4]{height:%?32?%;width:%?32?%;margin-right:%?16?%}.Search-box .Search-box-size .box-word[data-v-edb3c0c4]{width:100%;font-size:%?22?%;font-weight:500;color:#cdcbcb;line-height:%?55?%}body.?%PAGE?%[data-v-edb3c0c4]{background:#f7f8f7}',""]),t.exports=e},ea6d:function(t,e,a){"use strict";a.r(e);var i=a("53a0"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f45c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACDElEQVQ4T5WTv2uTYRDHv9/3DYIUuwja/gMioqVCNxFE0C5S6KCiiyg197wpwcHBQSSZHNOlzfsjVNAxoXbpGIdKQHGSioM/RxNF04hbePOcPKEpoVZbn+nuubvP3T3PHTF0qtXqgU6nc0NVrwE4DWAUwHcAL1X1sTFmFYAOx3CglMvlCc/zqk5X1dj3/Ya1tmOtHfN9/7yqGpLvut3u9Xw+/2UQ1wdUKpUJa+06gHKz2SwUi8V0OIuTl5eXD6VpmgCYstaeCYLgm7unK7vdbm+o6koQBPd3Bg7rxWLRGx8fX1FV3xgz0weEYXib5N1Wq3Vyt8w7gWEYHiH5CcBFY8wLRlH0jOSaiCz8K/uwLYqiRyR/icgdxnG8aa2dDoLg1X4BSZLcUtWbInLWAVKSJ7LZ7Pv9AsIwnPU8ryAik66FrwAuG2Oe7xcQRVGO5KyIXHAVrKrqhjGm8B+ApwDeGmMeMEmSGWttheQxEfm5FySO4+Oq+hrAKWPMh/4gbf3EZr1ev1qr1Xp/g5RKpYMjIyMNAA33A/052JrEo71eb53kxzRN5+bn51u7QZaWlsYymcwbAAsi8nAb4ITFxcXDmUwmITkNwPXYINlR1TGSbhe6InIliqIpknUA90Qk3l6mQUbnAMBt4yTJUVX9oapuG5/kcrnPzi8Mw3Oe562RnPsDsNcjDuxJklxS1dJvWX/x3Bk5WxsAAAAASUVORK5CYII="}}]);
|