|
@@ -0,0 +1,43 @@
|
|
|
+<template>
|
|
|
+ <view class="couponManage"> 1111111111 </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { getMerchantCoupon } from '@/api/merchant/store.js';
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ list: {},
|
|
|
+ params: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.list = this.$store.state.data.merchantInfo;
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getDataListInit();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getDataListInit() {
|
|
|
+ let result = Object.assign(
|
|
|
+ {},
|
|
|
+ {
|
|
|
+ paging: `${this.params.pageNum},${this.params.pageSize}`,
|
|
|
+ },
|
|
|
+ );
|
|
|
+ getMerchantCoupon(this.list.merchant.id, { ...result }).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.couponManage {
|
|
|
+ background-color: pink;
|
|
|
+}
|
|
|
+</style>
|