船员公众号
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
6.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"078b":function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("482e");o(e("3240"));var i=o(e("20b4"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"20b4":function(t,n,e){"use strict";e.r(n);var o=e("d615"),i=e("2392");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("8297");var a=e("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"f7218210",null,!1,o["a"],void 0);n["default"]=r.exports},2392:function(t,n,e){"use strict";e.r(n);var o=e("a1d3"),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},8297:function(t,n,e){"use strict";var o=e("a70b"),i=e.n(o);i.a},a1d3:function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7eb4")),s=o(e("ee10")),a={data:function(){return{isShow1:!1,isLogin:!1,isShow:!1,statusBarHeight:0,scrollTop:0,isPopup:!1,userInfo:{},configInfo:{},qr_code:""}},onLoad:function(){this.isShow=!!t.getStorageSync("isShare"),t.removeStorageSync("isShare")},onShow:function(){t.getStorageSync("userToken")?(this.getUserInfo(),this.isLogin=!0):(this.userInfo={},this.isLogin=!1),this.getConfig(),this.getConfig1()},onShareAppMessage:function(t){return"button"===t.from&&console.log(t.target),{title:"自定义分享标题",path:"/pages/login/login?id="+this.userInfo.id||!1,imageUrl:this.userInfo.qr_code}},destroyed:function(){t.removeStorageSync("isShare")},methods:{getConfig1:function(){var t=this;return(0,s.default)(i.default.mark((function n(){var e,o,s;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.getConfigIndex({});case 2:e=n.sent,o=e.code,s=e.data,e.msg,200==o&&(t.isShow1=s.is_open);case 7:case"end":return n.stop()}}),n)})))()},toTu:function(){this.isPopup=!0,this.isShow=!1,this.qr_code=this.userInfo.qr_code,t.removeStorageSync("isShow")},openPage:function(n){var e=this;1==n?t.navigateTo({url:"/pages/question/buyOne"}):2==n?t.navigateTo({url:"/pages/user/videoList"}):3==n?(this.qr_code=this.configInfo.qr_code_img,this.isPopup=!0):4==n?t.makePhoneCall({phoneNumber:e.configInfo.mobile,success:function(){t.showToast({title:"请稍等,拨通中",duration:2e3})},fail:function(){}}):6==n?t.navigateTo({url:"/pages/user/privacyPolicy"}):7==n?t.navigateTo({url:"/pages/user/aboutUs"}):8==n?t.navigateTo({url:"/pages/user/reset"}):9==n?t.navigateTo({url:"/pages/user/withdrawal"}):10==n?t.navigateTo({url:"/pages/user/team"}):11==n?t.navigateTo({url:"/pages/user/rebate"}):12==n?this.isShow=!0:13==n?t.showModal({title:"温馨提示",content:"确定要退出吗?",confirmColor:"#2080F9",success:function(t){t.confirm&&e.toLogout()}}):14==n&&t.navigateTo({url:"/pages/login/login"})},toLogout:function(){var n=this;return(0,s.default)(i.default.mark((function e(){var o,s,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.logOut({});case 2:o=e.sent,s=o.code,o.data,a=o.msg,200==s?(t.showToast({title:"退出成功"}),t.clearStorageSync(),n.userInfo={},n.isLogin=!1):t.showToast({icon:"none",title:a});case 7:case"end":return e.stop()}}),e)})))()},download:function(n){var e=this;t.downloadFile({url:n,success:function(n){t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(){t.showToast({title:"保存成功",icon:"none"}),e.isPopup=!1},fail:function(){e.isPopup=!1,t.showToast({title:"保存失败",icon:"none"})}})}})},getConfig:function(){var n=this;return(0,s.default)(i.default.mark((function e(){var o,s,a,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.getConfig({});case 2:o=e.sent,s=o.code,a=o.data,r=o.msg,200==s?n.configInfo=a:t.showToast({icon:"none",title:r});case 7:case"end":return e.stop()}}),e)})))()},getUserInfo:function(){var n=this;return(0,s.default)(i.default.mark((function e(){var o,s,a,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.loginInfo({});case 2:o=e.sent,s=o.code,a=o.data,r=o.msg,200==s?(n.userInfo=a,t.setStorageSync("userInfo",a)):t.showToast({icon:"none",title:r});case 7:case"end":return e.stop()}}),e)})))()}},onPageScroll:function(t){this.scrollTop=t.scrollTop,this.scrollTop<=15?this.isScrollTop=!1:this.isScrollTop=!0}};n.default=a}).call(this,e("df3c")["default"])},a70b:function(t,n,e){},d615:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return o}));var o={uNavbar:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(e.bind(null,"3c47"))},uActionSheet:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-action-sheet/u-action-sheet")]).then(e.bind(null,"f020"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"2911"))},uButton:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-button/u-button")]).then(e.bind(null,"95c6"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isLogin?t.staticUrl("/static/icon-edit.png"):null),o=t.staticUrl("/static/icon-money.png"),i=t.staticUrl("/static/icon-user-01.png"),s=t.staticUrl("/static/icon-user-02.png"),a=t.staticUrl("/static/icon-user-03.png"),r=t.staticUrl("/static/icon-user-04.png"),u=t.staticUrl("/static/icon-arrow.png"),c=t.staticUrl("/static/icon-user-05.png"),l=t.staticUrl("/static/icon-arrow.png"),f=t.staticUrl("/static/icon-user-06.png"),g=t.staticUrl("/static/icon-arrow.png"),p=t.staticUrl("/static/icon-user-07.png"),d=t.staticUrl("/static/icon-user-09.png"),h=t.staticUrl("/static/icon-arrow.png"),m=t.staticUrl("/static/icon-user-10.png"),v=t.staticUrl("/static/icon-arrow.png"),w=t.staticUrl("/static/user-share.png"),b=t.staticUrl("/static/user-image.png");t._isMounted||(t.e0=function(n){t.isShow=!1},t.e1=function(n){t.isPopup=!1}),t.$mp.data=Object.assign({},{$root:{a0:{color:"#fff"},m0:e,m1:o,m2:i,m3:s,m4:a,m5:r,m6:u,m7:c,m8:l,m9:f,m10:g,m11:p,m12:d,m13:h,m14:m,m15:v,m16:w,m17:b}})},s=[]}},[["078b","common/runtime","common/vendor"]]]);