zx/public/static/js/pages-points_mall-index.b27...

1 line
13 KiB
JavaScript
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-index"],{"02f5":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("aa9c"),e("f7a5"),e("3efd"),e("5ef2");var a=e("8f59"),o=e("475f"),n=e("aa10"),d={components:{},data:function(){return{tabClick:0,autoplay:!0,circular:!0,interval:3e3,duration:500,imgUrls:[],goodList:[],modelList:[],modelLength:0,tabTitle:[],domain:n.HTTP_REQUEST_URL,loadend:!1,loading:!1,loadTitle:"加载更多",where:{page:1,limit:10,scope:""}}},computed:(0,a.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.getIntegralHome(),this.getIntegralScope(),this.getIntegralGoods()},watch:{},onShow:function(){},methods:{getIntegralHome:function(){var t=this;(0,o.getIntegralHome)().then((function(i){t.imgUrls=i.data.banner,t.modelList=i.data.district,t.modelLength=i.data.district.length,t.modelLength>10&&(t.modelList=t.chunk(t.modelList,10))}))},chunk:function(t,i){var e=0,a=e,o=[];while(e<t.length)e+=i,o.push(t.slice(a,e)),a=e;return o},getIntegralScope:function(){var t=this;(0,o.getIntegralScope)().then((function(i){i.data.unshift({title:"全部",group_data_id:"",min:"",max:""}),t.tabTitle=i.data})).catch((function(i){t.loading=!1,uni.showToast({title:i,icon:"none"})}))},longClick:function(t,i){this.tabClick=t,i.min||i.max?(i.min=i.min||0,i.max=i.max||0,this.where.scope=i.min+","+i.max):this.where.scope="",this.where.page=1,this.loading=!1,this.loadend=!1,this.goodList=[],this.getIntegralGoods()},getIntegralGoods:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,o.getIntegralGoodsList)(t.where).then((function(i){var e=i.data.list,a=t.$util.SplitArray(e,t.goodList),o=e.length<t.where.limit;t.loadend=o,t.loading=!1,t.loadTitle=o?"已全部加载":"加载更多",t.$set(t,"goodList",a),t.$set(t.where,"page",t.where.page+1)})).catch((function(i){t.loading=!1,uni.showToast({title:i,icon:"none"})})))},goGoodsDetail:function(t){uni.navigateTo({url:"/pages/points_mall/integral_goods_details?id=".concat(t.product_id)})},goPages:function(t){-1!=t.indexOf("http")?location.href=t:-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/index/index","/pages/plant_grass/index"].indexOf(t)?uni.navigateTo({url:t+"?delta=0"}):uni.switchTab({url:t})}},onReachBottom:function(){this.getIntegralGoods()}};i.default=d},"14d3":function(t,i,e){var a=e("c86c");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.swiper[data-v-52d71b29],\nuni-swiper[data-v-52d71b29],\nuni-swiper-item[data-v-52d71b29],\n.slide-image[data-v-52d71b29]{width:100%;height:%?280?%;border-radius:%?16?%}[data-v-52d71b29] .uni-swiper-wrapper{border-radius:%?16?%}.swiper[data-v-52d71b29]{padding:%?30?%}.points-swiper[data-v-52d71b29]{position:relative;width:100%;background-color:#fff}.points-swiper .bag[data-v-52d71b29]{position:absolute;width:100%;height:%?285?%}.points-swiper .points-swiper-sty[data-v-52d71b29]{padding:%?20?% %?26?%}.model-swiper[data-v-52d71b29]{position:relative;width:100%}.model-swiper uni-swiper[data-v-52d71b29]{height:%?380?%}.model-swiper[data-v-52d