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
3.5 KiB
1 lines
3.5 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabBar/user/user"],{"00f8":function(t,n,e){"use strict";(function(t){e("185d");o(e("66fd"));var n=o(e("bdbe"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"2a9c":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},r=[]},"3be4":function(t,n,e){},"7a53":function(t,n,e){"use strict";e.r(n);var o=e("fcf8"),i=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},bcf8:function(t,n,e){"use strict";var o=e("3be4"),i=e.n(o);i.a},bdbe:function(t,n,e){"use strict";e.r(n);var o=e("2a9c"),i=e("7a53");for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("bcf8");var u,a=e("f0c5"),s=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},fcf8:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("524d"),i=getApp(),r=function(){e.e("components/Authorize").then(function(){return resolve(e("0a4b"))}.bind(null,e)).catch(e.oe)},u={components:{authorize:r},data:function(){return{isfirst:!0,headerPosition:"fixed",headerTop:null,statusTop:null,showHeader:!0,user:"",orderList:[{text:"待支付",icon:"fukuan"},{text:"已支付",icon:"fahuo"},{text:"已完成",icon:"shouhuo"},{text:"已取消",icon:"pingjia"}],mytoolbarList:[{url:"/pages/goods/recording/recording?id=1",text:"充值记录",img:"/static/img/user/mingxi.png"},{url:"/pages/goods/recording/recording?id=2",text:"消费记录",img:"/static/img/user/quan.png"},{url:"/pages/user/mineCoupons/mineCoupons",text:"我的卡券",img:"/static/img/user/choujiang.png"},{url:"../../login/login",text:"商户入口",img:"/static/img/user/point.png"}]}},onPullDownRefresh:function(){setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onPageScroll:function(t){this.headerPosition=t.scrollTop>=0?"fixed":"absolute",this.headerTop=t.scrollTop>=0?null:0,this.statusTop=t.scrollTop>=0?null:-this.statusHeight+"px"},onLoad:function(){this.statusHeight=0},onReady:function(){t.setStorage({key:"UserInfo",data:!1,success:function(){},fail:function(t){}})},onShow:function(){i.globalData.userInfo&&this.findUser()},methods:{findUser:function(){var n,e=this;(0,o.findUser)(n).then((function(n){"000000"==n.return_code&&(i.globalData.userInfo=n.return_data,e.user=n.return_data,t.setStorage({key:"user",data:n.return_data}))}))},getPhoneNumber:function(n){var e=this,r={openId:i.globalData.openId,iv:n.detail.iv,encryptedData:n.detail.encryptedData};(0,o.GetPhoneNumber)(r).then((function(n){"000000"==n.return_code&&(i.globalData.userInfo=n.return_data.object.highUser,t.setStorage({key:"user",data:n.return_data.object.highUser}),e.toDeposit())}))},toMsg:function(){t.showToast({title:"暂未开通",icon:"none"})},toOrderList:function(n){t.navigateTo({url:"../../user/order_list/order_list?tbIndex="+n})},toMyQR:function(){t.navigateTo({url:"../../user/myQR/myQR"})},toLogin:function(){t.showToast({title:"请登录",icon:"none"}),t.navigateTo({url:"../../login/login"}),this.isfirst=!1},isLogin:function(){var n=t.getStorageSync("UserInfo");return!!n},toDeposit:function(){t.navigateTo({url:"../../user/deposit/deposit"})},toPage:function(n){n?t.navigateTo({url:n}):t.showToast({title:"模板未包含此页面",icon:"none"})}}};n.default=u}).call(this,e("543d")["default"])}},[["00f8","common/runtime","common/vendor"]]]); |