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
13 KiB
1 lines
13 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?0e91","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?c1ee","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?ab1e","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?8051","uni-app:///pages/MyCoupon/MyCoupon.vue","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?42af","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/MyCoupon/MyCoupon.vue?b0ec"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","TabShow","list","id","methods","onCouponTab","userMyCoupon","uni","url","getList","type","onLoad"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,iBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAs0B,CAAgB,syBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACwD11B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA;EAEAC;IACA;MACAC;MAEAC;MACAC;IACA;EACA;EACAC;IACA;AACA;AACA;AACA;IACAC;MACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACAC;QACAC;MACA;MACA;IAEA;IACAC;MAAA;MACA;QAAAC;MAAA;QACA;MACA;IACA;EACA;EACAC;IACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjGA;AAAA;AAAA;AAAA;AAA6jD,CAAgB,67CAAG,EAAC,C;;;;;;;;;;;ACAjlD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/MyCoupon/MyCoupon.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/MyCoupon/MyCoupon.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./MyCoupon.vue?vue&type=template&id=79114ac6&scoped=true&\"\nvar renderjs\nimport script from \"./MyCoupon.vue?vue&type=script&lang=js&\"\nexport * from \"./MyCoupon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyCoupon.vue?vue&type=style&index=0&id=79114ac6&scoped=true&lang=scss&\"\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 \"79114ac6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/MyCoupon/MyCoupon.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--17-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!./MyCoupon.vue?vue&type=template&id=79114ac6&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.list.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\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--13-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!./MyCoupon.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--13-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!./MyCoupon.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<!-- 优惠券tab -->\n\t\t<view class=\"coupon-tab\">\n\t\t\t<view class=\"tab\" :class=\"{'action':TabShow===0}\" @click=\"onCouponTab(0,'can_use')\">\n\t\t\t\t<text>未使用</text>\n\t\t\t\t<text class=\"line\"></text>\n\t\t\t</view>\n\t\t\t<view class=\"tab\" :class=\"{'action':TabShow===1}\" @click=\"onCouponTab(1,'used')\">\n\t\t\t\t<text>已使用</text>\n\t\t\t\t<text class=\"line\"></text>\n\t\t\t</view>\n\t\t\t<view class=\"tab\" :class=\"{'action':TabShow===2}\" @click=\"onCouponTab(2,'expired')\">\n\t\t\t\t<text>已过期</text>\n\t\t\t\t<text class=\"line\"></text>\n\t\t\t</view>\n\t\t</view>\n\t\t<!-- 优惠券列表 -->\n\t\t<view class=\"coupon-list\" v-if=\"list.length>0\">\n\t\t\t<view class=\"list\" v-for=\"(item,index) in list\" :key=\"index\" @click=\"userMyCoupon(item)\">\n\t\t\t\t<view class=\"list-data\" :class=\"{'coupon-lose':TabShow!=0}\">\n\t\t\t\t\t<view class=\"coupon-price\">\n\t\t\t\t\t\t<view class=\"discounts\">\n\t\t\t\t\t\t\t<text class=\"min\">¥</text>\n\t\t\t\t\t\t\t<text class=\"max\">{{item.coupon.amount}}</text>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"full-reduction\"><text>{{item.coupon.type_text}}</text></view>\n\t\t\t\t\t\t<!-- <view class=\"jag\"></view> -->\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"coupon-info\">\n\t\t\t\t\t\t<view class=\"info-title\">\n\t\t\t\t\t\t\t<view class=\"tag\"><text>{{item.coupon.amount_text}}</text></view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"date-get\">\n\t\t\t\t\t\t\t<view class=\"title\"><text>{{item.coupon.use_scope_text}}</text></view>\n\t\t\t\t\t\t\t<view class=\"date\"><text>{{item.coupon.use_start_time}}-{{item.coupon.use_end_time}}</text></view>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"use-status\" v-if=\"TabShow != 0\">\n\t\t\t\t\t<text v-if=\"TabShow === 1\">已使用</text>\n\t\t\t\t\t<text v-else-if=\"TabShow === 2\">已过期</text>\n\t\t\t\t</view>\n\t\t\t\t\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"empty\" v-else>\n\t\t\t<image src=\"../../static/image/not-order.png\" mode=\"widthFix\"></image>\n\t\t\t<view class=\"emptyText\">暂无数据</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\nimport {couponList} from '@/common/api.js'\nexport default {\n\t\n\tdata() {\n\t\treturn {\n\t\t\tTabShow: 0,\n\t\t\t\n\t\t\tlist:[],\n\t\t\tid:null,\n\t\t};\n\t},\n\tmethods:{\n\t\t/**\n\t\t * 优惠券tab点击\n\t\t * @param {Number} type\n\t\t */\n\t\tonCouponTab(index,type){\n\t\t\tthis.TabShow = index;\n\t\t\tthis.getList(type)\n\t\t},\n\t\t/**\n\t\t * 去使用点击\n\t\t */\n\t\tuserMyCoupon(item){\n\t\t\t// if(item.status!=\"used\"){\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl: '/pages/warehouse/weituo?coupon_id='+item.id+'&num='+item.amount+'&coupon=1&id='+this.id+\"&enough=\"+item.enough\n\t\t\t\t})\n\t\t\t// }\n\t\t\t\n\t\t},\n\t\tgetList(type){\n\t\t\tcouponList({type:type}).then(res=>{\n\t\t\t\tthis.list = res.data.data\n\t\t\t})\n\t\t},\n\t},\n\tonLoad(option){\n\t\tthis.id = option.id\n\t\tthis.getList('can_use')\n\t},\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import 'MyCoupon.scss';\n.empty{\n\tmargin-top:20%;\n}\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-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--8-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!./MyCoupon.vue?vue&type=style&index=0&id=79114ac6&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-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--8-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!./MyCoupon.vue?vue&type=style&index=0&id=79114ac6&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1697873050944\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":""} |