提交 b3adeb86 作者: 翁进城

Merge branch 'master' into csf-master

FROM node:18-alpine FROM node:18-alpine as builder
WORKDIR /app WORKDIR /app
COPY package.json . COPY package.json .
COPY package-lock.json . COPY package-lock.json .
RUN npm ci RUN npm ci
COPY . . COPY . .
EXPOSE 5173 #EXPOSE 5173
CMD ["npm", "run", "dev"] #CMD ["npm", "run", "dev"]
\ No newline at end of file RUN npm run build
# nginx
FROM nginx:alpine as production
ENV NODE_ENV production
# Set working directory to nginx asset directory
COPY --from=builder /app/dist /usr/share/nginx/html
#COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
# Containers run nginx with global directives and daemon off
ENTRYPOINT ["nginx", "-g", "daemon off;"]
\ No newline at end of file
#请求接口地址 #请求接口地址
VITE_REQUEST_BASE_URL='https://www.iuav.shop' #VITE_REQUEST_BASE_URL='https://www.iuav.shop'
#VITE_REQUEST_BASE_URL='https://test.iuav.shop' VITE_REQUEST_BASE_URL='https://test.iuav.shop'
#VITE_REQUEST_BASE_URL='/api'
#旧版接口地址 #旧版接口地址
#VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
#VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn'
......
...@@ -23,4 +23,4 @@ spec: ...@@ -23,4 +23,4 @@ spec:
memory: 512Mi memory: 512Mi
cpu: 100m cpu: 100m
ports: ports:
- containerPort: 5173 - containerPort: 80
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,6 @@ metadata: ...@@ -6,7 +6,6 @@ metadata:
spec: spec:
selector: selector:
app: admin app: admin
type: NodePort
ports: ports:
- protocol: TCP - protocol: TCP
port: 5173 port: 80
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../base - ../../base
#namePrefix: dev- #namePrefix: dev-
namespace: dev namespace: dev
commonLabels: commonLabels:
...@@ -9,5 +9,9 @@ commonLabels: ...@@ -9,5 +9,9 @@ commonLabels:
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patches: patches:
- path: ./increase_replicas.yaml - path: ./increase_replicas.yaml
- path: ./configMap.yaml - path: ./configMap.yaml
\ No newline at end of file images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: 555a2cf5fdf0e37e5c054be3cd3070c2f963be2d
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
client_max_body_size 100M;
server {
listen 80;
server_name _;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
location / {
root /usr/share/nginx/html;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
\ No newline at end of file
...@@ -13,7 +13,7 @@ const service = axios.create({ ...@@ -13,7 +13,7 @@ const service = axios.create({
}); });
service.interceptors.request.use( service.interceptors.request.use(
(config: any) => { (config: any) => {
const token = Cookies.get('SHAREFLY_TOKEN'); const token = Cookies.get('SHAREFLY-TOKEN');
// console.log('token --->', token); // console.log('token --->', token);
if (token) { if (token) {
config.headers.token = token; config.headers.token = token;
......
...@@ -95,6 +95,7 @@ const OrderConfirm: React.FC<propType> = (props) => { ...@@ -95,6 +95,7 @@ const OrderConfirm: React.FC<propType> = (props) => {
labelAlign='right' labelAlign='right'
labelCol={{ span: 8 }} labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }} wrapperCol={{ span: 16 }}
autoComplete='new-password'
> >
<Form.Item label='收货方式' labelCol={{ span: 4 }}> <Form.Item label='收货方式' labelCol={{ span: 4 }}>
物流归还 物流归还
......
...@@ -91,6 +91,7 @@ const OrderDeliver: React.FC<propType> = (props) => { ...@@ -91,6 +91,7 @@ const OrderDeliver: React.FC<propType> = (props) => {
labelAlign='right' labelAlign='right'
labelCol={{ span: 8 }} labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }} wrapperCol={{ span: 16 }}
autoComplete='new-password'
> >
<Form.Item label='收货地址' labelCol={{ span: 4 }}> <Form.Item label='收货地址' labelCol={{ span: 4 }}>
{data?.receipt?.takeName} {data?.receipt?.takePhone} {data?.receipt?.detailAddress} {data?.receipt?.takeName} {data?.receipt?.takePhone} {data?.receipt?.detailAddress}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论