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.
1 lines
13 KiB
1 lines
13 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-index"],{2971:function(t,i,e){"use strict";e.r(i);var a=e("2d9f"),o=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=o.a},"2d9f":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("14d9"),e("fb6a"),e("3c65"),e("c975");var a=e("26cb"),o=e("9252"),n=e("f26a"),d={components:{},data:function(){return{tabClick:0,autoplay:!0,circular:!0,interval:3e3,duration:500,imgUrls:[],goodList:[],modelList:[],modelLength:0,tabTitle:[],domain:n.HTTP_REQUEST_URL,loadend:!1,loading:!1,loadTitle:"加载更多",where:{page:1,limit:10,scope:""}}},computed:(0,a.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.getIntegralHome(),this.getIntegralScope(),this.getIntegralGoods()},watch:{},onShow:function(){},methods:{getIntegralHome:function(){var t=this;(0,o.getIntegralHome)().then((function(i){t.imgUrls=i.data.banner,t.modelList=i.data.district,t.modelLength=i.data.district.length,t.modelLength>10&&(t.modelList=t.chunk(t.modelList,10))}))},chunk:function(t,i){var e=0,a=e,o=[];while(e<t.length)e+=i,o.push(t.slice(a,e)),a=e;return o},getIntegralScope:function(){var t=this;(0,o.getIntegralScope)().then((function(i){i.data.unshift({title:"全部",group_data_id:"",min:"",max:""}),t.tabTitle=i.data})).catch((function(i){t.loading=!1,uni.showToast({title:i,icon:"none"})}))},longClick:function(t,i){this.tabClick=t,i.min||i.max?(i.min=i.min||0,i.max=i.max||0,this.where.scope=i.min+","+i.max):this.where.scope="",this.where.page=1,this.loading=!1,this.loadend=!1,this.goodList=[],this.getIntegralGoods()},getIntegralGoods:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,o.getIntegralGoodsList)(t.where).then((function(i){var e=i.data.list,a=t.$util.SplitArray(e,t.goodList),o=e.length<t.where.limit;t.loadend=o,t.loading=!1,t.loadTitle=o?"已全部加载":"加载更多",t.$set(t,"goodList",a),t.$set(t.where,"page",t.where.page+1)})).catch((function(i){t.loading=!1,uni.showToast({title:i,icon:"none"})})))},goGoodsDetail:function(t){uni.navigateTo({url:"/pages/points_mall/integral_goods_details?id=".concat(t.product_id)})},goPages:function(t){-1!=t.indexOf("http")?location.href=t:-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/index/index","/pages/plant_grass/index"].indexOf(t)?uni.navigateTo({url:t+"?delta=0"}):uni.switchTab({url:t})}},onReachBottom:function(){this.getIntegralGoods()}};i.default=d},7648:function(t,i,e){"use strict";e.r(i);var a=e("7888"),o=e("2971");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);e("d644");var d=e("f0c5"),r=Object(d["a"])(o["default"],a["b"],a["c"],!1,null,"52d71b29",null,!1,a["a"],void 0);i["default"]=r.exports},7888:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"points-swiper"},[e("v-uni-image",{staticClass:"bag",attrs:{src:t.domain+"/static/images/jf-head.png",mode:""}}),e("v-uni-view",{staticClass:"swiper"},[e("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:t.autoplay,circular:t.circular,interval:t.interval,duration:t.duration,"indicator-color":"rgba(255,255,255,0.6)","indicator-active-color":"#fff"}},[t._l(t.imgUrls,(function(i,a){return[e("v-uni-swiper-item",[e("v-uni-image",{staticClass:"slide-image",attrs:{src:i.pic},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages(i.url)}}})],1)]}))],2)],1)],1),t.modelLength<=10?e("v-uni-view",{staticClass:"model"},t._l(t.modelList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"model-list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages(i.url)}}},[e("v-uni-image",{staticClass:"img",attrs:{src:i.pic,mode:""}}),e("v-uni-view",{staticClass:"model-name line1"},[t._v(t._s(i.name))])],1)})),1):e("v-uni-view",{staticClass:"model"},[e("v-uni-view",{staticClass:"model-swiper"},[e("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:!1,circular:t.circular,"indicator-color":"rgba(0,0,0,0.3)"}},[t._l(t.modelList,(function(i,a){return[e("v-uni-swiper-item",{key:a+"_0",staticClass:"model-swiper-item"},t._l(i,(function(i,a){return e("v-uni-view",{key:a,staticClass:"model-list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPages(i.url)}}},[e("v-uni-image",{staticClass:"img",attrs:{src:i.pic,mode:""}}),e("v-uni-view",{staticClass:"model-name line1"},[t._v(t._s(i.name))])],1)})),1)]}))],2)],1)],1),e("v-uni-view",{staticClass:"body"},[e("v-uni-view",{staticClass:"body-title"},[e("v-uni-view",{staticClass:"navTabBox"},[e("v-uni-view",{staticClass:"longTab"},[e("v-uni-scroll-view",{staticStyle:{"white-space":"nowrap",display:"flex"},attrs:{"scroll-x":"true","scroll-with-animation":!0,"show-scrollbar":"true"}},t._l(t.tabTitle,(function(i,a){return e("v-uni-view",{key:a,staticClass:"longItem",class:a===t.tabClick?"click":"",attrs:{"data-index":a,id:"id"+a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.longClick(a,i)}}},[t._v(t._s(i.title))])})),1)],1)],1)],1),t.goodList.length?e("v-uni-view",{staticClass:"product-list"},t._l(t.goodList,(function(i,a){return e("v-uni-view",{staticClass:"product-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goGoodsDetail(i)}}},[e("v-uni-view",{staticClass:"pictrue"},[e("v-uni-image",{attrs:{src:i.image}}),0==i.stock?e("v-uni-view",{staticClass:"sell_out"},[t._v("已兑完")]):t._e()],1),e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"title line1"},[t._v(t._s(i.store_name))]),e("v-uni-view",{staticClass:"acea-row price-count"},[e("v-uni-image",{staticClass:"image",attrs:{src:t.domain+"/static/images/jf-point.png",mode:"widthFix"}}),e("v-uni-view",{staticClass:"price-box"},[e("v-uni-text",[t._v(t._s(i.ot_price))]),t._v("积分")],1),e("v-uni-view",{staticClass:"sales"},[t._v("+"+t._s(parseFloat(Number(i.price).toFixed(2)))+"元")])],1)],1)],1)})),1):t.loading?t._e():e("v-uni-view",{staticClass:"no-goods"},[e("v-uni-image",{attrs:{src:t.domain+"/static/images/noCart.png"}}),e("v-uni-view",{staticClass:"fontimg"},[t._v("暂无商品,去看点别的吧")])],1),t.loading?e("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[e("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],1)],1)},o=[]},"7be1":function(t,i,e){var a=e("96aa");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("4f06").default;o("0eb692df",a,!0,{sourceMap:!1,shadowMode:!1})},9252:function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.getIntegralGoodsList=function(t){return o.default.get("points/lst",t,{noAuth:!0})},i.getIntegralHome=function(){return o.default.get("points/home",{},{noAuth:!0})},i.getIntegralProductDetail=function(t){return o.default.get("points/detail/".concat(t),{},{noAuth:!0})},i.getIntegralScope=function(){return o.default.get("points/scope",{},{noAuth:!0})},i.integralOrderConfirm=function(t){return o.default.post("order/v3/check",t,{noAuth:!0})},i.integralOrderCreate=function(t){return o.default.post("order/v3/create",t,{noAuth:!0})},i.integralOrderDelete=function(t){return o.default.post("points/order/deleate/".concat(t),{},{noAuth:!0})},i.integralOrderDetail=function(t){return o.default.get("points/order/detail/".concat(t),{},{noAuth:!0})},i.integralOrderList=function(t){return o.default.get("points/order/lst",t,{noAuth:!0})},i.integralOrderTake=function(t){return o.default.post("points/order/take/".concat(t),{},{noAuth:!0})};var o=a(e("3314"))},"96aa":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.swiper[data-v-52d71b29],\nuni-swiper[data-v-52d71b29],\nuni-swiper-item[data-v-52d71b29],\n.slide-image[data-v-52d71b29]{width:100%;height:%?280?%;border-radius:%?16?%}[data-v-52d71b29] .uni-swiper-wrapper{border-radius:%?16?%}.swiper[data-v-52d71b29]{padding:%?30?%}.points-swiper[data-v-52d71b29]{position:relative;width:100%;background-color:#fff}.points-swiper .bag[data-v-52d71b29]{position:absolute;width:100%;height:%?285?%}.points-swiper .points-swiper-sty[data-v-52d71b29]{padding:%?20?% %?26?%}.model-swiper[data-v-52d71b29]{position:relative;width:100%}.model-swiper uni-swiper[data-v-52d71b29]{height:%?380?%}.model-swiper[data-v-52d71b29] .uni-swiper-dot{width:%?10?%;height:%?10?%;border-radius:%?8?%}.model-swiper[data-v-52d71b29] .uni-swiper-dot-active{width:%?36?%;background-color:var(--view-theme)}.model-swiper[data-v-52d71b29] .uni-swiper-dots-horizontal{bottom:0}.model[data-v-52d71b29]{display:flex;flex-flow:row wrap;padding:%?56?% %?20?%;background-color:#fff}.model-swiper-item[data-v-52d71b29]{display:flex;align-items:center;flex-flow:row wrap;height:auto!important;font-size:%?24?%;color:#282828;font-weight:500}.model-list[data-v-52d71b29]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 20%;font-size:%?24?%;color:#282828;margin-top:%?27?%;font-weight:500}.model-list .img[data-v-52d71b29]{width:%?90?%;height:%?90?%;margin-bottom:%?19?%;border-radius:100%}.model-list .model-name[data-v-52d71b29]{width:100%;max-width:%?140?%;text-align:center}.body[data-v-52d71b29]{background-color:#fff;padding:%?30?%;margin-top:%?20?%}.body .body-title .navTabBox[data-v-52d71b29]{color:#282828;position:relative}.body .body-title .navTabBox .longTab[data-v-52d71b29]{display:flex}.body .body-title .navTabBox .longTab .longItem[data-v-52d71b29]{height:%?50?%;display:inline-block;line-height:%?50?%;text-align:center;font-size:%?28?%;color:#282828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-y:hidden;\n /*解决ios上滑动不流畅*/-webkit-overflow-scrolling:touch;margin-right:%?50?%}.body .body-title .navTabBox .longTab .longItem[data-v-52d71b29]:last-child{margin-right:0}.body .body-title .navTabBox .longTab .longItem.click[data-v-52d71b29]{font-weight:700;color:var(--view-theme)}.body .product-list[data-v-52d71b29]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:%?30?%}.body .product-list .product-item[data-v-52d71b29]{position:relative;width:%?330?%;background:#fff;border-radius:%?10?%;margin-bottom:%?20?%}.body .product-list .product-item .pictrue[data-v-52d71b29]{position:relative;width:100%;height:%?330?%}.body .product-list .product-item .pictrue .sell_out[data-v-52d71b29]{display:flex;width:%?150?%;height:%?150?%;align-items:center;justify-content:center;border-radius:100%;background:rgba(0,0,0,.6);color:#fff;font-size:%?30?%;position:absolute;top:50%;left:50%;margin:%?-75?% 0 0 %?-75?%}.body .product-list .product-item .pictrue .sell_out[data-v-52d71b29]::before{content:"";display:block;width:%?140?%;height:%?140?%;border-radius:100%;border:1px dashed #fff;position:absolute;top:%?5?%;left:%?5?%}.body .product-list .product-item uni-image[data-v-52d71b29]{width:100%;height:%?330?%;border-radius:%?16?%}.body .product-list .product-item .info[data-v-52d71b29]{padding:%?14?% %?10?%}.body .product-list .product-item .info .title[data-v-52d71b29]{font-size:%?30?%;color:#282828}.body .product-list .product-item .info .price-count[data-v-52d71b29]{display:flex;margin-top:%?8?%;align-items:baseline}.body .product-list .product-item .info .image[data-v-52d71b29]{width:%?26?%;height:%?26?%;margin-right:%?10?%;border-radius:0}.body .product-list .product-item .info .price-box[data-v-52d71b29]{font-size:%?22?%;color:var(--view-theme)}.body .product-list .product-item .info .price-box uni-text[data-v-52d71b29]{font-size:%?34?%}.body .product-list .product-item .info .sales[data-v-52d71b29]{font-size:%?22?%;color:var(--view-theme)}.no-goods[data-v-52d71b29]{display:flex;flex-direction:column;padding:%?60?% 0}.no-goods uni-image[data-v-52d71b29]{width:%?414?%;height:%?305?%;display:block;margin:0 auto}.no-goods .fontimg[data-v-52d71b29]{text-align:center;color:#bebebe}',""]),t.exports=i},d644:function(t,i,e){"use strict";var a=e("7be1"),o=e.n(a);o.a}}]); |