chunk-7f08916c.8db0001b.js.map 7.1 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noCoupon.png","webpack:///./src/views/user/coupon/UserCoupon.vue?01c1","webpack:///src/views/user/coupon/UserCoupon.vue","webpack:///./src/views/user/coupon/UserCoupon.vue?91a8","webpack:///./src/views/user/coupon/UserCoupon.vue"],"names":["module","exports","__webpack_require__","p","render","_vm","this","_h","$createElement","_c","_self","ref","couponsList","length","staticClass","_l","item","index","key","class","_type","_v","_s","coupon_price","coupon_title","_end_time","_add_time","_msg","_e","loading","_m","staticRenderFns","attrs","src","NAME","UserCouponvue_type_script_lang_js_","name","components","props","data","watch","$route","n","that","getUseCoupons","mounted","methods","type","Object","user","then","res","coupon_UserCouponvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"qGAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,yECAxC,IAAAC,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,aAAgB,CAAAN,EAAAO,YAAAC,OAAA,EAAAJ,EAAA,OAAyCK,YAAA,eAA0BT,EAAAU,GAAAV,EAAA,qBAAAW,EAAAC,GAA+C,OAAAR,EAAA,OAAiBS,IAAAD,EAAAH,YAAA,oCAAyD,CAAAL,EAAA,OAAYK,YAAA,QAAAK,MAAA,IAAAH,EAAAI,MAAA,gBAA8D,CAAAf,EAAAgB,GAAA,eAAAZ,EAAA,QAAmCK,YAAA,OAAkB,CAAAT,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAO,mBAAAd,EAAA,OAAkDK,YAAA,QAAmB,CAAAL,EAAA,OAAYK,YAAA,mBAA8B,CAAAT,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAQ,iBAAAf,EAAA,OAAgDK,YAAA,qCAAgD,KAAAE,EAAAS,UAAAhB,EAAA,OAAAJ,EAAAgB,GAAA,SAAAZ,EAAA,OAAAJ,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAU,WAAA,IAAArB,EAAAiB,GAAAN,EAAAS,cAAA,IAAAT,EAAAI,MAAAX,EAAA,OAAsJK,YAAA,YAAuB,CAAAT,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAW,SAAAlB,EAAA,OAAwCK,YAAA,sBAAiC,CAAAT,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAW,iBAAoC,GAAAtB,EAAAuB,KAAA,IAAAvB,EAAAO,YAAAC,SAAA,IAAAR,EAAAwB,QAAApB,EAAA,OAA+EK,YAAA,eAA0B,CAAAT,EAAAyB,GAAA,KAAAzB,EAAAuB,QACvgCG,EAAA,YAAoC,IAAA1B,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBK,YAAA,aAAwB,CAAAL,EAAA,OAAYK,YAAA,QAAAkB,MAAA,CAA2BC,IAAM/B,EAAQ,uCCmCjMgC,EAAA,aAEAC,EAAA,CACAC,KAAA,aACAC,WAAA,GACAC,MAAA,GACAC,KAAA,WACA,OACA3B,YAAA,GACAiB,SAAA,IAGAW,MAAA,CACAC,OAAA,SAAAC,GACA,IAAAC,EAAArC,KACAoC,EAAAN,OAAAF,GACAS,EAAAC,kBAIAC,QAAA,WACAvC,KAAAsC,iBAEAE,QAAA,CACAF,cAAA,WACA,IAAAD,EAAArC,KACAyC,EAAA,EACAC,OAAAC,EAAA,KAAAD,CAAAD,GAAAG,KAAA,SAAAC,GACAR,EAAA/B,YAAAuC,EAAAZ,KACAI,EAAAd,SAAA,OCjEkXuB,EAAA,cCOlXC,EAAgBL,OAAAM,EAAA,KAAAN,CACdI,EACAhD,EACA2B,GACF,EACA,KACA,KACA,MAIewB,EAAA,WAAAF","file":"h5/js/chunk-7f08916c.8db0001b.js","sourcesContent":["module.exports = __webpack_public_path__ + \"h5/img/noCoupon.e524084b.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\"},[(_vm.couponsList.length > 0)?_c('div',{staticClass:\"coupon-list\"},_vm._l((_vm.couponsList),function(item,index){return _c('div',{key:index,staticClass:\"item acea-row row-center-wrapper\"},[_c('div',{staticClass:\"money\",class:item._type === 0 ? 'moneyGray' : ''},[_vm._v(\"\\n ¥\"),_c('span',{staticClass:\"num\"},[_vm._v(_vm._s(item.coupon_price))])]),_c('div',{staticClass:\"text\"},[_c('div',{staticClass:\"condition line1\"},[_vm._v(_vm._s(item.coupon_title))]),_c('div',{staticClass:\"data acea-row row-between-wrapper\"},[(item._end_time === 0)?_c('div',[_vm._v(\"不限时\")]):_c('div',[_vm._v(_vm._s(item._add_time)+\"-\"+_vm._s(item._end_time))]),(item._type === 0)?_c('div',{staticClass:\"bnt gray\"},[_vm._v(_vm._s(item._msg))]):_c('div',{staticClass:\"bnt bg-color-green\"},[_vm._v(_vm._s(item._msg))])])])])}),0):_vm._e(),(_vm.couponsList.length === 0 && _vm.loading === true)?_c('div',{staticClass:\"noCommodity\"},[_vm._m(0)]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"noPictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":require(\"@assets/images/noCoupon.png\")}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div ref=\"container\">\r\n <div class=\"coupon-list\" v-if=\"couponsList.length > 0\">\r\n <div\r\n class=\"item acea-row row-center-wrapper\"\r\n v-cloak\r\n v-for=\"(item, index) in couponsList\"\r\n :key=\"index\"\r\n >\r\n <div class=\"money\" :class=\"item._type === 0 ? 'moneyGray' : ''\">\r\n ¥<span class=\"num\">{{ item.coupon_price }}</span>\r\n </div>\r\n <div class=\"text\">\r\n <div class=\"condition line1\">{{ item.coupon_title }}</div>\r\n <div class=\"data acea-row row-between-wrapper\">\r\n <div v-if=\"item._end_time === 0\">不限时</div>\r\n <div v-else>{{ item._add_time }}-{{ item._end_time }}</div>\r\n <div class=\"bnt gray\" v-if=\"item._type === 0\">{{ item._msg }}</div>\r\n <div class=\"bnt bg-color-green\" v-else>{{ item._msg }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!--暂无优惠券-->\r\n <div\r\n class=\"noCommodity\"\r\n v-if=\"couponsList.length === 0 && loading === true\"\r\n >\r\n <div class=\"noPictrue\">\r\n <img src=\"@assets/images/noCoupon.png\" class=\"image\" />\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getCouponsUser } from \"@api/user\";\r\nconst NAME = \"UserCoupon\";\r\n\r\nexport default {\r\n name: \"UserCoupon\",\r\n components: {},\r\n props: {},\r\n data: function() {\r\n return {\r\n couponsList: [],\r\n loading: false\r\n };\r\n },\r\n watch: {\r\n $route: function(n) {\r\n var that = this;\r\n if (n.name === NAME) {\r\n that.getUseCoupons();\r\n }\r\n }\r\n },\r\n mounted: function() {\r\n this.getUseCoupons();\r\n },\r\n methods: {\r\n getUseCoupons: function() {\r\n let that = this,\r\n type = 0;\r\n getCouponsUser(type).then(res => {\r\n that.couponsList = res.data;\r\n that.loading = true;\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserCoupon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserCoupon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserCoupon.vue?vue&type=template&id=01d5c262&\"\nimport script from \"./UserCoupon.vue?vue&type=script&lang=js&\"\nexport * from \"./UserCoupon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}