(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"0635":function(e,n,t){"use strict";t.r(n);var o=t("5769"),c=t("f213");for(var r in c)"default"!==r&&function(e){t.d(n,e,(function(){return c[e]}))}(r);t("cf5e");var s,i=t("f0c5"),u=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);n["default"]=u.exports},5769:function(e,n,t){"use strict";t.d(n,"b",(function(){return c})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"1bfb"))}},c=function(){var e=this,n=e.$createElement;e._self._c},r=[]},6457:function(e,n,t){},b629:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("26cb"),c=t("f9a9"),r=t("5cc1");function s(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(){t.e("components/uni-list/uni-list").then(function(){return resolve(t("a71c"))}.bind(null,t)).catch(t.oe)},f=function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t("7b82"))}.bind(null,t)).catch(t.oe)},l={components:{uniList:a,uniListItem:f},data:function(){return{current:2,id:"",store_name:"",achievement:"",code:"",text:""}},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:i({},(0,o.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:i(i({},(0,o.mapMutations)("user",["setUserInfo"])),{},{qhx:function(){var e=this;(0,c.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,c.getUserInfo)({}).then((function(n){var t=n.data;console.log(t.nickname),e.setUserInfo(t)})).catch((function(e){console.log(e)}))},navTo:function(n){console.log(n),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=l}).call(this,t("543d")["default"])},cf5e:function(e,n,t){"use strict";var o=t("6457"),c=t.n(o);c.a},d8a3:function(e,n,t){"use strict";(function(e){t("30ba");o(t("66fd"));var n=o(t("0635"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},f213:function(e,n,t){"use strict";t.r(n);var o=t("b629"),c=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=c.a}},[["d8a3","common/runtime","common/vendor"]]]);