pages-index-gift.3d8dc0d0.js 8.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-gift"],{"1fe6":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.cartAdd=function(t){return(0,a.default)({url:"/api/cart/add",method:"post",data:t})},e.collectAdd=function(t){return(0,a.default)({url:"/api/collect/add",method:"post",data:t})},e.collectDel=function(t){return(0,a.default)({url:"/api/collect/del",method:"post",data:t})},e.getBargainList=function(t){return(0,a.default)({url:"/api/bargain/list",method:"get",data:t})},e.getCategoryList=function(t){return(0,a.default)({url:"/api/category",method:"get",data:t})},e.getCombinationLisPink=function(t,e){return(0,a.default)({url:"/api/combination/pink/"+e,method:"get",data:t})},e.getCombinationLisRemove=function(t,e){return(0,a.default)({url:"/api/combination/remove"+e,method:"get",data:t})},e.getCombinationList=function(t){return(0,a.default)({url:"/api/combination/list",method:"get",data:t})},e.getCombinationPoster=function(t){return(0,a.default)({url:"/api/combination/poster",method:"post",data:t})},e.getProducts=function(t){return(0,a.default)({url:"/api/products",method:"get",data:t})},e.getSeckillClass=function(t){return(0,a.default)({url:"/api/seckill/index",method:"get",data:t})},e.getSeckillList=function(t,e){return(0,a.default)({url:"/api/seckill/list/"+e,method:"get",data:t})},e.goodsDetail=function(t,e){return(0,a.default)({url:"/api/product/detail/"+e,method:"get",data:t})},e.groomList=function(t,e){return(0,a.default)({url:"/api/groom/list/"+e,method:"get",data:t})},e.groupGoods=function(t,e){return(0,a.default)({url:"/api/combination/detail/"+e,method:"get",data:t})},e.poster=function(t){return(0,a.default)({url:"/api/product/poster",method:"post",data:t})},e.reply_config=function(t,e){return(0,a.default)({url:"/api/reply/config/"+e,method:"get",data:t})},e.reply_list=function(t,e){return(0,a.default)({url:"/api/reply/list/"+e,method:"get",data:t})},e.searchKeyword=function(t){return(0,a.default)({url:"/api/search/keyword",method:"get",data:t})},e.seckillGoods=function(t,e){return(0,a.default)({url:"/api/seckill/detail/"+e,method:"get",data:t})};var a=i(o("4b83"))},2841:function(t,e,o){"use strict";var i=o("8cdb"),a=o.n(i);a.a},"2e96":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("c223");var a=o("f729"),n=i(o("4b16")),d=o("1fe6"),r={components:{empty:n.default},data:function(){return{goodList:[],loadingType:"more",page:1,limit:10,type:0,loaded:!1,cid:0}},onLoad:function(t){t.id&&(this.cid=t.id,uni.setNavigationBarTitle({title:t.tit})),this.getGoodList(),this.shareDate()},onShow:function(){},onReachBottom:function(){this.getGoodList()},onPullDownRefresh:function(){this.getGoodList("down")},methods:{shareDate:function(){(0,a.shareLoad)()},navto:function(t){uni.navigateTo({url:t,fail:function(){uni.switchTab({url:t})}})},getGoodList:function(t){var e=this;"down"==t&&(e.loadingType="more",e.page=1),"loading"!=e.loadingType&&"noMore"!=e.loadingType&&(e.loadingType="loading",(0,d.getProducts)({page:e.page,limit:e.limit,cid:e.cid}).then((function(o){"down"==t&&(e.goodList=[],uni.stopPullDownRefresh()),e.goodList=e.goodList.concat(o.data),e.limit==o.data.length?(e.loadingType="more",e.page++):e.loadingType="noMore",e.loaded=!0})).catch((function(t){e.loadingType="more",uni.stopPullDownRefresh()})))}}};e.default=r},"65df":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.hot-list[data-v-6065d941]{width:100%;display:flex;flex-wrap:wrap;padding:%?20?% %?20?% %?30?%;justify-content:space-between}.hot-list .hotgoods-item[data-v-6065d941]{width:%?345?%;background-color:#fff;border-radius:%?12?%;box-shadow:0 0 %?15?% rgba(0,0,0,.2);margin-bottom:%?15?%}.hot-list .hotgoods-item .image-wrapper[data-v-6065d941]{width:%?345?%;height:%?345?%;border-radius:3px;overflow:hidden;position:relative}.hot-list .hotgoods-item .image-wrapper .image-bg[data-v-6065d941]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;opacity:1;border-radius:%?12?% %?12?% 0 0;z-index:2}.hot-list .hotgoods-item .image-wrapper .image[data-v-6065d941]{width:100%;height:100%;opacity:1;border-radius:%?12?% %?12?% 0 0}.hot-list .hotgoods-item .title[data-v-6065d941]{margin-top:%?24?%;padding:0 %?20?%;font-size:%?32?%;font-weight:500;color:#333}.hot-list .hotgoods-item .hot-price[data-v-6065d941]{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:0 %?10?%}.hot-list .hotgoods-item .hot-price .hotPrice-box[data-v-6065d941]{padding:%?2?% %?6?%;background:linear-gradient(90deg,#c79a4c,#f9df7f);border-radius:%?5?%;text-align:center;line-height:%?28?%;font-size:%?20?%;font-family:Source Han Sans CN;font-weight:400;color:#fff}.hot-list .hotgoods-item .hot-price .price[data-v-6065d941]{margin-left:%?10?%;font-size:%?36?%;color:red;font-weight:500;display:flex;width:100%;justify-content:flex-start;align-items:center}.hot-list .hotgoods-item .hot-price .price .jf[data-v-6065d941]{font-size:%?20?%}.hot-list .hotgoods-item .hot-price .price .give-jf[data-v-6065d941]{display:inline-block;padding:%?8?%;background:linear-gradient(90deg,#ff834d,#ff2600);border-radius:%?12?% 0 %?12?% 0;font-size:%?22?%;font-weight:500;color:#fff;margin-left:%?22?%}.hot-list .hotgoods-item .hot-price .price .ot-pirce[data-v-6065d941]{margin-left:%?7?%;font-size:%?26?%;font-weight:500;text-decoration:line-through;color:#999;align-self:flex-end}.hot-list .hotgoods-item .hot-price .yuanPrice[data-v-6065d941]{margin-left:%?10?%;font-size:%?20?%;font-family:PingFang SC;font-weight:500;text-decoration:line-through;color:#999}.hot-list .hotgoods-item .hot-price .cart-icon uni-image[data-v-6065d941]{width:%?44?%;height:%?44?%}.goodss[data-v-6065d941]{border-radius:%?0?% %?0?% %?20?% %?20?%;box-shadow:%?0?% %?0?% %?20?% %?0?% rgba(50,50,52,.06);margin-bottom:%?20?%;padding-bottom:%?20?%}.goodss[data-v-6065d941]:last-of-type{margin-bottom:0}.goodss .goods-img[data-v-6065d941]{position:relative;width:%?702?%;height:%?303?%}.goodss .goods-img uni-image[data-v-6065d941]{width:%?702?%;height:%?303?%}.goodss .goods-img .img-bg[data-v-6065d941]{position:absolute;top:0;left:0}.goodss .goods-tit[data-v-6065d941]{font-weight:500;font-size:%?32?%;color:#333;padding:%?15?% %?20?%}.goodss .goods-price[data-v-6065d941]{display:flex;padding:0 %?20?%}.goodss .goods-price .new-price[data-v-6065d941]{font-weight:700;font-size:%?32?%;color:#ff4c4c}.goodss .goods-price .tc[data-v-6065d941]{flex-grow:1}.goodss .goods-price .ot-pirce[data-v-6065d941]{font-weight:500;font-size:%?26?%;color:#999;-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.goodss .goods-price .gobuy[data-v-6065d941]{display:inline-block;width:%?170?%;line-height:%?53?%;background:linear-gradient(30deg,#ff4c4c,#fe6238);border-radius:%?27?%;text-align:center;font-weight:700;font-size:%?28?%;color:#fff}',""]),t.exports=e},"7b5c":function(t,e,o){"use strict";o.r(e);var i=o("cf08"),a=o("98b4");for(var n in a)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(n);o("2841");var d=o("828b"),r=Object(d["a"])(a["default"],i["b"],i["c"],!1,null,"6065d941",null,!1,i["a"],void 0);e["default"]=r.exports},"8cdb":function(t,e,o){var i=o("65df");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("967d").default;a("41138b0e",i,!0,{sourceMap:!1,shadowMode:!1})},"98b4":function(t,e,o){"use strict";o.r(e);var i=o("2e96"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},cf08:function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return i}));var i={uniLoadMore:o("7065").default},a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{},[t.loaded&&0==t.goodList.length?o("empty"):t._e(),o("v-uni-view",{staticClass:"hot-list"},t._l(t.goodList,(function(e){return o("v-uni-view",{key:e.id,staticClass:"hotgoods-item",staticStyle:{height:"490rpx"},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.navto("/pages/product/product?id="+e.id)}}},[o("v-uni-view",{staticClass:"image-wrapper"},[o("v-uni-image",{staticClass:"image",attrs:{src:e.image,mode:"scaleToFill"}})],1),o("v-uni-view",{staticClass:"flex",staticStyle:{"flex-direction":"column","justify-content":"space-between","align-items":"flex-start",height:"120rpx"}},[o("v-uni-view",{staticClass:"title clamp"},[t._v(t._s(e.store_name))]),o("v-uni-view",{staticClass:"hot-price"},[o("v-uni-view",{staticClass:"price"},[o("v-uni-text",[t._v("¥"+t._s(1*e.price))]),1*e.ot_price>1*e.price?o("v-uni-text",{staticClass:"ot-pirce"},[t._v("¥"+t._s(e.ot_price))]):t._e()],1)],1)],1)],1)})),1),t.loaded&&0==t.goodList.length?t._e():o("uni-load-more",{attrs:{status:t.loadingType}})],1)},n=[]}}]);