(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"0859":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("3e39");o(n("66fd"));var c=o(n("c1d0"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},1060:function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n("9523")),i=n("26cb"),s=n("5635"),r=n("7346");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={components:{uniList:function(){n.e("components/uni-list/uni-list").then(function(){return resolve(n("f52a"))}.bind(null,n)).catch(n.oe)},uniListItem:function(){n.e("components/uni-list-item/uni-list-item").then(function(){return resolve(n("d158"))}.bind(null,n)).catch(n.oe)}},data:function(){return{current:2,id:"",store_name:"",achievement:"",code:"",all:"",text:""}},onShow:function(){this.loadBaseData()},filters:{phone:function(e){var t=e.substr(0,3),n=e.substr(e.length-4,4),o=t+"..."+n;return e=o,e}},onReady:function(){var t=this;e.createSelectorQuery().select(".container").fields({size:!0},(function(e){t.userDowm=Math.floor(e.width/750*185),t.userMaxDowm=Math.floor(e.width/750*250)})).exec()},computed:a({},(0,i.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:a(a({},(0,i.mapMutations)("user",["setUserInfo"])),{},{qhx:function(){var e=this;(0,s.check)({verify_code:this.code,is_confirm:1}).then((function(t){e.$api.msg("核销成功"),e.close()})).catch((function(e){console.log(e)}))},phone:function(e){if(console.log(e,"e++++"),e.length>10){var t=e.substr(0,3),n=e.substr(e.length-4,4),o=t+"..."+n;return e=o,e}return!1},sao:function(){var t=this;e.scanCode({success:function(e){t.code=e.result,t.$refs.popuphx.open(),console.log(t.$refs.popuphx)}})},comfirm:function(t){console.log(t);var n=this.uniCopy(t);!1===n?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"}),this.$refs.popupkf.close()},uniCopy:function(t){e.setClipboardData({data:t,success:function(){return console.log("success"),!0}})},loadBaseData:function(){var t=this;(0,s.getUserInfo)({}).then((function(n){var o=n.data;t.setUserInfo(o);var c=e.getStorageSync("jynickname");1==c&&"微信用户"==t.userInfo.nickname&&(e.setStorageSync("jynickname",2),e.showModal({title:"提示",content:"您的昵称为默认昵称“微信用户”，是否立即修改？",complete:function(t){t.confirm&&e.navigateTo({url:"/pages/set/userinfo"})}})),(0,s.spread)({page:navItem.page,limit:navItem.limit}).then((function(e){var n=e.data;t.all=n.total+n.totalLevel})).catch((function(e){console.log(e)}))})).catch((function(e){console.log(e)}))},navTo:function(t){console.log(t),this.hasLogin?e.navigateTo({url:t}):((0,r.saveUrl)(),(0,r.interceptor)())},close:function(){this.$refs.popuphx.close(),this.code=""},openKf:function(){this.$refs.popupkf.open()},cancel:function(){this.$refs.popupkf.close()},open:function(){this.$refs.gspass.open()},cast:function(){var e=this;set_waiter({uid:this.id}).then((function(t){e.$api.msg("绑定成功"),e.$refs.gspass.close(),e.id=""})).catch((function(t){e.$refs.gspass.close(),e.id=""}))},cancelpass:function(){this.$refs.gspass.close(),this.id=""}})};t.default=f}).call(this,n("543d")["default"])},"2f97":function(e,t,n){},"3f4b":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var o={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"9fd5"))}},c=function(){var e=this.$createElement;this._self._c},i=[]},c1d0:function(e,t,n){"use strict";n.r(t);var o=n("3f4b"),c=n("dcad");for(var i in c)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(i);n("ea95");var s=n("f0c5"),r=Object(s["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},dcad:function(e,t,n){"use strict";n.r(t);var o=n("1060"),c=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=c.a},ea95:function(e,t,n){"use strict";var o=n("2f97"),c=n.n(o);c.a}},[["0859","common/runtime","common/vendor"]]]);