添加:持有积分添加统计

This commit is contained in:
wuhui_zzw 2023-11-18 14:39:43 +08:00
parent 5e9ac097a0
commit 4088d55219
2 changed files with 19 additions and 1 deletions

View File

@ -716,6 +716,11 @@ export function holdIntegralList(data) {
return request.get(`user/integral/hold_list`, data)
}
// 持有积分 - 列表
export function holdIntegralTitleApi(data) {
return request.get(`user/integral/hold_list_title`, data)
}
// 赠送积分 - 列表
export function giveIntegralList(data) {
return request.get(`user/integral/give_list`, data)

View File

@ -15,6 +15,7 @@
<!--<el-button size="small" type="primary" @click="exports">导出</el-button>-->
</el-form-item>
</el-form>
<cards-data :card-lists="cardLists" />
</div>
</div>
<!--列表内容-->
@ -64,9 +65,11 @@
</template>
<script>
import { holdIntegralList} from '@/api/marketing'
import { holdIntegralList, holdIntegralTitleApi} from '@/api/marketing'
import cardsData from '@/components/cards/index'
export default {
name: "preSaleProductList",
components: { cardsData },
data() {
return {
listLoading: true,
@ -81,15 +84,25 @@ export default {
mer_id: ''
},
loading: false,
cardLists: [],
};
},
watch: {
},
mounted() {
this.getIntegralTitle();
this.getList('');
},
methods: {
//
getIntegralTitle() {
holdIntegralTitleApi(this.tableFrom).then((res) => {
this.cardLists = res.data
}).catch((res) => {
this.$message.error(res.message)
})
},
//
getList(num) {
this.listLoading = true;