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.7 KiB
1 lines
7.7 KiB
{"version":3,"sources":["webpack:////Users/piao/Documents/Project/yshopmall_uni/components/CouponPop.vue?8cf1","webpack:////Users/piao/Documents/Project/yshopmall_uni/components/CouponPop.vue?89c2","webpack:////Users/piao/Documents/Project/yshopmall_uni/components/CouponPop.vue?a2f7","webpack:////Users/piao/Documents/Project/yshopmall_uni/components/CouponPop.vue?70ec","webpack:////Users/piao/Documents/Project/yshopmall_uni/components/CouponPop.vue"],"names":["name","props","coupon","type","Object","default","data","mounted","methods","close","$emit","action","value","getCouponUser","index","id","that","list","is_use","then","$dialog","toast","mes","$set"],"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;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACzCf;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+C50B,sD,CA/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;gBAGe,EACbA,IAAI,EAAE,WADO,EAEbC,KAAK,EAAE,EACLC,MAAM,EAAE,EACNC,IAAI,EAAEC,MADA,EAENC,OAAO,EAAE,oBAAM,CAAE,CAFX,EADH,EAFM,EAQbC,IAAI,EAAE,gBAAW,CACf,OAAO,EAAP,CACD,CAVY,EAWbC,OAAO,EAAE,mBAAW,CAAE,CAXT,EAYbC,OAAO,EAAE,EACPC,KAAK,EAAE,iBAAW,CAChB,KAAKC,KAAL,CAAW,WAAX,EAAwB,EAAEC,MAAM,EAAE,cAAV,EAA0BC,KAAK,EAAE,KAAjC,EAAxB,EADgB,CACmD;AACpE,KAHM,EAIPC,aAAa,EAAE,uBAASC,KAAT,EAAgBC,EAAhB,EAAoB,CACjC,IAAIC,IAAI,GAAG,IAAX,CACEC,IAAI,GAAGD,IAAI,CAACd,MAAL,CAAYe,IADrB,CAEA,IAAIA,IAAI,CAACH,KAAD,CAAJ,CAAYI,MAAZ,KAAuB,IAA3B,EAAiC,OACjC,4BAAiBH,EAAjB,EAAqBI,IAArB,CAA0B,YAAW,CACnCH,IAAI,CAACI,OAAL,CAAaC,KAAb,CAAmB,EAAEC,GAAG,EAAE,KAAP,EAAnB,EACAN,IAAI,CAACO,IAAL,CAAUN,IAAI,CAACH,KAAD,CAAd,EAAuB,QAAvB,EAAiC,IAAjC,EACAE,IAAI,CAACN,KAAL,CAAW,WAAX,EAAwB,EAAEC,MAAM,EAAE,eAAV,EAA2BC,KAAK,EAAEE,KAAlC,EAAxB,EACAE,IAAI,CAACN,KAAL,CAAW,WAAX,EAAwB,EAAEC,MAAM,EAAE,cAAV,EAA0BC,KAAK,EAAE,KAAjC,EAAxB,EACD,CALD,EAMD,CAdM,EAZI,E","file":"components/CouponPop.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CouponPop.vue?vue&type=template&id=1336b986&\"\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\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('1336b986')) {\n api.createRecord('1336b986', component.options)\n } else {\n api.reload('1336b986', component.options)\n }\n module.hot.accept(\"./CouponPop.vue?vue&type=template&id=1336b986&\", function () {\n api.rerender('1336b986', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"Users/piao/Documents/Project/yshopmall_uni/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=1336b986&\"","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&\"","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\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 that.$dialog.toast({ mes: \"已领取\" });\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"],"sourceRoot":""} |