zx/public/static/js/pages-activity-rank-index.6...

1 line
15 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-rank-index"],{"259c":function(t,e,i){"use strict";i.r(e);var a=i("b7b7"),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},"2ec5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2fce":function(t,e,i){var a=i("c86c"),n=i("2ec5"),o=i("5cad"),r=i("31e9");e=a(!1);var s=n(o),c=n(r);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/* 文章场景相关 */.content[data-v-67a86fcc]{background:#171717;min-height:100vh}.rank_header[data-v-67a86fcc]{background-size:cover;height:%?270?%;position:fixed;top:0;left:0;display:block;z-index:9999;background-color:#171717}.rank_header .cate_name[data-v-67a86fcc]{text-align:center;position:relative;top:%?80?%}.rank_header .cate_name .name[data-v-67a86fcc]{color:#ffe9be;font-weight:700;font-size:%?44?%;padding:0 %?64?%;position:relative;display:inline-block}.rank_header .cate_name .name .title_icon[data-v-67a86fcc]{content:"";display:inline-block;width:%?38?%;height:%?58?%;background-repeat:no-repeat;background-size:100% 100%;position:absolute;top:0}.rank_header .cate_name .name .title_icon.icon_left[data-v-67a86fcc]{left:0}.rank_header .cate_name .name .title_icon.icon_right[data-v-67a86fcc]{right:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.header[data-v-67a86fcc]{position:relative;z-index:6;display:flex;align-items:center;padding-right:%?34?%;height:43px;padding-left:%?33?%}.header .head-menu[data-v-67a86fcc]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:27px;width:70px;border-radius:13px}.header .head-menu .icon-xiangzuo[data-v-67a86fcc]{font-size:%?32?%;color:#fff}.header .head-menu .iconfont[data-v-67a86fcc]{-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-67a86fcc]{border-right:1px solid #fff}.head-menu[data-v-67a86fcc]{display:flex;align-items:center;height:%?54?%;width:%?140?%;background:transparent;border:1px solid hsla(0,0%,59.2%,.2);border-radius:%?27?%;position:relative;z-index:9999}.head-menu[data-v-67a86fcc]:after{content:"";position:absolute;width:1px;height:%?26?%;background-color:#eaeaea;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.head-menu .iconfont[data-v-67a86fcc]{flex:1;text-align:center;color:#fff;box-sizing:border-box}.scroll_box[data-v-67a86fcc]{width:%?750?%;box-sizing:border-box;line-height:%?50?%;padding-left:%?32?%;margin-top:%?140?%}.scroll_item[data-v-67a86fcc]{display:inline-block;font-size:%?28?%;color:#6d6d6d}.scroll_item[data-v-67a86fcc]:last-child{margin-right:%?40?%}.scroll_item_active[data-v-67a86fcc]{font-weight:500;position:relative;text-align:center;color:#fff}.scroll_item_active[data-v-67a86fcc]::after{content:"";display:block;margin:%?10?% auto 0;width:80%;height:%?4?%;border-radius:%?2?%;background:#fff}.scroll_item ~ .scroll_item[data-v-67a86fcc]{margin-left:%?40?%}.rank_list[data-v-67a86fcc]{padding-top:%?270?%;padding-bottom:%?32?%}.rank_list .item[data-v-67a86fcc]{border-radius:%?16?%;background:#fff;margin-top:%?30?%;padding:%?28?% %?30?% %?32?%;position:relative}.rank_list .item .rank[data-v-67a86fcc]{position:absolute;top:0;left:%?20?%;width:%?50?%;height:%?61?%;display:flex;justify-content:center;line-height:%?61?%;font-size:%?30?%;z-index:10;background-size:100% 100%;background-image:url('+s+");font-family:黑体;font-weight:700}.rank_list .item .rank.rank0[data-v-67a86fcc], .rank_list .item .rank.rank1[data-v-67a86fcc], .rank_list .item .rank.rank2[data-v-67a86fcc]{background-image:url("+c+")}.rank_list .item .name[data-v-67a86fcc]{width:%?382?%;height:%?76?%;line-height:%?38?%;color:#282828;font-weight:500;font-size:%?32?%}.rank_list .mt-18[data-v-67a86fcc]{margin-top:%?18?%}.rank_list .ot_price[data-v-67a86fcc]{font-weight:300;color:#6d6d6d;padding-left:%?16?%}.rank_list .goods-msg[data-v-67a86fcc]{flex:1;margin-left:%?20?%}.rank_list .goods-msg .list[data-v-67a86fcc]{background:#fdf8ee;border-radius:%?6?%;line-height:%?57?%;color:#666;font-size:%?26?%;padding:0 %?12?%}.rank_list .goods-msg .list .iconfont[data-v-67a86fcc]{color:#ffb31c;margin-right:%?12?%}.rank_list .pictrue[data-v-67a86fcc]{width:%?240?%;height:%?240?%;position:relative;flex:1}.rank_list .pictrue uni-image[data-v-67a86fcc]{width:100%;height:100%;border-radius:%?12?% 0 0 %?12?%}",""]),t.exports=e},"31e9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABsBAMAAABndKpwAAAAG1BMVEUAAAD/3qT/3aP/36X/36P/3qT/3aT/3qP/3qQizrOVAAAACHRSTlMA4JAwUKDw0IgaO9gAAACNSURBVFjD7c0xCoNQFETRgWQFqWxDNhCygiC4A3EHgrU7sBGXLfxGHk/+YGF3pz9ztV0cAAAAAAAAAAAAAAAAAADgbrD23XQFjH/pOVhw3KvsNKLT+7IS8WDppWNt48Drq7DHuwqWj9J+TQLpvhZRvq9HlO5NROneRBTvfUTx3kcU731E8d5HNId7H9kBhErzLdu5BHsAAAAASUVORK5CYII="},4320: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",{staticClass:"content"},[i("v-uni-view",{staticClass:"rank_header",style:{"background-image":"url("+t.domain+"/static/images/rank_header.png)"}},[i("v-uni-view",{staticClass:"cate_name"},[i("v-uni-text",{staticClass:"name line1"},[i("v-uni-text",{staticClass:"title_icon icon_left",style:{"background-image":"url("+t.domain+"/static/images/rank-title.png)"}}),t._v(t._s(0!=t.active&&t.cate_name?t.cate_name+"热卖榜":"热销TOP总榜单")),i("v-uni-text",{staticClass:"title_icon icon_right",style:{"background-image":"url("+t.domain+"/static/images/rank-title.png)"}})],1)],1),i("v-uni-view",{staticClass:"scroll_box"},[i("v-uni-scroll-view",{staticStyle:{"white-space":"nowrap","vertical-align":"middle"},attrs:{"scroll-x":"true","show-scrollbar":"false","scroll-left":t.tabLeft}},t._l(t.categoryList,(function(e,a){return i("v-uni-view",{key:e.store_category_id,staticClass:"scroll_item",class:t.active==e.store_category_id?"scroll_item_active":"",attrs:{id:"cate"+e.store_category_id,"data-index":e.store_category_id},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.checkActive(e,a,!0)}}},[t._v(t._s(e.cate_name))])})),1)],1)],1),i("v-uni-view",{staticClass:"rank_list pad30"},[i("v-uni-swiper",{style:"height:"+t.swiperHeight+"px;",attrs:{interval:t.interval,"indicator-color":"rgba(255,255,255,0.6)",current:t.swiperCurrent},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.swiperChange.apply(void 0,arguments)}}},[t._l(t.categoryList,(function(e,a){return[i("v-uni-swiper-item",{key:e.store_category_id+"_0",attrs:{"item-id":""+e.store_category_id}},[i("v-uni-scroll-view",{style:"height:"+t.swiperHeight+"px",attrs:{"scroll-y":"true",id:"goods"}},t._l(t.spuTopList,(function(e,a){return i("v-uni-view",{key:e.spu_id,staticClass:"item acea-row",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.godDetail(e)}}},[i("v-uni-view",{staticClass:"rank",class:"rank"+a,style:{color:a<3?"#CE8F21":"#986561"}},[t._v(t._s(a<9?"0"+(a+1):a+1))]),i("v-uni-view",{staticClass:"pictrue on"},[i("v-uni-image",{staticClass:"on",attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"goods-msg pad16 acea-row row-column row-between"},[i("v-uni-text",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),e.sales>0?i("v-uni-view",{staticClass:"list"},[i("v-uni-text",{staticClass:"iconfont icon-goumai"}),t._v(t._s(e.sales>1e4?e.sales/1e4+"万":e.sales)+"人买过")],1):t._e(),i("v-uni-view",{staticClass:"mt-18 acea-row row-bottom"},[i("BaseMoney",{attrs:{money:e.price,symbolSize:"26",integerSize:"36",decimalSize:"28",incolor:"E93323",weight:!0}}),i("BaseMoney",{staticClass:"ml-16",attrs:{money:e.ot_price,symbolSize:"22",integerSize:"22",decimalSize:"22",incolor:"999999",line:!0}})],1)],1)],1)})),1)],1)]}))],2)],1)],1)},n=[]},"5cad":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABsBAMAAABndKpwAAAAG1BMVEUAAADv0c/v0c/v1c/v0s/v0s/u0c/v0s/v0tBW+ZXFAAAACHRSTlMA4JAwUKDw0IgaO9gAAACNSURBVFjD7c0xCoNQFETRgWQFqWxDNhCygiC4A3EHgrU7sBGXLfxGHk/+YGF3pz9ztV0cAAAAAAAAAAAAAAAAAADgbrD23XQFjH/pOVhw3KvsNKLT+7IS8WDppWNt48Drq7DHuwqWj9J+TQLpvhZRvq9HlO5NROneRBTvfUTx3kcU731E8d5HNId7H9kBhErzLdu5BHsAAAAASUVORK5CYII="},8067:function(t,e,i){"use strict";i.r(e);var a=i("4320"),n=i("259c");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("b167");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"67a86fcc",null,!1,a["a"],void 0);e["default"]=s.exports},b167:function(t,e,i){"use strict";var a=i("c793"),n=i.n(a);n.a},b7b7:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223");var n=a(i("b7c7")),o=i("d727"),r=i("aa10"),s={data:function(){return{categoryList:[{store_category_id:0,cate_name:"总榜"}],cate_name:"",spuTopList:[],active:0,pro_top_banner:"https://zhongbang-1257983696.cos.ap-beijing.myqcloud.com/uploads/def/20220801/383c0026840f70a9b4e33a43c6bd3341.png",scrollInto:"",domain:r.HTTP_REQUEST_URL,tabClick:0,tabLeft:0,isLeft:0,isWidth:0,windowHeight:0,swiperHeight:0,swiperCur:0,circular:!0,isScroll:!1,interval:3e3,currentItemId:0,swiperCurrent:0}},created:function(){var t=this;uni.getSystemInfo({success:function(e){t.isWidth=e.windowWidth/6,t.windowHeight=e.windowHeight,t.$set(t,"swiperHeight",t.windowHeight-150)}})},onLoad:function(t){this.spuTop(t.cate_id||0),t.cate_id&&(this.active=t.cate_id)},methods:{spuTop:function(t){var e=this;(0,o.spuTop)().then((function(i){e.categoryList=[].concat((0,n.default)(e.categoryList),(0,n.default)(i.data)),e.cate_name=e.getCate(t,e.categoryList)||"",e.$nextTick((function(){e.getSpuTopList(t),e.active=t&&e.cate_name?t:0,e.scrollInto="cate".concat(t);var i=(e.swiperCur-2)*e.isWidth;e.$set(e,"tabLeft",i)}))}))},getSpuTopList:function(t){var e=this;t=this.cate_name?t:0,(0,o.spuTopList)({cate_pid:t}).then((function(t){e.spuTopList=t.data[0]&&t.data[0]["list"]||[]}))},swiperChange:function(t){var e=t.detail,i=e.current,a=e.source,n=e.currentItemId;if(("autoplay"===a||"touch"===a)&&(this.active=n,this.swiperCur=i,this.checkActive(this.categoryList[this.swiperCur],this.swiperCur,!1),this.categoryList.length>6)){var o=this.swiperCur-2;o=o<=0?0:o;var r=(this.swiperCur-2)*this.isWidth;this.$nextTick((function(){this.$set(this,"tabLeft",r)}))}},checkActive:function(t,e,i){this.active=t.store_category_id,this.cate_name=t.cate_name,this.swiperCurrent=e,this.swiperCur=e,this.isScroll=i,this.tabClick=e,this.isLeft=e*this.isWidth,this.spuTopList=[],this.getSpuTopList(t.store_category_id)},godDetail:function(t){uni.navigateTo({url:"/pages/goods_details/index?id="+t.product_id})},getCate:function(t,e){for(var i=0;i<e.length;i++)if(e[i].store_category_id==t)return this.swiperCur=i,e[i]["cate_name"]}}};e.default=s},c793:function(t,e,i){var a=i("2fce");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("1de91a6d",a,!0,{sourceMap:!1,shadowMode:!1})},d727:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").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("fea3"))}}]);