(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SP-list"],{"376d":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("e0a2"),n=e("ed64"),o=e("419c"),s={data:function(){return{products:[],loading:!1,count:0,SPListBG:a.staticUrl+"api/images/20250512/images_1747047121.png",SPList:a.staticUrl+"api/images/20250512/images_1747047340.png"}},onLoad:function(){this.getProductList()},methods:{getProductList:function(t){var i=this;if(this.loading)return!1;this.loading=!0,uni.showLoading({title:"加载中"}),(0,n.projectList)({id:t}).then((function(t){var e,a;uni.hideLoading(),i.loading=!1,i.products=null!==(e=null===t||void 0===t?void 0:t.list)&&void 0!==e?e:[],i.count=null!==(a=null===t||void 0===t?void 0:t.count)&&void 0!==a?a:0,0===i.products.length&&uni.showModal({title:"提示",content:"暂无商品",showCancel:!1,success:function(t){(0,o.navBack)()}})})).catch((function(){i.loading=!1,uni.hideLoading(),uni.showModal({title:"提示",content:err.msg||"加载失败",callback:function(){(0,o.navBack)()}})}))},goDetail:function(t){uni.navigateTo({url:"/SP/detail?id=".concat(t)})}}};i.default=s},"49bf":function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,".container[data-v-53b6bfcb]{background:#f8f8f8;min-height:100vh}.header[data-v-53b6bfcb]{position:relative;width:100%}.banner[data-v-53b6bfcb]{width:100%;height:%?360?%;object-fit:cover}.title[data-v-53b6bfcb]{position:absolute;top:%?10?%;left:0;width:100%;text-align:center;font-size:%?36?%;font-weight:700;color:#222;z-index:2}.product-list[data-v-53b6bfcb]{margin-top:%?-86?%;padding:0 %?20?% %?20?%;z-index:10;position:relative}.product-item[data-v-53b6bfcb]{display:flex;align-items:center;background:#fff;border-radius:%?16?%;margin-bottom:%?20?%;padding:%?20?%;box-shadow:0 %?2?% %?8?% rgba(0,0,0,.03)}.flag[data-v-53b6bfcb]{width:%?110?%;height:%?110?%;margin-right:%?20?%;border-radius:%?8?%;border:%?1?% solid #eee}.info[data-v-53b6bfcb]{flex:1}.name[data-v-53b6bfcb]{font-size:%?30?%;font-weight:700;color:#222}.price[data-v-53b6bfcb]{margin-top:%?10?%;font-size:%?26?%;color:#f60}.price-num[data-v-53b6bfcb]{font-size:%?36?%;font-weight:700}.detail-btn[data-v-53b6bfcb]{background:#ffd600;color:#333;font-size:%?28?%;border-radius:%?12?%;padding:0 %?30?%;height:%?60?%;line-height:%?60?%}",""]),t.exports=i},"577b":function(t,i,e){"use strict";e.r(i);var a=e("376d"),n=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},6903:function(t,i,e){"use strict";e.r(i);var a=e("8424"),n=e("577b");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("f6fb");var s=e("828b"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"53b6bfcb",null,!1,a["a"],void 0);i["default"]=r.exports},8424:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"container"},[e("v-uni-view",{staticClass:"header"},[e("v-uni-image",{staticClass:"banner",attrs:{src:t.SPListBG,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"product-list"},t._l(t.products,(function(i){return e("v-uni-view",{key:i.id,staticClass:"product-item"},[e("v-uni-image",{staticClass:"flag",attrs:{src:t.SPList}}),e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"name tn-text-ellipsis-2"},[t._v(t._s(i.product_name)),i.visaType&&i.visaType.sub_type_name?e("v-uni-text",[t._v("("+t._s(i.visaType.sub_type_name)+")")]):t._e()],1),e("v-uni-view",{staticClass:"price"},[t._v("RM"),e("v-uni-text",{staticClass:"price-num"},[t._v(t._s(i.sale_price))])],1)],1),e("v-uni-button",{staticClass:"detail-btn ml10",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail(i.id)}}},[t._v("详情")])],1)})),1)],1)},n=[]},e056:function(t,i,e){var a=e("49bf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("967d").default;n("7c71e382",a,!0,{sourceMap:!1,shadowMode:!1})},ed64:function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.uploadMaterial=i.submitAndPay=i.projectList=i.payQuery=i.getSPDetail=i.getPayType=void 0;var n=a(e("7653"));i.getSPDetail=function(t){return n.default.post("api/user.visa.product/detail",t)};i.getPayType=function(t){return n.default.post("api/user.visa.product/dict",t)};i.submitAndPay=function(t){return n.default.post("api/user.visa.order/submitAndPay",t)};i.payQuery=function(t){return n.default.post("api/user.visa.order/payQuery",t)};i.uploadMaterial=function(t){return n.default.post("api/user.visa.order/uploadMaterial",t)};i.projectList=function(t){return n.default.post("api/user.visa.product/list",t)}},f6fb:function(t,i,e){"use strict";var a=e("e056"),n=e.n(a);n.a}}]);