| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["marketing-serviceHome-category-index-index"],{"0195":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-f55d4a30] .u-form-item--right__content__slot > uni-view,[data-v-f55d4a30] .u-form-item--right__content__slot > div,[data-v-f55d4a30] .u-form-item--right__content__slot > span,[data-v-f55d4a30] .u-form-item--right__content__slot > uni-text{width:100%}.toolsMore[data-v-f55d4a30]{padding:%?30?% 0;text-align:center;color:#c1c1c1;font-size:%?22?%}',""]),t.exports=e},"06d9":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-c0e6e596] .u-form-item--right__content__slot > uni-view,[data-v-c0e6e596] .u-form-item--right__content__slot > div,[data-v-c0e6e596] .u-form-item--right__content__slot > span,[data-v-c0e6e596] .u-form-item--right__content__slot > uni-text{width:100%}.page[data-v-c0e6e596]{display:flex;height:100vh;overflow:hidden}.pageLeft[data-v-c0e6e596]{width:%?168?%;height:100%;background:#f2f2f2;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.pageLeft .item[data-v-c0e6e596]{position:relative;display:flex;align-items:center;justify-content:center;height:%?94?%;text-align:center;font-size:%?24?%;color:#1d1d1d}.pageLeft .item.active[data-v-c0e6e596]{color:#f0250e;font-weight:700;background:#fff}.pageLeft .item.active .line[data-v-c0e6e596]{position:absolute;left:0;top:%?24?%;bottom:%?24?%;width:%?8?%;background:#f0250e;border-radius:%?0?% %?4?% %?4?% %?0?%}.pageRight[data-v-c0e6e596]{flex:1;overflow:hidden;height:100%;background:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.scroll[data-v-c0e6e596]{height:100%;overflow-y:auto}.list[data-v-c0e6e596]{padding:0 %?24?% %?24?%}.list .item[data-v-c0e6e596]{position:relative;display:flex;padding:%?24?% 0;background:#fff;border-radius:%?20?%}.list .item[data-v-c0e6e596]:after{content:"";position:absolute;left:0;bottom:0;left:%?192?%;right:0;height:1px;background:#f2f2f2}.list .img[data-v-c0e6e596]{position:relative;margin-right:%?20?%;width:%?172?%;height:%?172?%}.list .img uni-image[data-v-c0e6e596]{display:block;width:100%;height:100%;border-radius:%?16?%;background:#000}.list .flex[data-v-c0e6e596]{display:flex;align-items:center;justify-content:space-between}.list .con[data-v-c0e6e596]{flex:1;overflow:hidden;font-size:%?24?%;color:#8c8c8c}.list .name[data-v-c0e6e596]{overflow:hidden;flex:1;font-size:%?30?%;font-weight:700;color:#262626;text-overflow:ellipsis;white-space:nowrap}.list .des[data-v-c0e6e596]{padding:%?6?% 0 %?14?%;font-size:%?24?%}.list .conFd[data-v-c0e6e596]{display:flex;justify-content:space-between;align-items:center}.list .conFd .let[data-v-c0e6e596]{flex:1;overflow:hidden;display:flex;flex-direction:column}.list .conFd .let .flex[data-v-c0e6e596]{display:flex;align-items:center;justify-content:start}.list .conFd .let .num[data-v-c0e6e596]{display:flex;align-items:flex-end;justify-content:space-between}.list .conFd .let .price[data-v-c0e6e596]{display:flex;align-items:flex-end;margin-right:%?10?%;color:#f0250e;font-size:%?24?%}.list .conFd .let .price[data-v-c0e6e596]:before{content:"¥"}.list .conFd .let .price .s1[data-v-c0e6e596]{font-size:%?36?%;line-height:1.1;font-weight:700}.list .conFd .rig[data-v-c0e6e596]{padding:%?6?% %?18?%;border-radius:32px;font-size:%?24?%;color:#fff;background:linear-gradient(90deg,#f22407,#f84d17)}.oldPrice[data-v-c0e6e596]{position:relative}.oldPrice[data-v-c0e6e596]:after{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:#888}',""]),t.exports=e},"1c62":function(t,e,n){"use strict";var i=n("a779"),a=n.n(i);a.a},"33e1":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("aa77"),n("bf0f"),n("aa9c");var a=i(n("b7c7")),o=i(n("2634")),r=i(n("2fdc")),s=i(n("2ba3")),c=n("f2aa"),d=i(n("3dcd")),l={components:{Shenhe:s.default,toolsMore:d.default},computed:{getPrice:function(){return function(t){return t?t.split("."):["0","00"]}}},data:function(){return{list:[],cat_list:[],cat_id:void 0,pageNo:1,pageSize:10,isEnd:!1,goods_list:[],moreStatus:1}},onLoad:function(t){t.cat_id&&(this.cat_id=t.cat_id),this.getCatList()},methods:{clear:function(t){t!==this.cat_id&&(this.goods_list=[],this.pageNo=1,this.isEnd=!1,this.cat_id=t,this.getGoodsList())},getCatList:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.goodsCateList)();case 2:n=e.sent,n.code||(t.cat_list=n.data.list||[],t.cat_list&&t.cat_list.length&&(t.cat_id&&t.cat_list.find((function(e){return e.id===t.cat_id}))||(t.cat_id=t.cat_list[0].id),t.getGoodsList()));case 4:case"end":return e.stop()}}),e)})))()},getGoodsList:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var n,i,r,s,d,l,u,f;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.pageNo,i=t.cat_id,r=t.pageSize,e.next=3,(0,c.goodsList)({cat_id:i,pageNo:n,pageSize:r});case 3:s=e.sent,uni.stopPullDownRefresh(),t.moreStatus=1,s.code||(d=t.goods_list,l=s.data,u=l.list,f=l.totalCount,u.length&&(d.push.apply(d,(0,a.default)(u)),t.pageNo=t.pageNo+1),d.length>=f&&(t.isEnd=!0,t.moreStatus=3));case 7:case"end":return e.stop()}}),e)})))()},scrolltolower:function(){this.isEnd||this.getGoodsList()}}};e.default=l},"3dcd":function(t,e,n){"use strict";n.r(e);var i=n("afd1"),a=n("d44d");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("1c62");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"f55d4a30",null,!1,i["a"],void 0);e["default"]=s.exports},4179:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={props:{status:{type:Number,default:1}},data:function(){return{}},computed:{getMoreStatus:function(){var t;switch(this.status){case 1:t="loadmore";break;case 2:t="loading";break;case 3:t="nomore";break}return t}}};e.default=i},"515f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0==t.shenheStatus?n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"pageLeft"},[n("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-y":!0}},t._l(t.cat_list,(function(e,i){return n("v-uni-view",{key:e.id,class:["item",e.id===t.cat_id?"active":""],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.clear(e.id)}}},[n("v-uni-view",{staticClass:"line"}),t._v(t._s(e.name))],1)})),1)],1),n("v-uni-view",{staticClass:"pageRight"},[n("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"list"},t._l(t.goods_list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$utils.toUrl("/marketing/serviceHome/goods/item/index?id="+e.id)}}},[n("v-uni-view",{staticClass:"img"},[n("v-uni-image",{attrs:{mode:"aspectFill",src:e.cover_pic,"lazy-load":!0}})],1),n("v-uni-view",{staticClass:"con"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"des"},[t._v(t._s(e.desc&&e.desc.length?e.desc.join(" · "):""))]),n("v-uni-view",{staticClass:"conFd"},[n("v-uni-view",{staticClass:"let"},[n("v-uni-view",{staticClass:"flex"},[n("v-uni-view",{staticClass:"price"},[n("v-uni-view",{staticClass:"s1"},[t._v(t._s(t.getPrice(e.price)[0]))]),n("v-uni-view",[t._v("."+t._s(t.getPrice(e.price)[1]))])],1),n("v-uni-view",{staticClass:"oldPrice"},[t._v("¥"+t._s(e.original_price))])],1),n("v-uni-view",{staticClass:"num"},[t._v("销量 "+t._s(e.order_num)),n("v-uni-view",{staticClass:"rig"},[t._v("去下单")])],1)],1)],1)],1)],1)})),1),n("toolsMore",{attrs:{status:t.moreStatus}})],1)],1)],1):1==t.shenheStatus?n("Shenhe"):t._e()},a=[]},5607:function(t,e,n){var i=n("06d9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("1092c17e",i,!0,{sourceMap:!1,shadowMode:!1})},"73a4":function(t,e,n){"use strict";var i=n("5607"),a=n.n(i);a.a},"99d0":function(t,e,n){"use strict";n.r(e);var i=n("33e1"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},a779:function(t,e,n){var i=n("0195");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("3d3bab13",i,!0,{sourceMap:!1,shadowMode:!1})},ace1:function(t,e,n){"use strict";n.r(e);var i=n("515f"),a=n("99d0");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("73a4");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"c0e6e596",null,!1,i["a"],void 0);e["default"]=s.exports},afd1:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uLoadmore:n("c9bb").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toolsMore",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("more")}}},[n("u-loadmore",{attrs:{status:t.getMoreStatus,icon:!0}})],1)},o=[]},d44d:function(t,e,n){"use strict";n.r(e);var i=n("4179"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f2aa:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.goodsCateList=function(t,e){return a.default.GET("/worker/worker-goods-cate-list",t,e)},e.goodsInfo=function(t,e){return a.default.GET("/worker/worker-goods-info",t,e)},e.goodsList=function(t,e){return a.default.GET("/worker/worker-goods-list",t,e)},e.orderCancel=function(t,e){return a.default.GET("/worker-order/worker-order-cancel",t,e)},e.orderCancelReason=function(t,e){return a.default.GET("/worker-order/worker-order-cancel-reason",t,e)},e.orderGoodsInfo=function(t,e){return a.default.GET("/worker-order/get-order-goods-info",t,e)},e.orderInfo=function(t,e){return a.default.GET("/worker-order/worker-order-info",t,e)},e.orderList=function(t,e){return a.default.GET("/worker-order/worker-order-list",t,e)},e.orderProgress=function(t,e){return a.default.GET("/worker-order/worker-order-progress",t,e)},e.workerIndex=function(t,e){return a.default.GET("/worker/worker-index",t,e)},e.workerInfo=function(t,e){return a.default.GET("/worker/worker-info",t,e)},e.workerList=function(t,e){return a.default.GET("/worker/worker-list",t,e)};var a=i(n("cc29"))}}]);
|