(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/my"],{146:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(147));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},147:function(e,n,t){"use strict";t.r(n);var o=t(148),r=t(150);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(153);var i,u=t(35),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);s.options.__file="pages/user/my.vue",n["default"]=s.exports},148:function(e,n,t){"use strict";t.r(n);var o=t(149);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},149:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));try{o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,347))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},c=!1,i=[];r._withStripped=!0},150:function(e,n,t){"use strict";t.r(n);var o=t(151),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},151:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(11)),c=o(t(152)),i=t(28),u=t(49),s=t(48);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var l=function(){t.e("components/uni-list/uni-list").then(function(){return resolve(t(360))}.bind(null,t)).catch(t.oe)},p=function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t(367))}.bind(null,t)).catch(t.oe)},d={components:{uniList:l,uniListItem:p},data:function(){return{type:1,text:"",total:"",remarks:""}},onShow:function(){this.hasLogin&&this.loadBaseData()},computed:f({},(0,i.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:f(f({},(0,i.mapMutations)("user",["setUserInfo","setOrderInfo"])),{},{loadBaseData:function(){var e=this;(0,u.getUserInfo)({}).then((function(n){var t=n.data;e.setUserInfo(t),(0,u.orderData)({}).then((function(n){var t=n.data;e.setOrderInfo(t)})).catch((function(n){e.setOrderInfo({complete_count:0,received_count:0,unshipped_count:0,order_count:0,unpaid_count:0})}))})).catch((function(e){console.log(e)})),(0,u.user_apply)({}).then((function(n){var t=n.data;t!=[]&&(e.type=t[0].status,e.remarks=t[0].remarks),console.log(t)}))},navTo:function(n){this.hasLogin?e.navigateTo({url:n}):((0,s.saveUrl)(),(0,s.interceptor)())},tiao:function(){window.location.href="https://beian.miit.gov.cn/#/Integrated/index"},openPopup:function(){this.$refs.popup.open()},comfirm:function(n){var t=n;console.log("复制的内容:",t);var o=(0,c.default)({content:t});!1===o?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"}),this.$refs.popup.close()},becomeVip:function(){0==this.type&&e.showModal({title:"提示",content:"正在审核中，请耐心等待。"}),-1==this.type&&e.showModal({title:"提示",content:"审核失败,失败原因:"+this.remarks+"。是否重新提交",success:function(n){(n.confirm||n.cancel)&&e.navigateTo({url:"/pages/user/becomeVip"})}}),1==this.type&&e.navigateTo({url:"/pages/user/becomeVip"})},cancel:function(){this.$refs.popup.close()}})};n.default=d}).call(this,t(2)["default"])},153:function(e,n,t){"use strict";t.r(n);var o=t(154),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},154:function(e,n,t){}},[[146,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/my.js.map