PageSourceSearch

https://www.magicbuy.com.tw/static/js/8963.f93bfdb22c.js

js magicbuy.com.tw collected 2026-09-24 11:49:15 UTC 36,933 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkjyb_member_tsmd=self.rspackChunkjyb_member_tsmd||[]).push([[8963],{64025:function(t,e,i){i.d(e,{A:function(){return C}});var r=i(52821),s=i(18844),a=i(76865),n=i(30792),o=i(85184),c=i(99297),p=i.n(c),l=i(47131),u=i(84019),d=i(50017),h=i(59823),g=i(97958),f=i(22017),m=i(87177),v=i(35328),y=i(66249),b=i(23562),x=i(60776),_=/^09\d{8}$/,w=f.j9.find(function(t){return"MB-ECONOMY"===t.srLabel}),S=f.j9.find(function(t){return"MB-EXPRESS"===t.srLabel});function k(t){if(!t||!window.OpenCC)return t;try{return window.OpenCC.Converter({from:"cn",to:"tw"})(t)}catch(e){return t}}var E={components:{GetCaptcha:l.A},data:function(){return{url:"",demos:x.av,error:"",loading:!1,goods:null,isDemoGoods:!1,feeWaived:!1,qtys:{},firstPropValue:"",syncedAt:0,step:"sim",exchRate:0,started:!1,skuSelected:!1,preview:null,previewLoading:!1,previewError:"",previewTimer:null,previewSeq:0,signup:{cellphone:"",captcha:""},signupError:"",captchaTimer:0,captchaTimerHandle:null,sendLoading:!1,verifyLoading:!1,createError:""}},computed:{logined:function(){return!!(this.$store.state.userData&&this.$store.state.userData.uid)||(localStorage.getItem("accessToken")||"").length>64},title:function(){return k(this.goods.subject||this.goods.itemName||"")},thumb:function(){var t=this,e=this.firstProp.attrs.find(function(e){return e.value===t.firstPropValue});return e&&e.skuImageUrl||this.goods.productImage&&this.goods.productImage.images&&this.goods.productImage.images[0]||""},unitWeight:function(){var t=Number(this.goods&&this.goods.productShippingInfo&&this.goods.productShippingInfo.unitWeight);return t>0?t:0},syncedText:function(){var t=new Date(this.syncedAt);return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")},firstProp:function(){var t={attributeName:"",attrs:[]};return(this.goods.productSkuInfos||[]).forEach(function(e){2===(e.skuAttributes||[]).length&&(t.attributeName=k(e.skuAttributes[0].attributeName),t.attrs.find(function(t){return t.value===e.skuAttributes[0].value})||t.attrs.push({value:e.skuAttributes[0].value,skuImageUrl:e.skuAttributes[0].skuImageUrl}))}),t},skuRows:function(){var t=this;return(this.goods.productSkuInfos||[]).filter(function(e){return 2!==(e.skuAttributes||[]).length||!t.firstPropValue||e.skuAttributes[0].value===t.firstPropValue}).map(function(e){var i=e.skuAttributes||[],r=2===i.length?i[1]:i[0],s=k(r&&r.value||"")||"單一規格";return{key:String(e.specId||""),specId:e.specId||"",name:s,image:(i.find(function(t){return t.skuImageUrl})||{}).skuImageUrl||"",price:t.skuPrice(e),stock:Number(e.amountOnSale)||0}})},batchNumber:function(){return Number(this.goods.batchNumber)||0},priceLo:function(){return this.fmtCny(this.priceRange()[0])},priceHi:function(){return this.fmtCny(this.priceRange()[1])},displayRate:function(){return this.preview&&this.preview.dgExchRate?(0,g.Be)(this.preview.dgExchRate,this.feeWaived):this.exchRate||0},totals:function(){var t=this,e=0,i=0;(this.goods.productSkuInfos||[]).forEach(function(r){var s=Number(t.qtys[String(r.specId||"")])||0;s&&(e+=s,i=p().add(i,p().mul(t.skuPrice(r),s)))});var r=this.unitWeight?p().mul(this.unitWeight,e):0,n=Math.ceil(r),o=n>0&&n<f.$W?f.zk:0,c={weightKg:r,shipLow:r?n*w.fwFee+o:0,shipHigh:r?n*S.fwFee+o:0},l=this.preview;if(l){var u=Number(l.dgAmtNTD)||0,d=this.feeWaived?u:(0,h.qJ)(u),g=p().div(Number(l.dgOrderAmountNoPostFee)||0,100),m=p().div(Number(l.dgOrderPostFee)||0,100);return(0,a._)((0,s._)({},c),{confirmed:!0,items:e,cny:g,postFeeCny:m,cnyTotal:p().add(g,m),productTwd:d,feeTwd:0,handlingTwd:Number(l.dgServiceFeeNTD)||0,firstPayTwd:d})}var v=this.exchRate?Math.round(p().mul(i,this.exchRate)):null;return(0,a._)((0,s._)({},c),{confirmed:!1,items:e,cny:i,postFeeCny:0,cnyTotal:i,productTwd:v,feeTwd:0,handlingTwd:0,firstPayTwd:v})},blockReason:function(){var t=this.goods;if(!t)return"";var e=t.tpCatalog;return e&&("1"===String(e.catEmbargoSe)&&"1"===String(e.catEmbargoAir)||["catCcMaxBox","catCcMaxQty","catCcMaxWt"].some(function(t){return"0"===String(e[t])}))?"此商品禁止進口":(0,d.oU)(t.subject)?"不支持代購虛擬物品":t.mbPurchase&&!t.mbPurchase.allowedPurchase?t.mbPurchase.msg||"此商品目前無法代購":this.totals.items>0&&this.totals.items<t.minOrderQuantity?"此商品 ".concat(t.minOrderQuantity," 件起批,請再增加數量"):""},canOrder:function(){return this.totals.items>0&&!this.blockReason&&"sim"===this.step},maskedPhone:function(){var t=this.signup.cellphone;return t.slice(0,4)+"***"+t.slice(7)}},watch:{"signup.captcha":function(t){t&&6===t.length&&"code"===this.step&&!this.verifyLoading&&this.confirmOrder()}},mounted:function(){this.loadRate()},beforeDestroy:function(){this.captchaTimerHandle&&clearInterval(this.captchaTimerHandle),this.previewTimer&&clearTimeout(this.previewTimer)}
1,methods:{fmtNt:function(t){return"NT$ "+Math.round(Number(t)||0).toLocaleString("zh-TW")},fmtCny:function(t){return(Math.round(100*(Number(t)||0))/100).toFixed(2)},focus:function(){this.$refs.input&&this.$refs.input.focus({preventScroll:!0})},onFocus:function(){this.started||(this.started=!0,(0,v.u)("mb_calc_start",{calc_mode:"procurement",section_id:"hero_calculator",source_platform:"1688"}))},useDemo:function(t){this.url=t,this.error="",this.focus()},estimateUrl:function(t){this.url=t,this.submit()},skuPrice:function(t){var e=this,i=this.goods.productSaleInfo||{};if(1===i.quoteType)return Number(t.price||t.consignPrice)||0;var r=(0,n._)(i.priceRangeList||[]).sort(function(t,e){return e.startQuantity-t.startQuantity}),s=0;Object.keys(this.qtys).forEach(function(t){s+=Number(e.qtys[t])||0});var a=r.find(function(t){return t.startQuantity<=s}),o=(i.priceRangeList||[])[0];return Number(a?a.price:o&&o.price)||0},qtyByFirstProp:function(t){var e=this,i=0;return(this.goods.productSkuInfos||[]).forEach(function(r){var s=r.skuAttributes||[];2===s.length&&s[0].value===t&&(i+=Number(e.qtys[String(r.specId||"")])||0)}),i},normalizeQty:function(t,e){var i=Math.max(0,Math.floor(Number(e)||0));return i=Math.min(i,t.stock),this.batchNumber>0&&i%this.batchNumber!=0&&(i=Math.min(Math.ceil(i/this.batchNumber)*this.batchNumber,t.stock)),i},setQty:function(t,e){this.$set(this.qtys,t.key,this.normalizeQty(t,e)),this.onSkuSelect()},stepQty:function(t,e){var i=this.batchNumber||1,r=Number(this.qtys[t.key])||0;this.$set(this.qtys,t.key,this.normalizeQty(t,r+e*i)),this.onSkuSelect()},onSkuSelect:function(){this.createError="",this.schedulePreview(),this.skuSelected||(this.skuSelected=!0,(0,v.u)("mb_calc_sku_select",{calc_mode:"procurement"}))},loadRate:function(){return(0,r._)(function(){var t,e,i;return(0,o._)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.$store.dispatch("magicbuy/dgorder/prepare",{config:{noShowError:!0,skipUnauthorizedHandling:!0}})];case 1:if(!(e=!(t=r.sent()).data.error&&t.data.model))return[2];return this.logined&&this.$store.commit("magicbuy/dgorder/setPrepareModel",e),this.feeWaived=(0,g.BG)(e.exchrate),i=Number(e.exchrate&&e.exchrate.erExchRate)||0,this.exchRate=(0,g.Be)(i,this.feeWaived),[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})}).call(this)},cargoParamList:function(){var t=this;return(this.goods.productSkuInfos||[]).map(function(e){var i=Number(t.qtys[String(e.specId||"")])||0,r={offerId:Number(t.goods.offerId||t.goods.itemid),quantity:i};return e.specId&&(r.specId=e.specId),r}).filter(function(t){return t.quantity>0})},schedulePreview:function(){var t=this;if(this.previewTimer&&clearTimeout(this.previewTimer),this.preview=null,this.previewError="",this.isDemoGoods){this.previewLoading=!1;return}var e=this.totals.items;if(!e||e<this.goods.minOrderQuantity||this.blockReason){this.previewLoading=!1;return}this.previewLoading=!0,this.previewTimer=setTimeout(function(){return t.runPreview()},600)},runPreview:function(){return(0,r._)(function(){var t,e,i,r,s,a,n,c;return(0,o._)(this,function(o){switch(o.label){case 0:if(t=this,e=++this.previewSeq,!(i=this.cargoParamList()).length)return this.previewLoading=!1,[2];r=function(e){return t.$store.dispatch("magicbuy/dgorder/batchCreatePreview",{receiveAddrid:e,cartOrder:!1,batchCreateOrderList:[{flow:"general",cargoParamList:i}],config:{noShowError:!0,skipUnauthorizedHandling:!0}})},o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,r(1596)];case 2:if(s=o.sent(),e!==this.previewSeq)return[2];if(n=((a=s.data||{}).list||[])[0],"SUCCESS"!==a.tsmdResult||!n||!1===n.success)return this.previewError=n&&n.message||a.message||"暫時無法同步 1688 即時價格,以下為預估金額",[2];return n.exchrate&&(this.feeWaived=(0,g.BG)(n.exchrate)),this.preview=n,[3,5];case 3:if(c=o.sent(),e!==this.previewSeq)return[2];return this.previewError=(0,u.S)(c,"暫時無法同步 1688 即時價格,以下為預估金額"),[3,5];case 4:return e===this.previewSeq&&(this.previewLoading=!1),[7];case 5:return[2]}})}).call(this)},submit:function(){return(0,r._)(function(){var t,e,i,r,n,c,p,l;return(0,o._)(this,function(o){switch(o.label){case 0:if(this.loading)return[2];if(!(t=this.url))return this.error="請先貼上 1688 商品連結。",(0,v.u)("mb_calc_error",{error_code:"URL_REQUIRED",retryable:!1}),this.focus(),[2];if(!/^https?:\/\//.test(t))return this.error="連結格式不正確,請確認是完整的商品網址(含 https://)。",(0,v.u)("mb_calc_error",{error_code:"URL_INVALID",retryable:!1}),this.focus(),[2];if(!(e=(0,m.q)(t)))return this.error="目前僅支援有效的 1688 商品連結;淘寶/天貓請改用 1688 同款或洽客服。",(0,v.u)("mb_calc_error",{error_code:"SOURCE_NOT_SUPPORTED",retryable:!1}),this.focus(),[2];if((0,v.u)("mb_calc_submit",{calc_mode:"procurement"}),i=(0,x.gv)(e))return this.error="",this.createError="",this.applyGoods(i,!0),[2];this.loading=!0,this.error="",this.createError="",o.label=1;case 1:return o.trys.push([1,5,6,7]),[4,(0,y.D)()];case 2:return o.sent(),[4,this.$store.dispatch("magicbuy/dgorder/productDetail",{offerId:e,queryType:2,config:{noShowError:!0}})];case 3:if((r=o.sent()).data.error||!r.data.model)return this.error=(0,u.S)(r,"商品資訊載入失敗,請稍後再試"),(0,v.u)("mb_calc_error",{error_code:"SOURCE_ERROR",retryable:!0}),[2];return n=r.data.model,[4,this.$store.dispatch("magicbuy/dgorder/converGoodsInfo",(0,a._)((0,s._)({},n),{gsUrl:t,itemid:n.offerId,itemName:n.subject,itemPic:n.productImage&&n.productImage.images&&n.productImage.images[0],itemCid:n.categoryId}))];case 4:return c=o.sent(),this.applyPromoPrice(c),this.applyGoods(c,!1),[3,7];case 5:return(l=(p=o.sent())&&p.response)&&(401===l.status||400===l.status&&l.data&&"Unauthorized"===l.data.name)?(this.error="免登入試算次數已達上限或需要登入,請稍後再試,或登入/加入會員後試算。",(0,v.u)("mb_calc_error",{error_code:"GUEST_LIMIT",retryable:!0}
1)):(this.error=(0,u.S)(p,"商品來源回應逾時,請稍後再試"),(0,v.u)("mb_calc_error",{error_code:"SOURCE_TIMEOUT",retryable:!0})),[3,7];case 6:return this.loading=!1,[7];case 7:return[2]}})}).call(this)},applyGoods:function(t,e){var i={};(t.productSkuInfos||[]).forEach(function(t){i[String(t.specId||"")]=0}),this.qtys=i,this.firstPropValue="",this.goods=t,this.isDemoGoods=!!e,this.firstPropValue=this.firstProp.attrs[0]&&this.firstProp.attrs[0].value||"",this.syncedAt=Date.now(),this.step="sim",this.skuSelected=!1,this.preview=null,this.previewError="",this.previewLoading=!1,this.exchRate||this.loadRate(),(0,v.u)("mb_calc_result",{calc_mode:"procurement",estimate_status:"sim_panel",confidence:"high"})},applyPromoPrice:function(t){this.logined&&t.promotionModel&&"plus"===t.promotionModel.promotionType&&((t.productSkuInfos||[]).forEach(function(t){t.promotionPrice>0&&(t.price=t.promotionPrice)}),(t.productSaleInfo&&t.productSaleInfo.priceRangeList||[]).forEach(function(t){t.promotionPrice>0&&(t.price=t.promotionPrice)}),t.hasPromoPrice=!0)},priceRange:function(){var t,e,i=this,r=(this.goods.productSkuInfos||[]).map(function(t){return i.skuPrice(t)}).filter(function(t){return t>0});return r.length?[(t=Math).min.apply(t,(0,n._)(r)),(e=Math).max.apply(e,(0,n._)(r))]:[0,0]},order:function(){var t=this;if(this.canOrder){if((0,v.u)("mb_order_quickstart",{value_band:this.valueBand()}),this.logined)return void this.createOrder();this.signupError="",this.step="phone",this.$nextTick(function(){return t.$refs.phone&&t.$refs.phone.focus()})}},valueBand:function(){var t=this.totals.firstPayTwd||0;return t<5e3?"lt5k":t<2e4?"5k-20k":"gt20k"},startCaptchaTimer:function(){var t=this;this.captchaTimer=60,this.captchaTimerHandle&&clearInterval(this.captchaTimerHandle),this.captchaTimerHandle=setInterval(function(){t.captchaTimer--,t.captchaTimer<1&&clearInterval(t.captchaTimerHandle)},1e3)},sendCaptcha:function(t){return(0,r._)(function(){var e,i,r,s;return(0,o._)(this,function(a){switch(a.label){case 0:if(e=this,this.sendLoading||this.captchaTimer>0)return[2];if(!_.test(this.signup.cellphone))return this.signupError="請輸入台灣手機號碼(09 開頭、共 10 碼)。",this.$refs.phone&&this.$refs.phone.focus(),[2];this.signupError="",this.sendLoading=!0,a.label=1;case 1:return a.trys.push([1,,8,9]),[4,this.$store.dispatch("user/login/signupSendCaptcha",{cellphone:this.signup.cellphone,gRecaptchaResponse:"string"==typeof t?t:void 0})];case 2:if((i=a.sent()).data.error)return[3,3];return this.startCaptchaTimer(),this.signup.captcha="",this.step="code",this.$nextTick(function(){return e.$refs.code&&e.$refs.code.focus()}),[3,7];case 3:if("gRecaptchaResponseEmpty"!==i.data.name)return[3,6];return this.sendLoading=!1,s=(r=this).sendCaptcha,[4,this.$refs.GetCaptcha.validate()];case 4:return[4,s.apply(r,[a.sent()])];case 5:return a.sent(),[3,7];case 6:this.signupError=i.data.message||i.data.error,a.label=7;case 7:return[3,9];case 8:return this.sendLoading=!1,[7];case 9:return[2]}})}).call(this)},confirmOrder:function(){return(0,r._)(function(){var t;return(0,o._)(this,function(e){switch(e.label){case 0:if(this.verifyLoading)return[2];if(!/^\d{6}$/.test(this.signup.captcha))return this.signupError="請輸入 6 位數驗證碼。",[2];(0,v.u)("mb_order_otp_submit"),this.verifyLoading=!0,this.signupError="",e.label=1;case 1:return e.trys.push([1,,6,7]),[4,this.$store.dispatch("user/login/signup",{cellphone:this.signup.cellphone,captcha:this.signup.captcha})];case 2:if((t=e.sent()).data.error)return this.signupError=t.data.message||t.data.error,this.signup.captcha="",[2];if(t.data.model&&404===t.data.model.status)return this.signupError="此帳號無法使用,請聯繫客服",[2];return[4,this.$store.dispatch("init").catch(function(){})];case 3:return e.sent(),[4,this.loadRate()];case 4:return e.sent(),[4,this.createOrder()];case 5:return e.sent(),[3,7];case 6:return this.verifyLoading=!1,[7];case 7:return[2]}})}).call(this)},createOrder:function(){return(0,r._)(function(){var t,e,i,r,n,c;return(0,o._)(this,function(o){switch(o.label){case 0:if(t=this,localStorage.getItem("dgorderAgreeService"))return[3,2];return[4,this.$refs.AgreeServiceConfirm.open()];case 1:if(!o.sent())return this.step="sim",[2];localStorage.setItem("dgorderAgreeService","1"),o.label=2;case 2:this.step="creating",this.createError="",e=this.cargoParamList().map(function(e){return(0,a._)((0,s._)({},e),{categoryId:t.goods.categoryId})}),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.$store.dispatch("magicbuy/dgorder/batchCreateOrder",{receiveAddrid:1596,dgType:"DP",dgPymtMethod:"BC",bcid:0,dgSource:"",cartOrder:!1,batchCreateOrderList:[{dgMemo:"",dgMemoLanguage:"zh-tw",flow:"general",cargoParamList:e}],config:{noShowError:!0}})];case 4:if((r=(i=o.sent()).data||{}).error||"ERROR"===r.tsmdResult)return this.createError=r.message||(0,u.S)(i,"下單失敗,請稍後再試"),this.step="sim",[2];if(!(n=(r.list||[]).map(function(t){return t.dgid}
1).filter(Boolean).join(",")))return this.createError="下單失敗,請稍後再試",this.step="sim",[2];return(0,v.u)("mb_order_created",{value_band:this.valueBand(),order_channel:"quickorder"}),window.location.href=(0,b.Ef)("/dgorder/detail/"+n+"?showPay=1"),[3,6];case 5:return c=o.sent(),this.createError=(0,u.S)(c,"網路異常,請先確認訂單是否已建立,避免重複下單"),this.step="sim",[3,6];case 6:return[2]}})}).call(this)}}},C=(0,i(46607).A)(E,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb5-proc"},[t._m(0),e("form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("label",{staticStyle:{display:"block","font-size":"14px","font-weight":"700",color:"#15181E","margin-bottom":"8px"},attrs:{for:"mb5-est-url"}},[t._v("1688 商品連結")]),e("div",{staticStyle:{display:"flex",gap:"12px"}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.url,expression:"url",modifiers:{trim:!0}}],ref:"input",staticClass:"mb5-input",class:{"mb5-input--error":!!t.error},staticStyle:{flex:"1","min-width":"0"},attrs:{id:"mb5-est-url",type:"url",inputmode:"url",autocomplete:"off",spellcheck:"false",placeholder:"例:https://detail.1688.com/offer/736520148231.html"},domProps:{value:t.url},on:{focus:t.onFocus,input:[function(e){e.target.composing||(t.url=e.target.value.trim())},function(e){t.error=""}],blur:function(e){return t.$forceUpdate()}}}),e("button",{staticClass:"mb5-btn-primary",staticStyle:{flex:"none",padding:"0 28px"},attrs:{type:"submit","data-mb-vivid":"","data-est-submit":"","data-cta":"hero_estimate_start",disabled:t.loading}},[e("span",{attrs:{"data-mb-spotlayer":"","aria-hidden":"true"}}),t._v(t._s(t.loading?"同步商品中…":"查看預估成本")+" ")])]),t.error?e("p",{staticClass:"mb5-error-text",staticStyle:{"margin-top":"8px"},attrs:{role:"alert"}},[t._v(" "+t._s(t.error)+" ")]):t._e(),e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",gap:"16px","margin-top":"10px","flex-wrap":"wrap"}},[e("p",{staticStyle:{margin:"0","font-size":"13px",color:"#667085"}},[t._v(" 匯率與優惠以結帳頁為準;跨境運費與稅費視資料完整度顯示。 ")]),e("div",{staticStyle:{display:"flex","align-items":"center",gap:"8px","font-size":"13px",color:"#667085"}},[t._v(" 試試範例: "),t._l(t.demos,function(i){return e("button",{key:i.url,staticClass:"mb5-chip-btn",attrs:{type:"button"},on:{click:function(e){return t.useDemo(i.url)}}},[t._v(" "+t._s(i.label)+" ")])})],2)])]),e("div",{attrs:{"aria-live":"polite"}},[t.loading?e("div",{staticClass:"mb5-panel"},[t._m(1)]):t.goods?["sim"===t.step?e("div",{staticClass:"mb5-panel"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",gap:"12px","margin-bottom":"4px","flex-wrap":"wrap"}},[e("span",{staticStyle:{"font-size":"14.5px","font-weight":"700",color:"#15181E"}},[t._v("模擬下單試算——商品與價格已同步")]),e("span",{staticStyle:{"font-size":"12.5px",color:"#667085"}},[t._v("同步於 "+t._s(t.syncedText))])]),e("p",{staticStyle:{margin:"0 0 12px","font-size":"12.5px",color:"#667085"}},[t.displayRate?[t._v(" 匯率參考:1688 結帳同步(\xa51 ≈ NT$ "+t._s(t.displayRate)+");選擇規格與數量,下方即時試算採購成本。 ")]:[t._v(" 選擇規格與數量,下方即時試算採購成本;台幣金額以結帳頁為準。 ")]],2),e("div",{staticStyle:{display:"flex",gap:"14px","align-items":"flex-start",background:"#ffffff",border:"1px solid #EAECF0","border-radius":"10px",padding:"12px 14px","margin-bottom":"8px"}},[t.thumb?e("img",{staticStyle:{flex:"none",width:"88px",height:"88px","border-radius":"10px","object-fit":"cover"},attrs:{width:"88",height:"88",decoding:"async",src:t.thumb,alt:""}}):t._e(),e("div",{staticStyle:{"min-width":"0",flex:"1"}},[e("div",{staticStyle:{"font-size":"14.5px","font-weight":"700",color:"#15181E","line-height":"1.5"}},[t._v(" "+t._s(t.title)+" ")]),e("div",{staticStyle:{"margin-top":"2px","font-size":"13px",color:"#344054"}},[e("span",{staticStyle:{"font-weight":"800",color:"#15181E"}},[t._v("\xa5 "+t._s(t.priceLo))]),t.priceHi!==t.priceLo?[t._v(" – "),e("span",{staticStyle:{"font-weight":"800",color:"#15181E"}},[t._v("\xa5 "+t._s(t.priceHi))])]:t._e(),t._v("  "),e("span",{staticStyle:{color:"#667085"}},[t._v(t._s(t.goods.minOrderQuantity)+" 件起批")]),t.goods.hasPromoPrice?e("span",{staticStyle:{"margin-left":"8px",color:"#D69E49"}},[t._v("已享受 PLUS 會員價")]):t._e()],2),t.firstProp.attrs.length?e("div",{staticStyle:{"margin-top":"8px","font-size":"12.5px",color:"#667085",display:"flex","align-items":"center",gap:"6px","flex-wrap":"wrap"}},[t._v(" "+t._s(t.firstProp.attributeName)+": "),t._l(t.firstProp.attrs,function(i){return e("button",{key:i.value,staticClass:"mb5-sku-chip",class:{"
1is-active":t.firstPropValue===i.value},staticStyle:{margin:"0"},attrs:{type:"button"},on:{click:function(e){t.firstPropValue=i.value}}},[i.skuImageUrl?e("img",{attrs:{width:"24",height:"24",decoding:"async",loading:"lazy",src:i.skuImageUrl,alt:""}}):t._e(),t._v(t._s(i.value)),t.qtyByFirstProp(i.value)?e("span",{staticStyle:{color:"#1266EC","font-weight":"700"}},[t._v("\xd7"+t._s(t.qtyByFirstProp(i.value)))]):t._e()])})],2):t._e()])]),e("div",{staticStyle:{"overflow-x":"auto"}},[e("table",{staticStyle:{width:"100%","border-collapse":"collapse"}},[t._m(2),e("tbody",t._l(t.skuRows,function(i){return e("tr",{key:i.key,staticStyle:{"border-top":"1px solid #F2F4F7"}},[e("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#15181E"}},[e("span",{staticStyle:{display:"inline-flex","align-items":"center",gap:"10px"}},[i.image?e("img",{staticStyle:{width:"34px",height:"34px","border-radius":"6px","object-fit":"cover"},attrs:{width:"34",height:"34",decoding:"async",src:i.image,alt:""}}):t._e(),e("span",[t._v(t._s(i.name))])])]),e("td",{staticStyle:{padding:"9px 0 9px 12px","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap"}},[t._v(" \xa5 "+t._s(t.fmtCny(i.price))+" ")]),e("td",{staticStyle:{padding:"9px 0 9px 12px","text-align":"right","font-size":"12.5px",color:"#98A2B3","white-space":"nowrap"}},[0===i.stock?[t._v(" 缺貨 ")]:[t._v(" "+t._s(i.stock.toLocaleString("zh-TW"))+" 件可售 ")]],2),e("td",{staticStyle:{padding:"9px 0 9px 16px","text-align":"right","white-space":"nowrap"}},[e("span",{staticClass:"mb5-qty"},[e("button",{attrs:{type:"button",disabled:0===i.stock||!t.qtys[i.key],"aria-label":"減少 "+i.name+" 數量"},on:{click:function(e){return t.stepQty(i,-1)}}},[t._v("−")]),e("input",{attrs:{type:"text",inputmode:"numeric",disabled:0===i.stock},domProps:{value:t.qtys[i.key]||0},on:{change:function(e){return t.setQty(i,e.target.value)}}}),e("button",{attrs:{type:"button",disabled:0===i.stock,"aria-label":"增加 "+i.name+" 數量"},on:{click:function(e){return t.stepQty(i,1)}}},[t._v("+")])])])])}),0)])]),e("div",{staticStyle:{"border-top":"1.5px solid #D0D5DD","margin-top":"8px","padding-top":"12px"},attrs:{"aria-live":"polite"}},[t.totals.items?[e("table",{staticStyle:{width:"100%"}},[e("tbody",[e("tr",[e("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#344054"}},[t._v(" 商品金額("+t._s(t.totals.items)+" 件) ")]),e("td",{staticStyle:{padding:"8px 0","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap","vertical-align":"top"}},[t._v(" \xa5 "+t._s(t.fmtCny(t.totals.cnyTotal))+" ")]),e("td",{staticStyle:{padding:"8px 0 8px 12px","text-align":"right",width:"64px","vertical-align":"top"}},[e("span",{staticClass:"mb5-tag",class:t.totals.confirmed?"mb5-tag--ok":"mb5-tag--ask"},[t._v(t._s(t.totals.confirmed?"已確認":"預估"))])])]),e("tr",[t._m(3),e("td",{staticStyle:{padding:"8px 0","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap","vertical-align":"top"}},[t._v(" 0 元 ")]),e("td",{staticStyle:{padding:"8px 0 8px 12px","text-align":"right",width:"64px","vertical-align":"top"}},[e("span",{staticClass:"mb5-tag",class:t.totals.confirmed?"mb5-tag--ok":"mb5-tag--ask"},[t._v(t._s(t.totals.confirmed?"已確認":"預估"))])])]),t.totals.handlingTwd?e("tr",[e("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#344054"}},[t._v(" 手續費 ")]),e("td",{staticStyle:{padding:"8px 0","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap","vertical-align":"top"}},[t._v(" "+t._s(t.fmtNt(t.totals.handlingTwd))+" ")]),t._m(4)]):t._e()])]),t.previewLoading?e("p",{staticStyle:{margin:"0","font-size":"12.5px",color:"#667085"}},[t._v(" 正在向 1688 同步最新價格與優惠… ")]):t.previewError?e("p",{staticClass:"mb5-error-text",staticStyle:{margin:"0"}},[t._v(" "+t._s(t.previewError)+" ")]):t._e(),e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"baseline",gap:"16px","border-top":"1px solid #E4E7EC","padding-top":"10px","margin-top":"2px"}},[e("span",{staticStyle:{"font-size":"14px","font-weight":"700",color:"#15181E"}},[t._v("下單應付小計"),e("span",{staticStyle:{display:"block","font-size":"12.5px","font-weight":"400",color:"#667085"}},[t._v("\xa5 "+t._s(t.fmtCny(t.totals.cny))),t.totals.postFeeCny?[t._v(" + 1688 內地運費 \xa5 "+t._s(t.fmtCny(t.totals.postFeeCny)))]:t._e(),t.dis
1playRate?[t._v(" \xd7 匯率 "+t._s(t.displayRate)+"(以結帳頁為準)")]:t._e()],2)]),e("span",{staticStyle:{"font-size":"18px","font-weight":"900",color:"#15181E"}},[t._v(t._s(null===t.totals.firstPayTwd?"\xa5 "+t.fmtCny(t.totals.cnyTotal):t.fmtNt(t.totals.firstPayTwd)))])]),e("table",{staticStyle:{width:"100%","margin-top":"6px"}},[e("tbody",[e("tr",[e("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#344054"}},[t._v(" 預估跨境運費(海快) "),t.totals.weightKg?e("span",{staticStyle:{display:"block","font-size":"12.5px",color:"#667085"}},[t._v("估重 "+t._s(t.totals.weightKg.toFixed(1))+" kg(每件 "+t._s(t.unitWeight)+" kg);入倉實測後確認,可改選特快或海運")]):e("span",{staticStyle:{display:"block","font-size":"12.5px",color:"#667085"}},[t._v("依入倉實測重量計費,經濟型 NT$ 35/kg 起")])]),e("td",{staticStyle:{padding:"8px 0","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap","vertical-align":"top"}},[t.totals.weightKg?[t._v(" "+t._s(t.fmtNt(t.totals.shipLow))+" – "+t._s(t.fmtNt(t.totals.shipHigh))+" ")]:[t._v(" 入倉實測後確認 ")]],2),e("td",{staticStyle:{padding:"8px 0 8px 12px","text-align":"right",width:"64px","vertical-align":"top"}},[e("span",{staticClass:"mb5-tag",class:t.totals.weightKg?"mb5-tag--ask":"mb5-tag--muted"},[t._v(t._s(t.totals.weightKg?"預估":"未知"))])])]),t._m(5)])]),t.totals.weightKg&&null!==t.totals.firstPayTwd?e("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"baseline",gap:"16px","border-top":"1.5px solid #D0D5DD","padding-top":"12px","margin-top":"4px"}},[e("span",{staticStyle:{"font-size":"14px","font-weight":"700",color:"#15181E"}},[t._v("預估總落地成本(不含稅費)")]),e("span",{staticStyle:{"font-size":"20px","font-weight":"900",color:"#15181E"}},[t._v(t._s(t.fmtNt(t.totals.firstPayTwd+t.totals.shipLow))+" – "+t._s(t.fmtNt(t.totals.firstPayTwd+t.totals.shipHigh)))])]):t._e()]:e("p",{staticStyle:{margin:"0","font-size":"13.5px",color:"#667085"}},[t._v(" 請先選擇規格與數量——選好後這裡會即時試算總成本。 ")])],2),t.blockReason?e("p",{staticClass:"mb5-error-text"},[t._v(" "+t._s(t.blockReason)+" ")]):t._e(),t.createError?e("p",{staticClass:"mb5-error-text"},[t._v(" "+t._s(t.createError)+" ")]):t._e(),e("div",{staticStyle:{display:"flex",gap:"12px","margin-top":"14px","flex-wrap":"wrap","align-items":"center"}},[e("button",{staticClass:"mb5-btn-solid",staticStyle:{padding:"0 28px"},attrs:{type:"button",disabled:!t.canOrder,"data-cta":"hero_sim_order"},on:{click:t.order}},[t._v(" 立即訂購 ")]),e("a",{staticStyle:{display:"inline-flex","align-items":"center","min-height":"48px","font-size":"14px","font-weight":"700"},attrs:{href:"https://page.line.me/magicbuy",target:"_blank",rel:"noopener"}},[t._v("不確定?問 LINE 客服")])]),e("p",{staticStyle:{margin:"12px 0 0","font-size":"12.5px",color:"#667085"}},[t._v(" 匯率與優惠以結帳頁為準;跨境運費、稅費與選購服務依資料完整度另行顯示。 ")])]):"phone"===t.step?e("div",{staticClass:"mb5-panel"},[e("div",{staticStyle:{"font-size":"14.5px","font-weight":"700",color:"#15181E","margin-bottom":"4px"}},[t._v(" 快速下單——輸入手機號碼完成訂購 ")]),e("p",{staticStyle:{margin:"0 0 14px","font-size":"13.5px","line-height":"1.7",color:"#344054"}},[t._v(" 首次下單會自動建立帳戶,享新客戶 60 天 0 服務費;訂單進度與到貨通知會傳送到這支手機。 ")]),e("div",{staticStyle:{display:"flex",gap:"12px","flex-wrap":"wrap","align-items":"center"}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.signup.cellphone,expression:"signup.cellphone",modifiers:{trim:!0}}],ref:"phone",staticClass:"mb5-input",class:{"mb5-input--error":!!t.signupError},staticStyle:{width:"220px"},attrs:{type:"tel",inputmode:"numeric",autocomplete:"tel",maxlength:"10",placeholder:"09xx xxx xxx"},domProps:{value:t.signup.cellphone},on:{input:[function(e){e.target.composing||t.$set(t.signup,"cellphone",e.target.value.trim())},function(e){t.signupError=""}],keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.sendCaptcha.apply(null,arguments))},blur:function(e){return t.$forceUpdate()}}}),e("button",{staticClass:"mb5-btn-solid",attrs:{type:"button",disabled:t.sendLoading||t.captchaTimer>0,"data-cta":"quickorder_send_otp"},on:{click:t.sendCaptcha}},[t.captchaTimer>0?[t._v(" "+t._s(t.captchaTimer)+"s 後可重新傳送 ")]:[t._v(" "+t._s(t.sendLoading?"傳送中…":"傳送驗證碼")+" ")]],2)]),t.signupError?e("p",{staticClass:"mb5-error-text",attrs:{role:"alert"}},[t._v(" "+t._s(t.signupError)+" ")]):t._e(),e("div",{staticStyle:{"margin-top":"12px"}},[e("button",{staticClass:"mb5-btn-link",attrs:{type:"button"},on:{click:function(e){t.step="sim"}}},[t._v(" ← 返回修改商品與數量 ")])])]):"code"===t.step?e
1("div",{staticClass:"mb5-panel"},[e("div",{staticStyle:{"font-size":"14.5px","font-weight":"700",color:"#15181E","margin-bottom":"4px"}},[t._v(" 輸入驗證碼 ")]),e("p",{staticStyle:{margin:"0 0 14px","font-size":"13.5px","line-height":"1.7",color:"#344054"}},[t._v(" 驗證碼已傳送至 "+t._s(t.maskedPhone)+",10 分鐘內有效。 ")]),e("div",{staticStyle:{display:"flex",gap:"12px","flex-wrap":"wrap","align-items":"center"}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.signup.captcha,expression:"signup.captcha",modifiers:{trim:!0}}],ref:"code",staticClass:"mb5-input",class:{"mb5-input--error":!!t.signupError},staticStyle:{width:"220px"},attrs:{type:"tel",inputmode:"numeric",autocomplete:"one-time-code",maxlength:"6",placeholder:"6 位數驗證碼",disabled:t.verifyLoading},domProps:{value:t.signup.captcha},on:{input:[function(e){e.target.composing||t.$set(t.signup,"captcha",e.target.value.trim())},function(e){t.signupError=""}],keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.confirmOrder.apply(null,arguments))},blur:function(e){return t.$forceUpdate()}}}),e("button",{staticClass:"mb5-btn-solid",attrs:{type:"button",disabled:t.verifyLoading||6!==t.signup.captcha.length,"data-cta":"quickorder_confirm"},on:{click:t.confirmOrder}},[t._v(" "+t._s(t.verifyLoading?"驗證中…":"確認下單")+" ")])]),t.signupError?e("p",{staticClass:"mb5-error-text",attrs:{role:"alert"}},[t._v(" "+t._s(t.signupError)+" ")]):t._e(),e("p",{staticStyle:{margin:"10px 0 0","font-size":"12.5px",color:"#667085"}},[t._v(" 沒收到驗證碼? "),t.captchaTimer>0?[t._v(" "+t._s(t.captchaTimer)+" 秒後可重新傳送, ")]:e("button",{staticClass:"mb5-btn-link",staticStyle:{"min-height":"0","font-size":"12.5px"},attrs:{type:"button"},on:{click:t.sendCaptcha}},[t._v(" 重新傳送驗證碼 ")]),t._v(" 或改用 LINE 由客服協助下單。 ")],2),e("div",{staticStyle:{"margin-top":"12px"}},[e("button",{staticClass:"mb5-btn-link",attrs:{type:"button"},on:{click:function(e){t.step="phone"}}},[t._v(" ← 重新輸入手機號碼 ")])])]):"creating"===t.step?e("div",{staticClass:"mb5-panel"},[t._m(6)]):t._e()]:t._e()],2),e("p",{staticStyle:{margin:"14px 0 0","padding-top":"12px","border-top":"1px solid #EAECF0","font-size":"13px","line-height":"1.65",color:"#667085"}},[t._v(" 新客戶註冊後 60 天代採購 0 服務費;一般服務費為商品成交金額 1%。跨境運費、稅費與選購服務另計,實際金額以付款前明細為準。 ")]),e("GetCaptcha",{ref:"GetCaptcha"}),e("AgreeServiceConfirm",{ref:"AgreeServiceConfirm",attrs:{name:"用戶協議",agreeText:"同意並提交訂單",disagreeText:"不同意"}},[e("div",[t._v(" 我已瞭解買即可僅提供代購服務,買即可無法對商品質量提供任何保證,請謹慎選擇商品。 ")])])],1)},[function(){var t=this._self._c;return t("p",{staticStyle:{margin:"0 0 14px",display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","font-size":"13.5px",color:"#344054"}},[t("span",{staticStyle:{"font-weight":"900",color:"#1266EC",background:"#EDF3FE",border:"1px solid #C7D8F6",padding:"4px 12px","border-radius":"999px","white-space":"nowrap"},attrs:{"data-mb-l1":"pill"}},[this._v("新客戶優惠")]),t("span",[this._v("註冊後 "),t("strong",{staticStyle:{color:"#15181E"}},[this._v("60 天代採購 0 服務費")]),this._v("・送 NT$300 集運優惠券(詳見活動辦法)")])])},function(){var t=this._self._c;return t("div",{staticClass:"mb5-loading"},[t("span",{staticClass:"mb5-spinner"}),this._v("正在讀取商品與最新試算資訊… ")])},function(){var t=this._self._c;return t("thead",[t("tr",[t("th",{staticStyle:{padding:"6px 0","text-align":"left","font-size":"12px","font-weight":"700",color:"#667085"}},[this._v(" 規格 ")]),t("th",{staticStyle:{padding:"6px 0 6px 12px","text-align":"right","font-size":"12px","font-weight":"700",color:"#667085"}},[this._v(" 單價 ")]),t("th",{staticStyle:{padding:"6px 0 6px 12px","text-align":"right","font-size":"12px","font-weight":"700",color:"#667085"}},[this._v(" 可售 ")]),t("th",{staticStyle:{padding:"6px 0 6px 16px","text-align":"right","font-size":"12px","font-weight":"700",color:"#667085"}},[this._v(" 數量 ")])])])},function(){var t=this._self._c;return t("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#344054"}},[this._v(" 代採購服務費 "),t("span",{staticStyle:{display:"block","font-size":"12.5px",color:"#667085"}},[this._v("以商品成交金額 1% 計;新客戶前 60 天 0 服務費,以結帳頁為準")])])},function(){var t=this._self._c;return t("td",{staticStyle:{padding:"8px 0 8px 12px","text-align":"right",width:"64px","vertical-align":"top"}},[t("span",{staticClass:"mb5-tag mb5-tag--ok"},[this._v("已確認")])])},function(){var t=this._self._c;return t("tr",[t("td",{staticStyle:{padding:"8px 0","font-size":"14px",color:"#344054"}},[this._v(" 稅費與選購服務 "),t("span",{staticStyle:{display:"block","font-size":"12.5px",color:"#667085"}},[this._v("依品類與申報方式,付款前明細逐項列出")])]),t("td",{staticStyle:{padding:"8px 0","text-align":"right","font-size":"14px","font-weight":"700",color:"#15181E","white-space":"nowrap","vertical-align":"top"}},[this._v(" 視申報方式 ")]),t("td",{staticStyle:{padding:"8px 0 8px 12px","text-align":"right",width:"64px","vertical-align":"top"}},[t("span",{staticClass:"mb5-tag mb5-tag--muted"},[this._v("未知")])])])},function(){var t=this._self._c;return t("div",{staticClass:"mb5-loading"},[t("span",{staticClass:"mb5-spinner"}
1),this._v("訂單建立中,完成後將前往付款頁… ")])}],!1,null,null,null).exports},7982:function(t,e,i){t.exports=i.p+"static/image/demo-0a5b4e06.b250ca0c9f.jpg"},2149:function(t,e,i){t.exports=i.p+"static/image/demo-0c0db009.799eb38a9d.jpg"},23535:function(t,e,i){t.exports=i.p+"static/image/demo-371ef901.4bd1fcd688.jpg"},24015:function(t,e,i){t.exports=i.p+"static/image/demo-472304a3.05e1b82867.jpg"},31893:function(t,e,i){t.exports=i.p+"static/image/demo-50ebbfb0.a4e8a7c0dd.jpg"},20428:function(t,e,i){t.exports=i.p+"static/image/demo-62d61f8f.ee9db03667.jpg"},2309:function(t,e,i){t.exports=i.p+"static/image/demo-b3e461f7.7fc69bd5b4.jpg"},18450:function(t,e,i){t.exports=i.p+"static/image/demo-beb5da3c.4f5045d971.jpg"},9002:function(t,e,i){t.exports=i.p+"static/image/demo-c774b92a.ebf76cf16f.jpg"},53086:function(t,e,i){t.exports=i.p+"static/image/demo-e617cdf9.c0b2182f0e.jpg"},27033:function(t,e,i){t.exports=i.p+"static/image/demo-f2e7026d.069c9c2d34.jpg"},94963:function(t,e,i){t.exports=i.p+"static/image/demo-fd8e0ba0.3a4f75db95.jpg"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.