1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-rights-myrights-myrights"],{"269f":function(t,i,a){"use strict";var e;a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){return e}));var n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"app"},[a("v-uni-view",{staticClass:"tabs"},[a("v-uni-text",{class:1==t.type?"cur":"",attrs:{"data-id":"1"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType.apply(void 0,arguments)}}},[t._v("商品权益")]),a("v-uni-text",{class:2==t.type?"cur":"",attrs:{"data-id":"2"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType.apply(void 0,arguments)}}},[t._v("礼品卡")]),a("v-uni-text",{class:3==t.type?"cur":"",attrs:{"data-id":"3"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType.apply(void 0,arguments)}}},[t._v("名额权益")])],1),1==t.type?[t.list.length?a("v-uni-view",{staticClass:"section"},[a("v-uni-view",{staticClass:"scroll-container"},[a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"catelist"},[t._l(t.list,(function(i,e){return[a("v-uni-view",{key:e+"_0",staticClass:"goods-item",class:0==i.total_num?"empty":""},[a("v-uni-image",{attrs:{src:i.pic,mode:""}}),a("v-uni-view",[a("v-uni-view",{staticClass:"title-wrapper"},[a("v-uni-text",{staticClass:"title"},[t._v(t._s(i.name))])],1),i.sku?a("v-uni-view",{staticClass:"tips"},[a("v-uni-text",[t._v(t._s(i.sku))])],1):t._e(),a("v-uni-view",{staticClass:"tips"},[a("v-uni-text",[t._v("数量:"+t._s(i.num)+"件")])],1),a("v-uni-view",{staticClass:"ctrls"},[a("v-uni-text",{staticClass:"price"},[t._v(t._s(i.price))]),a("v-uni-view",{staticClass:"btns-buygroup"},[t.goodsCartNum(i.id)>0?a("v-uni-view",{staticClass:"icon-minus",attrs:{"data-goods_id":i.id,"data-price":i.price},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.minusToCart.apply(void 0,arguments)}}}):t._e(),t.goodsCartNum(i.id)>0?a("v-uni-text",[t._v(t._s(t.goodsCartNum(i.id)))]):t._e(),a("v-uni-view",{staticClass:"icon-add",attrs:{"data-goods_id":i.id,"data-price":i.price,"data-max":i.num},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.addToCart.apply(void 0,arguments)}}})],1)],1)],1)],1)]}))],2)],1)],1)],1):t._e(),t.totalNum?a("v-uni-view",{staticClass:"bt-fixed"},[a("v-uni-view",{staticClass:"cart"},[a("v-uni-view",{staticClass:"price-wrapper"},[a("v-uni-view",{staticClass:"cart-total"},[t._v("共"+t._s(t.totalNum)+"件,价值")]),a("v-uni-text",{staticClass:"price"},[t._v(t._s(t.totalPrice))])],1),a("v-uni-view",{staticClass:"btn-submit",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toOrder.apply(void 0,arguments)}}},[t._v("兑换")])],1)],1):t._e()]:t._e(),2==t.type?[t.list.length?a("v-uni-view",{staticClass:"section"},[a("v-uni-view",{staticClass:"scroll-container"},[a("v-uni-view",{staticClass:"list"},t._l(t.list,(function(i,e){return a("v-uni-view",{key:e,staticClass:"me-item mcard",class:1==i.show?"":"disabled",attrs:{"data-item":i},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navtoCard.apply(void 0,arguments)}}},[a("v-uni-view",{},[a("v-uni-text",[t._v(t._s(i.name))]),a("v-uni-text",{staticClass:"price"},[t._v(t._s(i.price))])],1),a("v-uni-view",{},[t._v(t._s(i.end_date))])],1)})),1)],1)],1):t._e()]:t._e(),3==t.type?[t.list.length?a("v-uni-view",{staticClass:"section"},[a("v-uni-view",{staticClass:"scroll-container"},[a("v-uni-view",{staticClass:"list"},t._l(t.list,(function(i,e){return a("v-uni-navigator",{key:e,staticClass:"me-item",attrs:{"hover-class":"none",url:"/pages/rights/detail/detail?id="+i.id}},[a("v-uni-text",[t._v(t._s(i.name))]),a("v-uni-text",[t._v("数量 "+t._s(i.num))])],1)})),1)],1)],1):t._e()]:t._e(),t.list.length?t._e():a("v-uni-view",{staticClass:"nodata"},[t._v("暂无数据")])],2)},o=[]},"579e":function(t,i,a){"use strict";a.r(i);var e=a("c6ef"),n=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},"5bcf":function(t,i,a){var e=a("24fb"),n=a("1de5"),o=a("ae3e");i=e(!1);var r=n(o);i.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/* 文章场景相关 */uni-page-body[data-v-04395010]{background:#f7f7f7;height:100%;display:flex;flex-direction:column}.app[data-v-04395010]{flex:1;display:flex;flex-direction:column}.app .tabs[data-v-04395010]{display:flex;align-items:center;justify-content:center;padding:%?32?% 0}.app .tabs uni-text[data-v-04395010]{position:relative;font-size:%?32?%;margin:0 %?32?%;display:flex;flex-direction:column;align-items:center}.app .tabs uni-text[data-v-04395010]:after{content:"";width:%?40?%;height:%?6?%;margin-top:%?8?%;border-radius:%?2?%;background-color:initial}.app .tabs uni-text.cur[data-v-04395010]{color:#00ab78}.app .tabs uni-text.cur[data-v-04395010]:after{background-color:#00ab78}.section[data-v-04395010]{display:flex;flex:1;padding:0 %?32?% %?100?%}.section .sider[data-v-04395010]{width:%?162?%;display:flex;flex-direction:column;flex-shrink:0}.section .sider uni-text[data-v-04395010]{text-align:center;line-height:%?116?%;color:#6d6d6d;font-size:%?24?%}.section .sider uni-text.cur[data-v-04395010]{background-color:#fff;color:#333}.section .scroll-container[data-v-04395010]{flex:1;position:relative}.section .scroll-container .scroll-wrapper[data-v-04395010]{position:absolute;top:0;left:0;right:0;bottom:0}.section .list[data-v-04395010]{box-sizing:border-box}.section .list .ad[data-v-04395010]{width:100%}.section .list .ad uni-image[data-v-04395010]{width:100%;border-radius:%?30?%}.section .list .h3[data-v-04395010]{display:block;margin:%?32?% 0;font-size:%?28?%;line-height:%?40?%}.section .list.cart-showed[data-v-04395010]{padding-bottom:%?120?%}.section .list .goods-item[data-v-04395010]{background-color:#fff;border-radius:%?20?%;padding:%?24?% %?32?%;margin-bottom:%?24?%}.section .list .goods-item .tips[data-v-04395010]{margin-top:%?12?%}.section .list .goods-item .ctrls[data-v-04395010]{margin-top:%?20?%}.section .list .goods-item .price[data-v-04395010]{color:#00ab78}.section .list .me-item[data-v-04395010]{background-color:#fff;border-radius:%?20?%;padding:%?62?% %?32?%;margin-bottom:%?24?%;display:flex;justify-content:space-between;font-size:%?28?%}.section .list .me-item.mcard[data-v-04395010]{background:url('+r+') no-repeat;background-size:cover;color:#fff;display:flex;flex-direction:column;padding:%?32?%}.section .list .me-item.mcard > uni-view[data-v-04395010]{display:flex;justify-content:space-between}.section .list .me-item.mcard > uni-view[data-v-04395010]:last-child{margin-top:%?16?%}.section .list .me-item.disabled[data-v-04395010]{opacity:.3}.nodata[data-v-04395010]{display:flex;flex-direction:column;align-items:center;font-size:%?28?%;color:#999;flex:1;justify-content:center;text-align:center}.nodata uni-image[data-v-04395010]{width:%?280?%;display:block;margin-bottom:%?48?%}.nodata uni-text[data-v-04395010]{display:block;margin-bottom:%?48?%}.price-types[data-v-04395010]{margin-top:%?12?%}.price-types uni-text[data-v-04395010]{display:inline-block;padding:0 %?8?%;text-align:center;margin-right:%?16?%;border:%?2?% solid #eee;border-radius:%?5?%}.price-types uni-text.active[data-v-04395010]{background-color:#f4f4f4}.bt-fixed[data-v-04395010]{position:fixed;left:0;bottom:0;width:100%}.cart[data-v-04395010]{width:%?686?%;margin:0 auto;background-color:#fff;border-radius:%?56?%;height:%?96?%;display:flex;align-items:center;justify-content:space-between;margin-bottom:%?16?%}.cart .btn-submit[data-v-04395010]{background-color:#00ab78;border-radius:0 %?56?% %?56?% 0;color:#fff;width:%?224?%;text-align:center;line-height:%?96?%;font-size:%?32?%}.cart .cart-total[data-v-04395010]{padding-left:%?48?%;padding-right:%?10?%}.cart .price-wrapper[data-v-04395010]{display:flex;align-items:center;color:#004535}.cart .price-wrapper .price[data-v-04395010]{font-size:%?30?%;font-weight:bolder}.goods-item[data-v-04395010]{position:relative}.goods-item.empty[data-v-04395010]:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:hsla(0,0%,100%,.6)}body.?%PAGE?%[data-v-04395010]{background:#f7f7f7}',""]),t.exports=i},"5ee6":function(t,i,a){"use strict";var e=a("919b"),n=a.n(e);n.a},"84ba":function(t,i,a){"use strict";var e=a("9a2c"),n=a.n(e);n.a},"919b":function(t,i,a){var e=a("9f43");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("37a2d87e",e,!0,{sourceMap:!1,shadowMode:!1})},"9a2c":function(t,i,a){var e=a("5bcf");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("271332e0",e,!0,{sourceMap:!1,shadowMode:!1})},"9f43":function(t,i,a){var e=a("24fb"),n=a("1de5"),o=a("e516"),r=a("2457"),d=a("d5ae"),s=a("71c5"),c=a("be44"),l=a("d3a1"),u=a("6464"),p=a("af09"),f=a("68b2"),g=a("c1b7"),v=a("d609"),h=a("b275"),b=a("24a3"),m=a("2350"),w=a("d186"),y=a("f546"),k=a("f3d6"),x=a("9b34"),_=a("356a"),z=a("74ea"),C=a("5134"),j=a("5a97");i=e(!1);var T=n(o),P=n(r),E=n(d),S=n(s),$=n(c),F=n(l),G=n(u),N=n(p),M=n(f),R=n(g),A=n(v),I=n(h),B=n(b),O=n(m),D=n(w),J=n(y),U=n(k),q=n(x),K=n(_),L=n(z),H=n(C),Q=n(j);i.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/* 文章场景相关 */uni-page-head[data-v-04395010]{display:none}uni-page-body[data-v-04395010]{color:#111;font-size:%?28?%;font-family:PingFangSC-Regular,PingFang SC}[data-v-04395010]::-webkit-scrollbar{display:none}.button[data-v-04395010]{background-color:#00ae75;border-radius:%?32?%;font-size:%?32?%;line-height:%?64?%;color:#fff;padding:0 %?30?%;text-align:center;position:relative}.button.border[data-v-04395010]{border:%?2?% solid #cecece;background-color:#fff;color:#333}.button.border-g[data-v-04395010]{border:%?2?% solid #00ae75;background-color:initial;color:#00ae75}.button.gray[data-v-04395010]{border:%?2?% solid #eee;background-color:#fff;color:#888}.button.disabled[data-v-04395010]{border:%?2?% solid #ccc;background-color:#ccc;color:#fff}.button.mini[data-v-04395010]{display:inline-block;padding:0 %?16?%;font-size:%?26?%;line-height:%?48?%}.button.big[data-v-04395010]{line-height:%?80?%;border-radius:%?80?%}.button uni-button[data-v-04395010]{opacity:0;position:absolute;width:100%;height:100%;left:0;top:0}.addr[data-v-04395010]{display:flex;align-items:center}.addr[data-v-04395010]:before{content:"";background:url('+T+') no-repeat 50%;background-size:contain;display:inline-block;width:%?18?%;height:%?26?%;margin-right:%?8?%;flex-shrink:0}.price[data-v-04395010]{font-family:PingFangSC-Semibold,PingFang SC;display:flex;font-size:%?30?%}.price[data-v-04395010]:before{content:"¥";margin-right:%?10?%}.icon-eye[data-v-04395010]{background:url('+P+") no-repeat 50%;background-size:%?38?% %?28?%;display:inline-block;width:%?44?%;height:%?44?%}.icon-checkbox[data-v-04395010]{display:inline-block;width:%?30?%;height:%?30?%;border:%?2?% solid #979797;border-radius:50%}.icon-checkbox.checked[data-v-04395010]{background:url("+E+") no-repeat;background-size:%?34?% %?34?%;border:0;width:%?34?%;height:%?34?%}.icon-arrow-down[data-v-04395010]{background:url("+S+") no-repeat 50%;background-size:%?24?% %?18?%;display:inline-block;width:%?44?%;height:%?44?%}.icon-arrow-right[data-v-04395010]{flex-shrink:0;width:%?10?%;height:%?18?%;background:url("+$+") no-repeat;background-size:contain;margin-left:%?12?%}.icon-person[data-v-04395010]{background:url("+F+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-auth[data-v-04395010]{background:url("+G+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-addr1[data-v-04395010]{background:url("+N+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-coupon[data-v-04395010]{background:url("+M+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-card1[data-v-04395010]{background:url("+R+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-help[data-v-04395010]{background:url("+A+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-about[data-v-04395010]{background:url("+I+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-customer[data-v-04395010]{background:url("+B+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-setting[data-v-04395010]{background:url("+O+") no-repeat 50%;background-size:contain;display:inline-block;width:%?36?%;height:%?36?%}.icon-edit[data-v-04395010]{background:url("+D+") no-repeat 50%;background-size:contain;display:inline-block;width:%?40?%;height:%?40?%}.icon-minus[data-v-04395010]{background:url("+J+") no-repeat 50%;background-size:contain;display:inline-block;width:%?40?%;height:%?40?%}.icon-add[data-v-04395010]{background:url("+U+") no-repeat 50%;background-size:contain;display:inline-block;width:%?40?%;height:%?40?%}.icon-address[data-v-04395010]{background:url("+q+") no-repeat 50%;background-size:auto %?28?%;display:inline-block;width:%?24?%;height:%?28?%}.icon-address-b[data-v-04395010]{background:url("+T+") no-repeat 50%;background-size:auto %?28?%;display:inline-block;width:%?24?%;height:%?28?%}.icon-right[data-v-04395010]{background:url("+$+") no-repeat 50%;background-size:contain;display:inline-block;width:%?10?%;height:%?18?%}.tags[data-v-04395010]{margin-top:%?12?%;display:flex}.tag[data-v-04395010]{border:%?1?% solid #00ab78;line-height:%?28?%;font-size:%?20?%;padding:0 %?8?%;border-radius:%?4?%;margin-right:%?8?%;color:#00ab78}.tag.orange[data-v-04395010]{border-color:#ff5000;color:#ff5000}.tag.light[data-v-04395010]{border-color:#1fb588;color:#1fb588;opacity:.5}.tag.disabled[data-v-04395010]{border-color:#f6f6f6;background-color:#f6f6f6;color:#777}.tag.border[data-v-04395010]{border-color:#999;color:#333}.btn-page-back[data-v-04395010], .btn-page-home[data-v-04395010]{position:fixed;background:url("+K+") no-repeat 50% rgba(0,0,0,.3);background-size:%?44?%;width:%?44?%;height:%?44?%;z-index:999;left:0}.btn-page-home[data-v-04395010]{background-image:url("+L+')}.btns-buygroup[data-v-04395010]{display:flex;align-items:center}.btns-buygroup uni-text[data-v-04395010]{margin:0 %?15?%}.topinfo[data-v-04395010]{position:relative;display:flex;background-color:#fff;flex-direction:column;padding:%?32?% %?32?% %?22?%;z-index:3}.topinfo.flex1[data-v-04395010]{flex:1}.topinfo .address[data-v-04395010]{display:flex;justify-content:space-between;align-items:center}.topinfo .address > uni-view[data-v-04395010]:first-child{width:%?500?%}.topinfo .address .adr-shop[data-v-04395010]{display:flex;align-items:center}.topinfo .address .adr-shop .sp-name[data-v-04395010]{margin:0 %?16?%;color:#333;font-size:%?28?%;line-height:%?40?%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.topinfo .address .adr-shop .icon-address[data-v-04395010]{flex-shrink:0}.topinfo .address .range[data-v-04395010]{font-size:%?22?%;line-height:%?32?%;color:#666;margin-top:%?12?%;display:inline-block}.topinfo .address .switch[data-v-04395010]{background-color:#00ab78;border-radius:%?30?%;padding:%?6?%;display:flex;align-items:center;flex-shrink:0}.topinfo .address .switch uni-text[data-v-04395010]{font-size:%?24?%;color:#fff;padding:0 %?18?%;border-radius:%?30?%;line-height:%?38?%;display:inline-block}.topinfo .address .switch uni-text.active[data-v-04395010]{background-color:#fff;color:#00ab78}.topinfo .msg[data-v-04395010]{margin-top:%?12?%;display:flex;font-size:%?22?%;line-height:%?32?%;justify-content:space-between;align-items:center}.topinfo .msg > uni-text[data-v-04395010]:first-child{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:%?36?%}.topinfo .msg .more[data-v-04395010]{font-size:%?20?%;line-height:%?28?%;color:#999;display:flex;align-items:center;flex-shrink:0}.topinfo .msg .more[data-v-04395010]:after{content:"";background:url('+H+') no-repeat 50%;background-size:contain;display:inline-block;width:%?10?%;height:%?6?%;margin-left:%?8?%}.topinfo .msg.showmore > uni-text[data-v-04395010]:first-child{opacity:0}.topinfo .msg.showmore .more[data-v-04395010]:after{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.topinfo .shop-desc-box[data-v-04395010]{position:relative;width:100%}.topinfo .shop-desc-layer[data-v-04395010]{position:absolute;left:%?-32?%;right:%?-32?%;background-color:#fff;top:0;padding:%?32?%}.topinfo .shop-desc-layer .desc[data-v-04395010]{margin-top:%?32?%;color:#666;font-size:%?22?%}.topinfo .shop-desc-layer uni-navigator[data-v-04395010]{margin-top:%?32?%}.topinfo .shop-desc-layer .h3[data-v-04395010]{display:block;font-size:%?26?%;color:#00ab78}.topinfo .shop-desc-layer .section[data-v-04395010]{display:flex;flex-direction:column;margin-top:%?32?%;font-size:%?22?%;color:#666;line-height:%?34?%}.topinfo .shop-desc-layer .section .h3[data-v-04395010]{margin-bottom:%?8?%}.nav-item[data-v-04395010]{display:flex;justify-content:space-between;align-items:center;padding:%?20?% 0;font-size:%?28?%;color:#111}.nav-item .icon[data-v-04395010]{width:%?36?%;height:%?36?%;min-width:auto;margin-right:%?16?%}.nav-item > uni-text[data-v-04395010]{min-width:%?104?%;flex-shrink:0}.nav-item > uni-view[data-v-04395010]{display:flex;align-items:baseline;color:#333;flex:1;margin-left:%?12?%;justify-content:flex-end;text-align:right}.nav-item > uni-view[data-v-04395010]:after{flex-shrink:0;content:"";width:%?10?%;height:%?18?%;background:url('+$+') no-repeat;background-size:contain;margin-left:%?12?%}.nav-item > uni-view .tip[data-v-04395010]{color:#999;font-size:%?24?%}.nav-item > uni-view .gray[data-v-04395010]{color:#999}.nav-item[data-v-04395010]:last-child{margin-bottom:0}.nav-item.noright > uni-view[data-v-04395010]:after{display:none}.nav-item.help[data-v-04395010]{padding:%?31?% 0;font-size:%?30?%}.nav-item.help > uni-text[data-v-04395010]{flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.goods-item[data-v-04395010]{display:flex;margin-bottom:%?40?%;align-items:center}.goods-item uni-image[data-v-04395010]{width:%?174?%;height:%?174?%;border-radius:%?10?%;margin-right:%?16?%;flex-shrink:0}.goods-item > uni-view[data-v-04395010]{flex:1;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}.goods-item .title[data-v-04395010]{font-size:%?28?%;line-height:%?40?%;text-align:justify}.goods-item .tips[data-v-04395010]{font-size:%?22?%;color:#999;display:flex;justify-content:space-between}.goods-item .ctrls[data-v-04395010]{display:flex;justify-content:space-between;margin-top:%?14?%}.goods-item.mini uni-image[data-v-04395010], .goods-item.inorder uni-image[data-v-04395010]{width:%?124?%;height:%?124?%}.goods-item.inorder .title[data-v-04395010]{display:flex;justify-content:space-between;margin-right:0}.goods-item.inorder .title .price[data-v-04395010]{align-items:flex-end}.goods-item.inorder > uni-view[data-v-04395010]{flex:1;display:flex;flex-direction:column;justify-content:space-between;height:%?124?%}.swiper-cont[data-v-04395010]{position:relative}.swiper-cont .swiper[data-v-04395010]{width:100%;height:%?494?%}.swiper-cont .swiper .videoposter[data-v-04395010], .swiper-cont .swiper uni-image[data-v-04395010]{width:100%;height:100%}.swiper-cont .swiper .videoposter[data-v-04395010]:after{content:"";position:absolute;background-color:rgba(0,0,0,.3);top:0;left:0;right:0;bottom:0}.swiper-cont .swiper .videoposter .btn-play[data-v-04395010]{background:url('+Q+") no-repeat;background-size:contain;width:%?100?%;height:%?100?%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.swiper-cont .swiper .videoposter uni-video[data-v-04395010]{display:none}.swiper-cont .swiper .videoposter.playing uni-image[data-v-04395010], .swiper-cont .swiper .videoposter.playing[data-v-04395010]:after, .swiper-cont .swiper .videoposter.playing .btn-play[data-v-04395010]{display:none}.swiper-cont .swiper .videoposter.playing uni-video[data-v-04395010]{display:block}.swiper-cont .dots[data-v-04395010]{position:absolute;display:flex;justify-content:center;width:100%;left:0;bottom:%?24?%}.swiper-cont .dots uni-text[data-v-04395010]{width:%?8?%;height:%?8?%;background-color:#aeaeae;margin:0 %?6?%;border-radius:%?5?%}.swiper-cont .dots uni-text.active[data-v-04395010]{background-color:#fff;width:%?36?%}.form[data-v-04395010]{display:flex;flex-direction:column;padding:0 %?36?%;box-sizing:border-box}.form .form-item[data-v-04395010]{display:flex;align-items:center;padding:%?32?% 0;border-bottom:%?1?% solid #eee}.form .form-item[data-v-04395010]:last-child{border-bottom:0}.form .form-item .label[data-v-04395010]{font-size:%?30?%;min-width:%?176?%;flex-shrink:0;white-space:nowrap}.form .form-item .content[data-v-04395010]{flex:1;display:flex;align-items:center;font-size:%?30?%;justify-content:space-between}.form .form-item .content uni-input[data-v-04395010]{flex:1}.form .form-item .content .disabled[data-v-04395010]{color:#999}.form .form-item .link[data-v-04395010]{color:#00ab78}.form .form-item .checkboxgroup[data-v-04395010]{display:flex}.form .form-item .checkboxgroup > uni-view[data-v-04395010]{display:flex;align-items:center;margin-right:%?60?%}.form .form-item .checkboxgroup > uni-view .icon-checkbox[data-v-04395010]{display:inline-block;margin-right:%?8?%}.form.mini .label[data-v-04395010], .form.mini .content[data-v-04395010]{font-size:%?24?%}.form.mini .form-item[data-v-04395010]{padding-bottom:%?8?%}",""]),t.exports=i},ae3e:function(t,i,a){t.exports=a.p+"static/img/cardbg.1a883cc1.png"},c6ef:function(t,i,a){"use strict";var e=a("4ea4");a("99af"),a("7db0"),a("c740"),a("4160"),a("d81d"),a("13d5"),a("a434"),a("acd8"),a("e25e"),a("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e(a("5530")),o=e(a("2909")),r={data:function(){return{list:[],shoploaded:0,page:1,totalPage:1,cart:[],searchKey:"",type:1}},computed:{goodsCartNum:function(){var t=this;return function(i){var a="c_".concat(i),e=t.cart.find((function(t){return t.key==a}));return e?e.num:0}},totalPrice:function(){return this.cart.map((function(t){return t.price*t.num})).reduce((function(t,i){return t+parseFloat(i)}),0).toFixed(2)},totalNum:function(){return this.cart.map((function(t){return t.num})).reduce((function(t,i){return t+parseInt(i,10)}),0)}},methods:{navtoCard:function(t){var i=t.currentTarget.dataset.item;1==i.show&&(location.href="/pages/rights/card_detail/card_detail?id=".concat(i.id))},changeType:function(t){this.type=t.currentTarget.dataset.id,this.list=[],this.loadGoods()},search:function(){this.loadGoods()},toOrder:function(){var t=[],i=[];this.cart.forEach((function(a){t.push(a.num),i.push(a.goods_id)})),i.length?uni.navigateTo({url:"/pages/rights/check/check?num=".concat(t.join(","),"&goods_id=").concat(i.join(","))}):uni.showToast({icon:"error",title:"未选择商品"})},loadGoods:function(t){var i=this;t||(this.page=1),this.reqByuser({url:"service/agent/?l=my.goodsList",method:"GET",data:{pg:this.page,type:this.type},success:function(a){var e=a.data.data,n=a.data.page||{};i.totalPage=n.total_page||1,i.list=t?i.list.concat(e.list):e.list,uni.stopPullDownRefresh()}})},minusToCart:function(t){var i=t.currentTarget.dataset,a=i.goods_id,e="c_".concat(a),r=(0,o.default)(this.cart),d=r.findIndex((function(t){return t.key==e}));if(-1!==d){var s=Math.max(0,r[d].num-1);s=r[d].num<1?0:s;var c=(0,n.default)((0,n.default)({},r[d]),{},{num:s});s?r.splice(d,1,c):r.splice(d,1)}this.$set(this,"cart",r),uni.setStorageSync("kucuncart",r)},addToCart:function(t){var i=t.currentTarget.dataset,a=i.goods_id,e=i.max,r="c_".concat(a),d={key:r,goods_id:a,price:i.price,num:1},s=(0,o.default)(this.cart),c=s.findIndex((function(t){return t.key==r}));if(-1!==c){var l=parseInt(s[c].num,10)+1;l>=e&&(l=e);var u=(0,n.default)((0,n.default)({},s[c]),{},{num:l});s.splice(c,1,u)}else s.push(d);this.$set(this,"cart",s),uni.setStorageSync("kucuncart",s)}},onShow:function(){this.userInfo.signature&&this.loadGoods()},onReachBottom:function(){this.page<this.totalPage&&(this.page++,this.loadGoods(this.page))},onPullDownRefresh:function(){this.loadGoods()}};i.default=r},d66a:function(t,i,a){"use strict";a.r(i);var e=a("269f"),n=a("579e");for(var o in n)"default"!==o&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("5ee6"),a("84ba");var r,d=a("f0c5"),s=Object(d["a"])(n["default"],e["b"],e["c"],!1,null,"04395010",null,!1,e["a"],r);i["default"]=s.exports}}]);
|