(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"4bfd":function(e,n,t){"use strict";var o=t("975b"),c=t.n(o);c.a},"78e4":function(e,n,t){"use strict";t.d(n,"b",(function(){return c})),t.d(n,"c",(function(){return s})),t.d(n,"a",(function(){return o}));var o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"b91e"))}},c=function(){var e=this.$createElement;this._self._c},s=[]},"975b":function(e,n,t){},af7f:function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(t("9523")),s=t("26cb"),i=t("8383"),r=t("9d3e");function u(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 a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,c.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f={components:{uniList:function(){t.e("components/uni-list/uni-list").then(function(){return resolve(t("cca2"))}.bind(null,t)).catch(t.oe)},uniListItem:function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t("6ccd"))}.bind(null,t)).catch(t.oe)}},data:function(){return{current:2,id:"",store_name:"",achievement:"",code:"",text:"sy13967626944"}},onShow:function(){this.loadBaseData()},filters:{phone:function(e){var n=e.substr(0,3),t=e.substr(e.length-4,4),o=n+"..."+t;return e=o,e}},onReady:function(){var n=this;e.createSelectorQuery().select(".container").fields({size:!0},(function(e){n.userDowm=Math.floor(e.width/750*185),n.userMaxDowm=Math.floor(e.width/750*250)})).exec()},computed:a({},(0,s.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:a(a({},(0,s.mapMutations)("user",["setUserInfo","login"])),{},{qhx:function(){var e=this;(0,i.check)({verify_code:this.code,is_confirm:1}).then((function(n){e.$api.msg("核销成功"),e.close()})).catch((function(e){console.log(e)}))},sao:function(){var n=this;e.scanCode({success:function(e){n.code=e.result,n.$refs.popuphx.open(),console.log(n.$refs.popuphx)}})},comfirm:function(n){console.log(n);var t=this.uniCopy(n);!1===t?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"}),this.$refs.popupkf.close()},uniCopy:function(n){e.setClipboardData({data:n,success:function(){return console.log("success"),!0}})},loadBaseData:function(){var n=this;(0,i.getUserInfo)({}).then((function(t){var o=t.data;console.log(o.nickname),n.login(),n.setUserInfo(o),"微信用户"==o.nickname&&e.showModal({title:"提示",content:"您暂未设置用户名，头像。是否前往设置",showCancel:!1,success:function(n){n.confirm?e.navigateTo({url:"/pages/set/userinfo"}):n.cancel}})})).catch((function(e){console.log(e)}))},navTo:function(n){console.log(n),console.log(this.hasLogin,"haslogin"),this.hasLogin?e.navigateTo({url:n}):((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(n){e.$api.msg("绑定成功"),e.$refs.gspass.close(),e.id=""})).catch((function(n){e.$refs.gspass.close(),e.id=""}))},cancelpass:function(){this.$refs.gspass.close(),this.id=""}})};n.default=f}).call(this,t("543d")["default"])},b620:function(e,n,t){"use strict";t.r(n);var o=t("78e4"),c=t("ffce");for(var s in c)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return c[e]}))}(s);t("4bfd");var i=t("f0c5"),r=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=r.exports},f991:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("ab68");o(t("66fd"));var c=o(t("b620"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(c.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},ffce:function(e,n,t){"use strict";t.r(n);var o=t("af7f"),c=t.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=c.a}},[["f991","common/runtime","common/vendor"]]]);