【代码评审】积分商城部分

pull/107/head
YunaiV 2024-09-29 09:43:29 +08:00
parent ea98ba45ca
commit 09dc98db16
3 changed files with 698 additions and 684 deletions

1369
pages.json

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
<!-- 页面 -->
<!-- 积分商城商品列表 -->
<template>
<s-layout title="积分商城">
<view class="ss-p-20">
@ -8,14 +8,14 @@
:data="item"
priceColor="#FF3000"
@tap="sheep.$router.go('/pages/goods/point', { id: item.id })"
></s-point-card>
/>
</view>
</view>
<s-empty
v-if="state.pagination.total === 0"
icon="/static/goods-empty.png"
text="暂无积分商品"
></s-empty>
/>
<uni-load-more
v-if="state.pagination.total > 0"
:status="state.loadStatus"
@ -42,6 +42,7 @@
loadStatus: '',
});
async function getData(page = 1, list_rows = 5) {
// TODO @puhui999
state.loadStatus = 'loading';
let res = await sheep.$api.app.scoreShop.list({
list_rows,

View File

@ -17,11 +17,7 @@ const PointApi = {
});
},
/**
* 获得积分商城活动明细
* @param {number} id 积分商城活动编号
* @return {*}
*/
// 获得积分商城活动明细
getPointActivity: (id) => {
return request({
url: 'promotion/point-activity/get-detail',