1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-coupon"],{"1fff":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),a("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},"21a3":function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("c87e").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[t._v(t._s(e.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return a("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[!0===e.loaded&&0===e.orderList.length?a("empty"):t._e(),t._l(e.orderList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"row flex"},[a("v-uni-view",{staticClass:"list-money flex"},[a("v-uni-image",{attrs:{src:2==e._type?"/static/img/img03.png":"/static/img/img02.png",mode:"scaleToFill"}}),a("v-uni-view",{staticClass:"list-money-text"},[a("v-uni-view",{staticClass:"tit",class:2=={action:e._type}},[a("v-uni-text",[t._v(t._s(e.coupon_price))])],1),a("v-uni-view",{staticClass:"price"},[a("v-uni-text",[t._v("满"+t._s(e.use_min_price)+"元")])],1)],1)],1),a("v-uni-view",{staticClass:"list-interval position-relative"},[a("v-uni-view",{staticClass:"bottom"}),a("v-uni-view",{staticClass:"top"})],1),a("v-uni-view",{staticClass:"row_list_right"},[a("v-uni-view",{staticClass:"right_top"},[a("v-uni-text",{staticClass:"right_title",class:{action:2==e._type}},[t._v(t._s(e.coupon_title))])],1),a("v-uni-view",{staticClass:"right_time"},[a("v-uni-text",[t._v(t._s(e._add_time)+"-"+t._s(e.end_time))])],1),2==e._type?a("v-uni-view",{staticClass:"right_use action"},[a("v-uni-text",[t._v(t._s(e._msg))])],1):t._e(),0==e._type?a("v-uni-view",{staticClass:"right_use noAction"},[a("v-uni-text",[t._v(t._s(e._msg))])],1):t._e()],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)})),1)],1)},n=[]},"3d02":function(t,e,a){"use strict";a.r(e);var i=a("d2f5"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},"42f0":function(t,e,a){"use strict";var i=a("5f26"),o=a.n(i);o.a},"4be1":function(t,e,a){"use strict";a.r(e);var i=a("21a3"),o=a("cf4b");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("42f0");var r=a("f0c5"),d=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"109322ea",null,!1,i["a"],void 0);e["default"]=d.exports},"58c8":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d81d"),a("ac1f"),a("5319"),a("99af");var o=i(a("c87e")),n=i(a("c38b")),r=a("5adf"),d={components:{uniLoadMore:o.default,empty:n.default},data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"未使用",loadingType:"more",orderList:[],page:1,limit:10},{state:2,text:"已使用",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(t){this.loadData()},methods:{navTo:function(){uni.switchTab({url:"/pages/index/index"})},loadData:function(t){var e=this,a=this.tabCurrentIndex,i=this.navList[a];i.state;"tabChange"===t&&!0===i.loaded||"loading"!==i.loadingType&&(i.loadingType="loading",(0,r.getCouponsList)({page:i.page,limit:i.limit},a).then((function(t){var a=t.data,o=a.map((function(t){return t.coupon_price=+t.coupon_price.replace(",",""),t.use_min_price=+t.use_min_price.replace(",",""),t}));i.orderList=i.orderList.concat(o),console.log(i.orderList),i.page++,i.limit!=a.length?(i.loadingType="noMore",uni.hideLoading(),e.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)})))},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=d},"5adf":function(t,e,a){"use strict";a("7a82");var i=a("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.computedOrderkey=function(t){return(0,o.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})},e.confirm=function(t){return(0,o.default)({url:"/api/order/confirm",method:"post",data:t})},e.couponsOrder=function(t,e,a){return(0,o.default)({url:"/api/coupons/order/"+e+"/"+a,method:"get",data:t})},e.createOrderkey=function(t,e){return(0,o.default)({url:"/api/order/create/"+e,method:"post",data:t})},e.express_query=function(t){return(0,o.default)({url:"/api/order/express_query",method:"get",data:t})},e.getCouponsList=function(t,e){return(0,o.default)({url:"/api/coupons/user/"+e,method:"get",data:t})},e.orderCancel=function(t){return(0,o.default)({url:"/api/order/cancel",method:"post",data:t})},e.orderDel=function(t){return(0,o.default)({url:"/api/order/del",method:"get",data:t})},e.orderDetail=function(t,e){return(0,o.default)({url:"/api/order/detail/"+e,method:"get",data:t})},e.orderList=function(t){return(0,o.default)({url:"/api/order/list",method:"get",data:t})},e.orderPay=function(t){return(0,o.default)({url:"/api/order/pay",method:"post",data:t})},e.orderTake=function(t){return(0,o.default)({url:"/api/order/take",method:"post",data:t})},e.order_comment=function(t){return(0,o.default)({url:"/api/order/comment",method:"post",data:t})},e.product=function(t){return(0,o.default)({url:"/api/order/product",method:"post",data:t})},e.refund=function(t){return(0,o.default)({url:"/api/order/refund/verify",method:"post",data:t})},e.refundReason=function(t){return(0,o.default)({url:"/api/order/refund/reason",method:"get",data:t})},e.upload=function(t){return(0,o.upFilse)({url:"/api/upload/image",method:"post",data:t})};var o=i(a("4f3d"))},"5f26":function(t,e,a){var i=a("f801");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("e39542f6",i,!0,{sourceMap:!1,shadowMode:!1})},"63aa":function(t,e,a){var i=a("9b08");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("462ca4d4",i,!0,{sourceMap:!1,shadowMode:!1})},"9b08":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uni-load-more[data-v-5516c8de]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-5516c8de]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-5516c8de]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-5516c8de]{position:absolute}.uni-load-more__img>.load .item[data-v-5516c8de]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-5516c8de 1.56s ease infinite;animation:load-data-v-5516c8de 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(4){top:11px;left:0}.load1[data-v-5516c8de],\n.load2[data-v-5516c8de],\n.load3[data-v-5516c8de]{height:24px;width:24px}.load2[data-v-5516c8de]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-5516c8de]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-5516c8de{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},b0b7:function(t,e,a){"use strict";var i=a("63aa"),o=a.n(i);o.a},c87e:function(t,e,a){"use strict";a.r(e);var i=a("1fff"),o=a("3d02");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("b0b7");var r=a("f0c5"),d=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"5516c8de",null,!1,i["a"],void 0);e["default"]=d.exports},cf4b:function(t,e,a){"use strict";a.r(e);var i=a("58c8"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},d2f5:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},f801:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-109322ea],\n.content[data-v-109322ea]{background:#f8f8f8;height:100%}body.?%PAGE?%[data-v-109322ea]{background:#f8f8f8}.navbar[data-v-109322ea]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-109322ea]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-109322ea]{color:#bc253a}.navbar .nav-item.current[data-v-109322ea]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #bc253a}.swiper-box[data-v-109322ea]{height:calc(100% - 40px)}.swiper-box .tab-content[data-v-109322ea]{padding:%?25?% 0;font-size:%?28?%;color:#1b1b1b}.row[data-v-109322ea]{border-radius:%?15?%;margin:0 %?25?%;margin-bottom:%?25?%;height:%?200?%;overflow:hidden;background-color:#fff}.row .list-interval[data-v-109322ea]{border:1px dashed #ebeef5;height:100%}.row .list-interval .top[data-v-109322ea],\n.row .list-interval .bottom[data-v-109322ea]{border-radius:%?100?%;width:%?30?%;height:%?30?%;position:absolute;background-color:#f8f8f8;right:%?-15?%}.row .list-interval .top[data-v-109322ea]{top:%?-18?%}.row .list-interval .bottom[data-v-109322ea]{bottom:%?-18?%}.row .list-money[data-v-109322ea]{height:100%}.row .list-money uni-image[data-v-109322ea]{height:100%;width:%?20?%}.row .list-money .list-money-text[data-v-109322ea]{width:%?220?%;padding:0 %?25?%;text-align:center;color:#909399}.row .list-money .list-money-text .tit[data-v-109322ea]{padding:%?15?% %?0?%;font-size:%?55?%;font-weight:700}.row .list-money .list-money-text .tit.action[data-v-109322ea]{color:#fc4141}.row .list-money .list-money-text .price[data-v-109322ea]{padding-bottom:%?25?%}.row .row_list_right[data-v-109322ea]{flex-grow:1;padding-left:%?25?%;line-height:1}.row .row_list_right .right_time[data-v-109322ea]{color:#909399;font-size:%?24?%}.row .row_list_right .right_use[data-v-109322ea]{margin:%?15?% 0;padding:%?10?%;width:%?140?%;display:flex;justify-content:center;align-items:center;border-radius:%?50?%;color:#fff;font-size:%?20?%}.row .row_list_right .right_use.action[data-v-109322ea]{background-color:#fc4141}.row .row_list_right .right_use.noAction[data-v-109322ea]{background-color:#999}.row .row_list_right .right_top[data-v-109322ea]{margin:%?15?% 0;font-size:%?32?%;height:%?50?%;color:#909399}.row .row_list_right .right_top .right_name[data-v-109322ea]{font-weight:700}.row .row_list_right .right_top .right_title[data-v-109322ea]{font-weight:700}.row .row_list_right .right_top .right_title.action[data-v-109322ea]{color:#606266}.row .iconlocation[data-v-109322ea]{font-size:%?36?%;color:#909399}.uni-load-more[data-v-109322ea]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}',""]),t.exports=e}}]);
|