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.5 KiB

{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponPop.vue?c17e","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponPop.vue?e559","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponPop.vue?d43d","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponPop.vue?30c1","uni-app:///components/CouponPop.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;;;AAGxD;AAC6M;AAC7M,gBAAgB,iNAAU;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;AAAwzB,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwC50B,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 \"!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CouponPop.vue?vue&type=script&lang=js&\"","<template>\n <view>\n <view class=\"coupon-list-window\" :class=\"coupon.coupon === true ? 'on' : ''\">\n <view class=\"title\">\n 优惠券\n <text class=\"iconfont icon-guanbi\" @click=\"close\"></text>\n </view>\n <view class=\"coupon-list\" v-if=\"coupon.list.length > 0\">\n <view\n class=\"item acea-row row-center-wrapper\"\n v-for=\"(item, couponpopIndex) in coupon.list\"\n :key=\"couponpopIndex\"\n @click=\"getCouponUser(couponpopIndex, item.id)\"\n >\n <view class=\"money\">\n ¥\n <text class=\"num\">{{ item.couponPrice }}</text>\n </view>\n <view class=\"text\">\n <view class=\"condition line1\">购物满{{ item.useMinPrice }}元可用</view>\n <view class=\"data acea-row row-between-wrapper\">\n <view v-if=\"item.end_time === 0\">不限时</view>\n <view v-else>{{ item.startTime }}-{{ item.endTime }}</view>\n <view\n class=\"bnt acea-row row-center-wrapper\"\n :class=\"!item.isUse ? 'bg-color-red' : 'gray'\"\n >{{ !item.isUse ? \"立即领取\" : \"已领取\" }}</view>\n </view>\n </view>\n </view>\n </view>\n <!--无优惠券-->\n <view class=\"pictrue\" v-else>\n <image :src=\"`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`\" class=\"image\" />\n </view>\n </view>\n <view class=\"mask\" @touchmove.prevent :hidden=\"coupon.coupon === false\" @click=\"close\"></view>\n </view>\n</template>\n<script>\nimport { getCouponReceive } from \"@/api/user\";\nexport default {\n name: \"CouponPop\",\n props: {\n coupon: {\n type: Object,\n default: () => {}\n }\n },\n data: function() {\n return {};\n },\n mounted: function() {},\n methods: {\n close: function() {\n this.$emit(\"changeFun\", { action: \"changecoupon\", value: false }); //$emit():注册事件;\n },\n getCouponUser: function(index, id) {\n let that = this,\n list = that.coupon.list;\n if (list[index].is_use === true) return;\n getCouponReceive(id).then(function() {\n uni.showToast({\n title: \"已领取\",\n icon: \"none\",\n duration: 2000\n });\n that.$set(list[index], \"is_use\", true);\n that.$emit(\"changefun\", { action: \"currentcoupon\", value: index });\n that.$emit(\"changeFun\", { action: \"changecoupon\", value: false });\n });\n }\n }\n};\n</script>\n"],"sourceRoot":""}