chunk-7f08916c.3e373df4.js.map 8.2 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noCoupon.png","webpack:///./src/views/user/coupon/UserCoupon.vue?58c7","webpack:///src/views/user/coupon/UserCoupon.vue","webpack:///./src/views/user/coupon/UserCoupon.vue?90f8","webpack:///./src/views/user/coupon/UserCoupon.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","ref","couponsList","length","staticClass","_l","item","index","key","class","_type","_v","_s","coupon_price","use_min_price","type","coupon_title","_end_time","_add_time","_msg","_e","loading","_m","staticRenderFns","attrs","name","components","props","data","watch","$route","that","n","NAME","getUseCoupons","mounted","methods","res","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,gC,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,aAAa,CAAEN,EAAIO,YAAYC,OAAS,EAAGJ,EAAG,MAAM,CAACK,YAAY,eAAeT,EAAIU,GAAIV,EAAe,aAAE,SAASW,EAAKC,GAAO,OAAOR,EAAG,MAAM,CAACS,IAAID,EAAMH,YAAY,oCAAoC,CAACL,EAAG,MAAM,CAACK,YAAY,QAAQK,MAAqB,IAAfH,EAAKI,MAAc,YAAc,IAAI,CAACX,EAAG,MAAM,CAACJ,EAAIgB,GAAG,iBAAiBZ,EAAG,OAAO,CAACK,YAAY,OAAO,CAACT,EAAIgB,GAAGhB,EAAIiB,GAAGN,EAAKO,mBAAmBd,EAAG,MAAM,CAACK,YAAY,WAAW,CAACT,EAAIgB,GAAG,IAAIhB,EAAIiB,GAAGN,EAAKQ,eAAe,WAAWf,EAAG,MAAM,CAACK,YAAY,QAAQ,CAACL,EAAG,MAAM,CAACK,YAAY,mBAAmB,CAAgB,IAAdE,EAAKS,KAAYhB,EAAG,OAAO,CAACK,YAAY,cAAc,CAACT,EAAIgB,GAAG,SAAwB,IAAdL,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OAAN,OAAM,CAAN,qBACQH,EAAK7B,YAAcmC,EAAIT,KACvBG,EAAKV,SAAU,QCzE+b,I,YCOldiB,EAAY,eACd,EACA5C,EACA6B,GACA,EACA,KACA,KACA,MAIa,aAAAe,E","file":"h5/js/chunk-7f08916c.3e373df4.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.type === 0)?_c('span',{staticClass:\"line-title\"},[_vm._v(\"通用劵\")]):(item.type === 1)?_c('span',{staticClass:\"line-title\"},[_vm._v(\"品类券\")]):_c('span',{staticClass:\"line-title\"},[_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 class=\"line-title\" v-if=\"item.type === 0\">通用劵</span>\r\n <span class=\"line-title\" v-else-if=\"item.type === 1\">品类券</span>\r\n <span class=\"line-title\" v-else>商品券</span>\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@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./UserCoupon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/_vue-loader@15.9.0@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=a4c21cc4&\"\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@15.9.0@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":""}