test
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.
 
 
 
 
 
 

1 lines
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages2-booked-bookedInformation-bookedInformation"],{"0340":function(t,a,e){"use strict";var o=e("ccfa"),i=e.n(o);i.a},"098e":function(t,a,e){"use strict";var o=e("4ea4");e("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=o(e("7cbb"));function n(t,a,e){uni.openLocation({latitude:t,longitude:a,name:e,fail:function(){uni.showModal({content:"打开地图失败,请重试"})}})}function r(t,a,e){switch(e){case"gcj02":return[t,a];case"bd09":return i.default.bd09togcj02(t,a);case"wgs84":return i.default.wgs84togcj02(t,a);default:return[t,a]}}var s={openMap:function(t,a,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"gcj02",i=r(a,t,o);n(i[1],i[0],e)}};a.default=s},"266a":function(t,a,e){var o=e("dde5");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("4f06").default;i("26196458",o,!0,{sourceMap:!1,shadowMode:!1})},"33ef":function(t,a,e){"use strict";var o;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return o}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.TabBarsData?e("v-uni-view",[e("v-uni-view",{staticClass:"diy-tabbar",style:{background:t.TabBarsData?t.TabBarsData.style.bgcolor:"#ffffff","padding-bottom":t.isPadding?"20px":""}},t._l(t.TabBarsData.data,(function(a,o){return e("v-uni-view",{key:o,staticClass:"tabbar-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTabItem(a.linkurl,a.name,o)}}},["1"===t.TabBarsData.params.navstyle?e("v-uni-view",[e("v-uni-image",{staticClass:"image",attrs:{src:a.imgurl}})],1):t._e(),"0"===t.TabBarsData.params.navstyle?e("v-uni-view",["pages/subPages2/homemaking/postDemand/postDemand"==a.page_path?e("v-uni-view",{staticClass:"tabbar-sever"},[e("v-uni-image",{staticClass:"tabbar-severImg",attrs:{src:t.imgfixUrls+"homemakingImg/enterCheck.png",mode:""}})],1):e("v-uni-view",[e("v-uni-view",{staticClass:"iconfont tabbar-item-icon",class:a.iconclass,style:t.current===o?"color:"+t.TabBarsData.style.iconcoloron:"color:"+t.TabBarsData.style.iconcolor}),e("v-uni-view",{staticClass:"f-24",style:t.current===o?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(a.text))])],1)],1):t._e(),"2"===t.TabBarsData.params.navstyle?e("v-uni-view",{staticClass:"navstyle-3-item"},[e("v-uni-view",{staticClass:"navstyle-image",style:{"background-image":t.current===o?"url("+a.select_img+")":"url("+a.default_img+")"}}),e("v-uni-view",{staticClass:"f-24 t-c",style:t.current===o?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(a.text))])],1):t._e()],1)})),1)],1):t._e()},n=[]},"3c24":function(t,a,e){"use strict";e.r(a);var o=e("58fc"),i=e.n(o);for(var n in o)"default"!==n&&function(t){e.d(a,t,(function(){return o[t]}))}(n);a["default"]=i.a},"4eab":function(t,a,e){var o=e("5e15");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("4f06").default;i("56cf2338",o,!0,{sourceMap:!1,shadowMode:!1})},"58fc":function(t,a,e){"use strict";var o=e("4ea4");e("99af"),e("c740"),e("caad"),e("c975"),e("a9e3"),e("ac1f"),e("1276"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=o(e("2c7c")),n={data:function(){return{current:0,isPadding:null,menu:null}},props:{tabBarAct:{type:Number,default:function(){return 0}},tabBarData:{default:function(){return null}},pageType:{type:String,default:function(){return""}},pageId:{type:String,default:function(){return""}},menuList:{default:function(){return""}}},mounted:function(){var t=this;t.current=uni.getStorageSync("tabbarindex"),uni.getSystemInfo({success:function(a){var e=a.model,o=["iPhone10,3","iPhone10,6","iPhone11,8","iPhone11,2","iPhone11,6"];t.isPadding=o.includes(e)||-1!==e.indexOf("iPhone X")||-1!==e.indexOf("iPhone12")}}),t.getbtmNavBar()},methods:{onTabItem:function(t,a,e){if(uni.setStorageSync("tabbarindex",e),-1!=t.indexOf("indet"))return i.default.navigationToH5(!1,"".concat(i.default.base,"#/").concat(t)),void window.location.reload();i.default.navigationTo({url:t})},getbtmNavBar:function(){var t=this,a={};if(t.pageType&&(a={type:t.pageType}),t.pageId&&Object.assign(a,{id:t.pageId}),"draw"==t.pageType){t.setData({menu:t.tabBarData});var e=getCurrentPages(),o=e[e.length-1],n=o.route||o.__route__,r=[],s=!1;for(var d in r=t.menu.data,r)r[d].page_path.split("?")[0]==n&&(s=!0);s||(uni.removeStorageSync("tabbarindex"),t.current=0)}else i.default._post_form("&do=BottomMenu",a,(function(a){t.setData({menu:a.data.data});var e=getCurrentPages(),o=e[e.length-1],i=o.route||o.__route__,n=[],r=!1;for(var s in n=t.menu.data,n)n[s].page_path.split("?")[0]==i&&(r=!0);r||(uni.removeStorageSync("tabbarindex"),t.current=0)}))}},computed:{TabBarsData:function(){var t,a=getCurrentPages(),e=a[a.length-1],o=e.route||e.__route__,i={data:this.tabBarData&&this.tabBarData.length>0?this.tabBarData:this.menu},n=e.$mp.query;if(i.data){var r=[];for(var s in i.data.data)r.push(i.data.data[s]);return"pages/mainPages/index/diypage"===o?(o=o+"?i="+n.i+(n["aid"]?"&aid="+n["aid"]:"")+(n["id"]?"&id="+n["id"]:"")+"&type="+n["type"],t=r.findIndex((function(t){return t.linkurl===o})),this.current=t):(t=r.findIndex((function(t){return t.linkurl.split("?")[0]===o})),this.current=t),i.data.data=r,i.data}}}};a.default=n},"5e15":function(t,a,e){var o=e("24fb");a=o(!1),a.push([t.i,"uni-page-body[data-v-908d07e4]{background-color:#f8f8f8}body.?%PAGE?%[data-v-908d07e4]{background-color:#f8f8f8}",""]),t.exports=a},"6f85":function(t,a,e){"use strict";e.r(a);var o=e("33ef"),i=e("3c24");for(var n in i)"default"!==n&&function(t){e.d(a,t,(function(){return i[t]}))}(n);e("a780");var r,s=e("f0c5"),d=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"e1dd56ac",null,!1,o["a"],r);a["default"]=d.exports},"727f":function(t,a,e){"use strict";var o=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=o(e("2c7c")),n=(o(e("098e")),o(e("ec93"))),r=o(e("6f85")),s={data:function(){return{loadlogo:!1,bookedData:{},channel:3,ids:{}}},components:{TabBars:r.default},onLoad:function(t){this.ids=t,this.getBookedData()},methods:{playcall:function(){var t=this;uni.makePhoneCall({phoneNumber:t.bookedData.merchant.mobile})},openNavigation:function(){var t=this.bookedData.merchant;t.location={lat:t.lat,lng:t.lng},console.log(t),n.default.WxopenLocation(t["lat"],t["lng"],t["storename"],t["address"])},cancel:function(t){var a=this;i.default.showError("确定取消本次预约?",(function(e){if(e.confirm){var o={appointid:t.id,channel:a.channel};i.default._post_form("&p=order&do=cancelAppoint",o,(function(t){uni.showToast({title:t.message}),a.getBookedData()}),!1,(function(){}))}}),!0)},getBookedData:function(){var t=this,a={orderid:this.ids.orderid,goodsid:this.ids.id,pluginno:this.ids.type};i.default._post_form("&p=order&do=appointDetail",a,(function(a){t.bookedData=a.data}),!1,(function(){t.loadlogo=!0}))}}};a.default=s},"7cbb":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=52.35987755982988,i=3.141592653589793,n=6378245,r=.006693421622965943;function s(t,a){var e=52.35987755982988,o=t-.0065,i=a-.006,n=Math.sqrt(o*o+i*i)-2e-5*Math.sin(i*e),r=Math.atan2(i,o)-3e-6*Math.cos(o*e),s=n*Math.cos(r),d=n*Math.sin(r);return[s,d]}function d(t,a){var e=Math.sqrt(t*t+a*a)+2e-5*Math.sin(a*o),i=Math.atan2(a,t)+3e-6*Math.cos(t*o),n=e*Math.cos(i)+.0065,r=e*Math.sin(i)+.006;return[n,r]}function l(t,a){if(v(t,a))return[t,a];var e=u(t-105,a-35),o=f(t-105,a-35),s=a/180*i,d=Math.sin(s);d=1-r*d*d;var l=Math.sqrt(d);e=180*e/(n*(1-r)/(d*l)*i),o=180*o/(n/l*Math.cos(s)*i);var c=a+e,b=t+o;return[b,c]}function c(t,a){if(v(t,a))return[t,a];var e=u(t-105,a-35),o=f(t-105,a-35),s=a/180*i,d=Math.sin(s);d=1-r*d*d;var l=Math.sqrt(d);return e=180*e/(n*(1-r)/(d*l)*i),o=180*o/(n/l*Math.cos(s)*i),mglat=a+e,mglng=t+o,[2*t-mglng,2*a-mglat]}function u(t,a){var e=2*t-100+3*a+.2*a*a+.1*t*a+.2*Math.sqrt(Math.abs(t));return e+=2*(20*Math.sin(6*t*i)+20*Math.sin(2*t*i))/3,e+=2*(20*Math.sin(a*i)+40*Math.sin(a/3*i))/3,e+=2*(160*Math.sin(a/12*i)+320*Math.sin(a*i/30))/3,e}function f(t,a){var e=300+t+2*a+.1*t*t+.1*t*a+.1*Math.sqrt(Math.abs(t));return e+=2*(20*Math.sin(6*t*i)+20*Math.sin(2*t*i))/3,e+=2*(20*Math.sin(t*i)+40*Math.sin(t/3*i))/3,e+=2*(150*Math.sin(t/12*i)+300*Math.sin(t/30*i))/3,e}function v(t,a){return t<72.004||t>137.8347||a<.8293||a>55.8271||!1}var b={bd09togcj02:s,gcj02tobd09:d,wgs84togcj02:l,gcj02towgs84:c};a.default=b},"95ea":function(t,a,e){var o=e("24fb");a=o(!1),a.push([t.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/* 文章场景相关 */.bookedInformation .booked-title[data-v-908d07e4]{width:%?750?%;height:%?358?%;background:linear-gradient(180deg,#f44,#ff9494 76%,hsla(0,0%,100%,0));opacity:1;padding:%?40?% %?30?%;box-sizing:border-box}.bookedInformation .booked-title .booked-title-box[data-v-908d07e4]{padding:%?30?%;border-radius:%?10?%;background-color:#fff}.bookedInformation .booked-title .booked-title-box .booked-img[data-v-908d07e4]{width:%?130?%;height:%?130?%;padding-right:%?30?%;flex:0.3}.bookedInformation .booked-title .booked-title-box .booked-img uni-image[data-v-908d07e4]{width:100%;height:100%;border-radius:%?6?%}.bookedInformation .booked-title .booked-title-box .booked-name[data-v-908d07e4]{flex:0.7}.bookedInformation .booked-title .booked-title-box .booked-name .booked-name-title[data-v-908d07e4]{min-height:%?76?%;font-size:%?28?%;font-weight:700;line-height:%?40?%;color:#333;letter-spacing:%?3?%;opacity:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;\r\n /*! autoprefixer: off */-webkit-box-orient:vertical;width:%?470?%}.bookedInformation .booked-title .store-datum[data-v-908d07e4]{padding:%?30?%;border-radius:%?10?%;background-color:#fff;margin-top:%?20?%}.bookedInformation .booked-title .store-datum .store-name[data-v-908d07e4]{height:%?50?%;font-size:%?28?%;font-weight:700;line-height:%?34?%;color:#333;opacity:1}.bookedInformation .booked-title .store-datum .store-time[data-v-908d07e4]{height:%?50?%;font-size:%?24?%;font-weight:400;line-height:%?34?%;color:#999;opacity:1}.bookedInformation .booked-title .store-datum .store-phone .phone[data-v-908d07e4]{flex:0.9}.bookedInformation .booked-title .store-datum .store-phone .play-call[data-v-908d07e4]{flex:0.1}.bookedInformation .booked-title .store-datum .store-phone .play-call .play-call-icon[data-v-908d07e4]{font-size:%?22?%;float:right;background-color:#f44;color:#fff;height:%?40?%;width:%?40?%;text-align:center;line-height:%?40?%;border-radius:50%}.bookedInformation .booked-title .appointment-box[data-v-908d07e4]{padding:%?30?%;border-radius:%?10?%;margin-top:%?20?%;background-color:#fff}.bookedInformation .booked-title .appointment-box .appointment-state[data-v-908d07e4]{padding-bottom:%?20?%;border-bottom:%?1?% solid #eee}.bookedInformation .booked-title .appointment-box .appointment-state .state[data-v-908d07e4]{flex:0.78}.bookedInformation .booked-title .appointment-box .appointment-state .state .state-title[data-v-908d07e4]{padding-left:%?20?%;font-size:%?32?%;font-weight:700;line-height:%?45?%;color:#333;letter-spacing:%?2?%;opacity:1}.bookedInformation .booked-title .appointment-box .appointment-state .state .state-text[data-v-908d07e4]{height:%?50?%;font-size:%?24?%;font-weight:400;line-height:%?60?%;color:#333;opacity:1}.bookedInformation .booked-title .appointment-box .appointment-state .appointment-btn[data-v-908d07e4]{padding-top:%?25?%;flex:0.22}.bookedInformation .booked-title .appointment-box .appointment-state .appointment-btn .btn[data-v-908d07e4]{float:right;text-align:center;line-height:%?50?%;font-size:%?24?%;width:%?140?%;height:%?50?%;border-radius:%?60?%;border:%?2?% solid #333;color:#333}.bookedInformation .booked-title .appointment-box .appointment-data[data-v-908d07e4]{padding-top:%?20?%}.bookedInformation .booked-title .appointment-box .appointment-data .appointment-time .time-title[data-v-908d07e4]{font-size:%?24?%;font-weight:400;line-height:%?48?%;color:#999;opacity:1;flex:0.3}.bookedInformation .booked-title .appointment-box .appointment-data .appointment-time .time-time[data-v-908d07e4]{font-size:%?24?%;font-weight:400;line-height:%?48?%;color:#333;opacity:1;flex:0.7}.bookedInformation .booked-title .appointment-box .appointment-remark[data-v-908d07e4]{background-color:#f8f8f8;border-radius:%?10?%;padding:%?20?% %?30?%;margin-top:%?20?%}.bookedInformation .booked-title .appointment-box .appointment-remark .remark-box[data-v-908d07e4]{font-size:%?24?%;font-weight:400;line-height:%?42?%;color:#333;opacity:1}',""]),t.exports=a},9663:function(t,a,e){"use strict";var o=e("4eab"),i=e.n(o);i.a},a780:function(t,a,e){"use strict";var o=e("266a"),i=e.n(o);i.a},afe9:function(t,a,e){"use strict";e.r(a);var o=e("d52f"),i=e("c9d1");for(var n in i)"default"!==n&&function(t){e.d(a,t,(function(){return i[t]}))}(n);e("9663"),e("0340");var r,s=e("f0c5"),d=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"908d07e4",null,!1,o["a"],r);a["default"]=d.exports},c9d1:function(t,a,e){"use strict";e.r(a);var o=e("727f"),i=e.n(o);for(var n in o)"default"!==n&&function(t){e.d(a,t,(function(){return o[t]}))}(n);a["default"]=i.a},ccfa:function(t,a,e){var o=e("95ea");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("4f06").default;i("3ef6b198",o,!0,{sourceMap:!1,shadowMode:!1})},d52f:function(t,a,e){"use strict";var o;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return o}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"bookedInformation"},[e("v-uni-view",{staticClass:"booked-title"},[e("v-uni-view",{staticClass:"booked-title-box dis-flex"},[e("v-uni-view",{staticClass:"booked-img"},[e("v-uni-image",{attrs:{src:t.bookedData.goods.logo,mode:""}})],1),e("v-uni-view",{staticClass:"booked-name"},[e("v-uni-view",{staticClass:"booked-name-title"},[t._v(t._s(t.bookedData.goods.name))]),t.bookedData.goods.optionName?e("v-uni-view",{staticClass:"col-9 f-26 p-top-20"},[t._v(t._s(t.bookedData.goods.optionName))]):t._e()],1)],1),e("v-uni-view",{staticClass:"store-datum"},[e("v-uni-view",{staticClass:"store-name"},[t._v(t._s(t.bookedData.merchant.storename))]),e("v-uni-view",{staticClass:"store-time"},[t._v("营业时间:"+t._s(t.bookedData.merchant.storehours))]),e("v-uni-view",{staticClass:"store-phone store-time dis-flex"},[e("v-uni-view",{staticClass:"phone"},[t._v("商家电话:"+t._s(t.bookedData.merchant.mobile))]),e("v-uni-view",{staticClass:"play-call",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.playcall.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"iconfont icon-dianhua play-call-icon"})],1)],1),e("v-uni-view",{staticClass:"store-phone store-time dis-flex"},[e("v-uni-view",{staticClass:"phone"},[t._v(t._s(t.bookedData.merchant.address))]),e("v-uni-view",{staticClass:"play-call",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.openNavigation.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"iconfont icon-location_light play-call-icon"})],1)],1)],1),e("v-uni-view",{staticStyle:{"padding-bottom":"200upx"}},t._l(t.bookedData.applist,(function(a,o){return e("v-uni-view",{staticClass:"appointment-box"},[e("v-uni-view",{staticClass:"appointment-state dis-flex"},[e("v-uni-view",{staticClass:"state"},[e("v-uni-view",[0==a.status?e("v-uni-view",{staticClass:"dis-il-block iconfont icon-timefill c-ff4444"}):1==a.status?e("v-uni-view",{staticClass:"dis-il-block iconfont icon-roundcheckfill c-ff4444"}):e("v-uni-view",{staticClass:"dis-il-block iconfont icon-roundclosefill c-ff4444"}),e("v-uni-view",{staticClass:"dis-il-block state-title"},[t._v(t._s(a.statusTips))])],1),e("v-uni-view",{staticClass:"state-text"},[t._v(t._s(a.statusText))])],1),e("v-uni-view",{staticClass:"appointment-btn"},[0==a.status?e("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancel(a)}}},[t._v("取消预约")]):t._e()],1)],1),e("v-uni-view",{staticClass:"appointment-data"},[e("v-uni-view",{staticClass:"dis-flex appointment-time"},[e("v-uni-view",{staticClass:"time-title"},[t._v("预约时间")]),e("v-uni-view",{staticClass:"time-time t-r"},[t._v(t._s(a.date)+" "+t._s(a.starttime)+"-"+t._s(a.endtime))])],1),e("v-uni-view",{staticClass:"dis-flex appointment-time"},[e("v-uni-view",{staticClass:"time-title"},[t._v("预约数量")]),e("v-uni-view",{staticClass:"time-time t-r"},[t._v(t._s(a.num)+"份")])],1)],1),a.remark?e("v-uni-view",{staticClass:"appointment-remark"},[e("v-uni-view",{staticClass:"remark-box"},[e("v-uni-text",[t._v(t._s(a.remark))])],1)],1):t._e()],1)})),1)],1),e("v-uni-view",{staticClass:"booked-content"})],1),e("TabBars",{attrs:{tabBarAct:0}})],1)},n=[]},dde5:function(t,a,e){var o=e("24fb");a=o(!1),a.push([t.i,".diy-tabbar[data-v-e1dd56ac]{border-color:rgba(0,0,0,.33);position:fixed;z-index:9999;height:%?130?%;left:0;background-color:#fff;color:#6e6d6b;bottom:0;width:100%;display:flex}.tabbar-item[data-v-e1dd56ac]{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1;font-size:0;color:#6e6d6b;text-align:center;z-index:5;padding-bottom:%?30?%}.tabbar-severImg[data-v-e1dd56ac]{width:%?84?%;height:%?84?%;position:relative;top:%?-20?%}.tabbar-item .tabbar-item-icon[data-v-e1dd56ac]{font-size:%?44?%}.tabbar-item.item-on[data-v-e1dd56ac]{\n\t/* color: #fd4a5f; */}.tabbar-item .image[data-v-e1dd56ac]{display:inline-block;width:%?100?%;height:%?100?%}.tabbat-item-text[data-v-e1dd56ac]{padding-top:0;padding-bottom:0;font-size:%?20?%;line-height:1.8;text-align:center}.navstyle-image[data-v-e1dd56ac]{width:%?60?%;height:%?60?%;background-repeat:no-repeat;background-size:%?60?% %?60?%;display:block;margin:0 auto}.navstyle-3-item[data-v-e1dd56ac]{padding:%?10?% 0}",""]),t.exports=a}}]);