(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/my"],{"00d4":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("3e59");o(n("66fd"));var r=o(n("6789"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"21e2":function(t,e,n){},6789:function(t,e,n){"use strict";n.r(e);var o=n("d9ad"),r=n("d92a");for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);n("ce34");var i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},c898:function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("9523")),c=o(n("f5db")),i=n("26cb"),u=n("2280"),a=n("3647");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{uniList:function(){n.e("components/uni-list/uni-list").then(function(){return resolve(n("e9ac"))}.bind(null,n)).catch(n.oe)},uniListItem:function(){n.e("components/uni-list-item/uni-list-item").then(function(){return resolve(n("12f9"))}.bind(null,n)).catch(n.oe)}},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 t=this;(0,u.getUserInfo)({}).then((function(e){var n=e.data;t.setUserInfo(n),(0,u.orderData)({}).then((function(e){var n=e.data;t.setOrderInfo(n)})).catch((function(e){t.setOrderInfo({complete_count:0,received_count:0,unshipped_count:0,order_count:0,unpaid_count:0})}))})).catch((function(t){console.log(t)})),(0,u.user_apply)({}).then((function(e){var n=e.data;n!=[]&&(t.type=n[0].status,t.remarks=n[0].remarks),console.log(n)}))},navTo:function(e){this.hasLogin?t.navigateTo({url:e}):((0,a.saveUrl)(),(0,a.interceptor)())},tiao:function(){window.location.href="https://beian.miit.gov.cn/#/Integrated/index"},openPopup:function(){this.$refs.popup.open()},comfirm:function(e){var n=e;console.log("复制的内容:",n);var o=(0,c.default)({content:n});!1===o?t.showToast({title:"不支持"}):t.showToast({title:"复制成功",icon:"none"}),this.$refs.popup.close()},becomeVip:function(){0==this.type&&t.showModal({title:"提示",content:"正在审核中，请耐心等待。"}),-1==this.type&&t.showModal({title:"提示",content:"审核失败,失败原因:"+this.remarks+"。是否重新提交",success:function(e){(e.confirm||e.cancel)&&t.navigateTo({url:"/pages/user/becomeVip"})}}),1==this.type&&t.navigateTo({url:"/pages/user/becomeVip"})},cancel:function(){this.$refs.popup.close()}})};e.default=l}).call(this,n("543d")["default"])},ce34:function(t,e,n){"use strict";var o=n("21e2"),r=n.n(o);r.a},d92a:function(t,e,n){"use strict";n.r(e);var o=n("c898"),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=r.a},d9ad:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o}));var o={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"77eb"))}},r=function(){var t=this.$createElement;this._self._c},c=[]}},[["00d4","common/runtime","common/vendor"]]]);