cyywl_shop_app/dist/static/js/pages-columnGoods-HotNewGoo...

1 line
16 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-HotNewGoods-index"],{"0451":function(t,e,i){var n=i("73d9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0cc7c81d",n,!0,{sourceMap:!1,shadowMode:!1})},"06cc":function(t,e,i){var n=i("cfdf");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("b6a0f132",n,!0,{sourceMap:!1,shadowMode:!1})},"09a0":function(t,e,i){"use strict";var n=i("7d0e"),a=i.n(n);a.a},"0f0f":function(t,e,i){var n=i("24fb");e=n(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.goodList .item[data-v-72e7ac32]{position:relative;padding-left:%?30?%}.goodList .item .pictrue[data-v-72e7ac32]{width:%?180?%;height:%?180?%;position:relative}.goodList .item .pictrue uni-image[data-v-72e7ac32]{width:100%;height:100%;border-radius:%?6?%}.goodList .item .pictrue .numPic[data-v-72e7ac32]{position:absolute;left:%?7?%;top:%?7?%;width:%?50?%;height:%?50?%;border-radius:50%}.goodList .item .underline[data-v-72e7ac32]{padding:%?30?% %?30?% %?30?% 0;border-bottom:1px solid #f5f5f5}.goodList .item:nth-last-child(1) .underline[data-v-72e7ac32]{border-bottom:0}.goodList .item .text[data-v-72e7ac32]{font-size:%?30?%;color:#222;width:%?489?%}.goodList .item .text .money[data-v-72e7ac32]{font-size:%?26?%;font-weight:700;margin-top:%?50?%}.goodList .item .text .money .num[data-v-72e7ac32]{font-size:%?34?%}.goodList .item .text .vip-money[data-v-72e7ac32]{font-size:%?24?%;color:#282828;font-weight:700;margin-top:%?15?%}.goodList .item .text .vip-money uni-image[data-v-72e7ac32]{width:%?46?%;height:%?21?%;margin:0 %?22?% 0 %?5?%}.goodList .item .text .vip-money .num[data-v-72e7ac32]{font-size:%?22?%;color:#aaa;font-weight:400;margin:%?-2?% 0 0 0}.goodList .item .iconfont[data-v-72e7ac32]{position:absolute;right:%?30?%;width:%?50?%;height:%?50?%;border-radius:50%;font-size:%?30?%;bottom:%?38?%}',""]),t.exports=e},"171f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAVCAMAAAAO2ixrAAABR1BMVEUAAAAMDQxFRUUAAAAMDAwDAwMJCQkGBgYUExRCQkIRERE2NjYcHBw0NDQeHh4PDw45OTk4ODcwMDAsLCwkJCQgICAaGhoYGBgWFhYuLi4oKCgiIiJBQUE8PDw7OztAPz8+Pj4zMjIrKysmJiYyMjIqKip1XygnJiaqlyLWvx3Upxt3ZiutmSqshSrWtSJxWSFiXiCnjR2+sxv93xqmhRn81xjUrxj7yBb6whX6vBSPcy94bS2ulSyqoCD/9x717B3r4h3Wxx3fqx2ilxybkxz+6RvKxBvUtht+eBrpzxnJtxn7zheMfxeLhhZHRBNiWDt+aTduWjVIQDKXgTHCnCiTiiiEfiW1qyOcfiPgwh/gtx9OSB/+7x3g0R3+7Rz05By/uRzz2xvesxvq1xq9pxjxthczMxcyMRaYihUzLxVaTxNrZRFEPQyJMP9/AAAAAnRSTlMAgJsrThgAAAF8SURBVCjPfdPXVsJAEAbgWEBEikIQSESlJ6H33nu1997r+1/L7mYdTwDn+jtz/p2ZZRaWUWk1Gpt1U2ew8Kyb85rtJqd+bWN927G7s7W6ugjFEG/84/2ca65nwCv6e5B3EA8cvBb83P4M8WriX0tRkue0YT4pePTBYLBYPNoDzxCvVpM81XvSv3rmqpVMzsRFOBy+zBxjD5xZkX2zgvNEr6OcKNhNqQLKk8/uEw9c9uNyF/n4DesXBbM9FcD56yGcH7gKe6NR226j9941eVYUvOZUAL+3HiLvBa6S+4/KbzZrt3Vl4UWBcw0CaJ753AGdD3DZV0YaW7w/yd+JubnBoyRJL7kQnSflSyraP17TfLSGk/ydGOvOnPsmdQjzp/zXf92Ohw8ofzrGsxmfYl+Ug3967z+j/aaTFj4bUeyXcvCNXuIT3UM6abBkI3A/2FOOC/vvRA/fm5TUGXIRfD/ggUP/qfsED/xfT/MDV/jZ/wX4lNfO8JRDzcxD/Q9yEkpsY96XtwAAAABJRU5ErkJggg=="},2648:function(t,e,i){t.exports=i.p+"static/img/empty-box.a3b2b2dd.png"},"2a83":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n=i("26cb"),a=i("a9d2"),o={computed:(0,n.mapGetters)(["uid"]),props:{status:{type:Number,default:0},bastList:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goDetail:function(t){(0,a.goShopDetail)(t,this.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}}};e.default=o},"32ac":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var a=n(i("ad28")),o=n(i("6709")),r=i("b907"),s={name:"HotNewGoods",components:{GoodList:o.default,emptyPage:a.default},props:{},data:function(){return{imgUrls:[],goodsList:[],name:"",icon:"",type:0,autoplay:!0,circular:!0,interval:3e3,duration:500,page:1,limit:8,isScroll:!0}},onLoad:function(t){this.type=t.type,this.titleInfo(),this.getIndexGroomList()},methods:{titleInfo:function(){"1"===this.type?(this.name="精品推荐",this.icon="icon-jingpintuijian",uni.setNavigationBarTitle({title:"精品推荐"})):"2"===this.type?(this.name="热门榜单",this.icon="icon-remen",uni.setNavigationBarTitle({title:"热门榜单"})):"3"===this.type?(this.name="首发新品",this.icon="icon-xinpin",uni.setNavigationBarTitle({title:"首发新品"})):"4"===this.type&&(this.name="促销单品",this.icon="icon-xinpin",uni.setNavigationBarTitle({title:"促销单品"}))},getIndexGroomList:function(){if(this.isScroll){var t=this,e=this.type;(0,r.getGroomList)(e,{page:this.page,limit:this.limit}).then((function(e){t.imgUrls=e.data.banner,t.goodsList=t.goodsList.concat(e.data.list),t.isScroll=e.data.list.length>=t.limit,t.page++})).catch((function(e){t.$util.Tips({title:e})}))}}},onReachBottom:function(){this.getIndexGroomList()}};e.default=s},"459c":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"goodList"},[t._l(t.bastList,(function(e,a){return[n("v-uni-view",{key:a+"_0",staticClass:"item acea-row row-between-wrapper",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e.image}}),e.activityH5&&"1"===e.activityH5.type?n("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("秒杀")]):t._e(),e.activityH5&&"2"===e.activityH5.type?n("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("砍价")]):t._e(),e.activityH5&&"3"===e.activityH5.type?n("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("拼团")]):t._e()],1),n("v-uni-view",{staticClass:"underline"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"line1"},[t._v(t._s(e.storeName))]),n("v-uni-view",{staticClass:"money font-color"},[t._v("¥"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1),e.vip_price&&e.vip_price>0?n("v-uni-view",{staticClass:"vip-money acea-row row-middle"},[t._v("¥"+t._s(e.vip_price||0)),n("v-uni-image",{attrs:{src:i("171f")}}),n("v-uni-text",{staticClass:"num"},[t._v("已售"+t._s(Number(e.sales)+Number(e.ficti)||0)+t._s(e.unitName))])],1):n("v-uni-view",{staticClass:"vip-money acea-row row-middle"},[n("v-uni-text",{staticClass:"num"},[t._v("已售"+t._s(Number(e.sales)+Number(e.ficti)||0)+t._s(e.unitName))])],1)],1)],1),n("v-uni-view",{staticClass:"iconfont icon-gouwuche cart-color acea-row row-center-wrapper"})],1)]}))],2)},a=[]},4641:function(t,e,i){"use strict";i.r(e);var n=i("698b"),a=i("4a9d");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("ddba");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"bc1eb60a",null,!1,n["a"],void 0);e["default"]=s.exports},"4a9d":function(t,e,i){"use strict";i.r(e);var n=i("32ac"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},6709:function(t,e,i){"use strict";i.r(e);var n=i("459c"),a=i("6745");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("09a0");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"72e7ac32",null,!1,n["a"],void 0);e["default"]=s.exports},6745:function(t,e,i){"use strict";i.r(e);var n=i("2a83"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"698b":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"quality-recommend"},[i("div",{staticClass:"slider-banner swiper"},[i("v-uni-view",{staticClass:"swiper"},[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-image",{staticClass:"slide-image",attrs:{src:t.pic}})],1)]}))],2)],1)],1),i("div",{staticClass:"title acea-row row-center-wrapper"},[i("div",{staticClass:"line"}),i("div",{staticClass:"name"},[i("span",{staticClass:"iconfont",class:t.icon}),t._v(t._s(t.name))]),i("div",{staticClass:"line"})]),i("v-uni-view",{staticClass:"wrapper"},[i("GoodList",{attrs:{bastList:t.goodsList,"is-sort":!1}}),t.goodsList.length>0&&!t.isScroll?i("v-uni-view",{staticClass:"txt-bar"},[t._v("我是有底线的~")]):t._e(),0!=t.goodsList.length||t.isScroll?t._e():i("emptyPage",{attrs:{title:"暂无数据~"}})],1)],1)},a=[]},"73d9":function(t,e,i){var n=i("24fb");e=n(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-bc1eb60a] .empty-box{background-color:#f5f5f5}.swiper[data-v-bc1eb60a], uni-swiper[data-v-bc1eb60a], uni-swiper-item[data-v-bc1eb60a], .slide-image[data-v-bc1eb60a]{width:100%;height:%?280?%}.quality-recommend .wrapper[data-v-bc1eb60a]{background:#fff}.quality-recommend .title[data-v-bc1eb60a]{height:%?120?%;font-size:%?32?%;color:#282828;background-color:#f5f5f5}.quality-recommend .title .line[data-v-bc1eb60a]{width:%?230?%;height:%?2?%;background-color:#e9e9e9}.txt-bar[data-v-bc1eb60a]{padding:%?20?% 0;text-align:center;font-size:%?26?%;color:#666;background-color:#f5f5f5}',""]),t.exports=e},"7d0e":function(t,e,i){var n=i("0f0f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("81871a08",n,!0,{sourceMap:!1,shadowMode:!1})},"7e47":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title:{type:String,default:"暂无记录"}}};e.default=n},a2b3:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:i("2648")}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},a=[]},a50f:function(t,e,i){"use strict";var n=i("06cc"),a=i.n(n);a.a},ad28:function(t,e,i){"use strict";i.r(e);var n=i("a2b3"),a=i("d533");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a50f");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"63d1a8ca",null,!1,n["a"],void 0);e["default"]=s.exports},b907:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.collectAdd=function(t,e){return a.default.post("front/collect/add",{id:t,category:void 0===e?"product":e})},e.collectAll=function(t,e){return a.default.post("collect/all",{id:t,category:void 0===e?"product":e})},e.collectDel=function(t){return a.default.post("collect/cancel/".concat(t))},e.collectDelete=function(t){return a.default.post("collect/delete",t)},e.getCategoryList=function(){return a.default.get("front/category",{},{noAuth:!0})},e.getCollectUserList=function(t){return a.default.get("collect/user",t)},e.getGroomList=function(t,e){return a.default.get("index/product/"+t,e,{noAuth:!0})},e.getProductCode=function(t){return a.default.get("front/product/code/"+t,{})},e.getProductDetail=function(t,e){return a.default.get("front/product/detail/"+t+"?type="+e,{},{noAuth:!0})},e.getProductGood=function(){return a.default.get("front/product/good")},e.getProductHot=function(t,e){return a.default.get("front/product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})},e.getProductslist=function(t){return a.default.get("front/products",t,{noAuth:!0})},e.getReplyConfig=function(t){return a.default.get("front/reply/config/"+t,{},{noAuth:!0})},e.getReplyList=function(t,e){return a.default.get("reply/list/"+t,e,{noAuth:!0})},e.getReplyProduct=function(t){return a.default.get("front/reply/product/"+t,{noAuth:!0})},e.getSearchKeyword=function(){return a.default.get("search/keyword",{},{noAuth:!0})},e.postCartAdd=function(t){return a.default.post("front/cart/save",t,{})},e.storeListApi=function(t){return a.default.post("store/list",t,{},1)};var a=n(i("0a86"))},cfdf:function(t,e,i){var n=i("24fb");e=n(!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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-63d1a8ca]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%;padding-bottom:%?60?%}.empty-box uni-image[data-v-63d1a8ca]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-63d1a8ca]{font-size:%?26?%;color:#999}',""]),t.exports=e},d533:function(t,e,i){"use strict";i.r(e);var n=i("7e47"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},ddba:function(t,e,i){"use strict";var n=i("0451"),a=i.n(n);a.a}}]);