pages-user-coupon.e57335a9.js 9.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-coupon"],{"87d0":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("d81d"),a("ac1f"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(a("1f6c")),o=i(a("0a87")),n=a("8bbe"),d={components:{uniLoadMore:r.default,empty:o.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,n.getCouponsList)({page:i.page,limit:i.limit},a).then((function(t){var a=t.data,r=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(r),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},"8bbe":function(t,e,a){"use strict";var i=a("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=o,e.couponsOrder=n,e.getCouponsList=d,e.order_comment=u,e.product=s,e.express_query=c,e.upload=l,e.orderList=f,e.orderDetail=p,e.orderCancel=v,e.orderDel=g,e.refund=h,e.refundReason=m,e.orderTake=_,e.orderPay=w,e.createOrderkey=b,e.computedOrderkey=x,e.jfOrderCreate=y,e.getJfOrder=C,e.getWl=k;var r=i(a("0e39"));function o(t){return(0,r.default)({url:"/api/order/confirm",method:"post",data:t})}function n(t,e){return(0,r.default)({url:"/api/coupons/order/"+e,method:"get",data:t})}function d(t,e){return(0,r.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function u(t){return(0,r.default)({url:"/api/order/comment",method:"post",data:t})}function s(t){return(0,r.default)({url:"/api/order/product",method:"post",data:t})}function c(t){return(0,r.default)({url:"/api/order/express_query",method:"get",data:t})}function l(t){return(0,r.upFilse)({url:"/api/upload/image",method:"post",data:t})}function f(t){return(0,r.default)({url:"/api/order/list",method:"get",data:t})}function p(t,e){return(0,r.default)({url:"/api/order/detail/"+e,method:"get",data:t})}function v(t){return(0,r.default)({url:"/api/order/cancel",method:"post",data:t})}function g(t){return(0,r.default)({url:"/api/order/del",method:"get",data:t})}function h(t){return(0,r.default)({url:"/api/order/refund/verify",method:"post",data:t})}function m(t){return(0,r.default)({url:"/api/order/refund/reason",method:"get",data:t})}function _(t){return(0,r.default)({url:"/api/order/take",method:"post",data:t})}function w(t){return(0,r.default)({url:"/api/order/pay",method:"post",data:t})}function b(t,e){return(0,r.default)({url:"/api/order/create/"+e,method:"post",data:t})}function x(t){return(0,r.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function y(t){return(0,r.default)({url:"/api/juniu/order_create",method:"post",data:t})}function C(t){return(0,r.default)({url:"/api/juniu/order",method:"get",data:t})}function k(t){return(0,r.default)({url:"/api/juniu/express",method:"get",data:t})}},b9f0: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-90043c86],\n.content[data-v-90043c86]{background:#f8f8f8;height:100%}.navbar[data-v-90043c86]{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-90043c86]{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-90043c86]{color:#bc253a}.navbar .nav-item.current[data-v-90043c86]: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-90043c86]{height:calc(100% - 40px)}.swiper-box .tab-content[data-v-90043c86]{padding:%?25?% 0;font-size:%?28?%;color:#1b1b1b}.row[data-v-90043c86]{border-radius:%?15?%;margin:0 %?25?%;margin-bottom:%?25?%;height:%?200?%;overflow:hidden;background-color:#fff}.row .list-interval[data-v-90043c86]{border:1px dashed #ebeef5;height:100%}.row .list-interval .top[data-v-90043c86],\n.row .list-interval .bottom[data-v-90043c86]{border-radius:%?100?%;width:%?30?%;height:%?30?%;position:absolute;background-color:#f8f8f8;right:%?-15?%}.row .list-interval .top[data-v-90043c86]{top:%?-18?%}.row .list-interval .bottom[data-v-90043c86]{bottom:%?-18?%}.row .list-money[data-v-90043c86]{height:100%}.row .list-money uni-image[data-v-90043c86]{height:100%;width:%?20?%}.row .list-money .list-money-text[data-v-90043c86]{width:%?220?%;padding:0 %?25?%;text-align:center;color:#909399}.row .list-money .list-money-text .tit[data-v-90043c86]{padding:%?15?% %?0?%;font-size:%?55?%;font-weight:700}.row .list-money .list-money-text .tit.action[data-v-90043c86]{color:#fc4141}.row .list-money .list-money-text .price[data-v-90043c86]{padding-bottom:%?25?%}.row .row_list_right[data-v-90043c86]{flex-grow:1;padding-left:%?25?%;line-height:1}.row .row_list_right .right_time[data-v-90043c86]{color:#909399;font-size:%?24?%}.row .row_list_right .right_use[data-v-90043c86]{margin:%?15?% 0;padding:%?10?%;width:%?140?%;text_align:center;border-radius:%?50?%;color:#fff;font-size:%?20?%}.row .row_list_right .right_use.action[data-v-90043c86]{background-color:#fc4141}.row .row_list_right .right_use.noAction[data-v-90043c86]{background-color:#999}.row .row_list_right .right_top[data-v-90043c86]{margin:%?15?% 0;font-size:%?32?%;height:%?50?%;color:#909399}.row .row_list_right .right_top .right_name[data-v-90043c86]{font-weight:700}.row .row_list_right .right_top .right_title[data-v-90043c86]{font-weight:700}.row .row_list_right .right_top .right_title.action[data-v-90043c86]{color:#606266}.row .iconlocation[data-v-90043c86]{font-size:%?36?%;color:#909399}.uni-load-more[data-v-90043c86]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}body.?%PAGE?%[data-v-90043c86]{background:#f8f8f8}',""]),t.exports=e},ce45:function(t,e,a){var i=a("b9f0");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("4f06").default;r("4672e410",i,!0,{sourceMap:!1,shadowMode:!1})},e5ca:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("1f6c").default},r=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)},o=[]},e915:function(t,e,a){"use strict";var i=a("ce45"),r=a.n(i);r.a},ef45:function(t,e,a){"use strict";a.r(e);var i=a("e5ca"),r=a("fedc");for(var o in r)"default"!==o&&function(t){a.d(e,t,(function(){return r[t]}))}(o);a("e915");var n,d=a("f0c5"),u=Object(d["a"])(r["default"],i["b"],i["c"],!1,null,"90043c86",null,!1,i["a"],n);e["default"]=u.exports},fedc:function(t,e,a){"use strict";a.r(e);var i=a("87d0"),r=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a}}]);