chunk-7f08916c.678fe296.js.map 8.9 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noCoupon.png","webpack:///./src/views/user/coupon/UserCoupon.vue?5c69","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","use_min_price","applicable_type","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,CAAAX,EAAA,OAAAJ,EAAAgB,GAAA,iBAAAZ,EAAA,QAA+CK,YAAA,OAAkB,CAAAT,EAAAgB,GAAAhB,EAAAiB,GAAAN,EAAAO,mBAAAd,EAAA,OAAkDK,YAAA,WAAsB,CAAAT,EAAAgB,GAAA,IAAAhB,EAAAiB,GAAAN,EAAAQ,eAAA,WAAAf,EAAA,OAA6DK,YAAA,QAAmB,CAAAL,EAAA,OAAYK,YAAA,mBAA8B,KAAAE,EAAAS,gBAAAhB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C,EAAAvC,KACAsC,EAAAN,OAAAF,GACAS,EAAAC,kBAIAC,QAAA,WACAzC,KAAAwC,iBAEAE,QAAA,CACAF,cAAA,WACA,IAAAD,EAAAvC,KACA2C,EAAA,EACAC,OAAAC,EAAA,KAAAD,CAAAD,GAAAG,KAAA,SAAAC,GACAR,EAAAjC,YAAAyC,EAAAZ,KACAI,EAAAd,SAAA,OCxFkXuB,EAAA,cCOlXC,EAAgBL,OAAAM,EAAA,KAAAN,CACdI,EACAlD,EACA6B,GACF,EACA,KACA,KACA,MAIewB,EAAA,WAAAF","file":"h5/js/chunk-7f08916c.678fe296.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' : ''},[_c('div',[_vm._v(\"\\n ¥\"),_c('span',{staticClass:\"num\"},[_vm._v(_vm._s(item.coupon_price))])]),_c('div',{staticClass:\"pic-num\"},[_vm._v(\"满\"+_vm._s(item.use_min_price)+\"元可用\")])]),_c('div',{staticClass:\"text\"},[_c('div',{staticClass:\"condition line1\"},[(item.applicable_type === 0)?_c('span',{staticClass:\"line-title\",class:item._type === 0 ? 'bg-color-huic' : 'bg-color-check'},[_vm._v(\"通用劵\")]):(item.applicable_type === 1)?_c('span',{staticClass:\"line-title\",class:item._type === 0 ? 'bg-color-huic' : 'bg-color-check'},[_vm._v(\"品类券\")]):_c('span',{staticClass:\"line-title\",class:item._type === 0 ? 'bg-color-huic' : 'bg-color-check'},[_vm._v(\"商品券\")]),_c('span',[_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-red\"},[_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 <div>\r\n ¥<span class=\"num\">{{ item.coupon_price }}</span>\r\n </div>\r\n <div class=\"pic-num\">满{{ item.use_min_price }}元可用</div>\r\n </div>\r\n <div class=\"text\">\r\n <div class=\"condition line1\">\r\n <span\r\n class=\"line-title\"\r\n :class=\"item._type === 0 ? 'bg-color-huic' : 'bg-color-check'\"\r\n v-if=\"item.applicable_type === 0\"\r\n >通用劵</span\r\n >\r\n <span\r\n class=\"line-title\"\r\n :class=\"item._type === 0 ? 'bg-color-huic' : 'bg-color-check'\"\r\n v-else-if=\"item.applicable_type === 1\"\r\n >品类券</span\r\n >\r\n <span\r\n class=\"line-title\"\r\n :class=\"item._type === 0 ? 'bg-color-huic' : 'bg-color-check'\"\r\n v-else\r\n >商品券</span\r\n >\r\n <span>{{ item.coupon_title }}</span>\r\n </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-red\" 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=458209d6&\"\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":""}