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.
 
 
 
 
 
huazhiyu/unpackage/dist/build/h5/static/js/pages-SearchGoodsList-Searc...

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-SearchGoodsList-SearchGoodsList"],{1917:function(t,i,e){t.exports=e.p+"static/img/empty.f3782c52.png"},"1b33":function(t,i,e){"use strict";e.r(i);var a=e("3b14"),s=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=s.a},"3b14":function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=a(e("eb09")),o={mixins:[s.default],data:function(){return{mescroll:null,downOption:{},upOption:{},isList:!0,screenShow:0,keyword:"",goodsList:[]}},onLoad:function(t){this.keyword=t.keyword||""},methods:{downCallback:function(){this.mescroll.endSuccess()},upCallback:function(t){var i=this;setTimeout((function(){i.mescroll.endByPage(10,20)}),500)},onBack:function(){uni.navigateBack()},onGoodsList:function(t,i){uni.navigateTo({url:"/pages/GoodsDetails/GoodsDetails",animationType:"zoom-fade-out",animationDuration:200})}}};i.default=o},"5de1":function(t,i,e){"use strict";var a=e("cad0"),s=e.n(a);s.a},"8e92":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"search-head"},[a("v-uni-view",{staticClass:"back",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onBack.apply(void 0,arguments)}}},[a("v-uni-text")],1),a("v-uni-view",{staticClass:"search"},[a("v-uni-view",[t._v(t._s(t.keyword))])],1),a("v-uni-view",{staticClass:"cut",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.isList=!t.isList}}},[a("v-uni-text",{staticClass:"iconfont",class:t.isList?"icon-shitu01":"icon-shitu02"})],1)],1),a("v-uni-view",{staticClass:"screen-info"},[a("v-uni-view",{staticClass:"screen-list"},[a("v-uni-view",{staticClass:"list"},[a("v-uni-text",[t._v("综合排序")]),a("v-uni-text")],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-text",[t._v("价格排序")]),a("v-uni-view",{staticClass:"icon_j"},[a("v-uni-text",{staticClass:"iconfont icon-sanjiao up"}),a("v-uni-text",{staticClass:"iconfont icon-sanjiao down"})],1)],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-text",[t._v("销量优先")]),a("v-uni-text")],1)],1)],1),a("v-uni-view",{staticClass:"goods-data"},[a("mescroll-body",{ref:"mescrollRef",attrs:{down:t.downOption,up:t.upOption,top:0},on:{init:function(i){arguments[0]=i=t.$handleEvent(i),t.mescrollInit.apply(void 0,arguments)},down:function(i){arguments[0]=i=t.$handleEvent(i),t.downCallback.apply(void 0,arguments)},up:function(i){arguments[0]=i=t.$handleEvent(i),t.upCallback.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"goods-list"},[t.goodsList.length>0?a("v-uni-view",t._l(t.goodsList,(function(i,e){return a("v-uni-view",{key:e,class:t.isList?"list-view":"list-li",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onGoodsList.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"thumb"},[a("v-uni-image",{attrs:{src:i.img,mode:"heightFix"}})],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",{staticClass:"two-omit"},[t._v(t._s(i.name))])],1),a("v-uni-view",{staticClass:"price"},[a("v-uni-view",{staticClass:"retail-price"},[a("v-uni-text",{staticClass:"min"},[t._v("¥")]),a("v-uni-text",{staticClass:"max"},[t._v(t._s(i.price))]),1===i.is_goods?a("v-uni-view",{staticClass:"tag"},[a("v-uni-text",[t._v("抢购价")])],1):t._e()],1),a("v-uni-view",{staticClass:"vip-price"},[a("v-uni-text",{staticClass:"min"},[t._v("¥")]),a("v-uni-text",{staticClass:"max"},[t._v(t._s(i.vip_price))])],1)],1)],1)],1)})),1):a("v-uni-view",{staticClass:"empty"},[a("v-uni-image",{attrs:{src:e("1917"),mode:"widthFix"}})],1)],1)],1)],1)],1)},s=[]},a25c:function(t,i,e){"use strict";e.r(i);var a=e("8e92"),s=e("1b33");for(var o in s)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(o);e("5de1");var n=e("f0c5"),d=Object(n["a"])(s["default"],a["b"],a["c"],!1,null,"a6ebd452",null,!1,a["a"],void 0);i["default"]=d.exports},b5f8:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 搜索 */.search-head[data-v-a6ebd452]{position:fixed;left:0;top:0;display:flex;align-items:center;width:100%;height:%?100?%;z-index:10;background-color:#fff}.search-head .back[data-v-a6ebd452]{display:flex;justify-content:center;align-items:center;width:10%;height:100%}.search-head .back uni-text[data-v-a6ebd452]{width:%?20?%;height:%?20?%;border-left:%?2?% solid #555;border-bottom:%?2?% solid #555;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.search-head .search[data-v-a6ebd452]{display:flex;align-items:center;width:76%;justify-content:center;height:%?60?%;padding:0 4%}.search-head .search uni-text[data-v-a6ebd452]{font-size:%?34?%;color:silver}.search-head .search uni-input[data-v-a6ebd452]{width:90%;height:100%;font-size:%?26?%;color:#212121;margin-left:%?10?%}.search-head .cut[data-v-a6ebd452]{display:flex;align-items:center;justify-content:center;width:10%;height:100%}.search-head .cut uni-text[data-v-a6ebd452]{font-size:%?38?%;color:#555}\r\n/* 筛选 */.screen-info[data-v-a6ebd452]{position:fixed;left:0;top:%?100?%;z-index:11;width:100%;height:%?100?%;background-color:#fff}.screen-info .screen-list[data-v-a6ebd452]{display:flex;align-items:center;width:100%;height:100%}.screen-info .screen-list .list[data-v-a6ebd452]{display:flex;justify-content:center;align-items:center;width:33%;height:100%}.screen-info .screen-list .list uni-text[data-v-a6ebd452]{font-size:%?26?%;color:#555}.screen-info .screen-list .list .icon_z[data-v-a6ebd452]{font-size:%?24?%;-webkit-transform:rotate(90deg) scale(.7);transform:rotate(90deg) scale(.7)}.screen-info .screen-list .list .icon_j[data-v-a6ebd452]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:%?40?%;height:100%}.screen-info .screen-list .list .icon_j .up[data-v-a6ebd452]{-webkit-transform:rotate(-90deg) scale(.7);transform:rotate(-90deg) scale(.7);margin-bottom:%?-15?%}.screen-info .screen-list .list .icon_j .down[data-v-a6ebd452]{-webkit-transform:rotate(90deg) scale(.7);transform:rotate(90deg) scale(.7)}.screen-info .screen-list .list .icon_s[data-v-a6ebd452]{font-size:%?24?%;margin-left:%?10?%}.screen-info .screen-list .action uni-text[data-v-a6ebd452]{color:#236030}.screen-info .screen-popup[data-v-a6ebd452]{position:fixed;left:0;top:%?200?%;width:100%;height:100%;background-color:rgba(0,0,0,.3)}.screen-info .screen-popup .synthesize[data-v-a6ebd452]{padding:0 %?20?%;height:%?200?%;background-color:#f6f6f6;border-radius:0 0 %?20?% %?20?%}.screen-info .screen-popup .synthesize .list[data-v-a6ebd452]{display:flex;align-items:center;width:100%;height:%?80?%}.screen-info .screen-popup .synthesize .list .check[data-v-a6ebd452]{display:inline-block;width:%?20?%;height:%?10?%;border-left:%?4?% solid #236030;border-bottom:%?4?% solid #236030;border-radius:%?4?%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.screen-info .screen-popup .synthesize .list .title[data-v-a6ebd452]{font-size:%?26?%;color:#555;margin-left:%?20?%}\r\n/* 商品列表 */.goods-data[data-v-a6ebd452]{width:100%;margin-top:%?220?%}.goods-data .goods-list[data-v-a6ebd452]{padding:0 %?25?%;border-radius:%?20?%;overflow:hidden}.goods-data .goods-list .list-view[data-v-a6ebd452]{float:left;width:49%;height:%?560?%;background-color:#fff;border-radius:%?20?%;margin-right:2%;margin-bottom:%?20?%;overflow:hidden}.goods-data .goods-list .list-view .thumb[data-v-a6ebd452]{width:100%;overflow:hidden}.goods-data .goods-list .list-view .thumb uni-image[data-v-a6ebd452]{height:%?350?%}.goods-data .goods-list .list-view .item[data-v-a6ebd452]{width:100%}.goods-data .goods-list .list-view .item .title[data-v-a6ebd452]{padding:%?20?%}.goods-data .goods-list .list-view .item .title uni-text[data-v-a6ebd452]{width:100%;color:#212121;font-size:%?26?%}.goods-data .goods-list .list-view .item .price[data-v-a6ebd452]{padding:0 %?20?%}.goods-data .goods-list .list-view .item .price .retail-price[data-v-a6ebd452]{display:flex;align-items:flex-end;width:100%;height:%?40?%}.goods-data .goods-list .list-view .item .price .retail-price .min[data-v-a6ebd452]{display:inline-block;font-size:%?24?%;color:#236030;font-weight:700;-webkit-transform:scale(.7);transform:scale(.7)}.goods-data .goods-list .list-view .item .price .retail-price .max[data-v-a6ebd452]{font-size:%?28?%;color:#236030;font-weight:700}.goods-data .goods-list .list-view .item .price .retail-price .tag[data-v-a6ebd452]{position:relative;background-color:#236030;border-radius:%?4?%;margin-left:%?10?%}.goods-data .goods-list .list-view .item .price .retail-price .tag uni-text[data-v-a6ebd452]{display:inline-block;color:#fff;font-size:%?24?%;-webkit-transform:scale(.7);transform:scale(.7)}.goods-data .goods-list .list-view .item .price .retail-price .tag[data-v-a6ebd452]:before{position:absolute;left:%?-6?%;top:0;content:"";width:0;height:0;border-top:%?0?% solid transparent;border-right:%?10?% solid #236030;border-bottom:%?6?% solid transparent}.goods-data .goods-list .list-view .item .price .vip-price[data-v-a6ebd452]{display:flex;align-items:flex-end;width:100%;height:%?40?%}.goods-data .goods-list .list-view .item .price .vip-price .min[data-v-a6ebd452]{display:inline-block;font-size:%?24?%;color:#212121}.goods-data .goods-list .list-view .item .price .vip-price .max[data-v-a6ebd452]{font-size:%?24?%;color:#212121}.goods-data .goods-list .list-view[data-v-a6ebd452]:nth-child(2n){margin-right:0}.goods-data .goods-list .list-li[data-v-a6ebd452]{display:flex;align-items:center;width:100%;height:%?300?%;background-color:#fff}.goods-data .goods-list .list-li .thumb[data-v-a6ebd452]{display:flex;align-items:center;justify-content:center;width:30%;height:100%}.goods-data .goods-list .list-li .thumb uni-image[data-v-a6ebd452]{width:%?200?%;height:%?200?%;border-radius:%?10?%}.goods-data .goods-list .list-li .item[data-v-a6ebd452]{display:flex;flex-direction:column;justify-content:center;width:70%;height:100%;border-bottom:%?2?% solid #f6f6f6}.goods-data .goods-list .list-li .item .title[data-v-a6ebd452]{padding:%?20?%}.goods-data .goods-list .list-li .item .title uni-text[data-v-a6ebd452]{width:100%;color:#212121;font-size:%?26?%}.goods-data .goods-list .list-li .item .price[data-v-a6ebd452]{padding:0 %?20?%}.goods-data .goods-list .list-li .item .price .retail-price[data-v-a6ebd452]{display:flex;align-items:flex-end;width:100%;height:%?40?%}.goods-data .goods-list .list-li .item .price .retail-price .min[data-v-a6ebd452]{display:inline-block;font-size:%?24?%;color:#236030;font-weight:700;-webkit-transform:scale(.7);transform:scale(.7)}.goods-data .goods-list .list-li .item .price .retail-price .max[data-v-a6ebd452]{font-size:%?28?%;color:#236030;font-weight:700}.goods-data .goods-list .list-li .item .price .retail-price .tag[data-v-a6ebd452]{position:relative;background-color:#236030;border-radius:%?4?%;margin-left:%?10?%}.goods-data .goods-list .list-li .item .price .retail-price .tag uni-text[data-v-a6ebd452]{display:inline-block;color:#fff;font-size:%?24?%;-webkit-transform:scale(.7);transform:scale(.7)}.goods-data .goods-list .list-li .item .price .retail-price .tag[data-v-a6ebd452]:before{position:absolute;left:%?-6?%;top:0;content:"";width:0;height:0;border-top:%?0?% solid transparent;border-right:%?10?% solid #236030;border-bottom:%?6?% solid transparent}.goods-data .goods-list .list-li .item .price .vip-price[data-v-a6ebd452]{display:flex;align-items:flex-end;width:100%;height:%?40?%}.goods-data .goods-list .list-li .item .price .vip-price .min[data-v-a6ebd452]{display:inline-block;font-size:%?24?%;color:#212121}.goods-data .goods-list .list-li .item .price .vip-price .max[data-v-a6ebd452]{font-size:%?24?%;color:#212121}.basis-lg[data-v-a6ebd452]{padding-top:0;border-radius:%?20?% 0 0 %?20?%;flex-basis:80%!important}.basis-lg .serve[data-v-a6ebd452]{padding-left:%?20?%;padding-right:%?20?%;background-color:#fff}.basis-lg .serve .title[data-v-a6ebd452]{display:flex;align-items:center;width:100%;height:%?80?%}.basis-lg .serve .title uni-text[data-v-a6ebd452]{color:#212121;font-size:%?28?%}.basis-lg .serve .serve-list[data-v-a6ebd452]{display:flex;flex-wrap:wrap;padding:%?20?% 0}.basis-lg .serve .serve-list .list[data-v-a6ebd452]{display:flex;align-items:center;justify-content:center;width:30%;height:%?60?%;border-radius:%?60?%;margin-right:4%;background-color:#f6f6f6}.basis-lg .serve .serve-list .list uni-text[data-v-a6ebd452]{color:#555;font-size:%?24?%}.basis-lg .serve .serve-list .list[data-v-a6ebd452]:nth-child(3n){margin-right:0}.basis-lg .serve .serve-list .action[data-v-a6ebd452]{background-color:rgba(233,59,61,.3);border:%?2?% solid #236030}.basis-lg .serve .serve-list .action uni-text[data-v-a6ebd452]{color:#236030}.basis-lg .price-screen[data-v-a6ebd452]{padding:0 4%;background-color:#fff;margin-top:%?20?%}.basis-lg .price-screen .title[data-v-a6ebd452]{display:flex;align-items:center;width:100%;height:%?80?%}.basis-lg .price-screen .title uni-text[data-v-a6ebd452]{color:#212121;font-size:%?28?%}.basis-lg .price-screen .price-section[data-v-a6ebd452]{display:flex;align-items:center;justify-content:center;width:100%;height:%?80?%}.basis-lg .price-screen .price-section uni-input[data-v-a6ebd452]{width:%?180?%;height:%?50?%;border-radius:%?50?%;font-size:%?24?%;color:#555;background-color:#f6f6f6}.basis-lg .price-screen .price-section uni-text[data-v-a6ebd452]{display:flex;width:%?60?%;height:%?2?%;background-color:#f6f6f6;margin:0 %?20?%}.basis-lg .operation-btn[data-v-a6ebd452]{position:absolute;left:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:0 4%;width:100%;height:%?100?%;background-color:#fff}.basis-lg .operation-btn .btn[data-v-a6ebd452]{display:flex;justify-content:center;align-items:center;width:46%;height:%?70?%;background-color:#fff;border:%?2?% solid #f6f6f6;border-radius:%?70?%}.basis-lg .operation-btn .btn uni-text[data-v-a6ebd452]{color:#212121;font-size:%?26?%}.basis-lg .operation-btn .action[data-v-a6ebd452]{background-color:#236030}.basis-lg .operation-btn .action uni-text[data-v-a6ebd452]{color:#fff}.empty[data-v-a6ebd452]{text-align:center}.empty uni-image[data-v-a6ebd452]{width:50%;height:auto;margin-top:30%}',""]),t.exports=i},cad0:function(t,i,e){var a=e("b5f8");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=e("4f06").default;s("7e32126e",a,!0,{sourceMap:!1,shadowMode:!1})},eb09:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(t){this.mescroll=t,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef;t&&(this.mescroll=t.mescroll)}},downCallback:function(){var t=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){t.mescroll.endSuccess()}),500)},upCallback:function(){var t=this;setTimeout((function(){t.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},s=a;i.default=s}}]);