feat: 添加天猫店铺

This commit is contained in:
danial
2024-09-04 11:22:33 +08:00
parent 0df70eb0c2
commit 283fe768e8
6 changed files with 46 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
VITE_API_BASE_URL= 'http://127.0.0.1:8000/api'
# VITE_API_BASE_URL='http://121.37.253.228:12401/api'
# VITE_API_BASE_URL= 'http://127.0.0.1:8000/api'
VITE_API_BASE_URL='http://121.37.253.228:12401/api'

View File

@@ -1,4 +1,4 @@
FROM node:20 as builder
FROM node:20 AS builder
WORKDIR /build
COPY . .
@@ -10,7 +10,7 @@ RUN if [ "$USE_PROXY" = "1" ]; then \
npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && \
npm i -g nrm && nrm use taobao; \
fi \
&& npm install -g npm@latest pnpm@9.5.0 && pnpm i && pnpm build
&& npm install -g npm@latest pnpm@9.9.0 && pnpm i && pnpm build
FROM nginx:latest

View File

@@ -0,0 +1,19 @@
services:
kami_frontend:
build:
context: ../.
dockerfile: ./deploy/Dockerfile
args:
- USE_PROXY=1
container_name: kami_frontend
image: kami_frontend:latest
ports:
- 12400:12400
networks:
- 1panel-network
labels:
createdBy: Developer
networks:
1panel-network:
external: true

View File

@@ -57,6 +57,26 @@ const IFRAME: AppRouteRecordRaw = {
locale: '用户管理',
requiresAuth: false
}
},
{
path: 'tMallGameAccount',
name: 'iframeRechargeTMallGameAccountList',
component: () => import('@/views/t-mall-game/account-info/index.vue'),
meta: {
locale: '账号管理',
requiresAuth: true,
roles: ['*']
}
},
{
path: 'tMallGameOrder',
name: 'iframeRechargeTMallGameOrderList',
component: () => import('@/views/t-mall-game/order-info/index.vue'),
meta: {
locale: '订单管理',
requiresAuth: true,
roles: ['*']
}
}
]
};

View File

@@ -65,8 +65,9 @@
status="success"
@click="
openLink(
data.singleRoadPlatformRate[rateIndex].platformLabel,
data.singleRoadPlatformRate[rateIndex].isLinkSingle,
rate.label,
data.singleRoadPlatformRate[Math.floor(rateIndex / 8)]
.isLinkSingle,
rate.value
)
"