error.js 2.3 KB

1
  1. "use strict";const e=require("../../common/vendor.js"),r=require("../../sheep/index.js");if(require("../../sheep/url/index.js"),require("../../sheep/store/index.js"),require("../../sheep/store/app.js"),require("../../sheep/api/promotion/diy.js"),require("../../sheep/request/index.js"),require("../../sheep/config/index.js"),require("../../sheep/platform/index.js"),require("../../sheep/platform/provider/wechat/index.js"),require("../../sheep/platform/provider/wechat/miniProgram.js"),require("../../sheep/api/member/auth.js"),require("../../sheep/api/member/social.js"),require("../../sheep/api/member/user.js"),require("../../sheep/platform/provider/apple/index.js"),require("../../sheep/platform/share.js"),require("../../sheep/router/index.js"),require("../../sheep/hooks/useModal.js"),require("../../sheep/helper/index.js"),require("../../sheep/helper/test.js"),require("../../sheep/helper/digit.js"),require("../../sheep/api/member/signin.js"),require("../../sheep/helper/throttle.js"),require("../../sheep/platform/pay.js"),require("../../sheep/api/pay/order.js"),require("../../sheep/store/user.js"),require("../../sheep/store/cart.js"),require("../../sheep/api/trade/cart.js"),require("../../sheep/api/pay/wallet.js"),require("../../sheep/api/trade/order.js"),require("../../sheep/api/promotion/coupon.js"),require("../../sheep/store/sys.js"),require("../../sheep/store/modal.js"),require("../../sheep/config/zIndex.js"),!Array){e.resolveComponent("s-empty")()}Math;const s={__name:"error",setup(s){const i=e.ref(""),t=e.ref("");async function p(){e.index.reLaunch({url:"/pages/index/index"}),await r.ShoproInit()}return e.onLoad((e=>{i.value=e.errCode,t.value=e.errMsg})),(r,s)=>e.e({a:"NetworkError"===i.value},"NetworkError"===i.value?{b:e.o(p),c:e.p({icon:"/static/internet-empty.png",text:"网络连接失败",showAction:!0,actionText:"重新连接",buttonColor:"#132b85"})}:"TemplateError"===i.value?{e:e.o(p),f:e.p({icon:"/static/internet-empty.png",text:"未找到模板",showAction:!0,actionText:"重新加载",buttonColor:"#132b85"})}:""!==i.value?{h:e.o(p),i:e.p({icon:"/static/internet-empty.png",text:t.value,showAction:!0,actionText:"重新加载",buttonColor:"#132b85"})}:{},{d:"TemplateError"===i.value,g:""!==i.value})}},i=e._export_sfc(s,[["__scopeId","data-v-189d7116"]]);wx.createPage(i);