Commit fa7eb2ca by 肖康

x

parent 8c35a25c
......@@ -57,7 +57,7 @@
</div>
<div class="data-list-box">
<van-list v-model="loading1" :loading="loadStatus" :finished="finished"
<van-list v-model="loadStatus" :loading="loadStatus" :finished="finished"
finished-text="没有更多了" @load="onLoad" :immediate-check="false">
<GoodsOne :dataList="listData" @placeOrder="placeOrder"></GoodsOne>
</van-list>
......
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c138dbe4"],{"28d5":function(t,a,i){"use strict";function n(t){var a=window.getComputedStyle(t),i="none"===a.display,n=null===t.offsetParent&&"fixed"!==a.position;return i||n}i.d(a,"a",(function(){return n}))},7683:function(t,a,i){"use strict";i.r(a);var n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("section",{staticClass:"brandList"},[i("addCarAlert"),i("Header",{attrs:{inputShow:!0,meaushow:!0},on:{toSearch:t.toSearch}}),i("div",{staticClass:"brand_detail van-hairline--bottom"},[i("div",{staticClass:"brand_detail_box clr"},[i("img",{staticClass:"brand_detail_img",attrs:{src:t.brandDetail.brand_logo}}),i("ul",{staticClass:"brand_detail_block"},[i("li",{staticClass:"detail_name"},[t._v("品牌名称:"+t._s(t.brandDetail.brand_name))]),i("li",{staticClass:"main_brand"},[i("span",[t._v("主营品牌:")]),i("span",{staticClass:"main_brand_text"},[t._v(t._s(t.brandDetail.main_product))])])])]),i("p",{staticClass:"brand_introduce "},[t._v(t._s(t.brandDetail.brand_brief))]),i("ul",{staticClass:"rank_condition van-hairline--top-bottom"},[i("li",{staticClass:"overall_rank",class:{act:1==t.type},on:{click:function(a){return t.tab(1)}}},[t._v("综合")]),i("li",{staticClass:"stock_rank ",class:{act:2==t.type},on:{click:function(a){return t.tab(2)}}},[t._v("库存\n "),i("div",["desc"==t.stockRank?[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_red"})]:"asc"==t.stockRank?[i("span",{staticClass:"rank_up rank_up_red "}),i("span",{staticClass:"rank_down rank_down_black "})]:[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_black "})]],2)]),i("li",{staticClass:"price_rank",class:{act:3==t.type},on:{click:function(a){return t.tab(3)}}},[t._v("价格\n "),i("div",["desc"==t.priceRank?[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_red"})]:"asc"==t.priceRank?[i("span",{staticClass:"rank_up rank_up_red "}),i("span",{staticClass:"rank_down rank_down_black "})]:[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_black "})]],2)]),i("li",{staticClass:"stock_having stock_having_flag",on:{click:function(a){return t.tab(4)}}},[i("span",{staticClass:"noact ",class:{act:"gte,2"==t.stock}}),t._v("     仅显示有货\n ")])])]),i("div",{staticClass:"data-list-box"},[i("van-list",{attrs:{loading:t.loadStatus,finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loadStatus,callback:function(a){t.loadStatus=a},expression:"loadStatus"}},[i("GoodsOne",{attrs:{dataList:t.listData},on:{placeOrder:t.placeOrder}})],1)],1),i("goodsDetail",{attrs:{detailsData:t.detailsData}})],1)},s=[],e=(i("ac67"),i("1bc7"),i("25ba"),i("32ea"),i("28f8")),r=i("a593"),o=i("cf6b"),c=i("ebad"),d=i("57af"),l=i("9df3"),h=i("61ab"),u=i("a923");function p(t,a){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),i.push.apply(i,n)}return i}function f(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?p(Object(i),!0).forEach((function(a){Object(e["a"])(t,a,i[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))}))}return t}r["a"].use(c["a"]);var k={name:"brandList",data:function(){return{detailsData:{isShow:!1,id:""},meaushow:!0,stockRank:"",priceRank:"",stock:"gte,0",p:1,loading1:!1,offset:10,type:1}},computed:f({},Object(o["c"])({loading:function(t){return t.brand.loading},listData:function(t){return t.brand.listData},finished:function(t){return t.brand.finished},loadStatus:function(t){return t.brand.loadStatus},brandDetail:function(t){return t.brand.brandDetail},totalLimit:function(t){return t.brand.totalLimit},isShowAlert:function(t){return t.gooddetail.isShowAlert}})),watch:{isShowAlert:function(t){t&&(this.detailsData={isShow:!1,id:""},this.$store.dispatch({type:"cartCount"}))},loadStatus:function(t){this.loading1=t}},created:function(){this.$store.dispatch({type:"brandInfo",brand_id:this.$route.params.brand_id}),this.getData()},methods:{getData:function(){this.$store.dispatch({type:"skuList","stock/order":this.stockRank,"single_price/order":this.priceRank,"stock/sr":this.stock,"brand_id/condition":this.$route.params.brand_id,p:this.p,offset:this.offset})},tab:function(t){4!=t&&(this.type=t),1==t?(this.stockRank="",this.priceRank=""):2==t?(this.priceRank="","desc"==this.stockRank?this.stockRank="asc":this.stockRank="desc"):3==t?(this.stockRank="","desc"==this.priceRank?this.priceRank="asc":this.priceRank="desc"):"gte,0"==this.stock?this.stock="gte,2":this.stock="gte,0",this.p=1,this.getData()},onLoad:function(){this.p<this.totalLimit&&(this.p++,this.getData())},placeOrder:function(t){this.detailsData={isShow:!0,id:t}},toSearch:function(){window.location.href="/v3/search/search_index.html"}},components:{Header:d["a"],GoodsOne:l["a"],goodsDetail:h["a"],addCarAlert:u["a"]}},b=k,_=(i("c968"),i("c701")),g=Object(_["a"])(b,n,s,!1,null,"12320349",null);a["default"]=g.exports},c968:function(t,a,i){"use strict";i("df01")},df01:function(t,a,i){},ebad:function(t,a,i){"use strict";var n=i("151f"),s=i("28d5"),e=i("4bfa"),r=i("c4d5"),o=i("d1b9"),c=Object(n["a"])("list"),d=c[0],l=c[1],h=c[2];a["a"]=d({mixins:[Object(r["a"])((function(t){this.scroller||(this.scroller=Object(e["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var a,i=t.$el,n=t.scroller,e=t.offset,r=t.direction;a=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var o=a.bottom-a.top;if(!o||Object(s["a"])(i))return!1;var c=!1,d=t.$refs.placeholder.getBoundingClientRect();c="up"===r?a.top-d.top<=e:d.bottom-a.bottom<=e,c&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:l("loading")},[this.slots("loading")||t(o["a"],{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var a=this.slots("finished")||this.finishedText;if(a)return t("div",{class:l("finished-text")},[a])}},genErrorText:function(){var t=this.$createElement;if(this.error){var a=this.slots("error")||this.errorText;if(a)return t("div",{on:{click:this.clickErrorText},class:l("error-text")},[a])}}},render:function(){var t=arguments[0],a=t("div",{ref:"placeholder",key:"placeholder",class:l("placeholder")});return t("div",{class:l(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():a,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():a])}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f42562ee"],{"21cb":function(t,a,i){},"28d5":function(t,a,i){"use strict";function n(t){var a=window.getComputedStyle(t),i="none"===a.display,n=null===t.offsetParent&&"fixed"!==a.position;return i||n}i.d(a,"a",(function(){return n}))},7683:function(t,a,i){"use strict";i.r(a);var n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("section",{staticClass:"brandList"},[i("addCarAlert"),i("Header",{attrs:{inputShow:!0,meaushow:!0},on:{toSearch:t.toSearch}}),i("div",{staticClass:"brand_detail van-hairline--bottom"},[i("div",{staticClass:"brand_detail_box clr"},[i("img",{staticClass:"brand_detail_img",attrs:{src:t.brandDetail.brand_logo}}),i("ul",{staticClass:"brand_detail_block"},[i("li",{staticClass:"detail_name"},[t._v("品牌名称:"+t._s(t.brandDetail.brand_name))]),i("li",{staticClass:"main_brand"},[i("span",[t._v("主营品牌:")]),i("span",{staticClass:"main_brand_text"},[t._v(t._s(t.brandDetail.main_product))])])])]),i("p",{staticClass:"brand_introduce "},[t._v(t._s(t.brandDetail.brand_brief))]),i("ul",{staticClass:"rank_condition van-hairline--top-bottom"},[i("li",{staticClass:"overall_rank",class:{act:1==t.type},on:{click:function(a){return t.tab(1)}}},[t._v("综合")]),i("li",{staticClass:"stock_rank ",class:{act:2==t.type},on:{click:function(a){return t.tab(2)}}},[t._v("库存\n "),i("div",["desc"==t.stockRank?[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_red"})]:"asc"==t.stockRank?[i("span",{staticClass:"rank_up rank_up_red "}),i("span",{staticClass:"rank_down rank_down_black "})]:[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_black "})]],2)]),i("li",{staticClass:"price_rank",class:{act:3==t.type},on:{click:function(a){return t.tab(3)}}},[t._v("价格\n "),i("div",["desc"==t.priceRank?[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_red"})]:"asc"==t.priceRank?[i("span",{staticClass:"rank_up rank_up_red "}),i("span",{staticClass:"rank_down rank_down_black "})]:[i("span",{staticClass:"rank_up rank_up_black "}),i("span",{staticClass:"rank_down rank_down_black "})]],2)]),i("li",{staticClass:"stock_having stock_having_flag",on:{click:function(a){return t.tab(4)}}},[i("span",{staticClass:"noact ",class:{act:"gte,2"==t.stock}}),t._v("     仅显示有货\n ")])])]),i("div",{staticClass:"data-list-box"},[i("van-list",{attrs:{loading:t.loadStatus,finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading1,callback:function(a){t.loading1=a},expression:"loading1"}},[i("GoodsOne",{attrs:{dataList:t.listData},on:{placeOrder:t.placeOrder}})],1)],1),i("goodsDetail",{attrs:{detailsData:t.detailsData}})],1)},e=[],s=(i("ac67"),i("1bc7"),i("25ba"),i("32ea"),i("28f8")),r=i("a593"),o=i("cf6b"),c=i("ebad"),d=i("57af"),l=i("9df3"),h=i("61ab"),u=i("a923");function p(t,a){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),i.push.apply(i,n)}return i}function f(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?p(Object(i),!0).forEach((function(a){Object(s["a"])(t,a,i[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))}))}return t}r["a"].use(c["a"]);var k={name:"brandList",data:function(){return{detailsData:{isShow:!1,id:""},meaushow:!0,stockRank:"",priceRank:"",stock:"gte,0",p:1,loading1:!1,offset:10,type:1}},computed:f({},Object(o["c"])({loading:function(t){return t.brand.loading},listData:function(t){return t.brand.listData},finished:function(t){return t.brand.finished},loadStatus:function(t){return t.brand.loadStatus},brandDetail:function(t){return t.brand.brandDetail},totalLimit:function(t){return t.brand.totalLimit},isShowAlert:function(t){return t.gooddetail.isShowAlert}})),watch:{isShowAlert:function(t){t&&(this.detailsData={isShow:!1,id:""},this.$store.dispatch({type:"cartCount"}))},loadStatus:function(t){this.loading1=t}},created:function(){this.$store.dispatch({type:"brandInfo",brand_id:this.$route.params.brand_id}),this.getData()},methods:{getData:function(){this.$store.dispatch({type:"skuList","stock/order":this.stockRank,"single_price/order":this.priceRank,"stock/sr":this.stock,"brand_id/condition":this.$route.params.brand_id,p:this.p,offset:this.offset})},tab:function(t){4!=t&&(this.type=t),1==t?(this.stockRank="",this.priceRank=""):2==t?(this.priceRank="","desc"==this.stockRank?this.stockRank="asc":this.stockRank="desc"):3==t?(this.stockRank="","desc"==this.priceRank?this.priceRank="asc":this.priceRank="desc"):"gte,0"==this.stock?this.stock="gte,2":this.stock="gte,0",this.p=1,this.getData()},onLoad:function(){this.p<this.totalLimit&&(this.p++,this.getData())},placeOrder:function(t){this.detailsData={isShow:!0,id:t}},toSearch:function(){window.location.href="/v3/search/search_index.html"}},components:{Header:d["a"],GoodsOne:l["a"],goodsDetail:h["a"],addCarAlert:u["a"]}},b=k,_=(i("943f"),i("c701")),g=Object(_["a"])(b,n,e,!1,null,"e59059f4",null);a["default"]=g.exports},"943f":function(t,a,i){"use strict";i("21cb")},ebad:function(t,a,i){"use strict";var n=i("151f"),e=i("28d5"),s=i("4bfa"),r=i("c4d5"),o=i("d1b9"),c=Object(n["a"])("list"),d=c[0],l=c[1],h=c[2];a["a"]=d({mixins:[Object(r["a"])((function(t){this.scroller||(this.scroller=Object(s["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var a,i=t.$el,n=t.scroller,s=t.offset,r=t.direction;a=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var o=a.bottom-a.top;if(!o||Object(e["a"])(i))return!1;var c=!1,d=t.$refs.placeholder.getBoundingClientRect();c="up"===r?a.top-d.top<=s:d.bottom-a.bottom<=s,c&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:l("loading")},[this.slots("loading")||t(o["a"],{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var a=this.slots("finished")||this.finishedText;if(a)return t("div",{class:l("finished-text")},[a])}},genErrorText:function(){var t=this.$createElement;if(this.error){var a=this.slots("error")||this.errorText;if(a)return t("div",{on:{click:this.clickErrorText},class:l("error-text")},[a])}}},render:function(){var t=arguments[0],a=t("div",{ref:"placeholder",key:"placeholder",class:l("placeholder")});return t("div",{class:l(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():a,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():a])}})}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment