1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-rank-index"],{"11a2":function(t,e,a){var n=a("24fb"),i=a("1de5"),o=a("52fd"),r=a("5cef");e=n(!1);var s=i(o),c=i(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-02105385]{background:#171717;min-height:100vh}.rank_header[data-v-02105385]{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-02105385]{text-align:center;position:relative;top:%?80?%}.rank_header .cate_name .name[data-v-02105385]{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-02105385]{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-02105385]{left:0}.rank_header .cate_name .name .title_icon.icon_right[data-v-02105385]{right:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.header[data-v-02105385]{position:relative;z-index:6;display:flex;align-items:center;padding-right:%?34?%;height:43px;padding-left:%?33?%}.header .head-menu[data-v-02105385]{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-02105385]{font-size:%?32?%;color:#fff}.header .head-menu .iconfont[data-v-02105385]{-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-02105385]{border-right:1px solid #fff}.head-menu[data-v-02105385]{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-02105385]: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-02105385]{flex:1;text-align:center;color:#fff;box-sizing:border-box}.scroll_box[data-v-02105385]{width:%?750?%;box-sizing:border-box;line-height:%?50?%;padding-left:%?32?%;margin-top:%?140?%}.scroll_item[data-v-02105385]{display:inline-block;font-size:%?28?%;color:#6d6d6d}.scroll_item[data-v-02105385]:last-child{margin-right:%?40?%}.scroll_item_active[data-v-02105385]{font-weight:500;position:relative;text-align:center;color:#fff}.scroll_item_active[data-v-02105385]::after{content:"";display:block;margin:%?10?% auto 0;width:80%;height:%?4?%;border-radius:%?2?%;background:#fff}.scroll_item ~ .scroll_item[data-v-02105385]{margin-left:%?40?%}.rank_list[data-v-02105385]{padding-top:%?270?%;padding-bottom:%?32?%}.rank_list .item[data-v-02105385]{border-radius:%?16?%;background:#fff;margin-top:%?30?%;padding:%?28?% %?30?% %?32?%;position:relative}.rank_list .item .rank[data-v-02105385]{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-02105385], .rank_list .item .rank.rank1[data-v-02105385], .rank_list .item .rank.rank2[data-v-02105385]{background-image:url("+c+")}.rank_list .item .name[data-v-02105385]{width:%?382?%;height:%?76?%;line-height:%?38?%;color:#282828;font-weight:500;font-size:%?32?%}.rank_list .mt-18[data-v-02105385]{margin-top:%?18?%}.rank_list .ot_price[data-v-02105385]{font-weight:300;color:#6d6d6d;padding-left:%?16?%}.rank_list .goods-msg[data-v-02105385]{flex:1;margin-left:%?20?%}.rank_list .goods-msg .list[data-v-02105385]{background:#fdf8ee;border-radius:%?6?%;line-height:%?57?%;color:#666;font-size:%?26?%;padding:0 %?12?%}.rank_list .goods-msg .list .iconfont[data-v-02105385]{color:#ffb31c;margin-right:%?12?%}.rank_list .pictrue[data-v-02105385]{width:%?240?%;height:%?240?%;position:relative;flex:1}.rank_list .pictrue uni-image[data-v-02105385]{width:100%;height:100%;border-radius:%?12?% 0 0 %?12?%}",""]),t.exports=e},"1de5":function(t,e,a){"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)}},"25b4":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("974a"),o=n(a("956a")),r=function(t,e){t&&o.default.set("spread",t||0),t&&e&&(0,i.spread)(t).then((function(t){}))};e.default=r},"2e54":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return i.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return i.default.get("store/product/assist/count",t,{noAuth:!0})},e.getActivitycategory=function(t){return i.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return i.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return i.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return i.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return i.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return i.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return i.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return i.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return i.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return i.default.post("combination/poster",t)},e.getCombinationUser=function(t){return i.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return i.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return i.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return i.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return i.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return i.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return i.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return i.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return i.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return i.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return i.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return i.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return i.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return i.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return i.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return i.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return i.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return i.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return i.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return i.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var i=n(a("5a4d"))},"372b":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"rank_header",style:{"background-image":"url("+t.domain+"/static/images/rank_header.png)"}},[a("v-uni-view",{staticClass:"cate_name"},[a("v-uni-text",{staticClass:"name line1"},[a("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总榜单")),a("v-uni-text",{staticClass:"title_icon icon_right",style:{"background-image":"url("+t.domain+"/static/images/rank-title.png)"}})],1)],1),a("v-uni-view",{staticClass:"scroll_box"},[a("v-uni-scroll-view",{staticStyle:{"white-space":"nowrap","vertical-align":"middle"},attrs:{"scroll-x":"true","show-scrollbar":"false","scroll-into-view":t.scrollInto}},t._l(t.categoryList,(function(e,n){return a("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},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.checkActive(n,e)}}},[t._v(t._s(e.cate_name))])})),1)],1)],1),a("v-uni-view",{staticClass:"rank_list pad30"},t._l(t.spuTopList,(function(e,n){return a("v-uni-view",{key:e.spu_id,staticClass:"item acea-row",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.godDetail(e)}}},[a("v-uni-view",{staticClass:"rank",class:"rank"+n,style:{color:n<3?"#CE8F21":"#986561"}},[t._v(t._s(n<9?"0"+(n+1):n+1))]),a("v-uni-view",{staticClass:"pictrue on"},[a("v-uni-image",{staticClass:"on",attrs:{src:e.image}})],1),a("v-uni-view",{staticClass:"goods-msg pad16 acea-row row-column row-between"},[a("v-uni-text",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),e.sales>0?a("v-uni-view",{staticClass:"list"},[a("v-uni-text",{staticClass:"iconfont icon-goumai"}),t._v(t._s(e.sales>1e4?e.sales/1e4+"万":e.sales)+"人买过")],1):t._e(),a("v-uni-view",{staticClass:"mt-18 acea-row row-bottom"},[a("BaseMoney",{attrs:{money:e.price,symbolSize:"26",integerSize:"36",decimalSize:"28",incolor:"E93323",weight:!0}}),a("BaseMoney",{staticClass:"ml-16",attrs:{money:e.ot_price,symbolSize:"22",integerSize:"22",decimalSize:"22",incolor:"999999",line:!0}})],1)],1)],1)})),1)],1)},i=[]},5198:function(t,e,a){"use strict";var n=a("6b7b"),i=a.n(n);i.a},"52fd":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABsBAMAAABndKpwAAAAG1BMVEUAAADv0c/v0c/v1c/v0s/v0s/u0c/v0s/v0tBW+ZXFAAAACHRSTlMA4JAwUKDw0IgaO9gAAACNSURBVFjD7c0xCoNQFETRgWQFqWxDNhCygiC4A3EHgrU7sBGXLfxGHk/+YGF3pz9ztV0cAAAAAAAAAAAAAAAAAADgbrD23XQFjH/pOVhw3KvsNKLT+7IS8WDppWNt48Drq7DHuwqWj9J+TQLpvhZRvq9HlO5NROneRBTvfUTx3kcU731E8d5HNId7H9kBhErzLdu5BHsAAAAASUVORK5CYII="},"5cef":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABsBAMAAABndKpwAAAAG1BMVEUAAAD/3qT/3aP/36X/36P/3qT/3aT/3qP/3qQizrOVAAAACHRSTlMA4JAwUKDw0IgaO9gAAACNSURBVFjD7c0xCoNQFETRgWQFqWxDNhCygiC4A3EHgrU7sBGXLfxGHk/+YGF3pz9ztV0cAAAAAAAAAAAAAAAAAADgbrD23XQFjH/pOVhw3KvsNKLT+7IS8WDppWNt48Drq7DHuwqWj9J+TQLpvhZRvq9HlO5NROneRBTvfUTx3kcU731E8d5HNId7H9kBhErzLdu5BHsAAAAASUVORK5CYII="},"6b7b":function(t,e,a){var n=a("11a2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("5d370224",n,!0,{sourceMap:!1,shadowMode:!1})},d9d43:function(t,e,a){"use strict";a.r(e);var n=a("dfbe"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},dfbe:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af");var i=n(a("2909")),o=a("2e54"),r=a("ba8b"),s=n(a("25b4")),c=a("26cb"),u={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}},computed:(0,c.mapGetters)(["isLogin","uid"]),onLoad:function(t){this.spuTop(t.cate_id||0),t.spread&&(0,s.default)(t.spread,this.isLogin)},methods:{spuTop:function(t){var e=this;(0,o.spuTop)().then((function(a){e.categoryList=[].concat((0,i.default)(e.categoryList),(0,i.default)(a.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)}))}))},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"]||[]}))},checkActive:function(t,e){this.active=e.store_category_id,this.cate_name=e.cate_name,this.spuTopList=[],this.getSpuTopList(e.store_category_id)},godDetail:function(t){uni.navigateTo({url:"/pages/goods_details/index?id="+t.product_id})},getCate:function(t,e){for(var a=0;a<e.length;a++)if(e[a].store_category_id==t)return e[a]["cate_name"]}}};e.default=u},e9b5:function(t,e,a){"use strict";a.r(e);var n=a("372b"),i=a("d9d43");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("5198");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"02105385",null,!1,n["a"],void 0);e["default"]=s.exports}}]); |