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.
 
 
 
 
xxdj1/unpackage/dist/build/h5/static/js/user-pages-detail.1f014336.js

1 lines
19 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-detail"],{"0dda":function(i,n,e){"use strict";e.r(n);var o=e("c626"),t=e("f969");for(var c in t)["default"].indexOf(c)<0&&function(i){e.d(n,i,(function(){return t[i]}))}(c);e("4039");var u=e("f0c5"),l=Object(u["a"])(t["default"],o["b"],o["c"],!1,null,"59765974",null,!1,o["a"],void 0);n["default"]=l.exports},3995:function(i,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("a9e3");var o={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};n.default=o},4039:function(i,n,e){"use strict";var o=e("61f3"),t=e.n(o);t.a},"41cd":function(i,n,e){"use strict";e("7a82");var o=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(e("c7eb")),c=o(e("1da1")),u=o(e("5530"));e("99af"),e("caad"),e("2532");var l=e("26cb"),a=(o(e("7ded")),o(e("a7f9"))),r={components:{parser:a.default},data:function(){return{options:{},activeIndex:0,tabList:[{title:"项目介绍",id:0},{title:"禁忌说明",id:1},{title:"下单须知",id:2}],rule:{0:"introduce",1:"explain",2:"notice"},detail:{}}},computed:(0,l.mapState)({primaryColor:function(i){return i.config.configInfo.primaryColor},subColor:function(i){return i.config.configInfo.subColor},configInfo:function(i){return i.config.configInfo},userInfo:function(i){return i.user.userInfo}}),onLoad:function(i){this.$util.showLoading(),this.options=i,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onShareAppMessage:function(i){var n=this.userInfo.id,e=this.detail,o=e.id,t=e.title,c=e.cover,u="/user/pages/detail?pid=".concat(n,"&id=").concat(o);return this.$util.log(u),{title:t,imageUrl:c,path:u}},methods:(0,u.default)((0,u.default)((0,u.default)({},(0,l.mapActions)(["getConfigInfo","getUserInfo"])),(0,l.mapMutations)(["getUserIndex"])),{},{initIndex:function(){var i=arguments,n=this;return(0,c.default)((0,t.default)().mark((function e(){var o;return(0,t.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=i.length>0&&void 0!==i[0]&&i[0],o||!n.$jweixin.isWechat()){e.next=5;break}return e.next=4,n.$jweixin.initJssdk();case 4:n.toAppShare();case 5:if(n.configInfo.id&&!o){e.next=8;break}return e.next=8,n.getConfigInfo();case 8:return e.next=10,n.getDetail();case 10:n.$util.setNavigationBarColor({bg:n.primaryColor});case 11:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.initIndex(!0)},toAppShare:function(){var i=this,n=this.userInfo.id,e=this.detail,o=(e.id,e.title),t=e.cover,c=window.location.href;c.includes("&pid=")&&(c=c.split("&pid=")[0]);var u="".concat(c,"&pid=").concat(n);this.$jweixin.wxReady((function(){i.$jweixin.showOptionMenu(),i.$jweixin.shareAppMessage(o,"",u,t),i.$jweixin.shareTimelineMessage(o,u,t)}))},getDetail:function(){var i=this;return(0,c.default)((0,t.default)().mark((function n(){var e;return(0,t.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=i.options.id,n.next=3,i.$api.service.serviceInfo({id:e});case 3:i.detail=n.sent,i.$util.hideAll();case 5:case"end":return n.stop()}}),n)})))()},handerTabChange:function(i){this.activeIndex=i},linkpress:function(i){console.log("linkpress",i)}})};n.default=r},"58a1":function(i,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""}},"61f3":function(i,n,e){var o=e("d13e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals);var t=e("4f06").default;t("31cec6fc",o,!0,{sourceMap:!1,shadowMode:!1})},7017:function(i,n,e){"use strict";var o=e("fe02"),t=e.n(o);t.a},8183:function(i,n,e){var o=e("24fb");n=o(!1),n.push([i.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.pages-home .list-item .item-btn[data-v-40cc9185]{width:%?129?%;height:%?54?%}.tags[data-v-40cc9185]{background:rgba(23,193,97,.3);display:flex;justify-content:space-around;margin:0 %?20?%;padding:%?20?% 0;border-radius:%?20?%}.tags .tagItem[data-v-40cc9185]{display:flex;align-items:center}.tags uni-text[data-v-40cc9185]{font-size:%?24?%;margin-left:%?10?%}',""]),i.exports=n},"8dce":function(i,n,e){"use strict";e.r(n);var o=e("b0b1"),t=e("a5e2");for(var c in t)["default"].indexOf(c)<0&&function(i){e.d(n,i,(function(){return t[i]}))}(c);e("7017");var u=e("f0c5"),l=Object(u["a"])(t["default"],o["b"],o["c"],!1,null,"40cc9185",null,!1,o["a"],void 0);n["default"]=l.exports},a5e2:function(i,n,e){"use strict";e.r(n);var o=e("41cd"),t=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(i){e.d(n,i,(function(){return o[i]}))}(c);n["default"]=t.a},b0b1:function(i,n,e){"use strict";e.d(n,"b",(function(){return t})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return o}));var o={uIcon:e("0dda").default},t=function(){var i=this,n=i.$createElement,e=i._self._c||n;return i.detail.id?e("v-uni-view",{staticClass:"pages-home"},[e("banner",{attrs:{list:i.detail.imgs,margin:0,autoplay:!0,height:562,indicatorActiveColor:i.primaryColor}}),e("v-uni-view",{staticClass:"fill-base pd-lg"},[e("v-uni-view",{staticClass:"f-title c-title"},[i._v(i._s(i.detail.title))]),e("v-uni-view",{staticClass:"flex-y-baseline f-desc c-caption mt-sm"},[e("v-uni-view",{staticClass:"flex-y-baseline flex-1"},[i.detail.init_price?e("v-uni-view",{staticClass:"text-delete mr-sm"},[i._v("¥"+i._s(i.detail.init_price))]):i._e(),e("v-uni-view",{staticClass:"f-md-title c-warning mr-sm"},[i._v("¥"+i._s(i.detail.price))]),i._v("/ "+i._s(i.detail.time_long)+"分钟")],1),e("v-uni-view",[i._v(i._s(i.detail.total_sale)+"人选择")])],1)],1),e("v-uni-view",{staticClass:"tags"},[e("v-uni-view",{staticClass:"tagItem"},[e("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),e("v-uni-text",[i._v("爽约包退")])],1),e("v-uni-view",{staticClass:"tagItem"},[e("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),e("v-uni-text",[i._v("实名认证")])],1),e("v-uni-view",{staticClass:"tagItem"},[e("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),e("v-uni-text",[i._v("资质证书")])],1)],1),e("v-uni-view",{staticClass:"space-md"}),e("tab",{attrs:{list:i.tabList,activeIndex:1*i.activeIndex,activeColor:i.primaryColor,width:"33.3%",height:"100rpx"},on:{change:function(n){arguments[0]=n=i.$handleEvent(n),i.handerTabChange.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"space-md"}),e("v-uni-view",{staticClass:"fill-base pd-lg f-paragraph c-desc"},[e("v-uni-view",{staticClass:"c-title text-bold mb-md"},[i._v(i._s(i.tabList[i.activeIndex].title))]),e("parser",{attrs:{html:i.detail[i.rule[i.activeIndex]],"show-with-animation":!0,"lazy-load":!0},on:{linkpress:function(n){arguments[0]=n=i.$handleEvent(n),i.linkpress.apply(void 0,arguments)}}},[i._v("加载中...")])],1),e("v-uni-view",{staticClass:"space-max-footer"}),e("fix-bottom-button",{attrs:{text:[{type:"confirm",text:"选择技师"}],bgColor:"#fff"},on:{confirm:function(n){arguments[0]=n=i.$handleEvent(n),i.$util.goUrl({url:"/user/pages/choose-technician?id="+i.options.id})}}})],1):i._e()},c=[]},c626:function(i,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return t})),e.d(n,"a",(function(){}));var o=function(){var i=this,n=i.$createElement,e=i._self._c||n;return e("v-uni-view",{staticClass:"u-icon",class:["u-icon--"+i.labelPos],on:{click:function(n){arguments[0]=n=i.$handleEvent(n),i.clickHandler.apply(void 0,arguments)}}},[i.isImg?e("v-uni-image",{staticClass:"u-icon__img",style:[i.imgStyle,i.$u.addStyle(i.customStyle)],attrs:{src:i.name,mode:i.imgMode}}):e("v-uni-text",{staticClass:"u-icon__icon",class:i.uClasses,style:[i.iconStyle,i.$u.addStyle(i.customStyle)],attrs:{"hover-class":i.hoverClass}},[i._v(i._s(i.icon))]),""!==i.label?e("v-uni-text",{staticClass:"u-icon__label",style:{color:i.labelColor,fontSize:i.$u.addUnit(i.labelSize),marginLeft:"right"==i.labelPos?i.$u.addUnit(i.space):0,marginTop:"bottom"==i.labelPos?i.$u.addUnit(i.space):0,marginRight:"left"==i.labelPos?i.$u.addUnit(i.space):0,marginBottom:"top"==i.labelPos?i.$u.addUnit(i.space):0}},[i._v(i._s(i.label))]):i._e()],1)},t=[]},d13e:function(i,n,e){var o=e("24fb");n=o(!1),n.push([i.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-59765974], uni-scroll-view[data-v-59765974], uni-swiper-item[data-v-59765974]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url(https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf) format("truetype")}.u-icon[data-v-59765974]{display:flex;align-items:center}.u-icon--left[data-v-59765974]{flex-direction:row-reverse;align-items:center}.u-icon--right[data-v-59765974]{flex-direction:row;align-items:center}.u-icon--top[data-v-59765974]{flex-direction:column-reverse;justify-content:center}.u-icon--bottom[data-v-59765974]{flex-direction:column;justify-content:center}.u-icon__icon[data-v-59765974]{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary[data-v-59765974]{color:#3c9cff}.u-icon__icon--success[data-v-59765974]{color:#5ac725}.u-icon__icon--error[data-v-59765974]{color:#f56c6c}.u-icon__icon--warning[data-v-59765974]{color:#f9ae3d}.u-icon__icon--info[data-v-59765974]{color:#909399}.u-icon__img[data-v-59765974]{height:auto;will-change:transform}.u-icon__label[data-v-59765974]{line-height:1}',""]),i.exports=n},d9ca:function(i,n,e){"use strict";e("7a82");var o=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("14d9"),e("caad"),e("2532"),e("c975");var t=o(e("58a1")),c=o(e("3995")),u={name:"u-icon",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,c.default],computed:{uClasses:function(){var i=[];return i.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle:function(){var i={};return i={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(i.color=this.color),i},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var i={};return i.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),i.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),i},icon:function(){return t.default["uicon-"+this.name]||this.name}},methods:{clickHandler:function(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}};n.default=u},f969:function(i,n,e){"use strict";e.r(n);var o=e("d9ca"),t=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(i){e.d(n,i,(function(){return o[i]}))}(c);n["default"]=t.a},fe02:function(i,n,e){var o=e("8183");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals);var t=e("4f06").default;t("6500738e",o,!0,{sourceMap:!1,shadowMode:!1})}}]);