1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0093":function(t,e,i){"use strict";i.r(e);var a=i("71c8"),n=i("eefb");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("ebb9");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"3fa99dd0",null,!1,a["a"],void 0);e["default"]=o.exports},"03f4":function(t,e,i){"use strict";var a=i("efa7"),n=i.n(a);n.a},"0f2a":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("4284")),s={name:"u-line-progress",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{lineWidth:0}},watch:{percentage:function(t){this.resizeProgressWidth()}},computed:{progressStyle:function(){var t={};return t.width=this.lineWidth,t.backgroundColor=this.activeColor,t.height=uni.$u.addUnit(this.height),t},innserPercentage:function(){return uni.$u.range(0,100,this.percentage)}},mounted:function(){this.init()},methods:{init:function(){var t=this;uni.$u.sleep(20).then((function(){t.resizeProgressWidth()}))},getProgressWidth:function(){return this.$uGetRect(".u-line-progress__background")},resizeProgressWidth:function(){var t=this;this.getProgressWidth().then((function(e){var i=e.width;t.lineWidth=i*t.innserPercentage/100+"px"}))}}};e.default=s},"1d85":function(t,e,i){"use strict";i.r(e);var a=i("3bad"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"3bad":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b");var a={data:function(){return{istrue:!1,imgUrl:"",form:{keywords:""},activits2:[{m1:"18.8",tt:"优酷年卡+酷狗豪华年卡",jf:"1500",z:5},{m1:"18.8",tt:"优酷年卡+酷狗豪华年卡",jf:"1500",z:5}],mlist:[],whop:{min_price:"",max_price:"",page:1,pageSize:1100},whoindex:0,goodlist:[],banners:[],hotActivity:[],hotProduct:[],hotproducts:[]}},onLoad:function(){this.imgUrl=this.api.imgUrl,this.gettoken()},methods:{gettoken:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.login({account:"testq12",password:"123456"}).then((function(e){console.log(e),200==e.data.code?(uni.setStorageSync("token",e.data.data.authtoken),uni.setStorageSync("phone",e.data.data.phone),uni.setStorageSync("uu",e.data.data.id),t.getdata()):uni.showToast({title:e.data.message,icon:"none"})}))},getdata:function(){var t=this;this.api.homedata().then((function(e){console.log(e),200==e.data.code?(0!=e.data.data.hotActivity.length&&e.data.data.hotActivity.forEach((function(t,e){t.rule=JSON.parse(t.rule)})),t.banners=e.data.data.banner,t.hotActivity=e.data.data.hotActivity,t.hotproducts=e.data.data.product1,t.goodlist=e.data.data.hotProduct,t.istrue=!0,uni.hideLoading()):uni.showToast({icon:"error",title:e.data.message})}))},getremtag:function(){var t=this;this.api.getremmedtag().then((function(e){console.log(e),200==e.data.code?(t.mlist=e.data.data,t.whop.min_price=e.data.data[0].min_price,t.whop.max_price=e.data.data[0].max_price):uni.showToast({title:e.data.message,icon:"none"})}))},gethotpro:function(){var t=this;this.api.gethotproduct(this.whop).then((function(e){200==e.data.code?(t.goodlist=e.data.data.data,t.istrue=!0,uni.hideLoading()):uni.showToast({title:e.data.message,icon:"none"})}))},doSearch:function(){if(""==this.form.keywords)return uni.showToast({title:"请输入搜索内容",icon:"none"}),!1;uni.navigateTo({url:"/pages/exchange/index?keywords="+this.form.keywords})},watchgo:function(){uni.showToast({title:"配置中,敬请期待",icon:"none"})},goexchange:function(t){uni.navigateTo({url:"/pages/exchange/index?keyindex="+t})},gomyfen:function(){uni.navigateTo({url:"/pages/my/index"})},gomyorder:function(){uni.navigateTo({url:"/pages/order/index"})},moreac:function(){uni.navigateTo({url:"/pages/activity/index"})},godetail:function(t){uni.navigateTo({url:"/pages/product/detail?id="+t})},goout:function(t){uni.navigateTo({url:"/pages/outline/index?src="+t})},getp:function(t,e
|