You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.0 KiB
1 lines
5.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"0779":function(e,n,t){"use strict";(function(e){t("8d0c");r(t("66fd"));var n=r(t("8cb5"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"36e1":function(e,n,t){},5973:function(e,n,t){"use strict";t.r(n);var r=t("ed61"),o=t.n(r);for(var c in r)"default"!==c&&function(e){t.d(n,e,(function(){return r[e]}))}(c);n["default"]=o.a},"8cb5":function(e,n,t){"use strict";t.r(n);var r=t("c768"),o=t("5973");for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);t("bd64");var i,a=t("f0c5"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);n["default"]=u.exports},bd64:function(e,n,t){"use strict";var r=t("36e1"),o=t.n(r);o.a},c768:function(e,n,t){"use strict";var r;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return r}));var o=function(){var e=this,n=e.$createElement;e._self._c},c=[]},ed61:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t("a34a"));function o(e){return e&&e.__esModule?e:{default:e}}function c(e,n,t,r,o,c,i){try{var a=e[c](i),u=a.value}catch(s){return void t(s)}a.done?n(u):Promise.resolve(u).then(r,o)}function i(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){c(i,r,o,a,u,"next",e)}function u(e){c(i,r,o,a,u,"throw",e)}a(void 0)}))}}var a=function(){t.e("components/mix-list-cell").then(function(){return resolve(t("8fe3"))}.bind(null,t)).catch(t.oe)},u=0,s=0,f=!0,l={components:{listCell:a},data:function(){return{coverTransform:"translateY(0px)",coverTransition:"0s",moving:!1,userInfo:[],recordlist:[],showsh:0,personinfo:[]}},onShow:function(){this.baseset();var n=e.getStorageSync("userinfo");console.log(n),""!=n&&(this.getread_recordlsit(n.uid),this.userInfo=n),this.userinfo()},onLoad:function(){},computed:{},methods:{baseset:function(){var e=this;return i(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.baseset({action:"baseset"});case 2:t=n.sent,e.showsh=t.code;case 4:case"end":return n.stop()}}),n)})))()},userinfo:function(){var n=this;return i(r.default.mark((function t(){var o,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=e.getStorageSync("userinfo"),t.next=3,n.$api.userinfo({action:"userinfo",uid:o.uid});case 3:c=t.sent,n.personinfo=c.data;case 5:case"end":return t.stop()}}),t)})))()},getread_recordlsit:function(e){var n=this;return i(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.getread_recordlsit({action:"getread_recordlsit",uid:e});case 2:o=t.sent,n.recordlist=o.data;case 4:case"end":return t.stop()}}),t)})))()},cleanrecord:function(){var n=this;return i(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.cleanrecord({action:"cleanrecord",uid:n.userInfo.uid});case 2:o=t.sent,1==o.code&&n.getread_recordlsit(),e.hideLoading();case 5:case"end":return t.stop()}}),t)})))()},cleanall:function(){var n=this;n.checklogin(),e.showModal({title:"温馨提示",content:"是否清空浏览历史记录?",success:function(t){t.confirm?(e.showLoading({title:"正在清除..."}),n.cleanrecord()):t.cancel&&console.log("用户点击取消")}})},tipnomore:function(){e.showToast({title:"暂无浏览历史",icon:"none"})},navTo:function(n){var t=e.getStorageSync("userinfo");""==t?e.navigateTo({url:"/pages/user/checklogin"}):e.navigateTo({url:n})},tojifen:function(){var n=e.getStorageSync("userinfo");""==n?e.navigateTo({url:"/pages/user/checklogin"}):e.navigateTo({url:"/pages/user/jifen"})},tochongzhi:function(){var n=e.getStorageSync("userinfo");""==n?e.navigateTo({url:"/pages/user/checklogin"}):e.navigateTo({url:"/pages/user/chongzhi?yue="+this.personinfo.yue})},tocoupon:function(){var n=e.getStorageSync("userinfo");""==n?e.navigateTo({url:"/pages/user/checklogin"}):e.navigateTo({url:"/pages/coupon/coupon"})},coverTouchstart:function(e){!1!==f&&(this.coverTransition="transform .1s linear",u=e.touches[0].clientY)},coverTouchmove:function(e){s=e.touches[0].clientY;var n=s-u;n<0?this.moving=!1:(this.moving=!0,n>=80&&n<100&&(n=80),n>0&&n<=80&&(this.coverTransform="translateY(".concat(n,"px)")))},coverTouchend:function(){!1!==this.moving&&(this.moving=!1,this.coverTransition="transform 0.3s cubic-bezier(.21,1.93,.53,.64)",this.coverTransform="translateY(0px)")},checklogin:function(){var n=e.getStorageSync("userinfo");""==n&&e.navigateTo({url:"/pages/user/checklogin"})},logout:function(){e.showModal({title:"温馨提示",content:"请问是否退出登录",success:function(n){n.confirm?(e.showToast({title:"已退出"}),e.clearStorage("userinfo"),e.reLaunch({url:"/pages/index/index"})):n.cancel}})}}};n.default=l}).call(this,t("543d")["default"])}},[["0779","common/runtime","common/vendor"]]]);
|