启程易购后端代码
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-activity-topic_detail...

1 lines
20 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-topic_detail-index"],{"041f":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(t){return n.default.get("store/product/assist/count",t,{noAuth:!0})},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return n.default.get("store/product/assist/detail/"+t,e)},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.getSeckillIndexTime=function(){return n.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return n.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return n.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return n.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return n.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return n.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return n.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return n.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return n.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return n.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var n=a(i("3314"))},"088e":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".pictrueBox[data-v-50bf5845]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-50bf5845]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-50bf5845]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-50bf5845]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-50bf5845]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-50bf5845]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-50bf5845]{width:100%;height:100%}.pictruea[data-v-50bf5845]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},"1df1":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={easyLoadimage:i("2243").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page-container",style:t.viewColor},[i("v-uni-view",{staticClass:"topic-home",style:"background-color: "+t.bgColor},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"head-menu"},[i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goback.apply(void 0,arguments)}}}),t.merchant?i("v-uni-view",{staticClass:"iconfont merchant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goStore(t.topicData.group_mer_id)}}},[i("v-uni-image",{staticClass:"icon_merchant",attrs:{src:t.merchant.mer_avatar}})],1):i("v-uni-view",{staticClass:"iconfont icon-shouye4",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHome.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"main_count"},[i("v-uni-view",{staticClass:"topic_image"},[i("v-uni-image",{staticClass:"picture",attrs:{src:t.topicData.image,mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"main"},[t.imgUrls.length>0?i("v-uni-view",{staticClass:"slider-wrapper"},[i("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(t,e){return[i("v-uni-swiper-item",[i("v-uni-view",{staticClass:"slide-navigator acea-row row-between-wrapper"},[i("v-uni-image",{staticClass:"slide-image",attrs:{src:t}})],1)],1)]}))],2)],1):t._e(),i("v-uni-view",{staticClass:"product_list",class:["theme"+t.theme,{"acea-row row-between-wrapper":2==t.theme||""==t.theme}]},t._l(t.activety_goods,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1)],1),1!=t.theme?i("v-uni-view",{staticClass:"score"},[t._v(t._s(e.rate)+"评分 "+t._s(e.reply_count)+"条评论")]):t._e()],1)],1)})),1)],1)],1)],1),i("home")],1)},o=[]},"3af3":function(t,e,i){var a=i("4f16");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("c0b300ac",a,!0,{sourceMap:!1,shadowMode:!1})},4457:function(t,e,i){"use strict";var a=i("3af3"),n=i.n(a);n.a},"4cc1":function(t,e,i){"use strict";i.r(e);var a=i("615a"),n=i("4dc2");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("e68d");var c=i("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"50bf5845",null,!1,a["a"],void 0);e["default"]=r.exports},"4dc2":function(t,e,i){"use strict";i.r(e);var a=i("fa4c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"4f16":function(t,e,i){var a=i("24fb");e=a(!1),e.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/* 文章场景相关 */.header[data-v-627b1fdc]{position:absolute;z-index:6;display:flex;align-items:center;padding-right:%?34?%;height:43px;padding-left:%?33?%}.header .head-menu[data-v-627b1fdc]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:27px;width:70px;background:rgba(0,0,0,.3);border-radius:13px}.header .head-menu .icon-xiangzuo[data-v-627b1fdc]{font-size:%?32?%;color:#fff}.header .head-menu .iconfont[data-v-627b1fdc]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;color:#fff;box-sizing:border-box}.header .head-menu .iconfont.icon-xiangzuo[data-v-627b1fdc]{border-right:1px solid #fff}.header .head-menu .merchant[data-v-627b1fdc]{width:%?36?%;height:%?36?%}.header .head-menu .merchant .icon_merchant[data-v-627b1fdc]{width:%?36?%;height:%?36?%;border-radius:100%}.topic-home[data-v-627b1fdc]{position:relative;min-height:100vh;padding-bottom:%?30?%}.topic-home .topic_image[data-v-627b1fdc]{line-height:0}.topic-home .topic_image .picture[data-v-627b1fdc]{width:%?750?%}.main_count .main[data-v-627b1fdc]{padding:0 %?20?%}.main_count .slider-wrapper[data-v-627b1fdc]{width:%?710?%;height:%?250?%;margin:%?40?% 0}.main_count .slider-wrapper uni-swiper[data-v-627b1fdc]{height:%?250?%}.main_count .slider-wrapper .slide-image[data-v-627b1fdc]{width:%?710?%;height:%?250?%;border-radius:%?16?%}.main_count .product_list .item[data-v-627b1fdc]{background-color:#fff}.main_count .product_list .image[data-v-627b1fdc]{width:100%;height:100%;border-radius:%?20?% %?20?% 0 0}.main_count .product_list .text[data-v-627b1fdc]{color:#222}.main_count .product_list .money[data-v-627b1fdc]{display:flex;align-items:center;font-size:%?26?%;font-weight:700;margin-top:%?8?%;color:var(--view-priceColor)}.main_count .product_list .score[data-v-627b1fdc]{margin-top:%?10?%;color:#737373;font-size:%?20?%}.main_count .product_list.theme2 .item[data-v-627b1fdc], .main_count .product_list.theme .item[data-v-627b1fdc]{position:relative;width:%?345?%;margin-bottom:%?20?%;border-radius:%?20?%}.main_count .product_list.theme2 .item .pictrue[data-v-627b1fdc], .main_count .product_list.theme .item .pictrue[data-v-627b1fdc]{position:relative;width:100%;height:%?345?%}.main_count .product_list.theme2 .item[data-v-627b1fdc] uni-image, .main_count .product_list.theme2 .item[data-v-627b1fdc] .easy-loadimage, .main_count .product_list.theme2 .item uni-image[data-v-627b1fdc], .main_count .product_list.theme .item[data-v-627b1fdc] uni-image, .main_count .product_list.theme .item[data-v-627b1fdc] .easy-loadimage, .main_count .product_list.theme .item uni-image[data-v-627b1fdc]{height:%?345?%}.main_count .product_list.theme2 .item .text[data-v-627b1fdc], .main_count .product_list.theme .item .text[data-v-627b1fdc]{padding:%?20?% %?17?% %?26?% %?17?%}.main_count .product_list.theme2 .item .name[data-v-627b1fdc], .main_count .product_list.theme .item .name[data-v-627b1fdc]{font-size:13px;color:#282828;margin:11px 0 5px 0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.main_count .product_list.theme1 .item[data-v-627b1fdc]{display:inline-block;width:%?225?%;margin:0 %?19?% %?16?% 0;border-radius:%?10?%}.main_count .product_list.theme1 .item[data-v-627b1fdc]:nth-child(3n){margin-right:0}.main_count .product_list.theme1 .pictrue[data-v-627b1fdc]{position:relative;width:100%;height:%?226?%}.main_count .product_list.theme1 .pictrue .image[data-v-627b1fdc]{border-radius:%?10?% %?10?% 0 0}.main_count .product_list.theme1[data-v-627b1fdc] uni-image, .main_count .product_list.theme1[data-v-627b1fdc] .easy-loadimage, .main_count .product_list.theme1 uni-image[data-v-627b1fdc]{width:100%;height:%?226?%;border-radius:%?10?% %?10?% 0 0}.main_count .product_list.theme1 .text[data-v-627b1fdc]{padding:%?12?% %?14?% %?16?%}.main_count .product_list.theme1 .text .name[data-v-627b1fdc]{font-size:13px;color:#282828;margin-bottom:%?10?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:%?35?%;height:%?70?%}.main_count .product_list.theme1 .text .money[data-v-627b1fdc]{font-size:%?22?%}.main_count .product_list.theme2[data-v-627b1fdc]{display:flex;justify-content:space-between;flex-wrap:wrap}.main_count .product_list.theme2 .pictrue[data-v-627b1fdc], .main_count .product_list.theme2[data-v-627b1fdc] uni-image, .main_count .product_list.theme2[data-v-627b1fdc] .easy-loadimage, .main_count .product_list.theme2 uni-image[data-v-627b1fdc]{border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3 .item[data-v-627b1fdc]{width:%?710?%;border-radius:%?20?%;margin-bottom:%?30?%}.main_count .product_list.theme3 .num[data-v-627b1fdc]{font-family:PingFangSC-Semibold;font-size:%?32?%}.main_count .product_list.theme3 .pictrue[data-v-627b1fdc]{position:relative;width:%?710?%;height:%?710?%}.main_count .product_list.theme3 .pictrue .image[data-v-627b1fdc]{border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3[data-v-627b1fdc] uni-image, .main_count .product_list.theme3[data-v-627b1fdc] .easy-loadimage, .main_count .product_list.theme3 uni-image[data-v-627b1fdc]{width:%?710?%;height:%?710?%;max-height:%?710?%;border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3 .text[data-v-627b1fdc]{padding:%?24?% %?30?% %?34?%;position:relative}.main_count .product_list.theme3 .text .name[data-v-627b1fdc]{color:#222;font-size:%?34?%;margin-bottom:%?16?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.main_count .product_list.theme3 .text .money[data-v-627b1fdc]{font-size:%?22?%;font-family:PingFangSC-Semibold;font-weight:700}.main_count .product_list.theme3 .text .score[data-v-627b1fdc]{color:#737373;display:inline-block;float:right;position:relative;top:%?-34?%;margin-top:0}',""]),t.exports=e},"615a":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?t.domain+"/static/images/navbtn_open.gif":t.domain+"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},n=[]},9475:function(t,e,i){var a=i("088e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3a17a50c",a,!0,{sourceMap:!1,shadowMode:!1})},"964c":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("041f"),c=i("f823"),r=a(i("4cc1")),s=a(i("2243")),d=i("ddb3"),u=getApp(),l={computed:(0,n.mapGetters)(["isLogin","uid","viewColor"]),components:{home:r.default,easyLoadimage:s.default},data:function(){return{group_id:"",systemInfo:u.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:"",merchant:{}}},onLoad:function(t){this.group_id=t.id,this.getTopicDetail()},methods:{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,e=this;(0,o.getTopicDetail)(e.group_id).then((function(t){e.$set(e,"topicData",t.data),e.$set(e,"theme",t.data.type),e.$set(e,"bgColor",t.data.color),e.$set(e,"imgUrls",t.data.banner),e.$set(e,"label_id",t.data.label_id),e.$set(e,"merchant",t.data.merchant),e.getProList()})).catch((function(e){return t.$util.Tips({title:e},{tab:3,url:1})}))},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,c.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"})})):(0,d.toLogin)()}))}},onReachBottom:function(){this.getProList()},onPageScroll:function(t){uni.$emit("scroll")}};e.default=l},cfb4:function(t,e,i){"use strict";i.r(e);var a=i("1df1"),n=i("d0c4");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4457");var c=i("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"627b1fdc",null,!1,a["a"],void 0);e["default"]=r.exports},d0c4:function(t,e,i){"use strict";i.r(e);var a=i("964c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},e68d:function(t,e,i){"use strict";var a=i("9475"),n=i.n(a);n.a},f823:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=function(t,e){return new Promise((function(e){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):e(t)}))},i("d3b7"),i("99af")},fa4c:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("26cb"),n=i("f26a"),o={name:"Home",props:{},data:function(){return{domain:n.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,a.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=o}}]);