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

4 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabBar/user/user"],{"31b1":function(t,n,e){"use strict";e.r(n);var o=e("acf8"),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},"83f9":function(t,n,e){"use strict";var o=e("c1af"),u=e.n(o);u.a},acf8:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("b528"),u=function(){e.e("components/uni-badge/components/uni-badge/uni-badge").then(function(){return resolve(e("6e74"))}.bind(null,e)).catch(e.oe)},i=getApp(),r=function(){e.e("components/Authorize").then(function(){return resolve(e("4bac"))}.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/deposit"})},toPage:function(n,e){"客服"!=e&&t.navigateTo({url:n})}}};n.default=a}).call(this,e("543d")["default"])},c1af:function(t,n,e){},c4cd: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=[]},d166:function(t,n,e){"use strict";e.r(n);var o=e("c4cd"),u=e("31b1");for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("83f9");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},dd07:function(t,n,e){"use strict";(function(t){e("eba6");o(e("66fd"));var n=o