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
16 KiB
1 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-MyCoupon-MyCoupon"],{"1de5":function(t,e,o){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},2618:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o("afca"),n={data:function(){return{TabShow:0,list:[],id:null}},methods:{onCouponTab:function(t,e){this.TabShow=t,this.getList(e)},userMyCoupon:function(t){uni.navigateTo({url:"/pages/warehouse/weituo?coupon_id="+t.id+"&num="+t.amount+"&coupon=1&id="+this.id+"&enough="+t.enough})},getList:function(t){var e=this;(0,i.couponList)({type:t}).then((function(t){e.list=t.data.data}))}},onLoad:function(t){this.id=t.id,this.getList("can_use")}};e.default=n},"2cee":function(t,e,o){"use strict";o.r(e);var i=o("2618"),n=o.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"455e":function(t,e,o){t.exports=o.p+"static/img/not-order.8dbe9e8b.png"},"6c5f":function(t,e,o){"use strict";o.r(e);var i=o("850f"),n=o("2cee");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("d74f");var a=o("f0c5"),r=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"84f78bb2",null,!1,i["a"],void 0);e["default"]=r.exports},"7cc8":function(t,e,o){var i=o("afa5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("61caa568",i,!0,{sourceMap:!1,shadowMode:!1})},"850f":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"coupon-tab"},[i("v-uni-view",{staticClass:"tab",class:{action:0===t.TabShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCouponTab(0,"can_use")}}},[i("v-uni-text",[t._v("未使用")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:1===t.TabShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCouponTab(1,"used")}}},[i("v-uni-text",[t._v("已使用")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:2===t.TabShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCouponTab(2,"expired")}}},[i("v-uni-text",[t._v("已过期")]),i("v-uni-text",{staticClass:"line"})],1)],1),t.list.length>0?i("v-uni-view",{staticClass:"coupon-list"},t._l(t.list,(function(e,o){return i("v-uni-view",{key:o,staticClass:"list",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.userMyCoupon(e)}}},[i("v-uni-view",{staticClass:"list-data",class:{"coupon-lose":0!=t.TabShow}},[i("v-uni-view",{staticClass:"coupon-price"},[i("v-uni-view",{staticClass:"discounts"},[i("v-uni-text",{staticClass:"min"},[t._v("¥")]),i("v-uni-text",{staticClass:"max"},[t._v(t._s(e.coupon.amount))])],1),i("v-uni-view",{staticClass:"full-reduction"},[i("v-uni-text",[t._v(t._s(e.coupon.type_text))])],1)],1),i("v-uni-view",{staticClass:"coupon-info"},[i("v-uni-view",{staticClass:"info-title"},[i("v-uni-view",{staticClass:"tag"},[i("v-uni-text",[t._v(t._s(e.coupon.amount_text))])],1)],1),i("v-uni-view",{staticClass:"date-get"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v(t._s(e.coupon.use_scope_text))])],1),i("v-uni-view",{staticClass:"date"},[i("v-uni-text",[t._v(t._s(e.coupon.use_start_time)+"-"+t._s(e.coupon.use_end_time))])],1)],1)],1)],1),0!=t.TabShow?i("v-uni-view",{staticClass:"use-status"},[1===t.TabShow?i("v-uni-text",[t._v("已使用")]):2===t.TabShow?i("v-uni-text",[t._v("已过期")]):t._e()],1):t._e()],1)})),1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:o("455e"),mode:"widthFix"}}),i("v-uni-view",{staticClass:"emptyText"},[t._v("暂无数据")])],1)],1)},n=[]},a41d:function(t,e,o){t.exports=o.p+"static/img/coupon-bg.21b829ed.png"},afa5:function(t,e,o){var i=o("24fb"),n=o("1de5"),s=o("a41d");e=i(!1);var a=n(s);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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-84f78bb2]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#fff}\r\n/* 优惠券tab */.coupon-tab[data-v-84f78bb2]{position:fixed;left:0;top:0;top:%?88?%;z-index:10;display:flex;align-items:center;width:100%;height:%?80?%;background-color:#236030}.coupon-tab .tab[data-v-84f78bb2]{position:relative;display:flex;align-items:center;justify-content:center;width:33%;height:100%}.coupon-tab .tab uni-text[data-v-84f78bb2]{font-size:%?26?%;color:#4d9a5e}.coupon-tab .action uni-text[data-v-84f78bb2]{color:#fff;font-weight:700}.coupon-tab .action .line[data-v-84f78bb2]{position:absolute;left:50%;bottom:%?2?%;width:30%;height:%?6?%;background:#fff;-webkit-transform:translate(-50%);transform:translate(-50%)}\r\n/* 优惠券 */.coupon-list[data-v-84f78bb2]{padding:%?20?% 4%;margin:%?120?% auto 0;background-color:#fff}.coupon-list .list[data-v-84f78bb2]{position:relative;width:100%;min-height:%?200?%;box-shadow:0 0 %?14?% rgba(0,0,0,.1);border-radius:%?6?%;margin-bottom:%?20?%;overflow:hidden;background:url('+a+");background-size:cover}.coupon-list .list .list-data[data-v-84f78bb2]{display:flex;align-items:center;width:100%;height:%?200?%}.coupon-list .list .list-data .coupon-price[data-v-84f78bb2]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:30%;height:100%}.coupon-list .list .list-data .coupon-price .discounts[data-v-84f78bb2]{display:flex;justify-content:center;align-items:center;width:100%}.coupon-list .list .list-data .coupon-price .discounts .min[data-v-84f78bb2]{color:#343734;font-size:%?32?%;font-weight:700}.coupon-list .list .list-data .coupon-price .discounts .max[data-v-84f78bb2]{font-size:%?56?%;color:#343734;font-weight:700}.coupon-list .list .list-data .coupon-price .full-reduction[data-v-84f78bb2]{display:flex;justify-content:center;align-items:center;width:100%;height:%?60?%}.coupon-list .list .list-data .coupon-price .full-reduction uni-text[data-v-84f78bb2]{font-size:%?26?%;color:#343734}.coupon-list .list .list-data .coupon-info[data-v-84f78bb2]{width:70%;height:90%;padding:0 4%;display:flex;flex-direction:column;justify-content:space-around}.coupon-list .list .list-data .coupon-info .info-title[data-v-84f78bb2]{width:100%;height:%?60?%}.coupon-list .list .list-data .coupon-info .info-title .tag[data-v-84f78bb2]{font-size:%?34?%;color:#343734;font-weight:700;margin-bottom:%?16?%}.coupon-list .list .list-data .coupon-info .date-get[data-v-84f78bb2]{width:100%;height:%?80?%}.coupon-list .list .list-data .coupon-info .date-get .title uni-text[data-v-84f78bb2]{font-size:%?24?%;color:#6e4936}.coupon-list .list .list-data .coupon-info .date-get .date[data-v-84f78bb2]{display:flex;align-items:center}.coupon-list .list .list-data .coupon-info .date-get .date uni-text[data-v-84f78bb2]{font-size:%?24?%;color:#6e4936}.coupon-list .list .coupon-lose .coupon-price[data-v-84f78bb2]{background-color:silver}.coupon-list .list .coupon-lose .coupon-price .jag[data-v-84f78bb2]{position:absolute;top:0;left:%?-6?%;width:6px;height:100%;background-size:10px 6px;background-color:#fff;background-position:100% 35%;background-image:linear-gradient(-45deg,silver 25%,transparent 0,transparent),linear-gradient(-135deg,silver 25%,transparent 0,transparent),linear-gradient(-45deg,transparent 75%,silver 0),linear-gradient(-135deg,transparent 75%,silver 0)}.coupon-list .list .coupon-lose .coupon-info .info-title .tag uni-text[data-v-84f78bb2]{background-color:silver}.coupon-list .list .coupon-lose .coupon-info .info-title .title uni-text[data-v-84f78bb2]{color:silver}.coupon-list .list .coupon-lose .coupon-info .date-get .date uni-text[data-v-84f78bb2]{color:silver}.coupon-list .list .describe[data-v-84f78bb2]{display:flex;align-items:center;padding:0 4%;height:%?60?%;background-color:#fff;box-shadow:0 %?-10?% %?10?% #f5f5f5}.coupon-list .list .describe uni-text[data-v-84f78bb2]{color:#ccc;font-size:%?24?%}.coupon-list .list .use-status[data-v-84f78bb2]{position:absolute;right:%?-20?%;top:%?-25?%;z-index:10;width:%?100?%;height:%?100?%;border:%?2?% solid silver;border-radius:100%}.coupon-list .list .use-status uni-text[data-v-84f78bb2]{display:inline-block;color:silver;font-size:%?24?%;-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-top:%?40?%}.empty[data-v-84f78bb2]{text-align:center;width:80%;margin:0 auto}.empty uni-image[data-v-84f78bb2]{width:%?400?%;height:auto}.empty .emptyText[data-v-84f78bb2]{text-align:center}.empty[data-v-84f78bb2]{margin-top:20%}",""]),t.exports=e},afca:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var i=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/payUpGoods",t,e)}},d74f:function(t,e,o){"use strict";var i=o("7cc8"),n=o.n(i);n.a}}]); |