pages-cart-zmt.c56d2c97.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-zmt"],{"023b":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="},"16dd":function(t,e,a){"use strict";var i=a("219f"),n=a.n(i);n.a},"17b1":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=r,e.changeInformation=o,e.enterprise=s,e.getUserInfo=d,e.spreadBanner=u,e.getAddressList=l,e.addressEdit=c,e.addressDel=f,e.setAddressDefault=p,e.getCartList=b,e.getCartNum=g,e.cartDel=h,e.getcollectList=v,e.delcollect=m,e.spread=w,e.stylelist=x,e.postlist=y,e.joinSubmit=L,e.auth=A,e.subscribe=_,e.enDetails=k,e.my_reply=T,e.to_my_reply=S,e.getCyType=C;var n=i(a("6150"));function r(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/enterprise/edit",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/enterprise/rate",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function l(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 f(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function w(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function x(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"GET",data:t})}function y(t){return(0,n.default)({url:"/api/enterprise/job/list",method:"GET",data:t})}function L(t){return(0,n.default)({url:"/api/enterprise/apply/add",method:"GET",data:t})}function A(t){return(0,n.default)({url:"/api/user/auth",method:"POST",data:t})}function _(t){return(0,n.default)({url:"/api/user/subscribe",method:"GET",data:t})}function k(t){return(0,n.default)({url:"/api/enterprise/details",method:"GET",data:t})}function T(t){return(0,n.default)({url:"/api/article/my_reply",method:"GET",data:t})}function S(t){return(0,n.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}function C(t){return(0,n.default)({url:"/api/enterprise/category",method:"GET",data:t})}},"219f":function(t,e,a){var i=a("98ee");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("7068ad34",i,!0,{sourceMap:!1,shadowMode:!1})},"65cf":function(t,e,a){"use strict";a.r(e);var i=a("a61f"),n=a("d70c");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("16dd");var o,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"4abb3eb1",null,!1,i["a"],o);e["default"]=d.exports},"98ee":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-4abb3eb1]{background:#f7f8f7}.navbar[data-v-4abb3eb1]{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-4abb3eb1]{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-4abb3eb1]{color:#000;font-weight:700}.navbar .nav-item.current[data-v-4abb3eb1]: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-4abb3eb1]{background-color:#fff}.top-swiper[data-v-4abb3eb1]{position:relative}.top-swiper .banner-swiper[data-v-4abb3eb1]{width:%?750?%;height:%?390?%}.top-swiper .banner-swiper .swiper-img[data-v-4abb3eb1]{display:block;width:%?750?%;height:%?390?%}.top-swiper .banner-swiper uni-swiper-item[data-v-4abb3eb1]{width:%?750?%;height:%?390?%}.class-box[data-v-4abb3eb1]{white-space:nowrap;height:40px;position:relative;background-color:#fff}.class-box .item[data-v-4abb3eb1]{text-align:center;display:inline-block;color:#606266;height:100%;background-color:#fff;line-height:1}.class-box .item .status[data-v-4abb3eb1]{font-size:%?30?%;margin:0 auto;width:60px;height:100%;line-height:40px}.class-box .item .status.action[data-v-4abb3eb1]{color:#000;font-weight:700;position:relative}.class-box .item .status.action[data-v-4abb3eb1]: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-4abb3eb1]{width:%?707?%;background:#fff;margin:auto;border-bottom:#e9e9e9 solid 1px;padding:%?20?% 0}.dy-wrap .user-logo[data-v-4abb3eb1]{flex-shrink:0;height:%?100?%;width:%?100?%;border-radius:50%}.dy-wrap .user-logo uni-image[data-v-4abb3eb1]{width:100%;height:100%;border-radius:50%}.dy-wrap .user-num[data-v-4abb3eb1]{flex-grow:1;padding-left:%?10?%;font-size:%?24?%;font-weight:500;color:#999}.dy-wrap .user-num .user-name[data-v-4abb3eb1]{font-size:%?34?%;font-weight:600;color:#333;padding-right:%?20?%;padding:0 %?20?% %?20?% 0}.dy-wrap .dy-btn[data-v-4abb3eb1]{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 .jr-btn[data-v-4abb3eb1]{flex-shrink:0;text-align:center;width:%?136?%;line-height:%?66?%;border-radius:%?10?%;font-size:%?28?%;font-weight:500;margin-top:%?20?%;background:#e6645f;color:#fff}.dy-wrap .flex_direction[data-v-4abb3eb1]{flex-direction:column;justify-content:center}.dy-wrap .dying[data-v-4abb3eb1]{color:#999;background:#e9e9e9}.input-box[data-v-4abb3eb1]{width:100%;padding:%?25?%;z-index:999;height:44px}.input-box .iconsearch[data-v-4abb3eb1]{font-size:%?50?%}.input-box .input-content[data-v-4abb3eb1]{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-4abb3eb1]{flex-grow:1}.input-box .input-content .input uni-input[data-v-4abb3eb1]{font-size:%?32?%}.input-box .input-button[data-v-4abb3eb1]{padding-left:%?20?%;font-size:%?32?%;height:100%}.Search-box[data-v-4abb3eb1]{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-4abb3eb1]{font-size:%?30?%;font-weight:500;color:#666}.Search-box .Search-box-sort .sort-text[data-v-4abb3eb1]{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-4abb3eb1]{width:%?21?%;height:%?11?%;margin-bottom:%?4?%}.Search-box .Search-box-size[data-v-4abb3eb1]{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-4abb3eb1]{height:%?32?%;width:%?32?%;margin-right:%?16?%}.Search-box .Search-box-size .box-word[data-v-4abb3eb1]{width:100%;font-size:%?22?%;font-weight:500;color:#cdcbcb;line-height:%?55?%}body.?%PAGE?%[data-v-4abb3eb1]{background:#f7f8f7}',""]),t.exports=e},a61f: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"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.getZmtList()}}},[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("023b")}}),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:"flex flex_direction"},[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?"已订阅":"订阅"))]),e.join?i("v-uni-view",{staticClass:"jr-btn",class:{dying:1==e.join},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.toJoin(e)}}},[t._v("已加入")]):t._e(),e.joins||e.join?t._e():i("v-uni-view",{staticClass:"jr-btn",class:t.dying,on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.toJoin(e)}}},[t._v("加入")])],1)],1)}))],2)],1)})),1)],1)},r=[]},a8bd: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("cb20"),u=a("17b1"),l=a("23d7"),c=a("26cb"),f=a("c22c"),p=(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:"",merId:""}},computed:(0,s.default)((0,s.default)((0,s.default)({},(0,c.mapState)(["loginInterceptor"])),(0,c.mapState)("user",["hasLogin","userInfo"])),{},{scrollLeft:function(){return this.classIndex>1?this.itemWidht*(this.classIndex-1.5):0}}),onLoad:function(t){var e=this;t.spread&&uni.setStorageSync("spread",t.spread),this.getArtTypeList(),(0,u.getUserInfo)({}).then((function(t){var a=t.data;void 0!=a.mer_id&&null!=a.mer_id&&0!=a.mer_id&&""!=a.mer_id&&(e.merId=a.mer_id)}))},onShow:function(){this.loginInterceptor&&!this.hasLogin&&(0,l.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,"onReachBottom",(function(){this.getZmtList()})),(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,f.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,f.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,f.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,f.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("已关注")}))},toJoin:function(t){this.merId||this.navTo("/pages/user/joinMedia?id="+t.id)}}),r);e.default=p},c22c: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=u,e.getQyArtList=l,e.dingYue=c,e.searchZmt=f,e.searchArt=p,e.getPlList=b,e.getXgList=g,e.dianZan=h,e.subPl=v,e.getMeeting=m,e.joinMeeting=w;var n=i(a("6150"));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 u(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/enterprise/lists",method:"get",data:t})}function c(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 b(t,e){return(0,n.default)({url:"/api/article/reply_list/"+e,method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/article/relevant/list",method:"get",data:t})}function h(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})}function m(t){return(0,n.default)({url:"/api/mee/get",method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/mee/set",method:"post",data:t})}},cb20: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,e.downFile=u;var n=i(a("6150"));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})}function u(t){return(0,n.default)({url:"/api/index/topFileList",method:"get",data:t})}},d70c:function(t,e,a){"use strict";a.r(e);var i=a("a8bd"),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}}]);