Files
ZangShiQi/public/h5/default/static/js/pages_promotion-cardservice-service_goods-reserve_detail.cae1a1f3.js
2026-04-05 10:48:38 +08:00

1 line
9.7 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_promotion-cardservice-service_goods-reserve_detail"],{"0246":function(e,t,r){var a=r("eb82");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("967d").default;i("2569073c",a,!0,{sourceMap:!1,shadowMode:!1})},1107:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={data:function(){return{goodsId:0,serviceDetail:"",params:{},formData:{remark:"",relaname:"",tel:""},navStatus:{list:[],index:"all"},reserveList:[]}},onLoad:function(e){this.goodsId=e.goods_id},onShow:function(){var e=this;this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.$refs.mescroll&&this.$refs.mescroll.refresh():this.$nextTick((function(){e.$refs.login.open("/pages_promotion/cardservice/service_goods/my_reserve_list")})),this.getDetail(),this.params=uni.getStorageSync("reserveParams")},onUnload:function(){uni.removeStorageSync("reserveParams")},methods:{getDetail:function(){var e=this;this.$api.sendRequest({url:"/cardservice/api/service/detail",data:{goods_id:this.goodsId},success:function(t){t.code>=0?(e.serviceDetail=t.data.goods_sku_detail,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未找到服务信息",mask:!0,duration:2e3}),setTimeout((function(){e.$util.redirectTo("/pages/index/index")}),2e3))},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},setAdd:function(){var e=this;this.params.remark=this.formData.remark,this.params.relaname=this.formData.relaname,this.params.tel=this.formData.tel,this.$api.sendRequest({url:"/cardservice/api/reserve/addreserve",data:this.params,success:function(t){0==t.code?e.$util.redirectTo("/pages_promotion/cardservice/service_goods/my_reserve_list"):e.$util.showToast({title:t.message})},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})}}};t.default=a},1628:function(e,t,r){var a=r("c86c");t=a(!1),t.push([e.i,"[data-v-390e7cec] .uni-page{overflow:hidden}[data-v-390e7cec] .mescroll-upwarp{padding-bottom:%?100?%}",""]),e.exports=t},"21ee":function(e,t,r){"use strict";var a=r("d495"),i=r.n(a);i.a},"3b2b":function(e,t,r){"use strict";r.r(t);var a=r("8532"),i=r("e01a");for(var s in i)["default"].indexOf(s)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(s);r("739c"),r("21ee");var o=r("828b"),n=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"390e7cec",null,!1,a["a"],void 0);t["default"]=n.exports},"739c":function(e,t,r){"use strict";var a=r("0246"),i=r.n(a);i.a},7854:function(e,t,r){"use strict";r.r(t);var a=r("8ba8"),i=r("f48d");for(var s in i)["default"].indexOf(s)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(s);var o=r("828b"),n=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=n.exports},8532:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return a}));var a={pageMeta:r("7854").default,nsLogin:r("2910").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("page-meta",{attrs:{"page-style":e.themeColor}}),r("v-uni-view",{staticClass:"reserve-wrap"},[r("v-uni-view",{staticClass:"reserve-list"},[r("v-uni-view",{staticClass:"reserve-head"},[e._v("预约信息")]),r("v-uni-view",{staticClass:"reserve-item"},[r("v-uni-text",{staticClass:"title"},[e._v("预约项目")]),r("v-uni-text",{staticClass:"content"},[e._v(e._s(e.serviceDetail.goods_name))])],1),r("v-uni-view",{staticClass:"reserve-item"},[r("v-uni-text",{staticClass:"title"},[e._v("预约时间")]),r("v-uni-view",{staticClass:"content"},[r("v-uni-text",[e._v(e._s(e.params.date))]),r("v-uni-text",{staticClass:"time"},[e._v("("+e._s(e.params.time)+")")])],1)],1),r("v-uni-view",{staticClass:"reserve-item"},[r("v-uni-text",{staticClass:"title"},[e._v("预约人数")]),r("v-uni-text",{staticClass:"content"},[e._v("1")])],1),r("v-uni-view",{staticClass:"reserve-item"},[r("v-uni-text",{staticClass:"title"},[e._v("服务人员")]),r("v-uni-text",{staticClass:"content"},[e._v(e._s(e.params.username))])],1),r("v-uni-view",{staticClass:"reserve-item remark-item"},[r("v-uni-text",{staticClass:"title"},[e._v("备注")]),r("v-uni-textarea",{attrs:{type:"text",maxlength:"100",placeholder:"备注信息","placeholder-class":"color-tip"},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}})],1)],1),r("v-uni-view",{staticClass:"tab-bar"},[r("v-uni-view",{staticClass:"tab-bar-item"}),r("v-uni-button",{staticClass:"reserve-btn",attrs:{type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.setAdd()}}},[e._v("确认预约")])],1),r("ns-login",{ref:"login"})],1)],1)},s=[]},"8ba8":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticStyle:{display:"none"}},[this._t("default")],2)},i=[]},cc1b:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("5ef2"),r("64aa"),r("5c47"),r("a1c1"),r("e838");var a={type:"scrolldone",target:{id:"",offsetLeft:0,offsetTop:0,dataset:{}},currentTarget:{id:"",offsetLeft:0,offsetTop:0,dataset:{}},detail:{}},i={props:{backgroundTextStyle:{type:String,default:"dark",validator:function(e){return-1!==["dark","light"].indexOf(e)}},backgroundColor:{type:String,default:"#ffffff"},backgroundColorTop:{type:String,default:"#ffffff"},backgroundColorBottom:{type:String,default:"#ffffff"},scrollTop:{type:String,default:""},scrollDuration:{type:Number,default:300},pageStyle:{type:String,default:""},enablePullDownRefresh:{type:[Boolean,String],default:!1},rootFontSize:{type:String,default:""}},created:function(){var e=this,t=getCurrentPages()[0];this.$pageVm=t.$vm||t,uni.onWindowResize((function(t){e.$emit("resize",t)})),this.$pageVm.$on("hook:onPageScroll",(function(t){e.$emit("scroll",t)})),this.$watch("backgroundTextStyle",(function(){e.setBackgroundTextStyle()})),this.$watch((function(){return[e.rootFontSize,e.pageStyle]}),(function(){e.setPageMeta()})),this.$watch((function(){return[e.backgroundColor,e.backgroundColorTop,e.backgroundColorBottom]}),(function(){e.setBackgroundColor()})),this.$watch((function(){return[e.scrollTop,e.scrollDuration]}),(function(){e.pageScrollTo()}))},beforeMount:function(){this.setBackgroundColor(),(this.rootFontSize||this.pageStyle)&&this.setPageMeta(),this.backgroundTextStyle&&this.setBackgroundTextStyle()},mounted:function(){this.scrollTop&&this.pageScrollTo()},methods:{setPullDownRefresh:function(e,t){e.setStyle({pullToRefresh:{support:t,style:"Android"===plus.os.name?"circle":"default"}})},setPageMeta:function(){uni.setPageMeta({pageStyle:this.pageStyle,rootFontSize:this.rootFontSize})},setBackgroundTextStyle:function(){},setBackgroundColor:function(){},pageScrollTo:function(){var e=this,t=String(this.scrollTop);if(-1!==t.indexOf("rpx")&&(t=uni.upx2px(t.replace("rpx",""))),t=parseFloat(t),!isNaN(t)){var r=function r(i){i.scrollTop===t&&(e.$pageVm.$off("hook:onPageScroll",r),e.$emit("scrolldone",a))};uni.pageScrollTo({scrollTop:t,duration:this.scrollDuration,success:function(){e.$pageVm.$on("hook:onPageScroll",r)}})}}}};t.default=i},d495:function(e,t,r){var a=r("1628");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("967d").default;i("605855c3",a,!0,{sourceMap:!1,shadowMode:!1})},e01a:function(e,t,r){"use strict";r.r(t);var a=r("1107"),i=r.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},eb82:function(e,t,r){var a=r("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n * 建议使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n */.reserve-wrap[data-v-390e7cec]{padding:%?24?%}.reserve-wrap .reserve-list[data-v-390e7cec]{margin-bottom:%?20?%;background-color:#fff;border-radius:%?18?%}.reserve-wrap .reserve-list .reserve-head[data-v-390e7cec]{height:%?100?%;line-height:%?100?%;font-weight:700;font-size:%?32?%;border-bottom:%?2?% solid #f2f2f2;padding:0 %?24?%}.reserve-wrap .reserve-list .reserve-item[data-v-390e7cec]{display:flex;align-items:center;padding:0 %?24?%;height:%?90?%}.reserve-wrap .reserve-list .reserve-item .title[data-v-390e7cec]{margin-right:%?20?%;width:%?160?%;font-size:%?26?%}.reserve-wrap .reserve-list .reserve-item .time[data-v-390e7cec]{color:#888}.reserve-wrap .reserve-list .remark-item[data-v-390e7cec]{height:%?160?%;align-items:flex-start;padding-bottom:%?20?%}.reserve-wrap .reserve-list .remark-item uni-text[data-v-390e7cec]{min-width:%?160?%}.reserve-wrap .reserve-list .remark-item uni-textarea[data-v-390e7cec]{height:%?160?%;font-size:%?26?%}.reserve-wrap .tab-bar[data-v-390e7cec]{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;height:%?98?%;line-height:%?98?%;background-color:#fff;padding:0 %?30?%}.reserve-wrap .tab-bar .tab-bar-item[data-v-390e7cec]{display:flex;flex-direction:column;align-items:center;line-height:1}.reserve-wrap .tab-bar .tab-bar-item uni-text[data-v-390e7cec]:first-of-type{margin-bottom:%?6?%;font-size:%?40?%;font-weight:700}.reserve-wrap .tab-bar .tab-bar-item uni-text[data-v-390e7cec]:last-of-type{font-size:%?24?%}.reserve-wrap .tab-bar .reserve-btn[data-v-390e7cec]{margin:0;width:%?426?%;background-color:var(--base-color);color:#fff;border-radius:%?50?%}',""]),e.exports=t},f48d:function(e,t,r){"use strict";r.r(t);var a=r("cc1b"),i=r.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a}}]);