pages-goods-goods_search-index.8d7c26f5.js 30 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-goods_search-index"],{"03f6":function(t,e,i){"use strict";i.r(e);var a=i("0da1"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"05ed":function(t,e,i){"use strict";i.r(e);var a=i("28a7"),n=i("03f6");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("deca");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"1f94fe02",null,!1,a["a"],void 0);e["default"]=s.exports},"0c3c":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("26cb"),o=a(i("7c3b")),r=i("5318"),s={name:"Home",props:{},mixins:[o.default],data:function(){return{top:"545",imgHost:r.HTTP_REQUEST_URL}},computed:(0,n.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};e.default=s},"0d7c":function(t,e,i){var a=i("f102");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("31e1a4d4",a,!0,{sourceMap:!1,shadowMode:!1})},"0da1":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("498a"),i("99af");var n=i("f09e"),o=i("53fd"),r=a(i("8eab")),s=a(i("1509")),c=a(i("7ffa")),u=a(i("7c3b")),d=i("5318"),l={components:{goodList:r.default,recommend:s.default,home:c.default},mixins:[u.default],data:function(){return{imgHost:d.HTTP_REQUEST_URL,hostProduct:[],searchValue:"",focus:!0,bastList:[],hotSearchList:[],first:0,limit:8,page:1,loading:!1,loadend:!1,loadTitle:this.$t("加载更多"),hotPage:1,isScroll:!0,history:[],scrollTop:0,old:{scrollTop:0},scrollTopShow:!1}},onShow:function(){this.getHostProduct(),this.searchList();try{this.hotSearchList=uni.getStorageSync("hotList")}catch(t){}},onPageScroll:function(t){uni.$emit("scroll")},methods:{scrollLower:function(){this.bastList.length>0?this.getProductList():this.getHostProduct()},scroll:function(t){this.scrollTopShow=t.detail.scrollTop>150,this.old.scrollTop=t.detail.scrollTop},goTop:function(t){var e=this;this.scrollTop=this.old.scrollTop,this.$nextTick((function(){e.scrollTop=0}))},searchList:function(){var t=this;(0,o.searchList)({page:1,limit:10}).then((function(e){t.history=e.data}))},clear:function(){var t=this;(0,o.clearSearch)().then((function(e){uni.showToast({title:e.msg,success:function(){t.history=[]}})}))},inputConfirm:function(t){t.detail.value&&(uni.hideKeyboard(),this.setHotSearchValue(t.detail.value))},getRoutineHotSearch:function(){var t=this;(0,n.getSearchKeyword)().then((function(e){t.$set(t,"hotSearchList",e.data)}))},getProductList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,n.getProductslist)({keyword:t.searchValue.trim(),page:t.page,limit:t.limit}).then((function(e){var i=e.data,a=i.length<t.limit;t.bastList=t.$util.SplitArray(i,t.bastList),t.$set(t,"bastList",t.bastList),t.loading=!1,t.loadend=a,t.loadTitle=a?t.$t("没有更多内容啦~"):t.$t("加载更多"),t.page=t.page+1})).catch((function(e){t.loading=!1,t.loadTitle=t.$t("加载更多")})))},getHostProduct:function(){var t=this;this.isScroll&&(0,n.getProductHot)(t.hotPage,t.limit).then((function(e){t.isScroll=e.data.length>=t.limit,t.hostProduct=t.hostProduct.concat(e.data),t.hotPage+=1}))},setHotSearchValue:function(t){this.$set(this,"searchValue",t),this.page=1,this.loadend=!1,this.$set(this,"bastList",[]),this.getProductList()},setValue:function(t){this.$set(this,"searchValue",t.detail.value)},searchBut:function(){if(!this.searchValue.trim())return this.$util.Tips({title:this.$t("请输入要搜索的商品")});this.focus=!1,this.page=1,this.loadend=!1,this.$set(this,"bastList",[]),uni.showLoading({title:this.$t("正在搜索中")}),this.getProductList(),uni.hideLoading()}}};e.default=l},1509:function(t,e,i){"use strict";i.r(e);var a=i("1dd3"),n=i("c62c");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("3f0b");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"3a17a103",null,!1,a["a"],void 0);e["default"]=s.exports},"1dd3":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={easyLoadimage:i("8a70").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"recommend",style:t.colorStyle},[i("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian"}),i("v-uni-text",{staticClass:"name"},[t._v(t._s(t.$t("热门推荐")))]),i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian lefticon"})],1),i("v-uni-view",{staticClass:"recommendList acea-row row-between-wrapper"},t._l(t.hostProduct,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}}),e.activity&&"1"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("秒杀")))]):t._e(),e.activity&&"2"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("砍价")))]):t._e(),e.activity&&"3"===e.activity.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("拼团")))]):t._e()],1),i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1)],1)})),1)],1)},o=[]},"1fed":function(t,e,i){var a=i("99a3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("5a28e42e",a,!0,{sourceMap:!1,shadowMode:!1})},"28a7":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:"wrapper",style:t.colorStyle},[i("v-uni-scroll-view",{staticClass:"scroll-Y",attrs:{"scroll-top":t.scrollTop,"scroll-y":"true"},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrollLower.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"searchGood"},[i("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-sousuo"}),i("v-uni-input",{attrs:{type:"text",focus:!0,placeholder:t.$t("搜索商品名称"),"placeholder-class":"placeholder"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.inputConfirm.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.setValue.apply(void 0,arguments)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),i("v-uni-view",{staticClass:"bnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut.apply(void 0,arguments)}}},[t._v(t._s(t.$t("搜索")))])],1),t.history.length?[i("v-uni-view",{staticClass:"title acea-row row-between-wrapper"},[i("v-uni-view",[t._v(t._s(t.$t("搜索历史")))]),i("v-uni-view",{staticClass:"iconfont icon-shanchu",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"list acea-row"},[t._l(t.history,(function(e,a){return[e.keyword?i("v-uni-view",{key:a+"_0",staticClass:"item history-item line1",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setHotSearchValue(e.keyword)}}},[t._v(t._s(e.keyword))]):t._e()]}))],2)]:t._e(),i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("热门搜索")))]),i("v-uni-view",{staticClass:"list acea-row"},[t._l(t.hotSearchList,(function(e,a){return[e.val?i("v-uni-view",{key:a+"_0",staticClass:"item line1",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setHotSearchValue(e.val)}}},[t._v(t._s(e.val))]):t._e()]}))],2),t.bastList.length?i("v-uni-view",{staticClass:"line"}):t._e(),t.bastList.length>0?i("goodList",{attrs:{bastList:t.bastList}}):t._e(),t.bastList.length>0?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],2),i("v-uni-view",{staticClass:"noCommodity"},[0==t.bastList.length?i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/noSearch.png"}})],1):t._e(),0==t.bastList.length&&t.page>1?i("recommend",{attrs:{hostProduct:t.hostProduct}}):t._e()],1)],1),i("home"),t.scrollTopShow?i("v-uni-view",{staticClass:"back-top",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goTop.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1)},n=[]},"2cbd":function(t,e,i){"use strict";i.r(e);var a=i("ac37"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"3f0b":function(t,e,i){"use strict";var a=i("1fed"),n=i.n(a);n.a},"44c1":function(t,e,i){var a=i("24fb");e=a(!1),e.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/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.goodList .item[data-v-7e8a9a3c]{position:relative;padding-left:%?30?%}.goodList .item .pictrue[data-v-7e8a9a3c]{width:%?180?%;height:%?180?%;position:relative}.goodList .item .pictrue uni-image[data-v-7e8a9a3c]{width:100%;height:100%;border-radius:%?20?%}.goodList .item .pictrue .numPic[data-v-7e8a9a3c]{position:absolute;left:%?7?%;top:%?7?%;width:%?40?%;height:%?40?%;border-radius:50%}.goodList .item .underline[data-v-7e8a9a3c]{padding:%?30?% %?30?% %?30?% 0;border-bottom:1px solid #f5f5f5}.goodList .item:nth-last-child(1) .underline[data-v-7e8a9a3c]{border-bottom:0}.goodList .item .text[data-v-7e8a9a3c]{font-size:%?30?%;color:#222;width:%?489?%}.goodList .item .text .money[data-v-7e8a9a3c]{font-size:%?26?%;font-weight:700;margin-top:%?50?%}.goodList .item .text .money .num[data-v-7e8a9a3c]{font-size:%?34?%}.goodList .item .text .vip-money[data-v-7e8a9a3c]{font-size:%?24?%;color:#282828;font-weight:700;margin-top:%?15?%}.goodList .item .text .vip-money uni-image[data-v-7e8a9a3c]{width:%?64?%;height:%?26?%;margin-right:%?8?%;margin-left:%?8?%}.goodList .item .text .vip-money .num[data-v-7e8a9a3c]{font-size:%?22?%;color:#aaa;font-weight:400;margin-top:%?-2?%;white-space:nowrap}.goodList .item .text .vip-money .num uni-text[data-v-7e8a9a3c]{white-space:nowrap}.goodList .item .text .vip-money .num ~ .num[data-v-7e8a9a3c]{margin-left:%?22?%}.goodList .item .iconfont[data-v-7e8a9a3c]{position:absolute;right:%?30?%;width:%?50?%;height:%?50?%;border-radius:50%;font-size:%?30?%;bottom:%?38?%}',""]),t.exports=e},6397:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},"6fae":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.goPage=function(){return new Promise((function(t){if(0!=a.globalData.isIframe)return!1;t(!0)}))},e.goShopDetail=function(t,e){return new Promise((function(i){t.activity&&"1"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.activity.id,"&time=").concat(t.activity.time,"&status=1")}):t.activity&&"2"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(t.activity.id,"&bargain=").concat(e)}):t.activity&&"3"===t.activity.type?uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(t.activity.id)}):i(t)}))},i("d3b7"),i("99af");var a=getApp()},"7b84":function(t,e){t.exports="data:image/png;base64,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"},"7ffa":function(t,e,i){"use strict";i.r(e);var a=i("cf5d"),n=i("d105");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("dea5");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"5c721f6d",null,!1,a["a"],void 0);e["default"]=s.exports},8335:function(t,e,i){"use strict";var a=i("ba28"),n=i.n(a);n.a},"8eab":function(t,e,i){"use strict";i.r(e);var a=i("cc0d"),n=i("2cbd");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("8335");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"7e8a9a3c",null,!1,a["a"],void 0);e["default"]=s.exports},"99a3":function(t,e,i){var a=i("24fb");e=a(!1),e.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/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.recommend[data-v-3a17a103]{background-color:#fff}.recommend .title[data-v-3a17a103]{height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-3a17a103]{margin:0 %?28?%}.recommend .title .iconfont[data-v-3a17a103]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-3a17a103]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-3a17a103]{padding:0 %?30?%}.recommend .recommendList .item[data-v-3a17a103]{width:%?335?%;margin-bottom:%?30?%;border-radius:%?20?% %?20?% 0 0;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03);padding-bottom:%?10?%}.recommend .recommendList .item .pictrue[data-v-3a17a103]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue[data-v-3a17a103] ,\r\n.recommend .recommendList .item .pictrue[data-v-3a17a103] uni-image,\r\n.recommend .recommendList .item .pictrue[data-v-3a17a103] .easy-loadimage,\r\n.recommend .recommendList .item .pictrue[data-v-3a17a103] uni-image{width:100%;height:%?335?%;border-radius:%?20?%}.recommend .recommendList .item .name[data-v-3a17a103]{font-size:%?28?%;color:#282828;margin-top:%?20?%;padding:0 %?10?%;line-height:%?34?%;height:%?68?%}.recommend .recommendList .item .money[data-v-3a17a103]{font-size:%?20?%;margin-top:%?8?%;padding:0 %?10?% %?0?% %?10?%}.recommend .vip-money[data-v-3a17a103]{font-size:%?24?%;color:#282828;font-weight:700;display:flex;align-items:center;padding:%?0?% 0 0 %?10?%}.recommend .vip-money uni-image[data-v-3a17a103]{width:%?46?%;height:%?21?%;margin-left:%?4?%}.recommend .recommendList .item .money .num[data-v-3a17a103]{font-size:%?28?%}',""]),t.exports=e},ac37:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var a=i("26cb"),n=i("6fae"),o={computed:(0,a.mapGetters)(["uid"]),props:{status:{type:Number,default:0},bastList:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goDetail:function(t){var e=this;(0,n.goPage)().then((function(i){(0,n.goShopDetail)(t,e.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}))}}};e.default=o},ba28:function(t,e,i){var a=i("44c1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("328ab3f2",a,!0,{sourceMap:!1,shadowMode:!1})},c62c:function(t,e,i){"use strict";i.r(e);var a=i("ff33"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},cc0d: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,a=t._self._c||e;return a("v-uni-view",{staticClass:"goodList"},[a("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":"true","scroll-with-animation":"true"}},[t._l(t.bastList,(function(e,n){return[a("v-uni-view",{key:n+"_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)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{attrs:{src:e.image}}),e.activity&&"1"===e.activity.type?a("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v(t._s(t.$t("秒杀")))]):t._e(),e.activity&&"2"===e.activity.type?a("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v(t._s(t.$t("砍价")))]):t._e(),e.activity&&"3"===e.activity.type?a("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v(t._s(t.$t("拼团")))]):t._e()],1),a("v-uni-view",{staticClass:"underline"},[a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"line1"},[t._v(t._s(e.store_name))]),a("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))),a("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1),e.is_vip&&e.vip_price&&e.vip_price>0?a("v-uni-view",{staticClass:"vip-money acea-row row-middle"},[t._v(t._s(t.$t("¥"))+t._s(e.vip_price||0)),a("v-uni-image",{attrs:{src:i("7b84")}}),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.$t("已售"))+t._s(e.sales)+t._s(t.$t(e.unit_name)))])],1):a("v-uni-view",{staticClass:"vip-money acea-row row-middle"},[a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.$t("已售"))+t._s(e.sales)+t._s(t.$t(e.unit_name)))])],1)],1)],1)],1)]}))],2)],1)},n=[]},cf5d: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",{style:t.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?t.imgHost+"/statics/images/close.gif":t.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},n=[]},d105:function(t,e,i){"use strict";i.r(e);var a=i("0c3c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},dea5:function(t,e,i){"use strict";var a=i("f006"),n=i.n(a);n.a},deca:function(t,e,i){"use strict";var a=i("0d7c"),n=i.n(a);n.a},f006:function(t,e,i){var a=i("6397");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("17166856",a,!0,{sourceMap:!1,shadowMode:!1})},f09e:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.collectAdd=function(t,e){return n.default.post("collect/add",{id:t,product:void 0===e?"product":e})},e.collectAll=function(t,e){return n.default.post("collect/all",{id:t,category:void 0===e?"product":e})},e.collectDel=function(t,e){return n.default.post("collect/del",{id:t,category:void 0===e?"product":e})},e.create=function(t){return n.default.post("agent/apply/".concat(t.id),t)},e.deleteVisitList=function(t){return n.default.delete("user/visit",t)},e.getAgentAgreement=function(t){return n.default.get("agent/get_agent_agreement",{},{noAuth:!0})},e.getAttr=function(t,e){return n.default.get("v2/get_attr/"+t+"/"+e)},e.getCategoryList=function(){return n.default.get("category",{},{noAuth:!0})},e.getCodeApi=function(){return n.default.get("verify_code",{},{noAuth:!0})},e.getCollectUserList=function(t){return n.default.get("collect/user",t)},e.getGoodsDetails=function(){return n.default.get("agent/apply/info",{},{noAuth:!0})},e.getGroomList=function(t,e){return n.default.get("groom/list/"+t,e,{noAuth:!0})},e.getHomeProducts=function(t){return n.default.get("home/products",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return n.default.get("advance/detail/"+t)},e.getProductCode=function(t){return n.default.get("product/code/"+t,{})},e.getProductDetail=function(t){return n.default.get("product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return n.default.get("product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})},e.getProductslist=function(t){return n.default.get("products",t,{noAuth:!0})},e.getReplyConfig=function(t){return n.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return n.default.get("reply/list/"+t,e)},e.getSearchKeyword=function(){return n.default.get("search/keyword",{},{noAuth:!0})},e.getVisitList=function(t){return n.default.get("user/visit_list",t)},e.postCartAdd=function(t){return n.default.post("cart/add",t)},e.postCartNum=function(t){return n.default.post("v2/set_cart_num",t)},e.registerVerify=function(t){return n.default.post("register/verify",t,{noAuth:!0})},e.storeDiscountsList=function(t){return n.default.get("store_discounts/list/"+t,{},{noAuth:!0})},e.storeListApi=function(t){return n.default.get("store_list",t)};var n=a(i("52bd"))},f102:function(t,e,i){var a=i("24fb");e=a(!1),e.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/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-1f94fe02]{background-color:#fff!important}body.?%PAGE?%[data-v-1f94fe02]{background-color:#fff!important}.scroll-Y[data-v-1f94fe02]{height:100vh}.wrapper[data-v-1f94fe02]{position:relative;max-height:100vh;overflow:hidden}.wrapper .back-top[data-v-1f94fe02]{position:absolute;right:%?40?%;bottom:%?60?%;width:%?60?%;height:%?60?%;border-radius:50%;display:flex;justify-content:center;align-items:center;border:%?1?% solid #ccc;background-color:#fff}.wrapper .back-top .icon-xiangshang[data-v-1f94fe02]{color:#ccc;font-weight:700}.noCommodity[data-v-1f94fe02]{border-top-width:0}.searchGood .search[data-v-1f94fe02]{padding-left:%?30?%}.searchGood .search[data-v-1f94fe02]{padding-top:%?20?%}.searchGood .search .input[data-v-1f94fe02]{width:%?598?%;background-color:#f7f7f7;border-radius:%?33?%;padding:0 %?35?%;box-sizing:border-box;height:%?66?%}.searchGood .search .input uni-input[data-v-1f94fe02]{width:%?472?%;font-size:%?28?%}.searchGood .search .input .placeholder[data-v-1f94fe02]{color:#999}.searchGood .search .input .iconfont[data-v-1f94fe02]{color:#555;font-size:%?35?%}.searchGood .search .bnt[data-v-1f94fe02]{width:%?120?%;text-align:center;height:%?66?%;line-height:%?66?%;font-size:%?30?%;color:#282828}.searchGood .title[data-v-1f94fe02]{font-size:%?28?%;color:#999;margin:%?50?% %?30?% %?25?% %?30?%}.searchGood .title .iconfont[data-v-1f94fe02]{font-size:%?28?%}.searchGood .list[data-v-1f94fe02]{padding-left:%?10?%}.searchGood .list .item[data-v-1f94fe02]{font-size:%?26?%;color:#454545;padding:0 %?21?%;height:%?60?%;border-radius:%?3?%;line-height:%?60?%;border:%?1?% solid #aaa;margin:0 0 %?20?% %?20?%}.searchGood .list .item.history-item[data-v-1f94fe02]{height:%?50?%;border:none;border-radius:%?25?%;background-color:#f7f7f7;line-height:%?50?%}.searchGood .line[data-v-1f94fe02]{border-bottom:%?1?% solid #eee;margin:%?20?% %?30?% 0 %?30?%}',""]),t.exports=e},ff33:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("26cb"),o=i("6fae"),r=a(i("7c3b")),s={computed:(0,n.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}}},mixins:[r.default],data:function(){return{}},methods:{goDetail:function(t){(0,o.goShopDetail)(t,this.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}}};e.default=s}}]);