shop-php/public/static/js/pages-activity-topic_detail-index.1f08aecf.js

1 line
26 KiB
JavaScript
Raw Normal View History

2023-09-25 11:25:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-topic_detail-index"],{"09f3":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var n=i("26cb"),o=i("1586"),r=i("5da1"),s=a(i("5d40")),c=a(i("b106")),u=a(i("6011")),d=getApp(),l={computed:(0,n.mapGetters)(["isLogin","uid","viewColor"]),components:{home:s.default,easyLoadimage:c.default,authorize:u.default},data:function(){return{group_id:"",systemInfo:d.globalData.statusBarHeight,bgColor:"",activety_goods:[],page:1,limit:30,loading:!1,loadend:!1,pageloading:!1,autoplay:!0,circular:!0,interval:3e3,duration:500,theme:1,topicData:{},imgUrls:[],label_id:"",isAuto:!1,isShowAuth:!1,merchant:{}}},onLoad:function(t){this.group_id=t.id,this.getTopicDetail()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getTopicDetail()},authColse:function(t){this.isShowAuth=t},goback:function(){uni.navigateBack()},goHome:function(){uni.switchTab({url:"/pages/index/index"})},goStore:function(t){uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},getTopicDetail:function(){var t=this;(0,o.getTopicDetail)(t.group_id).then((function(e){t.$set(t,"topicData",e.data),t.$set(t,"theme",e.data.type),t.$set(t,"bgColor",e.data.color),t.$set(t,"imgUrls",e.data.banner),t.$set(t,"label_id",e.data.label_id),t.$set(t,"merchant",e.data.merchant),t.getProList()})).catch((function(t){}))},getProList:function(){var t=this,e={page:t.page,limit:t.limit,labels:t.label_id,mer_id:t.topicData.group_mer_id};t.loadend||t.pageloading||(this.pageloading=!0,(0,o.getTopicProLst)(e).then((function(e){var i=e.data.list,a=i.length<t.limit;t.page++,t.activety_goods=t.activety_goods.concat(i),t.page=t.page,t.pageloading=!1,t.loadend=a})).catch((function(e){t.pageloading=!1})))},goDetail:function(t){var e=this;(0,r.goShopDetail)(t,this.uid).then((function(i){e.isLogin?(0,o.initiateAssistApi)(t.activity_id).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(e.isAuto=!0,e.isShowAuth=!0)}))}},onReachBottom:function(){this.getProList()},onPageScroll:function(t){uni.$emit("scroll")}};e.default=l},1586:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return n.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return n.default.get("store/product/assist/count",{},{noAuth:!0})},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return n.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return n.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return n.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return n.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return n.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return n.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getCombinationUser=function(t){return n.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return n.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return n.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return n.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return n.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return n.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTim