王总上门按摩后台代码
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.
 
 
 
 
 
shangmenanmo/public/h6/static/js/shopstore-pages-service.d8e...

1 lines
9.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shopstore-pages-service"],{"0769":function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("c223");var a=n(e("2634")),s=n(e("2fdc")),o=n(e("9b1b")),r=e("8f59"),c=n(e("e693")),u={components:{serviceListItem:c.default},data:function(){return{options:{},loading:!0,param:{page:1},list:{data:[]},count:{}}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location}}),onLoad:function(t){this.options=t,this.$util.setNavigationBarColor({bg:this.primaryColor}),this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)({},(0,r.mapMutations)([])),{},{initIndex:function(){var t=arguments,i=this;return(0,s.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!i.$jweixin.isWechat()){e.next=5;break}return e.next=4,i.$jweixin.initJssdk();case 4:i.$jweixin.wxReady((function(){i.$jweixin.hideOptionMenu()}));case 5:i.getList();case 6:case"end":return e.stop()}}),e)})))()},initRefresh:function(){var t=this;return(0,s.default)((0,a.default)().mark((function i(){return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.param.page=1,i.next=3,t.initIndex(!0);case 3:case"end":return i.stop()}}),i)})))()},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function i(){var e,n,s,o;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e=t.list,n=t.param,s=t.options.id,n.id=s,i.next=5,t.$api.shopstore.storeServiceList(n);case 5:o=i.sent,1==t.param.page||(o.data=e.data.concat(o.data)),t.list=o,t.loading=!1,t.$util.hideAll();case 9:case"end":return i.stop()}}),i)})))()}})};i.default=u},"269e":function(t,i,e){"use strict";e.r(i);var n=e("bb21"),a=e("5f06");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);var o=e("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"e7aeb094",null,!1,n["a"],void 0);i["default"]=r.exports},"37c2":function(t,i,e){"use strict";var n=e("4059"),a=e.n(n);a.a},4059:function(t,i,e){var n=e("9047");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("54e7e89c",n,!0,{sourceMap:!1,shadowMode:!1})},4492:function(t,i,e){"use strict";e.r(i);var n=e("9924"),a=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a},"5f06":function(t,i,e){"use strict";e.r(i);var n=e("0769"),a=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a},9047:function(t,i,e){var n=e("c86c");i=n(!1),i.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/* 文章场景相关 */.service-list-item .list-item .cover[data-v-ccee17ba]{width:%?180?%;height:%?180?%}.service-list-item .list-item .time-long[data-v-ccee17ba]{min-width:%?72?%;height:%?30?%;padding:0 %?5?%;background:linear-gradient(270deg,#4c545a,#282b34);border-radius:%?4?%;font-size:%?20?%;color:#ffeeb9;margin-right:%?16?%}.service-list-item .list-item .f-icontext[data-v-ccee17ba]{font-size:%?18?%}.service-list-item .list-item .text-delete[data-v-ccee17ba]{font-size:%?24?%;color:#b9b9b9}.service-list-item .list-item .item-btn[data-v-ccee17ba]{min-width:%?150?%;height:%?52?%;padding:0 %?10?%;border-radius:%?100?%}.servefc[data-v-ccee17ba]{display:flex;align-items:center}',""]),t.exports=i},9924:function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("64aa"),e("c223");var n=e("8f59"),a={components:{},props:{from:{type:String,default:function(){return"list"}},sid:{type:Number,default:function(){return 0}},info:{type:Object,default:function(){return{}}},maxWidth:{type:String,default:function(){return"490rpx"}}},data:function(){return{textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"}}},computed:(0,n.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo}}),methods:{goDetail:function(){var t=this.info.id,i=this.sid,e=void 0===i?0:i,n="/user/pages/detail?id=".concat(t,"&store_id=").concat(e);this.$util.goUrl({url:n})},toChoose:function(){var t=this.from;if("technician-info"!=t){var i=this.info.id,e=this.sid,n=void 0===e?0:e,a="/user/pages/choose-technician?id=".concat(i,"&store_id=").concat(n);this.$util.goUrl({url:a})}else this.$emit("order")},toEmit:function(t){this.$emit(t)}}};i.default=a},bb21:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"shopstore-service"},[t._l(t.list.data,(function(i,n){return e("v-uni-view",{key:n,staticClass:"fill-base pd-lg b-1px-b"},[e("service-list-item",{attrs:{info:i,sid:t.options.id}})],1)})),t.loading?e("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?e("abnor"):t._e(),e("v-uni-view",{staticClass:"space-footer"})],2)},a=[]},c825:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"service-list-item"},[e("v-uni-view",{staticClass:"list-item flex-warp",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goDetail.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cover radius-16"},[e("v-uni-view",{staticClass:"h5-image cover radius-16",style:{backgroundImage:"url('"+t.info.cover+"')"}})],1),e("v-uni-view",{staticClass:"flex-1 ml-md",style:{maxWidth:t.maxWidth}},[e("v-uni-view",{staticClass:"flex-between"},[e("v-uni-view",{staticClass:"f-title c-title text-bold max-270 ellipsis"},[t._v(t._s(t.info.title))]),e("v-uni-view",{staticClass:"f-caption c-caption"},[t._v("超"+t._s(t.info.total_sale)+"人选择")])],1),e("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm ellipsis",staticStyle:{height:"36rpx"}},[t._v(t._s(t.info.sub_title||""))]),1*t.info.material_price>0?e("v-uni-view",{staticClass:"f-caption c-caption"},[t._v("物料费:¥"+t._s(t.info.material_price))]):t._e(),e("v-uni-view",{staticClass:"flex-between"},[e("v-uni-view",{staticClass:"flex-y-center f-desc c-caption max-350 ellipsis"},[e("v-uni-view",{staticClass:"flex-y-baseline f-icontext c-orange text-bold mr-sm"},[e("b",{staticClass:"f-caption c-orange"},[t._v("¥")]),e("v-uni-view",{staticClass:"f-md-title"},[t._v(t._s(t.info.price))])],1),t.info.init_price?e("v-uni-view",{staticClass:"text-delete"},[t._v("¥"+t._s(t.info.init_price))]):t._e(),e("v-uni-view",{staticClass:"servefc ml-md"},[e("i",{staticClass:"iconfont icon-shijian",style:{color:t.primaryColor}}),e("span",{staticClass:"f-caption c-title ml-sm"},[t._v(t._s(t.info.time_long)+"分钟")])])],1),e("auth",{staticStyle:{width:"190rpx"},attrs:{needAuth:t.userInfo&&(!t.userInfo.phone||!t.userInfo.nickName),must:!0,type:t.userInfo.phone?"userInfo":"phone"},on:{go:function(i){arguments[0]=i=t.$handleEvent(i),t.toChoose.apply(void 0,arguments)},click:function(i){i.stopPropagation(),i.preventDefault(),arguments[0]=i=t.$handleEvent(i)}}},[e("v-uni-view",{staticClass:"flex-between"},[e("v-uni-view"),e("v-uni-view",{staticClass:"item-btn flex-center f-caption c-base",style:{background:"linear-gradient(68deg, "+t.primaryColor+", "+t.subColor+")"}},[t._v(t._s("technician-info"==t.from?"立即预约":"选择"+t.$t("action.attendantName")))])],1)],1)],1)],1)],1)],1)},a=[]},e693:function(t,i,e){"use strict";e.r(i);var n=e("c825"),a=e("4492");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("37c2");var o=e("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"ccee17ba",null,!1,n["a"],void 0);i["default"]=r.exports}}]);