frontend_h5/treegitee/unpackage/dist/build/h5/static/js/pages-my-index.00f597b1.js

1 line
7.2 KiB
JavaScript
Raw Normal View History

2024-06-17 15:25:46 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-index"],{"43cb":function(t,i,e){"use strict";var a=e("b651"),n=e.n(a);n.a},b651:function(t,i,e){var a=e("f658");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("154f4260",a,!0,{sourceMap:!1,shadowMode:!1})},ba30:function(t,i,e){"use strict";e.r(i);var a=e("bfcc"),n=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);i["default"]=n.a},bfcc:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("14d9");var a={data:function(){return{istrue:!1,integral:"",form:{page:1,pageSize:10},phone:"",list:[],hotlist:[],imgUrl:""}},onLoad:function(){this.imgUrl=this.api.imgUrl,this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.myself(this.form).then((function(i){if(console.log(i),200==i.data.code){if(uni.stopPullDownRefresh(),t.integral=i.data.data.integral,t.phone=i.data.data.phone,null!=t.phone&&(t.phone=t.phone.substr(0,3)+"****"+t.phone.substr(7)),0==i.data.data.list.data.length)return uni.showToast({title:"暂无数据",icon:"none"}),t.istrue=!0,!1;for(var e=0;e<i.data.data.list.data.length;e++)t.list.push(i.data.data.list.data[e]);t.getactive()}else uni.hideLoading(),uni.showToast({icon:"none",title:i.data.message})}))},getactive:function(){var t=this;this.api.getactivit({page:1,pageSize:1e3}).then((function(i){console.log(i),200==i.data.code?(uni.stopPullDownRefresh(),uni.hideLoading(),t.hotlist=i.data.data.data):(uni.hideLoading(),uni.showToast({icon:"none",title:i.data.message})),t.istrue=!0}))},getp:function(t,i){2==i?uni.navigateTo({url:"/pages/turntable/index?id="+t}):3==i?uni.navigateTo({url:"/pages/scap/scratch?id="+t}):5==i?uni.navigateTo({url:"/pages/around/index?id="+t}):6==i&&uni.navigateTo({url:"/pages/answer/index?id="+t})},goorder:function(t){uni.switchTab({url:"/pages/order/index"})},goprize:function(){uni.navigateTo({url:"/pages/my/prizes"})}},onReachBottom:function(){uni.showLoading({title:"加载中..."}),this.form.page+=1,this.getData()},onPullDownRefresh:function(){this.form.page=1,this.list=[],this.getData()}};i.default=a},dd50:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.istrue?e("v-uni-view",{staticClass:"plr30"},[e("v-uni-view",{staticClass:"t1 flex_between flex_items mt30 pos"},[e("v-uni-view",{staticClass:"flex_start flex_items"},[e("v-uni-image",{staticStyle:{width:"128rpx",height:"128rpx"},attrs:{src:t.imgUrl+"tx.png"}}),e("v-uni-view",{staticClass:"flex_column ml30 mt10"},[e("v-uni-text",{staticClass:"f32 bold",staticStyle:{color:"#333"}},[t._v(t._s(t.phone))]),e("v-uni-view",{staticClass:"mt20 f18 f-center plr20",staticStyle:{color:"#F5373A",height:"42rpx","line-height":"42rpx",background:"#FFFFFF","border-radius":"21rpx",border:"1rpx solid #F5373A"}},[e("v-uni-text",[t._v("积分:"+t._s(t.integral))])],1)],1)],1),e("v-uni-view",{staticClass:"flex_column flex_items pos",staticStyle:{"z-index":"1"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goprize.apply(void 0,arguments)}}},[e("v-uni-image",{staticStyle:{width:"42rpx",height:"58rpx"},attrs:{src:t.imgUrl+"qd.png",mode:""}}),e("v-uni-view",{staticClass:"f-center f16",staticStyle:{color:"#fff",width:"94rpx",height:"30rpx",background:"linear-gradient(180deg, #FCAA64 0%, #FD7A39 100%)","border-radius":"15rpx"}},[t._v("我的奖品")])],1),e("v-uni-image",{staticClass:"abs",staticStyle:{width:"587rpx",height:"587rpx","z-index":"0",right:"-166rpx",top:"-122rpx"},attrs:{src:t.imgUrl+"gb.png",mode:""}})],1),e("v-uni-view",{staticClass:"t22 mt50 pos plr30 ptb20 flex_column",staticStyle:{"z-index":"1"}},[e("v-uni-text",{staticClass:"f32 bold",staticStyle:{color:"#fff"}},[t._v("我的活动")]),e("v-uni-view",{staticClass:"mt20 flex_start flex_items",staticStyle:{"overflow-x":"auto",width:"100%"}},t._l(t.hotli