frontend_h5/static/js/pages-mt-login.79ca4312.js

1 line
7.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mt-login"],{"217e":function(t,i,e){"use strict";var a=e("efff"),n=e.n(a);n.a},"40fa":function(t,i,e){"use strict";e.r(i);var a=e("8677"),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},8677: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},"86c8":function(t,i,e){"use strict";e.r(i);var a=e("c968"),n=e("40fa");for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);e("217e");var r=e("f0c5"),l=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"813bb46a",null,!1,a["a"],void 0);i["default"]=l.exports},adb9:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,".three[data-v-813bb46a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}uni-page-body[data-v-813bb46a]{background:linear-gradient(180deg,#ffe4e4,hsla(0,0%,84.7%,0))!important}body.?%PAGE?%[data-v-813bb46a]{background:linear-gradient(180deg,#ffe4e4,hsla(0,0%,84.7%,0))!important}.t22[data-v-813bb46a]{background-image:url(https://mtweb.86698.cn/static/images/t2bb.png);background-size:100% 100%;width:calc(100% - %?60?%);height:%?276?%}.one[data-v-813bb46a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;width:%?115?%}\n\n/*隐藏滚动条*/[data-v-813bb46a]::-webkit-scrollbar{width:0!important;height:0!important}",""]),t.exports=i},c968: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.hotlist,(function(i,a){return e("v-uni-view",{key:a,staticClass:"p20 mr20 f-center",staticStyle:{background:"#FFFFFF","border-radius":"16rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getp(i.id,i.active_type)}}},[e("v-uni-image",{staticStyle:{width:"116rpx",height:"112rpx"},attrs:{src:i.banner,mode:"aspectFit"}}),e("v-uni-view",{staticClass:"f24 one",staticStyle:{color:"#F53A3A"}},[t._v(t._s(i.active_name))])],1)})),1)],1),e("v-uni-view",{staticClass:"flex_column plr20 mt40",staticStyle:{background:"#FFFFFF","box-shadow":"0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.06)","border-radius":"20rpx"}},[e("v-uni-view",{staticClass:"mt40 f32 bold",staticStyle:{color:"#003A6E"}},[t._v("购买记录")]),0!=t.list.length?e("v-uni-view",{staticClass:"pos",staticStyle:{"z-index":"1"}},t._l(t.list,(function(i,a){return e("v-uni-view",{key:a,staticClass:"flex_between flex_items mt30 pb30 bbe9s mt30"},[e("v-uni-view",{staticClass:"flex_start"},[e("v-uni-image",{staticStyle:{width:"108rpx",height:"108rpx",border:"12rpx"},attrs:{src:t.imgUrl+"tu.png",mode:""}}),e("v-uni-view",{staticClass:"flex_column ml30",staticStyle:{height:"108rpx"}},[e("v-uni-view",{staticClass:"f28 three",staticStyle:{color:"#1a1a1a",width:"360rpx"}},[t._v(t._s(i.product_name))]),e("v-uni-view",{staticClass:"flex_start flex_items"},[e("v-uni-view",{staticClass:"mt20 flex_start f22 ml10",staticStyle:{width:"320rpx"}},[e("v-uni-text",[t._v(t._s(i.create_time))]),e("v-uni-text",{staticStyle:{color:"#FE714D"}},[t._v("-"+t._s(i.integral)+"积分")])],1),e("v-uni-view",{staticClass:"flex_center flex_items mt10",staticStyle:{width:"134rpx",height:"54rpx",background:"linear-gradient(270deg, #F43139 0%, #FF9843 100%)","border-radius":"316rpx","margin-left":"40rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goorder(i.product_id)}}},[e("v-uni-text",{staticClass:"f24",staticStyle:{color:"#FFF"}},[t._v("查看详情")])],1)],1)],1)],1)],1)})),1):e("v-uni-view",{staticClass:"flex_center flex_items f24",staticStyle:{color:"#888",height:"600rpx",width:"100%"}},[e("v-uni-text",[t._v("--暂无数据--")])],1)],1),e("Ywatermark",{attrs:{info:"蓝色兄弟"}})],1):t._e()},n=[]},efff:function(t,i,e){var a=e("adb9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("4cd0d573",a,!0,{sourceMap:!1,shadowMode:!1})}}]);