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.
high-mini/unpackage/dist/build/mp-weixin/pages/tabBar/user/user.js

1 line
4.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabBar/user/user"],{1763:function(t,n,e){"use strict";e.r(n);var o=e("b15a"),u=e("32df");for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("d2ff");var r,a=e("f0c5"),s=Object(a["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=s.exports},"190d":function(t,n,e){},"1bad":function(t,n,e){"use strict";(function(t){e("e5b1");o(e("66fd"));var n=o(e("1763"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"32df":function(t,n,e){"use strict";e.r(n);var o=e("f550"),u=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=u.a},b15a:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var u=function(){var t=this,n=t.$createElement;t._self._c},i=[]},d2ff:function(t,n,e){"use strict";var o=e("190d"),u=e.n(o);u.a},f550:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("53e0"),u=function(){e.e("components/uni-badge/components/uni-badge/uni-badge").then(function(){return resolve(e("163c"))}.bind(null,e)).catch(e.oe)},i=getApp(),r=function(){e.e("components/Authorize").then(function(){return resolve(e("0a2a"))}.bind(null,e)).catch(e.oe)},a={components:{authorize:r,uniBadge:u},data:function(){return{isfirst:!0,headerPosition:"fixed",textnum:"",textSend:"",therrNum:"",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:"../../user/coupon/coupon",text:"我的优惠券",img:"/static/img/user/momey.png"},{url:"",text:"客服",img:"/static/img/user/kefu.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,e.textnum=n.return_data.unusedCouponNum,e.textSend=n.return_data.unusedDiscount,e.therrNum=n.return_data.unpaid,t.setStorage({key:"user",data:n.return_data}))}))},getPhoneNumber:function(n){var e=this,u={openId:i.globalData.openId,iv:n.detail.iv,encryptedData:n.detail.encryptedData};(0,o.GetPhoneNumber)(u).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())}))},toScan:function(){t.scanCode({success:function(n){t.navigateTo({url:"../../goods/coupons-info-details/coupons-info-details?id="+JSON.parse(n.result).code})},fail:function(){t.showToast({title:"无法识别二维码",icon:"none",duration:2e3})}})},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/de