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
12 KiB
1 lines
12 KiB
{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?45a8","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?efe7","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?3b78","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?5bdd","uni-app:///components/CouponListWindow.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?9cca","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CouponListWindow.vue?5ea9"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACsC;;;AAGrG;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;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;AAA+zB,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+Dn1B,wD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yTAGA,EACA,wBADA,EAEA,cACA,wBADA,EAFA,EAKA,SACA,cADA,EAEA,eAFA,EAGA,SACA,sBADA,EAEA,kBAFA,EAHA,EAOA,UACA,YADA,EAEA,WAFA,EAPA,EALA,EAiBA,uBACA,SACA,cADA,EAEA,aAFA,GAIA,CAtBA,EAuBA,SACA,KADA,iBACA,CADA,EACA,CACA,yCACA,iBACA,CAJA,EAKA,MALA,kBAKA,CALA,EAKA,CACA,yCACA,iBACA,CARA,EAvBA,EAiCA,8BAjCA,EAkCA,WACA,yBACA,2BACA,oBACA,CAJA,EAKA,SALA,uBAKA,kBACA,6DACA,4BACA,oBACA,CAHA,EAIA,CAVA,EAWA,KAXA,iBAWA,MAXA,EAWA,CACA,8BACA,2BACA,CAdA,EAeA,+BACA,4BACA,2BACA,CAlBA,EAlCA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA0gD,CAAgB,s6CAAG,EAAC,C;;;;;;;;;;;ACA9hD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/CouponListWindow.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CouponListWindow.vue?vue&type=template&id=316c824f&scoped=true&\"\nvar renderjs\nimport script from \"./CouponListWindow.vue?vue&type=script&lang=js&\"\nexport * from \"./CouponListWindow.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CouponListWindow.vue?vue&type=style&index=0&id=316c824f&scoped=true&lang=less&\"\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 \"316c824f\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/CouponListWindow.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!./CouponListWindow.vue?vue&type=template&id=316c824f&scoped=true&\"","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!./CouponListWindow.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!./CouponListWindow.vue?vue&type=script&lang=js&\"","<template>\n <view>\n <view class=\"coupon-list-window\" :class=\"value === true ? 'on' : ''\">\n <view class=\"title\">\n 优惠券\n <text class=\"iconfont icon-guanbi\" @click=\"close\"></text>\n </view>\n <view v-if=\"couponList.length > 0\">\n <view class=\"coupon-list\">\n <div\n class=\"item acea-row row-center-wrapper\"\n v-for=\"coupon in couponList\"\n :key=\"coupon.id\"\n @click=\"click(coupon)\"\n >\n <div class=\"money\">\n <div>\n ¥<span class=\"num\">{{ coupon.couponPrice }}</span>\n </div>\n <div class=\"pic-num\">满{{ coupon.useMinPrice }}元可用</div>\n </div>\n <div class=\"text\">\n <div class=\"condition line1\">{{ coupon.couponTitle }}</div>\n <div class=\"data acea-row row-between-wrapper\">\n <div v-if=\"coupon.endTime === 0\">不限时</div>\n <div v-else>截止:{{ coupon.endTime }}</div>\n <div\n class=\"iconfont icon-xuanzhong1 font-color-red\"\n v-if=\"checked === coupon.id\"\n ></div>\n <div class=\"iconfont icon-weixuanzhong\" v-else></div>\n </div>\n </div>\n </div>\n </view>\n <view class=\"couponNo bg-color-red\" @click=\"couponNo\">不使用优惠券</view>\n </view>\n <view v-if=\"!couponList.length && loaded\">\n <view class=\"pictrue\">\n <image :src=\"`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`\" class=\"image\" />\n </view>\n </view>\n </view>\n <view class=\"mask\" @touchmove.prevent :hidden=\"value === false\" @click=\"close\"></view>\n </view>\n</template>\n<style scoped lang=\"less\">\n.coupon-list-window .iconfont {\n font-size: 40rpx;\n}\n.couponNo {\n font-size: 30rpx;\n font-weight: bold;\n color: #fff;\n width: 690rpx;\n height: 86rpx;\n border-radius: 43rpx;\n text-align: center;\n line-height: 86rpx;\n margin: 60rpx auto;\n}\n</style>\n<script>\nimport { getOrderCoupon } from \"@/api/order\";\nimport DataFormatT from \"@/components/DataFormatT\";\n\nexport default {\n name: \"CouponListWindow\",\n components: {\n DataFormatT\n },\n props: {\n value: Boolean,\n checked: Number,\n price: {\n type: [Number, String],\n default: undefined\n },\n cartid: {\n type: String,\n default: \"\"\n }\n },\n data: function() {\n return {\n couponList: [],\n loaded: false\n };\n },\n watch: {\n price(n) {\n if (n === undefined || n == null) return;\n this.getCoupon();\n },\n cartid(n) {\n if (n === undefined || n == null) return;\n this.getCoupon();\n }\n },\n mounted: function() {},\n methods: {\n close: function() {\n this.$emit(\"input\", false);\n this.$emit(\"close\");\n },\n getCoupon() {\n getOrderCoupon(this.cartid).then(res => {\n this.couponList = res.data;\n this.loaded = true;\n });\n },\n click(coupon) {\n this.$emit(\"checked\", coupon);\n this.$emit(\"input\", false);\n },\n couponNo: function() {\n this.$emit(\"checked\", null);\n this.$emit(\"input\", false);\n }\n }\n};\n</script>\n","import mod from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../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!./CouponListWindow.vue?vue&type=style&index=0&id=316c824f&scoped=true&lang=less&\"; export default mod; export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../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!./CouponListWindow.vue?vue&type=style&index=0&id=316c824f&scoped=true&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513137745\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |