(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"3a50":function(e,n,t){},"6bf6":function(e,n,t){"use strict";t.r(n);var o=t("8fe2a"),s=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"]=s.a},"8fe2a":function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=o(t("9523")),c=t("26cb"),i=t("490a"),r=t("1900");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,s.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("1302"))}.bind(null,t)).catch(t.oe)},uniListItem:function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t("9e94"))}.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,c.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:a(a({},(0,c.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 e=this;(0,i.getUserInfo)({}).then((function(n){var t=n.data;console.log(t.nickname),e.login(),e.setUserInfo(t)})).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"])},"92af":function(e,n,t){"use strict";var o=t("3a50"),s=t.n(o);s.a},9633:function(e,n,t){"use strict";t.r(n);var o=t("c757"),s=t("6bf6");for(var c in s)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(c);t("92af");var i=t("f0c5"),r=Object(i["a"])(s["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=r.exports},c757:function(e,n,t){"use strict";t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"2b1b"))}},s=function(){var e=this.$createElement;this._self._c},c=[]},e700:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("2500");o(t("66fd"));var s=o(t("9633"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(s.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])}},[["e700","common/runtime","common/vendor"]]]);