启程易购后端代码
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.
qicheng_shop_backend/public/static/js/pages-points_mall-index.496...

1 line
13 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-index"],{2971:function(t,i,e){"use strict";e.r(i);var a=e("2d9f"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=o.a},"2d9f":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("14d9"),e("fb6a"),e("3c65"),e("c975");var a=e("26cb"),o=e("9252"),n=e("f26a"),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},7648:function(t,i,e){"use strict";e.r(i);var a=e("7888"),o=e("2971");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);e("d644");var d=e("f0c5"),r=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"52d71b29",null,!1,a["a"],void 0);i["default"]=r.exports},7888:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"points-swiper"},[e("v-uni-image",{staticClass:"bag",attrs:{src:t.domain+"/static/images/jf-head.png",mode:""}}),e("v-uni-view",{staticClass:"swiper"},[e("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:t.autoplay,circular:t.circular,interval:t.interval,duration:t.duration,"indicator-color":"rgba(255,255,255,0.6)","indicator-active-color":"#fff"}},[t._l(t.imgUrls,(function(i,a){return[e("v-uni-swiper-item",[e("v-uni-image",{staticClass:"slide-image",attrs:{src:i.pic},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages(i.url)}}})],1)]}))],2)],1)],1),t.modelLength<=10?e("v-uni-view",{staticClass:"model"},t._l(t.modelList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"model-list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages(i.url)}}},[e("v-uni-image",{staticClass:"img",attrs:{src:i.pic,mode:""}}),e("v-uni-view",{staticClass:"model-name line1"},[t._v(t._s(i.name))])],1)})),1):e("v-uni-view",{st