cat-detail.c4cc8859.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cat-detail"],{"1a6a":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5c47"),i("a1c1"),i("d4b5");i("9b8e");var a=i("a9e5"),n=i("e0a2"),o=i("f9ce"),s={data:function(){return{bg:n.BASE_URL+"uploads/images/202504111126153f4340075.png",wx:n.BASE_URL+"uploads/images/20250411114054d264c5519.png",hz:n.BASE_URL+"uploads/images/202504111419131f68c4515.png",card:n.BASE_URL+"uploads/images/1/2025/04/20250414140320599887206.png",unfold:!1,unfoldDetail:!1,detail:{},loading:!1,id:"",navbarBgColor:"transparent"}},computed:{formattedNotePoints:function(){return this.detail.note_points?this.detail.note_points.replace(/\n/g,"<br>"):""}},onPageScroll:function(t){t.scrollTop>40?this.navbarBgColor="#fff":this.navbarBgColor="transparent"},onLoad:function(t){var e;this.id=null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:"",this.id||uni.redirectTo({url:"/pages/index/index"}),this.getSPDetail(this.id)},methods:{getSPDetail:function(t){var e=this;uni.showLoading({title:"加载中"}),(0,a.getSPDetail)({id:t}).then((function(t){var i;uni.hideLoading(),e.loading=!0,e.detail=t,uni.setNavigationBarTitle({title:null!==(i=null===t||void 0===t?void 0:t.product_name)&&void 0!==i?i:"商品详情"}),console.log("res",t)})).catch((function(){uni.hideLoading(),uni.showModal({title:"提示",content:err.msg||"加载失败",callback:function(){navBack()}})}))},goto:function(){var t=this;this.loading?(0,o.checkUserIsLogin)().then((function(){var e={id:t.id,product_name:t.detail.product_name,sale_price:t.detail.sale_price,product_img:t.detail.product_img,visit_fee:t.detail.visit_fee};uni.navigateTo({url:"/cat/pay?data="+encodeURIComponent(JSON.stringify(e))})})).catch((function(){uni.showModal({title:"提示",content:"请先登录",showCancel:!1,success:function(){setTimeout((function(){uni.navigateTo({url:"/user-info-page/login/login?from=expireLogin"})}),500)}})})):uni.showModal({title:"提示",content:"商品加载失败,请重新进入",callback:function(){navBack()}})},previewImage:function(t){uni.previewImage({urls:[t],longPressActions:{success:function(t){},fail:function(t){}}})},toggleCollapse:function(){this.unfold=!this.unfold}}};e.default=s},"25da":function(t,e,i){var a=i("78c9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("419d94b5",a,!0,{sourceMap:!1,shadowMode:!1})},"4f47":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":" ",navbarBgColor:t.navbarBgColor,"wrapper-bg-color":"#F3F2F7"}},[i("v-uni-view",{staticClass:"detail-container"},[i("v-uni-image",{staticClass:"header-image",attrs:{src:t.detail.product_img,mode:"widthFix"}}),i("v-uni-view",{staticClass:"title-section"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.detail.product_name||"-"))]),i("v-uni-view",{staticClass:"price flex space alend"},[t.detail.sale_price?i("v-uni-view",{},[i("span",{staticClass:"price-icon"},[t._v(t._s(t.detail.sale_price.unit))]),t._v(t._s(t.detail.sale_price.value||"0"))]):t._e(),t.detail.visit_fee?i("v-uni-view",{staticClass:"ft14 ftw500",staticStyle:{color:"#262626"}},[t._v("上门费"+t._s(t.detail.visit_fee.unit)+t._s(t.detail.visit_fee.value||"0"))]):t._e()],1)],1),t.detail.buy_notes?i("v-uni-view",{staticClass:"info-section"},[i("v-uni-view",{staticClass:"section-title"},[t._v("购买须知")]),i("v-uni-view",{},[i("v-uni-text",[t._v(t._s(t.detail.buy_notes))])],1)],1):t._e(),t.detail.service_process?i("v-uni-view",{staticClass:"materials-section"},[i("v-uni-view",{staticClass:"section-title",staticStyle:{"margin-bottom":"42rpx"}},[t._v("商品详情")]),i("v-uni-view",{staticClass:"service-table"},[i("v-uni-view",{staticClass:"table-main-header"},[i("v-uni-text",[t._v("猫咪焕新精致洗护")])],1),i("v-uni-view",{staticClass:"table-row-header"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("服务流程")]),i("v-uni-view",{staticClass:"table-cell col-2"},[t._v("包含项目")])],1),i("v-uni-view",{staticClass:"table-row"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("体格检查")]),i("v-uni-view",{staticClass:"table-cell col-2"},[i("v-uni-text",[t._v(t._s(t.detail.service_process.body_check))])],1)],1),i("v-uni-view",{staticClass:"table-row"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("定制洗护方案")]),i("v-uni-view",{staticClass:"table-cell col-2"},[i("v-uni-text",[t._v(t._s(t.detail.service_process.customized_clean))])],1)],1),i("v-uni-view",{staticClass:"table-row"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("贴心护理")]),i("v-uni-view",{staticClass:"table-cell col-2"},[i("v-uni-text",[t._v(t._s(t.detail.service_process.thoughtful_care))])],1)],1),i("v-uni-view",{staticClass:"table-row"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("精洗 (开结)")]),i("v-uni-view",{staticClass:"table-cell col-2"},[i("v-uni-text",[t._v(t._s(t.detail.service_process.fine_wash))])],1)],1),i("v-uni-view",{staticClass:"table-row"},[i("v-uni-view",{staticClass:"table-cell col-1"},[t._v("洗护")]),i("v-uni-view",{staticClass:"table-cell col-2"},[i("v-uni-text",[t._v(t._s(t.detail.service_process.wash_protect))])],1)],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"action-bar"},[i("v-uni-view",{staticClass:"order-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goto.apply(void 0,arguments)}}},[t._v("立即预定")])],1)],1)],1)},n=[]},"6afc":function(t,e,i){"use strict";var a=i("25da"),n=i.n(a);n.a},"78c9":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.detail-container[data-v-8c8fb676]{padding-bottom:%?120?%;background:#f5f5f5}.header-image[data-v-8c8fb676]{margin-top:%?-90?%;width:100%;height:%?400?%;object-fit:cover}.title-section[data-v-8c8fb676]{padding:%?24?%;background:#fff}.title-section .title[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?36?%;color:#000;line-height:%?55?%}.title-section .price[data-v-8c8fb676]{margin-top:%?16?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?46?%;color:#f60;line-height:%?42?%}.title-section .price .price-icon[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.section-title[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:700;font-size:%?34?%;color:#000;line-height:%?42?%;margin-bottom:%?42?%}.info-section[data-v-8c8fb676]{margin-top:%?30?%;padding:%?36?% %?30?% %?31?% %?28?%;background:#fff}.info-section .info-grid[data-v-8c8fb676]{margin-bottom:%?30?%;display:grid;grid-template-columns:repeat(3,1fr);gap:%?24?% %?16?%}.info-section .info-grid .info-item[data-v-8c8fb676]{background:#f8f9fb;border-radius:%?14?%;padding:%?2?%;height:%?160?%;display:flex;justify-content:center;align-items:center}.info-section .info-grid .info-item .info-item-item[data-v-8c8fb676]{display:flex;flex-direction:column;text-align:center}.info-section .info-grid .info-item .info-item-item .info-label[data-v-8c8fb676]{margin-bottom:%?2?%;font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#6b6b6b;line-height:%?42?%}.info-section .info-grid .info-item .info-item-item .info-value[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#121212;line-height:%?42?%}.info-section .info-note[data-v-8c8fb676]{margin-left:%?8?%;font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#6b6b6b;line-height:%?42?%;text-align:left}.materials-section[data-v-8c8fb676]{margin-bottom:%?80?%;margin-top:%?30?%;padding:%?28?%;background:#fff}.materials-section .required-tag[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#6b6b6b;line-height:%?42?%;margin-bottom:%?36?%}.materials-section .star[data-v-8c8fb676]{color:red}.materials-section .passport[data-v-8c8fb676]{margin:0 %?2?%;display:flex;background:#f8f9fb;border-radius:%?14?%;padding:%?26?% %?17?%}.materials-section .passport .passport-bg[data-v-8c8fb676]{background:#efeff4;margin-right:%?32?%;display:flex;align-items:center;justify-content:center}.materials-section .passport .passport-bg .passport-img[data-v-8c8fb676]{width:%?128?%;height:%?96?%}.materials-section .passport .passport-text[data-v-8c8fb676]{display:flex;flex-direction:column;margin-top:%?6?%;margin-right:%?5?%}.materials-section .passport .passport-text .material-title[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:700;font-size:%?30?%;color:#121212;line-height:%?42?%;margin-bottom:%?2?%}.materials-section .material-item[data-v-8c8fb676]{margin-bottom:%?24?%}.materials-section .material-item .material-desc[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:%?42?%}.star[data-v-8c8fb676]{color:red}.process-section[data-v-8c8fb676]{margin-top:%?30?%;padding:20px;background:#fff}.process-section .process-steps[data-v-8c8fb676]{display:grid;grid-template-columns:repeat(3,1fr);gap:%?20?%;padding:%?20?% 0}.process-section .step[data-v-8c8fb676]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.process-section .step-circle[data-v-8c8fb676]{width:%?62?%;height:%?62?%;background:#efeff4;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Source Han Sans CN;font-weight:800;font-size:%?30?%;color:#0e0e0e;line-height:%?42?%;margin-bottom:10px;z-index:1}.process-section .step-text[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:%?42?%}.process-section .step-connector[data-v-8c8fb676]{position:absolute;top:%?31?%;right:-50%;width:100%;height:%?2?%;background:repeating-linear-gradient(90deg,#efeff4 0,#efeff4 %?8?%,transparent %?8?%,transparent %?16?%)}.open[data-v-8c8fb676]{color:#ffca28;text-align:center;margin-top:%?20?%}.notes-section[data-v-8c8fb676]{margin-top:%?30?%;margin-bottom:%?80?%;padding:%?36?% %?29?%;background:#fff}.notes-section .note-item[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:%?42?%;margin-bottom:%?8?%;padding-left:%?20?%;position:relative}.notes-section .faq-item[data-v-8c8fb676]{margin-bottom:%?30?%}.notes-section .faq-item .faq-question[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:700;font-size:%?32?%;color:#39f;margin-bottom:%?15?%}.notes-section .faq-item .faq-answer[data-v-8c8fb676]{font-family:Source Han Sans CN;font-size:%?28?%;color:#333;line-height:1.6}.notes-section .faq-item .faq-answer uni-view[data-v-8c8fb676]{margin-bottom:%?10?%}.faq-question[data-v-8c8fb676]{font-family:Source Han Sans CN;font-weight:700;font-size:%?32?%;color:#39f;margin-bottom:%?15?%}.action-bar[data-v-8c8fb676]{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;padding:%?30?% %?38?%;background-color:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.05);z-index:100}.action-bar .consult-btn[data-v-8c8fb676]{display:flex;align-items:center;justify-content:center;font-family:Source Han Sans CN;font-weight:500;font-size:%?22?%;color:#ffca28;background:#fff4d1;border-radius:50%;opacity:.5;height:%?100?%;width:%?100?%}.action-bar .consult-btn .consult-btn-i[data-v-8c8fb676]{display:flex;flex-direction:column}.action-bar .consult-btn .icon[data-v-8c8fb676]{width:%?41?%;height:%?38?%;margin-bottom:%?9?%}.action-bar .order-btn[data-v-8c8fb676]{flex:1;background-color:#ffd84d;font-family:Source Han Sans CN;font-weight:700;font-size:%?36?%;color:#333;line-height:%?39?%;border:none;border-radius:%?20?%;padding:8px;font-size:16px;height:%?90?%;display:flex;align-items:center;justify-content:center}.process-detail[data-v-8c8fb676]{margin-top:%?20?%;padding:0 %?20?%}.process-detail .process-item[data-v-8c8fb676]{display:flex;margin-bottom:%?30?%}.process-detail .process-item .process-number[data-v-8c8fb676]{width:%?40?%;height:%?40?%;line-height:%?40?%;text-align:center;background:#efeff4;border-radius:50%;font-size:%?24?%;color:#333;margin-right:%?20?%;flex-shrink:0}.process-detail .process-item .process-content[data-v-8c8fb676]{flex:1}.process-detail .process-item .process-content .process-title[data-v-8c8fb676]{font-size:%?28?%;color:#333;font-weight:700;margin-bottom:%?10?%}.process-detail .process-item .process-content .process-desc[data-v-8c8fb676]{font-size:%?26?%;color:#666;line-height:1.5}.entry-requirements[data-v-8c8fb676]{margin-top:%?20?%;padding:%?20?%;background:#fff;border-radius:%?14?%;font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:1.6}.entry-requirements .collapse-btn[data-v-8c8fb676]{text-align:center;color:#39f;margin-top:%?20?%;font-size:%?26?%;cursor:pointer}.note-content[data-v-8c8fb676] :deep(p){margin-bottom:%?10?%}.service-table[data-v-8c8fb676]{border:%?1?% solid #eaeaea;border-radius:%?8?%;overflow:hidden;margin-top:%?20?%;font-size:%?26?%}.service-table .table-main-header[data-v-8c8fb676]{background-color:#feef88;padding:%?20?%;text-align:center;font-weight:700;font-size:%?30?%;color:#333;border-bottom:%?1?% solid #eaeaea}.service-table .table-row-header[data-v-8c8fb676]{display:flex;background-color:#fff;font-weight:700;color:#333}.service-table .table-row[data-v-8c8fb676]{display:flex;border-top:%?1?% solid #eaeaea}.service-table .table-cell[data-v-8c8fb676]{padding:%?20?%}.service-table .col-1[data-v-8c8fb676]{flex:1;text-align:center;border-right:%?1?% solid #eaeaea;display:flex;align-items:center;justify-content:center}.service-table .col-2[data-v-8c8fb676]{flex:2}.service-table .col-2 uni-view[data-v-8c8fb676]{padding:%?4?% 0}',""]),t.exports=e},"7dfa":function(t,e,i){"use strict";i.r(e);var a=i("4f47"),n=i("eb07");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("6afc");var s=i("828b"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"8c8fb676",null,!1,a["a"],void 0);e["default"]=c.exports},a9e5:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.submitAndPay=e.projectList=e.getSPDetail=e.getPayType=e.getCatOrderListApi=e.getCatOrderDetailApi=e.cancelCatOrderApi=void 0;var n=a(i("7653"));e.getSPDetail=function(t){return n.default.post("api/user.product.washPet/detail",t)};e.getPayType=function(t){return n.default.post("api/user.dict.pay/list",t)};e.submitAndPay=function(t){return n.default.post("api/user.order.washPet/submitAndPay",t)};e.projectList=function(t){return n.default.post("api/user.product.washPet/list",t)};e.getCatOrderListApi=function(t){return n.default.post("api/user.order.washPet/list",t)};e.getCatOrderDetailApi=function(t){return n.default.post("api/user.order.washPet/detail",t)};e.cancelCatOrderApi=function(t){return n.default.post("api/user.order.washPet/cancel",t)}},eb07:function(t,e,i){"use strict";i.r(e);var a=i("1a6a"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},f9ce:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.checkUserIsLogin=void 0,i("bf0f");var a=i("262c");e.checkUserIsLogin=function(){return new Promise((function(t,e){var i=(0,a.getTokenFromCache)();return i?t():e()}))}}}]);