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

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

View File

@ -6,7 +6,8 @@
"^su-(.*)": "@/sheep/ui/su-$1/su-$1.vue"
}
},
"pages": [{
"pages": [
{
"path": "pages/index/index",
"aliasPath": "/",
"style": {
@ -84,9 +85,11 @@
}
}
],
"subPackages": [{
"subPackages": [
{
"root": "pages/goods",
"pages": [{
"pages": [
{
"path": "index",
"style": {
"navigationBarTitleText": "商品详情"
@ -108,7 +111,6 @@
"group": "商品"
}
},
{
"path": "seckill",
"style": {
@ -161,7 +163,8 @@
},
{
"root": "pages/order",
"pages": [{
"pages": [
{
"path": "detail",
"style": {
"navigationBarTitleText": "订单详情"
@ -260,7 +263,8 @@
},
{
"root": "pages/user",
"pages": [{
"pages": [
{
"path": "info",
"style": {
"navigationBarTitleText": "我的信息"
@ -358,7 +362,8 @@
},
{
"root": "pages/commission",
"pages": [{
"pages": [
{
"path": "index",
"style": {
"navigationBarTitleText": "分销"
@ -417,7 +422,8 @@
"title": "我的团队",
"group": "分销商城"
}
}, {
},
{
"path": "promoter",
"style": {
"navigationBarTitleText": "推广人排行榜"
@ -428,7 +434,8 @@
"title": "推广人排行榜",
"group": "分销商城"
}
}, {
},
{
"path": "commission-ranking",
"style": {
"navigationBarTitleText": "佣金排行榜"
@ -439,7 +446,8 @@
"title": "佣金排行榜",
"group": "分销商城"
}
}, {
},
{
"path": "withdraw",
"style": {
"navigationBarTitleText": "申请提现"
@ -455,7 +463,8 @@
},
{
"root": "pages/app",
"pages": [{
"pages": [
{
"path": "sign",
"style": {
"navigationBarTitleText": "签到中心"
@ -466,11 +475,13 @@
"title": "签到中心",
"group": "应用"
}
}]
}
]
},
{
"root": "pages/public",
"pages": [{
"pages": [
{
"path": "setting",
"style": {
"navigationBarTitleText": "系统设置"
@ -519,7 +530,8 @@
},
{
"root": "pages/coupon",
"pages": [{
"pages": [
{
"path": "list",
"style": {
"navigationBarTitleText": "领券中心"
@ -546,7 +558,8 @@
},
{
"root": "pages/chat",
"pages": [{
"pages": [
{
"path": "index",
"style": {
"navigationBarTitleText": "客服"
@ -557,11 +570,13 @@
"title": "客服",
"group": "客服"
}
}]
}
]
},
{
"root": "pages/pay",
"pages": [{
"pages": [
{
"path": "index",
"style": {
"navigationBarTitleText": "收银台"
@ -601,7 +616,8 @@
},
{
"root": "pages/activity",
"pages": [{
"pages": [
{
"path": "groupon/detail",
"style": {
"navigationBarTitleText": "拼团详情"
@ -664,7 +680,8 @@
"navigationStyle": "custom"
},
"tabBar": {
"list": [{
"list": [
{
"pagePath": "pages/index/index"
},
{

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',