pages-activity-rank-index.f2a4c9fe.js 13 KB

1
  1. (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 r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"7fcc":function(t,e,i){var a=i("c86c");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/* 文章场景相关 */.content[data-v-9c6f308a]{background:#fb5615;min-height:100vh}.rank_header[data-v-9c6f308a]{background-size:cover;height:%?426?%;position:fixed;top:0;left:0;display:block;z-index:9999}.rank_header .cate_name[data-v-9c6f308a]{text-align:center;position:relative;top:%?140?%;height:%?144?%}.rank_header .cate_name .name[data-v-9c6f308a]{background-image:linear-gradient(180deg,#ffebb5,#fff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-weight:700;font-size:%?52?%;position:relative;display:inline-block}.rank_header .cate_name .title_icon[data-v-9c6f308a]{content:"";display:inline-block;width:%?60?%;height:%?136?%;background-repeat:no-repeat;background-size:100% 100%}.rank_header .cate_name .title_icon.icon_right[data-v-9c6f308a]{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.scroll_box[data-v-9c6f308a]{width:%?750?%;box-sizing:border-box;line-height:%?50?%;padding-left:%?32?%;margin-top:%?160?%}.scroll_item[data-v-9c6f308a]{display:inline-block;font-size:%?28?%;color:hsla(0,0%,100%,.8)}.scroll_item[data-v-9c6f308a]:last-child{margin-right:%?40?%}.scroll_item_active[data-v-9c6f308a]{font-weight:700;position:relative;text-align:center;color:#fff}.scroll_item_active[data-v-9c6f308a]::after{content:"";display:block;margin:%?10?% auto 0;width:80%;height:%?4?%;border-radius:%?2?%;background:#fff}.scroll_item ~ .scroll_item[data-v-9c6f308a]{margin-left:%?40?%}.rank_list[data-v-9c6f308a]{padding-top:%?360?%;padding-bottom:%?32?%}.rank_list .list-price[data-v-9c6f308a]{margin-top:%?18?%;align-items:baseline}.rank_list .item[data-v-9c6f308a]{border-radius:%?16?%;background:#fff;margin-top:%?20?%;padding:%?28?% %?30?% %?32?%;position:relative}.rank_list .item .rank[data-v-9c6f308a]{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%;font-family:黑体;font-weight:700}.rank_list .item .name[data-v-9c6f308a]{width:%?382?%;height:%?76?%;line-height:%?38?%;color:#282828;font-weight:500;font-size:%?32?%}.rank_list .ot_price[data-v-9c6f308a]{font-weight:300;color:#6d6d6d;padding-left:%?16?%}.rank_list .goods-msg[data-v-9c6f308a]{flex:1;margin-left:%?20?%}.rank_list .goods-msg .list[data-v-9c6f308a]{background:#fdf8ee;line-height:%?57?%;color:#666;font-size:%?26?%;padding:0 %?12?%;border-radius:%?16?%}.rank_list .goods-msg .list .iconfont[data-v-9c6f308a]{color:#ffb31c;margin-right:%?12?%}.rank_list .goods-msg .item-price[data-v-9c6f308a]{color:var(--view-priceColor);margin-right:%?16?%}.rank_list .goods-msg .item-otprice[data-v-9c6f308a]{font-size:%?26?%;color:#999;text-decoration:line-through}.rank_list .pictrue[data-v-9c6f308a]{width:%?240?%;height:%?240?%;position:relative;flex:1}.rank_list .pictrue uni-image[data-v-9c6f308a]{width:100%;height:100%;border-radius:%?16?%}',""]),t.exports=e},8067:function(t,e,i){"use strict";i.r(e);var a=i("a94f"),n=i("259c");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("e865");var o=i("828b"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"9c6f308a",null,!1,a["a"],void 0);e["default"]=s.exports},a94f: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",style:t.viewColor},[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 acea-row row-center row-middle"},[i("v-uni-text",{staticClass:"title_icon icon_left",style:{"background-image":"url("+t.domain+"/static/images/rank-title.png)"}}),i("v-uni-text",{staticClass:"line1 name"},[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),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",backgroundImage:a<3?"url("+t.domain+"/static/images/rank.png)":"url("+t.domain+"/static/images/rank_num.png)"}},[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-a-icon_ShoppingBag"}),t._v(t._s(e.sales>1e4?(e.sales/1e4).toFixed(2)+"万":e.sales)+"人买过")],1):t._e(),i("v-uni-view",{staticClass:"list-price acea-row"},[i("v-uni-view",{staticClass:"item-price"},[i("priceFormat",{attrs:{weight:!0,price:e.price,intSize:"40",floatSize:"26",labelSize:"26"}})],1),i("v-uni-view",{staticClass:"item-otprice regular"},[t._v(t._s(e.ot_price.toFixed(2)))])],1)],1)],1)})),1)],1)]}))],2)],1)],1)},n=[]},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")),r=i("d727"),o=i("aa10"),s=i("8f59"),c=uni.getSystemInfoSync().statusBarHeight+"px",u={data:function(){return{sysHeight:c,categoryList:[{store_category_id:0,cate_name:"总榜"}],cate_name:"",spuTopList:[],active:0,scrollInto:"",domain:o.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}},computed:(0,s.mapGetters)(["viewColor"]),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:{goBack:function(){uni.navigateBack()},spuTop:function(t){var e=this;(0,r.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,r.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 r=this.swiperCur-2;r=r<=0?0:r;var o=(this.swiperCur-2)*this.isWidth;this.$nextTick((function(){this.$set(this,"tabLeft",o)}))}},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=u},c76a0:function(t,e,i){var a=i("7fcc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("2318f9a5",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.cancelReservationApi=function(t){return n.default.post("order/self/cancel/".concat(t))},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,e){return n.default.get("store/product/group/detail/"+t,e,{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.getReservationDate=function(t,e){return n.default.get("store/product/reservation/getMonth/".concat(t),e)},e.getReservationMerData=function(t){return n.default.get("store/merchant/detail/".concat(t))},e.getReservationTimes=function(t,e){return n.default.get("store/product/reservation/getDay/".concat(t),e)},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"))},e865:function(t,e,i){"use strict";var a=i("c76a0"),n=i.n(a);n.a}}]);