1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SIM-detail"],{"0053":function(i,t,e){var n=e("c86c");t=n(!1),t.push([i.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-1327dd62]{padding-bottom:%?200?%;background:#f5f5f5}.header-image[data-v-1327dd62]{margin-top:%?-90?%;width:100%;height:%?400?%;object-fit:cover}.title-section[data-v-1327dd62]{padding:%?24?%;background:#fff}.title-section .title[data-v-1327dd62]{font-family:Source Han Sans CN;font-weight:500;font-size:%?36?%;color:#000;line-height:%?55?%}.title-section .price[data-v-1327dd62]{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-1327dd62]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.section-title[data-v-1327dd62]{font-family:Source Han Sans CN;font-weight:700;font-size:%?34?%;color:#000;line-height:%?42?%;margin-bottom:%?42?%}.info-section[data-v-1327dd62]{margin-top:%?30?%;padding:%?36?% %?30?% %?31?% %?28?%;background:#fff}.info-section .info-grid[data-v-1327dd62]{margin-bottom:%?50?%;display:grid;grid-template-columns:repeat(2,1fr);gap:%?30?%}.info-section .info-grid .info-item[data-v-1327dd62]{background:#f8f9fb;border-radius:%?14?%;padding:%?25?% %?6?%;display:flex;justify-content:center;align-items:center}.info-section .info-grid .info-item.active[data-v-1327dd62]{background-color:#fff;border:2px solid #ffca28}.info-section .info-grid .info-item .info-item-item[data-v-1327dd62]{display:flex;flex-direction:column;text-align:center}.info-section .info-grid .info-item .info-item-item .info-label[data-v-1327dd62]{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-1327dd62]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#121212;line-height:%?42?%}.info-section .info-note[data-v-1327dd62]{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-1327dd62]{margin-top:%?30?%;padding:%?28?%;background:#fff}.materials-section .required-tag[data-v-1327dd62]{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-1327dd62]{color:red}.materials-section .passport[data-v-1327dd62]{margin:0 %?2?%;display:flex;background:#f8f9fb;border-radius:%?14?%;padding:%?26?% %?17?%}.materials-section .passport .passport-bg[data-v-1327dd62]{background:#efeff4;margin-right:%?32?%;display:flex;align-items:center;justify-content:center}.materials-section .passport .passport-bg .passport-img[data-v-1327dd62]{width:%?128?%;height:%?96?%}.materials-section .passport .passport-text[data-v-1327dd62]{display:flex;flex-direction:column;margin-top:%?6?%;margin-right:%?5?%}.materials-section .passport .passport-text .material-title[data-v-1327dd62]{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-1327dd62]{margin-bottom:%?24?%}.materials-section .material-item .material-desc[data-v-1327dd62]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:%?42?%}.star[data-v-1327dd62]{color:red}.process-section[data-v-1327dd62]{margin-top:%?30?%;padding:20px;background:#fff}.process-section .process-steps[data-v-1327dd62]{display:grid;grid-template-columns:repeat(3,1fr);gap:%?20?%;padding:%?20?% 0}.process-section .step[data-v-1327dd62]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.process-section .step-circle[data-v-1327dd62]{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-1327dd62]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#6b6b6b;line-height:%?42?%}.process-section .step-connector[data-v-1327dd62]{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-1327dd62]{color:#ffca28;text-align:center;margin-top:%?20?%}.notes-section[data-v-1327dd62]{margin-top:%?30?%;margin-bottom:%?80?%;padding:%?36?% %?29?%;background:#fff}.notes-section .note-item[data-v-1327dd62]{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-1327dd62]{margin-bottom:%?30?%}.notes-section .faq-item .faq-question[data-v-1327dd62]{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-1327dd62]{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-1327dd62]{margin-bottom:%?10?%}.faq-question[data-v-1327dd62]{font-family:Source Han Sans CN;font-weight:700;font-size:%?32?%;color:#39f;margin-bottom:%?15?%}.action-bar[data-v-1327dd62]{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-1327dd62]{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-1327dd62]{display:flex;flex-direction:column}.action-bar .consult-btn .icon[data-v-1327dd62]{width:%?41?%;height:%?38?%;margin-bottom:%?9?%}.action-bar .order-btn[data-v-1327dd62]{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-1327dd62]{margin-top:%?20?%;padding:0 %?20?%}.process-detail .process-item[data-v-1327dd62]{display:flex;margin-bottom:%?30?%}.process-detail .process-item .process-number[data-v-1327dd62]{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-1327dd62]{flex:1}.process-detail .process-item .process-content .process-title[data-v-1327dd62]{font-size:%?28?%;color:#333;font-weight:700;margin-bottom:%?10?%}.process-detail .process-item .process-content .process-desc[data-v-1327dd62]{font-size:%?26?%;color:#666;line-height:1.5}.entry-requirements[data-v-1327dd62]{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-1327dd62]{text-align:center;color:#39f;margin-top:%?20?%;font-size:%?26?%;cursor:pointer}.note-content[data-v-1327dd62] :deep(p){margin-bottom:%?10?%}',""]),i.exports=t},2506:function(i,t,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPayApi=t.projectList=t.packageListApi=t.getSPDetail=t.getPayType=t.getPackageListApi=t.getOrderDetailApi=void 0;var a=n(e("7653"));t.projectList=function(i){return a.default.post("api/user.product.phoneRecharge.sim/list",i)};t.getSPDetail=function(i){return a.default.post("api/user.product.phoneRecharge.sim/detail",i)};t.packageListApi=function(i){return a.default.post("api/user.product.phoneRecharge.sim/packageList",i)};t.getPayType=function(i){return a.default.post("api/user.visa.product/dict",i)};t.submitAndPayApi=function(i){return a.default.post("api/user.order.phoneRecharge.sim/submitAndPay",i)};t.getOrderDetailApi=function(i){return a.default.post("api/user.order.phoneRecharge.sim/detail",i)};t.getPackageListApi=function(i){return a.default.post("api/user.product.phoneRecharge.sim/packageList",i)}},"405a":function(i,t,e){"use strict";e.d(t,"b",(function(){return n})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){}));var n=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":" ",navbarBgColor:i.navbarBgColor,"wrapper-bg-color":"#F3F2F7"}},[e("v-uni-view",{staticClass:"detail-container"},[e("v-uni-image",{staticClass:"header-image",attrs:{src:i.detail.product_img,mode:"widthFix"}}),e("v-uni-view",{staticClass:"title-section"},[e("v-uni-text",{staticClass:"title"},[i._v(i._s(i.detail.product_name||"-"))]),i.detail.sale_price?e("v-uni-view",{staticClass:"price"},[e("v-uni-text",{staticStyle:{"font-size":"30rpx","font-weight":"500"}},[i._v(i._s(i.currency?i.currency:i.detail.sale_price.unit))]),e("v-uni-text",{staticClass:"price-num"},[i._v(i._s(" "+(i.price?i.price:i.detail.sale_price.value)+" "))]),i.price?i._e():e("v-uni-text",{staticStyle:{color:"black","font-size":"26rpx","font-weight":"500"}},[i._v("起")])],1):i._e()],1),i.card_type_list&&i.card_type_list.length>0?e("v-uni-view",{staticClass:"info-section"},[e("v-uni-view",{staticClass:"section-title"},[i._v("卡类型")]),e("v-uni-view",{staticClass:"info-grid"},i._l(i.card_type_list,(function(t,n){return e("v-uni-view",{key:n,staticClass:"info-item",class:{active:i.selectQucikIndex==t.id},on:{click:function(e){arguments[0]=e=i.$handleEvent(e),i.selectQucikIndex=t.id,i.cardName=t.val}}},[e("v-uni-view",{staticClass:"info-item-item"},[e("v-uni-text",{staticClass:"info-value",staticStyle:{"font-size":"30rpx"}},[i._v(i._s(t.val||"-"))])],1)],1)})),1),e("v-uni-view",{staticClass:"com-line"}),e("v-uni-view",{staticClass:"flex alcenter space"},[e("v-uni-view",{staticClass:"ft16",staticStyle:{"font-weight":"bold"}},[i._v("选择国家/地区")]),e("v-uni-view",{staticClass:"country flex alcenter space"},[e("v-uni-picker",{attrs:{range:i.region_list,value:i.countryIndex},on:{change:function(t){arguments[0]=t=i.$handleEvent(t),i.handleCountryChange.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"ft16 ftw500"},[i._v(i._s(i.country||"请选择国家"))])],1)],1)],1)],1):i._e(),i.card_type_list&&i.card_type_list.length>0?e("v-uni-view",{staticClass:"info-section"},[e("v-uni-view",{staticClass:"section-title"},[i._v("流量类型")]),e("v-uni-view",{staticClass:"info-grid"},i._l(i.detailList,(function(t,n){return e("v-uni-view",{key:n,staticClass:"info-item",class:{active:i.selectIndex==n},on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.chooseData(n)}}},[e("v-uni-view",{staticClass:"info-item-item"},[e("v-uni-text",{staticClass:"info-value",staticStyle:{"font-size":"30rpx"}},[i._v(i._s(t.data_limit_type||"-"))])],1)],1)})),1),e("v-uni-view",{staticClass:"com-line"}),e("v-uni-view",{staticClass:"section-title"},[i._v("流量档位")]),i.detailList[i.selectIndex]&&i.detailList[i.selectIndex].flow_list&&i.detailList[i.selectIndex].flow_list.length>0?e("v-uni-view",{staticClass:"info-grid",staticStyle:{"grid-template-columns":"repeat(4, 1fr)",gap:"15rpx"}},i._l(i.detailList[i.selectIndex].flow_list,(function(t,n){return e("v-uni-view",{key:n,staticClass:"info-item",class:{active:i.flowIndex==n},on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.chooseFlow(n)}}},[e("v-uni-view",{staticClass:"info-item-item"},[e("v-uni-text",{staticClass:"info-value",staticStyle:{"font-size":"30rpx"}},[i._v(i._s(t.flow||"-"))])],1)],1)})),1):i._e(),e("v-uni-view",{staticClass:"com-line"}),e("v-uni-view",{staticClass:"section-title"},[i._v("选择天数")]),i.detailList[i.selectIndex]&&i.detailList[i.selectIndex].flow_list&&i.detailList[i.selectIndex].flow_list.length>0&&i.detailList[i.selectIndex].flow_list[i.flowIndex]&&i.detailList[i.selectIndex].flow_list[i.flowIndex].day_list&&i.detailList[i.selectIndex].flow_list[i.flowIndex].day_list.length>0?e("v-uni-view",{staticClass:"info-grid",staticStyle:{"grid-template-columns":"repeat(6, 1fr)",gap:"15rpx"}},i._l(i.detailList[i.selectIndex].flow_list[i.flowIndex].day_list,(function(t,n){return e("v-uni-view",{key:n,staticClass:"info-item",class:{active:i.dayIndex==n},on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.chooseDay(n)}}},[e("v-uni-view",{staticClass:"info-item-item"},[e("v-uni-text",{staticClass:"info-value",staticStyle:{"font-size":"30rpx"}},[i._v(i._s(t.day||"-"))])],1)],1)})),1):i._e(),i.desc?e("v-uni-view",{staticClass:"ft14 ftw500"},[e("v-uni-view",{staticClass:"section-title"},[i._v("说明")]),e("v-uni-text",[i._v(i._s(i.desc))])],1):i._e()],1):i._e(),i.buy_notes?e("v-uni-view",{staticClass:"info-section"},[e("v-uni-view",{staticClass:"section-title"},[i._v("购买须知")]),e("v-uni-view",{staticClass:"com-line"}),e("v-uni-view",{staticClass:"note-content",domProps:{innerHTML:i._s(i.buy_notes)}})],1):i._e(),e("v-uni-view",{staticClass:"action-bar"},[e("v-uni-view",{staticClass:"order-btn",on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.goto.apply(void 0,arguments)}}},[i._v("立即购买")])],1)],1)],1)},a=[]},"6ae3":function(i,t,e){var n=e("0053");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[i.i,n,""]]),n.locals&&(i.exports=n.locals);var a=e("967d").default;a("13c8d16a",n,!0,{sourceMap:!1,shadowMode:!1})},"828c":function(i,t,e){"use strict";var n=e("6ae3"),a=e.n(n);a.a},a2fd:function(i,t,e){"use strict";e.r(t);var n=e("405a"),a=e("d39c");for(var o in a)["default"].indexOf(o)<0&&function(i){e.d(t,i,(function(){return a[i]}))}(o);e("828c");var l=e("828b"),s=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"1327dd62",null,!1,n["a"],void 0);t["default"]=s.exports},bb7e:function(i,t,e){"use strict";e("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("5c47"),e("a1c1"),e("4100"),e("4626"),e("5ac7"),e("d4b5");e("9b8e");var n=e("2506"),a=e("e0a2"),o=(e("f9ce"),{data:function(){return{flowIndex:"",price:"",paymentList:[],bg:a.BASE_URL+"uploads/images/202504111126153f4340075.png",wx:a.BASE_URL+"uploads/images/20250411114054d264c5519.png",hz:a.BASE_URL+"uploads/images/202504111419131f68c4515.png",card:a.BASE_URL+"uploads/images/1/2025/04/20250414140320599887206.png",unfold:!1,unfoldDetail:!1,detail:{},loading:!1,id:"",navbarBgColor:"transparent",card_type_list:[],selectQucikIndex:"",country:"",region_list:[],countryIndex:0,loadings:!1,detailList:[],selectIndex:"",buy_notes:"",package:"",currency:"",cardName:"",dayIndex:"",desc:"",dayName:"",flowName:"",selectName:""}},onPageScroll:function(i){i.scrollTop>40?this.navbarBgColor="#fff":this.navbarBgColor="transparent"},computed:{formattedNotePoints:function(){return this.detail.note_points?this.detail.note_points.replace(/\n/g,"<br>"):""}},onLoad:function(i){var t;this.id=null!==(t=null===i||void 0===i?void 0:i.id)&&void 0!==t?t:"",this.id||uni.redirectTo({url:"/pages/index/index"}),this.getSPDetail(this.id)},methods:{chooseDay:function(i){var t,e,n,a,o,l,s,d,c,r,u,f,v,p,g,h,m,_,y,w,x,b;this.dayIndex=i,this.package=null!==(t=null===(e=this.detailList[this.selectIndex])||void 0===e||null===(n=e.flow_list[this.flowIndex])||void 0===n||null===(a=n.day_list[this.dayIndex])||void 0===a?void 0:a.package_id)&&void 0!==t?t:"",this.dayName=null!==(o=null===(l=this.detailList[this.selectIndex])||void 0===l||null===(s=l.flow_list[this.flowIndex])||void 0===s||null===(d=s.day_list[this.dayIndex])||void 0===d?void 0:d.day)&&void 0!==o?o:"",this.desc=null!==(c=null===(r=this.detailList[this.selectIndex])||void 0===r||null===(u=r.flow_list[this.flowIndex])||void 0===u||null===(f=u.day_list[this.dayIndex])||void 0===f?void 0:f.desc)&&void 0!==c?c:"",this.price=null!==(v=null===(p=this.detailList[this.selectIndex])||void 0===p||null===(g=p.flow_list[this.flowIndex])||void 0===g||null===(h=g.day_list[this.dayIndex])||void 0===h||null===(m=h.sale_price)||void 0===m?void 0:m.val)&&void 0!==v?v:0,this.currency=null!==(_=null===(y=this.detailList[this.selectIndex])||void 0===y||null===(w=y.flow_list[this.flowIndex])||void 0===w||null===(x=w.day_list[this.dayIndex])||void 0===x||null===(b=x.sale_price)||void 0===b?void 0:b.unit)&&void 0!==_?_:""},chooseFlow:function(i){var t,e,n,a,o,l,s,d,c,r,u,f,v,p,g,h,m,_,y,w,x,b,I,C,k;this.flowIndex=i,this.dayIndex=0,this.package=null!==(t=null===(e=this.detailList[this.selectIndex])||void 0===e||null===(n=e.flow_list[this.flowIndex])||void 0===n||null===(a=n.day_list[0])||void 0===a?void 0:a.package_id)&&void 0!==t?t:"",this.flowName=null!==(o=null===(l=this.detailList[this.selectIndex])||void 0===l||null===(s=l.flow_list[this.flowIndex])||void 0===s?void 0:s.flow)&&void 0!==o?o:"",this.dayName=null!==(d=null===(c=this.detailList[this.selectIndex])||void 0===c||null===(r=c.flow_list[this.flowIndex])||void 0===r||null===(u=r.day_list[0])||void 0===u?void 0:u.day)&&void 0!==d?d:"",this.desc=null!==(f=null===(v=this.detailList[this.selectIndex])||void 0===v||null===(p=v.flow_list[this.flowIndex])||void 0===p||null===(g=p.day_list[0])||void 0===g?void 0:g.desc)&&void 0!==f?f:"",this.price=null!==(h=null===(m=this.detailList[this.selectIndex])||void 0===m||null===(_=m.flow_list[this.flowIndex])||void 0===_||null===(y=_.day_list[0])||void 0===y||null===(w=y.sale_price)||void 0===w?void 0:w.val)&&void 0!==h?h:0,this.currency=null!==(x=null===(b=this.detailList[this.selectIndex])||void 0===b||null===(I=b.flow_list[this.flowIndex])||void 0===I||null===(C=I.day_list[0])||void 0===C||null===(k=C.sale_price)||void 0===k?void 0:k.unit)&&void 0!==x?x:""},chooseData:function(i){var t,e,n,a,o,l,s,d,c,r,u,f,v,p,g,h,m,_,y,w,x,b,I,C,k,L,S;this.selectIndex=i,this.flowIndex=0,this.dayIndex=0,this.package=null!==(t=null===(e=this.detailList[i])||void 0===e||null===(n=e.flow_list[0])||void 0===n||null===(a=n.day_list[0])||void 0===a?void 0:a.package_id)&&void 0!==t?t:"",this.selectName=null!==(o=null===(l=this.detailList[i])||void 0===l?void 0:l.data_limit_type)&&void 0!==o?o:"",this.flowName=null!==(s=null===(d=this.detailList[i])||void 0===d||null===(c=d.flow_list[0])||void 0===c?void 0:c.flow)&&void 0!==s?s:"",this.dayName=null!==(r=null===(u=this.detailList[i])||void 0===u||null===(f=u.flow_list[0])||void 0===f||null===(v=f.day_list[0])||void 0===v?void 0:v.day)&&void 0!==r?r:"",this.desc=null!==(p=null===(g=this.detailList[i])||void 0===g||null===(h=g.flow_list[0])||void 0===h||null===(m=h.day_list[0])||void 0===m?void 0:m.desc)&&void 0!==p?p:"",this.price=null!==(_=null===(y=this.detailList[i])||void 0===y||null===(w=y.flow_list[0])||void 0===w||null===(x=w.day_list[0])||void 0===x||null===(b=x.sale_price)||void 0===b?void 0:b.val)&&void 0!==_?_:0,this.currency=null!==(I=null===(C=this.detailList[i])||void 0===C||null===(k=C.flow_list[0])||void 0===k||null===(L=k.day_list[0])||void 0===L||null===(S=L.sale_price)||void 0===S?void 0:S.unit)&&void 0!==I?I:""},changePackageType:function(i){var t,e,n,a;this.selectIndex=i.package_id,this.package=i,this.price=null!==(t=null===i||void 0===i||null===(e=i.sale_price)||void 0===e?void 0:e.val)&&void 0!==t?t:0,this.currency=null!==(n=null===i||void 0===i||null===(a=i.sale_price)||void 0===a?void 0:a.unit)&&void 0!==n?n:""},packageList:function(){var i=this;if(this.loadings)return!1;this.loadings=!0,(0,n.getPackageListApi)({region:this.country,product_id:this.id,version:2}).then((function(t){var e,n,a,o,l,s,d,c,r,u,f,v,p,g,h,m,_,y,w,x,b,I,C,k,L,S,N;(uni.hideLoading(),i.loadings=!1,i.detailList=t||[],i.detailList.length>0)&&(i.selectIndex=0,i.flowIndex=0,i.dayIndex=0,i.selectName=null!==(e=null===(n=i.detailList[0])||void 0===n?void 0:n.data_limit_type)&&void 0!==e?e:"",i.flowName=null!==(a=null===(o=i.detailList[0])||void 0===o||null===(l=o.flow_list[0])||void 0===l?void 0:l.flow)&&void 0!==a?a:"",i.dayName=null!==(s=null===(d=i.detailList[0])||void 0===d||null===(c=d.flow_list[0])||void 0===c||null===(r=c.day_list[0])||void 0===r?void 0:r.day)&&void 0!==s?s:"",i.package=null!==(u=null===(f=i.detailList[0])||void 0===f||null===(v=f.flow_list[0])||void 0===v||null===(p=v.day_list[0])||void 0===p?void 0:p.package_id)&&void 0!==u?u:"",i.price=null!==(g=null===(h=i.detailList[0])||void 0===h||null===(m=h.flow_list[0])||void 0===m||null===(_=m.day_list[0])||void 0===_||null===(y=_.sale_price)||void 0===y?void 0:y.val)&&void 0!==g?g:0,i.currency=null!==(w=null===(x=i.detailList[0])||void 0===x||null===(b=x.flow_list[0])||void 0===b||null===(I=b.day_list[0])||void 0===I||null===(C=I.sale_price)||void 0===C?void 0:C.unit)&&void 0!==w?w:"",i.desc=null!==(k=null===(L=i.detailList[0])||void 0===L||null===(S=L.flow_list[0])||void 0===S||null===(N=S.day_list[0])||void 0===N?void 0:N.desc)&&void 0!==k?k:"")})).catch((function(){i.loadings=!1,uni.hideLoading(),uni.showModal({title:"提示",content:err.msg||"加载失败",callback:function(){navBack()}})}))},handleCountryChange:function(i){this.countryIndex=i.detail.value,this.country=this.region_list[this.countryIndex],this.packageList()},getSPDetail:function(i){var t=this;uni.showLoading({title:"加载中"}),(0,n.getSPDetail)({id:i}).then((function(i){var e,n,a,o;t.detail=i.detail,t.card_type_list=null!==(e=null===i||void 0===i?void 0:i.card_type_list)&&void 0!==e?e:[],t.region_list=null!==(n=null===i||void 0===i?void 0:i.region_list)&&void 0!==n?n:[],t.buy_notes=null!==(a=null===i||void 0===i||null===(o=i.detail)||void 0===o?void 0:o.buy_notes)&&void 0!==a?a:"",0!==t.card_type_list&&(t.selectQucikIndex=t.card_type_list[0].id,t.cardName=t.card_type_list[0].val),0!==t.region_list&&(t.region_list=t.region_list.sort((function(i,t){return i.localeCompare(t,"en",{sensitivity:"base"})})),t.country=t.region_list[0],t.packageList()),console.log("res",i)})).catch((function(){uni.hideLoading(),uni.showModal({title:"提示",content:err.msg||"加载失败",callback:function(){navBack()}})}))},goto:function(){if(this.loadings)return!1;console.log("this.dayName",this.dayName);var i=String(this.dayName||"");i.includes("天")||(i+="天");var t={pid:this.id,package_id:this.package,region:this.country,card_type:this.selectQucikIndex,product_name:this.detail.product_name,cardName:this.cardName,price:this.price,currency:this.currency,product_img:this.detail.product_img,selectName:this.selectName,flowName:this.flowName,day:i};uni.navigateTo({url:"/SIM/pay?data="+encodeURIComponent(JSON.stringify(t))})},previewImage:function(i){uni.previewImage({urls:[i],longPressActions:{success:function(i){},fail:function(i){}}})},morePackages:function(){this.unfold=!this.unfold,this.detailList.length>0&&(this.selectIndex=this.detailList[0].package_id)}}});t.default=o},d39c:function(i,t,e){"use strict";e.r(t);var n=e("bb7e"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(i){e.d(t,i,(function(){return n[i]}))}(o);t["default"]=a.a},f9ce:function(i,t,e){"use strict";e("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkUserIsLogin=void 0,e("bf0f");var n=e("262c");t.checkUserIsLogin=function(){return new Promise((function(i,t){var e=(0,n.getTokenFromCache)();return e?i():t()}))}}}]);
|