pages-home-pointsgoods-Detail~pages-home-pointsgoods-Index~pages-home-pointsgoods-PointProd.976e4f75.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-pointsgoods-Detail~pages-home-pointsgoods-Index~pages-home-pointsgoods-PointProd"],{"14e0":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/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.main-content[data-v-da57f8b4]{font-size:.7rem;line-height:1.8}.font-size-activity-tag[data-v-da57f8b4]{font-size:.5rem!important}.color-tip[data-v-da57f8b4]{color:#909399!important}.color-base-text[data-v-da57f8b4]{color:#ff4544!important}.goods-item[data-v-da57f8b4]{position:relative;background-color:#fff;border-radius:5px;margin-bottom:.5rem}.goods-item .goods-img[data-v-da57f8b4]{position:relative;overflow:hidden;padding-top:100%;border-top-left-radius:5px;border-top-right-radius:5px}.goods-item .goods-img .img-content[data-v-da57f8b4]{width:100%;height:100%;position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.goods-item .goods-tag[data-v-da57f8b4]{color:#fff;line-height:1;padding:4px 8px;position:absolute;border-bottom-right-radius:5px;top:0;left:0;font-size:.6rem}.goods-item .goods-tag-img[data-v-da57f8b4]{position:absolute;border-top-left-radius:5px;width:40px;height:40px;top:0;left:0;z-index:5;overflow:hidden}.goods-item .goods-tag-img .img-content[data-v-da57f8b4]{width:100%;height:100%}.goods-item .info-wrap[data-v-da57f8b4]{padding:0 13px 13px 13px}.goods-item .goods-name[data-v-da57f8b4]{font-size:.7rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:1;-webkit-box-orient:vertical;margin-top:10px;height:18px}.goods-item .discount-price[data-v-da57f8b4]{display:inline-block;font-weight:700;line-height:1;margin-top:8px}.goods-item .discount-price .unit[data-v-da57f8b4]{margin-right:3px}.goods-item .pro-info[data-v-da57f8b4]{display:flex;margin-top:8px}.goods-item .pro-info > .view-content[data-v-da57f8b4]{line-height:1;-webkit-box-flex:1;-webkit-flex:1;flex:1;display:flex;align-items:center}.goods-item .pro-info > .view-content[data-v-da57f8b4]:nth-child(2){-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.img-content > img[data-v-da57f8b4]{width:100%;height:100%}.bottom-wrapper[data-v-da57f8b4]{display:flex}.bottom-wrapper .lineheight-clear[data-v-da57f8b4]{flex:1}',""]),t.exports=e},"1a2e":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(i("5530")),n=i("26cb"),o=i("de79"),r={name:"HomeBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,s.default)((0,s.default)({},(0,n.mapState)({isOnline:function(t){return t.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var t=getCurrentPages(),e=t[t.length-1];this.page={route:e.route,options:e.options},this.page.options&&this.page.options.inviter_id&&this.memberInviterId({inviterId:this.page.options.inviter_id}),this.getCartCount()},methods:(0,s.default)((0,s.default)({},(0,n.mapMutations)({memberInviterId:"memberInviterId"})),{},{getCartCount:function(){var t=this;this.isOnline&&(0,o.cartQuantity)().then((function(e){e&&(t.cartNumber=e.result.cart_count)}))}})};e.default=r},2382: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/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.status-holder[data-v-cb006efa]{background-color:#fff}.home-base[data-v-cb006efa]{display:flex;flex-direction:column}.content[data-v-cb006efa]{flex:1}.item-wrap[data-v-cb006efa]{position:relative}.image[data-v-cb006efa]{width:1rem;height:1rem;display:block;margin-left:auto;margin-right:auto;margin-top:.2rem;margin-bottom:.2rem}.icon[data-v-cb006efa]{position:absolute;right:.8rem;top:.2rem;font-size:.5rem;line-height:.7rem;width:.9rem;height:.7rem;background:#ef3338;border-radius:1rem;text-align:center;color:#fff}',""]),t.exports=e},"24f2":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),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:"div home-base"},[a("v-uni-view",{staticClass:"status-holder"}),a("v-uni-view",{staticClass:"content"},[t._t("default")],2),t.show?a("v-uni-view",{staticClass:"div common-footer-wrap"},[a("v-uni-view",{staticClass:"common-footer"},[a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("0207")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("241a")}}),a("v-uni-text",{staticClass:"span text"},[t._v("首页")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("79bf")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("d86e")}}),a("v-uni-text",{staticClass:"span text"},[t._v("分类")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("492b")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("1702")}}),a("v-uni-text",{staticClass:"span text"},[t._v("搜索")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("62a8")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("8559")}}),a("v-uni-text",{staticClass:"span text"},[t._v("购物车")]),t.cartNumber>0?a("v-uni-text",{staticClass:"span icon"},[t._v(t._s(t.getCarCount))]):t._e()],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("857e")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("e31d")}}),a("v-uni-text",{staticClass:"span text"},[t._v("我的")])],1)],1)],1)],1):t._e()],1)},s=[]},"2df5":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),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:"div main-content"},[i("v-uni-view",{staticClass:"div goods-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPointsgoodsDetail(t.item.pgoods_id)}}},[i("v-uni-view",{staticClass:"div goods-img"},[i("v-uni-view",{staticClass:"div img-content"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:t.item.pgoods_image}})],1)],1),i("v-uni-view",{staticClass:"div info-wrap"},[i("v-uni-view",{staticClass:"div name-wrap"},[i("v-uni-view",{staticClass:"div goods-name"},[t._v(t._s(t.item.pgoods_name))])],1),i("v-uni-view",{staticClass:"div bottom-wrapper"},[i("v-uni-view",{staticClass:"div lineheight-clear"},[i("v-uni-view",{staticClass:"div discount-price"},[i("v-uni-text",{staticClass:"span text-content unit color-base-text"},[i("v-uni-text",{staticClass:"span"},[t._v(t._s(t.item.pgoods_points))])],1),i("v-uni-text",{staticClass:"span text-content unit color-base-text font-size-tag"},[i("v-uni-text",{staticClass:"span"},[t._v("积分")])],1)],1)],1),i("v-uni-view",{staticClass:"div pro-info"},[i("v-uni-view",{staticClass:"div font-size-activity-tag color-tip"},[t._v("库存"+t._s(t.item.pgoods_storage))]),i("v-uni-view",{staticClass:"div sale font-size-activity-tag color-tip"})],1)],1)],1)],1)],1)},s=[]},"3d3d":function(t,e,i){"use strict";i.r(e);var a=i("24f2"),s=i("ee69");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("9697");var o=i("f0c5"),r=Object(o["a"])(s["default"],a["b"],a["c"],!1,null,"cb006efa",null,!1,a["a"],void 0);e["default"]=r.exports},"60ec":function(t,e,i){"use strict";i.r(e);var a=i("8a03"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"67e5":function(t,e,i){"use strict";var a=i("b238"),s=i.n(a);s.a},"784d":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getPointsorderList=e.getPointshop=e.getPointsgoodsList=e.getPointsgoodsInfo=e.getPointVoucherList=e.getPointMallVoucherList=e.exchangePointVoucher=e.exchangePointMallVoucher=void 0;var a=i("887c");e.getPointshop=function(){return(0,a.requestApi)("/Pointshop/index","POST",{})};e.getPointVoucherList=function(t){return(0,a.requestApi)("/Pointvoucher/index","POST",{page:t.page,per_page:t.per_page,client_type:"wap"})};e.exchangePointVoucher=function(t){return(0,a.requestApi)("/Pointvoucher/voucherexchange_save","POST",t)};e.getPointMallVoucherList=function(t){return(0,a.requestApi)("/Pointmallvoucher/index","POST",{page:t.page,per_page:t.per_page,gc_id:t.gc_id,client_type:"wap"})};e.exchangePointMallVoucher=function(t){return(0,a.requestApi)("/Pointmallvoucher/mallvoucherexchange_save","POST",t)};e.getPointsgoodsList=function(t){return(0,a.requestApi)("/Pointprod/index","POST",{page:t.page,per_page:t.per_page,client_type:"wap"})};e.getPointsgoodsInfo=function(t){return(0,a.requestApi)("/Pointprod/pinfo","POST",{id:t})};e.getPointsorderList=function(t,e){return(0,a.requestApi)("/Pointprod/get_order_list","POST",{page:t.page,per_page:t.per_page,pgoods_id:e})}},"8a03":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("0b9f"),s={name:"index",data:function(){return{shareVisible:!1,goodsList:[]}},props:["item"],components:{},methods:{goPointsgoodsDetail:function(t){uni.navigateTo({url:"/pages/home/pointsgoods/Detail?"+(0,a.urlencode)({pgoods_id:t})})}}};e.default=s},9697:function(t,e,i){"use strict";var a=i("fe46"),s=i.n(a);s.a},b238:function(t,e,i){var a=i("14e0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("f3406e38",a,!0,{sourceMap:!1,shadowMode:!1})},b7d0:function(t,e,i){"use strict";i.r(e);var a=i("2df5"),s=i("60ec");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("67e5");var o=i("f0c5"),r=Object(o["a"])(s["default"],a["b"],a["c"],!1,null,"da57f8b4",null,!1,a["a"],void 0);e["default"]=r.exports},ee69:function(t,e,i){"use strict";i.r(e);var a=i("1a2e"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},fe46:function(t,e,i){var a=i("2382");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("c0a246c6",a,!0,{sourceMap:!1,shadowMode:!1})}}]);