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
7.9 KiB

{"version":3,"sources":["webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CouponPop.vue?25d4","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CouponPop.vue?00a9","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CouponPop.vue?9c72","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/CouponPop.vue?80cd","uni-app:///components/CouponPop.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;;;AAGxD;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAqzB,CAAgB,q0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwCz0B,sD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACA,EACA,iBADA,EAEA,SACA,UACA,YADA,EAEA,+BAFA,EADA,EAFA,EAQA,uBACA,UACA,CAVA,EAWA,8BAXA,EAYA,WACA,yBACA,kEADA,CACA;AACA,KAHA,EAIA,kDACA,gBACA,uBADA,CAEA,wCACA,kDACA,gBACA,YADA,EAEA,YAFA,EAGA,cAHA,IAKA,uCACA,mEACA,kEACA,CATA,EAUA,CAlBA,EAZA,E","file":"components/CouponPop.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CouponPop.vue?vue&type=template&id=4b296000&\"\nvar renderjs\nimport script from \"./CouponPop.vue?vue&type=script&lang=js&\"\nexport * from \"./CouponPop.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/CouponPop.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CouponPop.vue?vue&type=template&id=4b296000&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CouponPop.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./CouponPop.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <view class=\"coupon-list-window\" :class=\"coupon.coupon === true ? 'on' : ''\">\r\n <view class=\"title\">\r\n 优惠券\r\n <text class=\"iconfont icon-guanbi\" @click=\"close\"></text>\r\n </view>\r\n <view class=\"coupon-list\" v-if=\"coupon.list.length > 0\">\r\n <view\r\n class=\"item acea-row row-center-wrapper\"\r\n v-for=\"(item, couponpopIndex) in coupon.list\"\r\n :key=\"couponpopIndex\"\r\n @click=\"getCouponUser(couponpopIndex, item.id)\"\r\n >\r\n <view class=\"money\">\r\n ¥\r\n <text class=\"num\">{{ item.couponPrice }}</text>\r\n </view>\r\n <view class=\"text\">\r\n <view class=\"condition line1\">购物满{{ item.useMinPrice }}元可用</view>\r\n <view class=\"data acea-row row-between-wrapper\">\r\n <view v-if=\"item.end_time === 0\">不限时</view>\r\n <view v-else>{{ item.startTime }}-{{ item.endTime }}</view>\r\n <view\r\n class=\"bnt acea-row row-center-wrapper\"\r\n :class=\"!item.isUse ? 'bg-color-red' : 'gray'\"\r\n >{{ !item.isUse ? \"立即领取\" : \"已领取\" }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n <!--无优惠券-->\r\n <view class=\"pictrue\" v-else>\r\n <image :src=\"`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`\" class=\"image\" />\r\n </view>\r\n </view>\r\n <view class=\"mask\" @touchmove.prevent :hidden=\"coupon.coupon === false\" @click=\"close\"></view>\r\n </view>\r\n</template>\r\n<script>\r\nimport { getCouponReceive } from \"@/api/user\";\r\nexport default {\r\n name: \"CouponPop\",\r\n props: {\r\n coupon: {\r\n type: Object,\r\n default: () => {}\r\n }\r\n },\r\n data: function() {\r\n return {};\r\n },\r\n mounted: function() {},\r\n methods: {\r\n close: function() {\r\n this.$emit(\"changeFun\", { action: \"changecoupon\", value: false }); //$emit():注册事件;\r\n },\r\n getCouponUser: function(index, id) {\r\n let that = this,\r\n list = that.coupon.list;\r\n if (list[index].is_use === true) return;\r\n getCouponReceive(id).then(function() {\r\n uni.showToast({\r\n title: \"已领取\",\r\n icon: \"none\",\r\n duration: 2000\r\n });\r\n that.$set(list[index], \"is_use\", true);\r\n that.$emit(\"changefun\", { action: \"currentcoupon\", value: index });\r\n that.$emit(\"changeFun\", { action: \"changecoupon\", value: false });\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n"],"sourceRoot":""}