diff --git a/buyer/Dockerfile b/buyer/Dockerfile
index d7e43746..1f66614a 100644
--- a/buyer/Dockerfile
+++ b/buyer/Dockerfile
@@ -1,8 +1,13 @@
-FROM nginx:alpine
+FROM node:10.19.0 as build-stage
+WORKDIR /app
+COPY package*.json ./
+RUN npm install
+COPY . .
+RUN npm run build
-RUN mkdir -p /app/
-COPY ./dist /app/
+# production stage
+FROM nginx:stable-alpine as production-stage
+COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
-
-
EXPOSE 80
+CMD ["nginx", "-g", "daemon off;"]k
diff --git a/docker-build.sh b/docker-build.sh
new file mode 100644
index 00000000..3c0a3096
--- /dev/null
+++ b/docker-build.sh
@@ -0,0 +1,18 @@
+#代码目录
+code_path=$PWD
+REGISTRY_PATH='registry.cn-hangzhou.aliyuncs.com/lilishop-ui'
+BUILD_VERSION=4.2.4.1
+
+read -p "请输入仓库地址": REGISTRY_PATH
+
+echo $REGISTRY_PATH
+
+docker build -t $REGISTRY_PATH/buyer-ui:$BUILD_VERSION ${code_path}/buyer
+docker push $REGISTRY_PATH/buyer-ui:$BUILD_VERSION
+
+docker build -t $REGISTRY_PATH/seller-ui:$BUILD_VERSION ${code_path}/seller
+docker push $REGISTRY_PATH/seller-ui:$BUILD_VERSION
+
+docker build -t $REGISTRY_PATH/manager-ui:$BUILD_VERSION ${code_path}/manager
+docker push $REGISTRY_PATH/manager-ui:$BUILD_VERSION
+
diff --git a/manager/Dockerfile b/manager/Dockerfile
index d7e43746..1f66614a 100644
--- a/manager/Dockerfile
+++ b/manager/Dockerfile
@@ -1,8 +1,13 @@
-FROM nginx:alpine
+FROM node:10.19.0 as build-stage
+WORKDIR /app
+COPY package*.json ./
+RUN npm install
+COPY . .
+RUN npm run build
-RUN mkdir -p /app/
-COPY ./dist /app/
+# production stage
+FROM nginx:stable-alpine as production-stage
+COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
-
-
EXPOSE 80
+CMD ["nginx", "-g", "daemon off;"]k
diff --git a/manager/src/views/goods/goods-info/goodsDetail.vue b/manager/src/views/goods/goods-info/goodsDetail.vue
index da21cc4b..e83198e3 100644
--- a/manager/src/views/goods/goods-info/goodsDetail.vue
+++ b/manager/src/views/goods/goods-info/goodsDetail.vue
@@ -25,7 +25,7 @@
{{ goods.salesModel === "RETAIL" ? "零售型" : "批发型" }}
-
+
-
+
@@ -168,7 +168,7 @@
-
+
*号模糊匹配,逗号分割
@@ -571,6 +571,6 @@ export default {
color: #999;
}
.menu-input {
- width: 162px;
+ width: 362px;
}
diff --git a/manager/src/views/sys/user-manage/userManage.vue b/manager/src/views/sys/user-manage/userManage.vue
index e77498f3..aada1680 100644
--- a/manager/src/views/sys/user-manage/userManage.vue
+++ b/manager/src/views/sys/user-manage/userManage.vue
@@ -146,7 +146,7 @@ export default {
email: "",
sex: "",
roles: [],
- departmentId: "",
+ departmentId: 0,
departmentTitle: ""
},
roleList: [], // 角色列表
@@ -354,7 +354,7 @@ export default {
this.form.departmentId = v.departmentId;
this.form.departmentTitle = v.departmentTitle;
} else {
- this.form.departmentId = "";
+ this.form.departmentId = 0;
this.form.departmentTitle = "";
}
},
@@ -492,7 +492,7 @@ export default {
email: "",
sex: "",
roles: [],
- departmentId: "",
+ departmentId: 0,
departmentTitle: ""
},
this.$refs.depTree.setData("", "");
diff --git a/seller/Dockerfile b/seller/Dockerfile
index d7e43746..1f66614a 100644
--- a/seller/Dockerfile
+++ b/seller/Dockerfile
@@ -1,8 +1,13 @@
-FROM nginx:alpine
+FROM node:10.19.0 as build-stage
+WORKDIR /app
+COPY package*.json ./
+RUN npm install
+COPY . .
+RUN npm run build
-RUN mkdir -p /app/
-COPY ./dist /app/
+# production stage
+FROM nginx:stable-alpine as production-stage
+COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
-
-
EXPOSE 80
+CMD ["nginx", "-g", "daemon off;"]k
diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue
index 86c71c2e..bf7c05a4 100644
--- a/seller/src/views/order/order/orderDetail.vue
+++ b/seller/src/views/order/order/orderDetail.vue
@@ -554,10 +554,7 @@ export default {
orderDeliverFormValidate: {
logisticsNo: [
{ required: true, message: "发货单号不能为空", trigger: "change" },
- ],
- logisticsId: [
- { required: true, message: "请选择物流公司", trigger: "blur" },
- ],
+ ]
},
addressRule: {
consigneeName: [