zx/public/static/js/pages-points_mall-integral_...

1 line
13 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-integral_goods_list"],{"361f":function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e("7e00");var o=e("475f"),n=a(e("d3e2")),s=e("8f59"),r=(e("4a82"),e("aa10")),c={computed:(0,s.mapGetters)(["uid","viewColor","keyColor"]),components:{recommend:n.default},data:function(){return{productList:[],is_switch:!0,where:{order:"",keyword:"",page:1,cate_id:"",limit:20},price:0,stock:0,nows:!1,loadend:!1,loading:!1,loadTitle:"加载更多",title:"",hostProduct:[],hotPage:1,hotLimit:10,hotScroll:!1,domain:r.HTTP_REQUEST_URL}},onLoad:function(t){this.where.cid=t.cid||0,this.$set(this.where,"cate_id",t.cate_id||""),this.$set(this.where,"keyword",t.searchValue||""),this.get_product_list()},onShow:function(){uni.removeStorageSync("form_type_cart")},methods:{godDetail:function(t){uni.navigateTo({url:"/pages/points_mall/integral_goods_details?id=".concat(t.product_id)})},Changswitch:function(){this.is_switch=!this.is_switch},searchSubmit:function(t){this.$set(this.where,"keyword",t.detail.value),this.productList=[],this.loadend=!1,this.loading=!1,this.$set(this.where,"page",1),this.get_product_list()},set_where:function(t){switch(t){case 1:this.price=0,this.where={keyword:"",order:"",page:1,limit:20};break;case 2:0==this.price||2==this.price?this.price=1:1==this.price&&(this.price=2),this.where.order="ot_price_asc"==this.where.order?"ot_price_desc":"ot_price_asc";break;case 3:this.price=0,this.$set(this.where,"order","sales"),this.get_product_list(!0);break}this.loadend=!1,this.loading=!1,this.productList=[],this.$set(this.where,"page",1),this.get_product_list()},get_product_list: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.productList),o=e.length<t.where.limit;t.loadend=o,t.loading=!1,t.loadTitle=o?"没有更多内容啦~":"加载更多",t.$set(t,"productList",a),t.$set(t.where,"page",t.where.page+1)})).catch((function(i){t.loading=!1,t.loadTitle="加载更多"})))}},onPullDownRefresh:function(){},onReachBottom:function(){this.get_product_list()}};i.default=c},"475f":function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.getIntegralGoodsList=function(t){return o.default.get("points/lst",t,{noAuth:!0})},i.getIntegralHome=function(){return o.default.get("points/home",{},{noAuth:!0})},i.getIntegralProductDetail=function(t){return o.default.get("points/detail/".concat(t),{},{noAuth:!0})},i.getIntegralScope=function(){return o.default.get("points/scope",{},{noAuth:!0})},i.integralOrderConfirm=function(t){return o.default.post("order/v3/check",t,{noAuth:!0})},i.integralOrderCreate=function(t){return o.default.post("order/v3/create",t,{noAuth:!0})},i.integralOrderDelete=function(t){return o.default.post("points/order/deleate/".concat(t),{},{noAuth:!0})},i.integralOrderDetail=function(t){return o.default.get("points/order/detail/".concat(t),{},{noAuth:!0})},i.integralOrderList=function(t){return o.default.get("points/order/lst",t,{noAuth:!0})},i.integralOrderTake=function(t){return o.default.post("points/order/take/".concat(t),{},{noAuth:!0})};var o=a(e("fea3"))},"7cd4":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 代码中使用如下变量同时无<EFBFBD><EFBFBD>