合并冲突
commit
73dff4515b
@ -0,0 +1,104 @@
|
||||
<template>
|
||||
<el-dialog :close-on-click-modal="false" v-dialogDrag title="适用项目" :visible.sync="dialogVisible" width="600px">
|
||||
<el-table ref="list" :data="list" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" @selection-change="handleSelect" @row-click="handleRowClick" @row-dblclick="confirm">
|
||||
<el-table-column align="center" width="60" type="selection"></el-table-column>
|
||||
<el-table-column align="center" min-width="120" prop="storeName" label="门店名称"></el-table-column>
|
||||
<el-table-column align="center" width="100" prop="projectNum" label="项目编码"></el-table-column>
|
||||
<el-table-column align="center" min-width="120" prop="projectName" label="项目名称"></el-table-column>
|
||||
</el-table>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button size="mini" type="primary" plain @click="close">取 消</el-button>
|
||||
<el-button size="mini" type="primary" @click="confirm">确 定
|
||||
</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { propage, organizations } from "@/api/storeManage.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// 表格
|
||||
list: [],
|
||||
listLoading: false,
|
||||
elementLoadingText: '正在加载...',
|
||||
// 其它
|
||||
mulSelect: [],
|
||||
queryForm: {
|
||||
pageNum: 1,
|
||||
pageSize: 1000000,
|
||||
state: 1
|
||||
},
|
||||
dialogVisible: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// ======================== 弹窗 ======================== //
|
||||
// 打开
|
||||
show(list) {
|
||||
this.dialogVisible = true
|
||||
this.fetchHeadStoreId()
|
||||
},
|
||||
close() {
|
||||
this.list = Array.from([]);
|
||||
this.mulSelect = Array.from([]);
|
||||
this.dialogVisible = false
|
||||
},
|
||||
// ======================== 查询 ======================== //
|
||||
// 查询当前账户所在组织的总店的ID
|
||||
async fetchHeadStoreId() {
|
||||
let { code, rows, message } = await organizations({ storeRequest: null })
|
||||
if (code == '000000') {
|
||||
rows.forEach((item) => {
|
||||
if (!item.parentId) {
|
||||
this.queryForm.storeId = item.id
|
||||
this.fetchData()
|
||||
}
|
||||
});
|
||||
}
|
||||
if (code == '010000') {
|
||||
this.$message({
|
||||
message: message,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
},
|
||||
// 根据总店ID查询总店的所有项目
|
||||
async fetchData() {
|
||||
let { code, pageInfo, message } = await propage(this.queryForm)
|
||||
if (code == '000000') {
|
||||
this.list = Array.from(pageInfo.list);
|
||||
}
|
||||
if (code == '010000') {
|
||||
this.$message({
|
||||
message: message,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
},
|
||||
// ======================== 其它 ======================== //
|
||||
handleSelect(data) {
|
||||
this.mulSelect = Array.from(data);
|
||||
},
|
||||
handleRowClick(row) {
|
||||
this.$refs.list.toggleRowSelection(row)
|
||||
},
|
||||
// 确定
|
||||
confirm(row) {
|
||||
if (row.id) {
|
||||
this.$emit('call-back-project', [{ storeId: row.id, storeName: row.storeName, projectId: row.id, projectNum: row.projectNum, projectName: row.projectName }]);
|
||||
} else {
|
||||
let list = this.mulSelect.map((item) => {
|
||||
return { storeId: item.id, storeName: item.storeName, projectId: item.id, projectNum: item.projectNum, projectName: item.projectName }
|
||||
})
|
||||
this.$emit('call-back-project', list);
|
||||
}
|
||||
this.close()
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1 @@
|
||||
|
||||
@ -0,0 +1,79 @@
|
||||
<template>
|
||||
<el-dialog :close-on-click-modal="false" v-dialogDrag title="适用门店" :visible.sync="dialogVisible" width="600px">
|
||||
<el-table ref="list" :data="list" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" @selection-change="handleSelect" @row-click="handleRowClick" @row-dblclick="confirm">
|
||||
<el-table-column align="center" width="60" type="selection"></el-table-column>
|
||||
<el-table-column align="center" width="100" prop="storeNum" label="门店编码"></el-table-column>
|
||||
<el-table-column align="center" min-width="120" prop="storeName" label="门店名称"></el-table-column>
|
||||
</el-table>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button size="mini" type="primary" plain @click="close">取 消</el-button>
|
||||
<el-button size="mini" type="primary" @click="confirm">确 定
|
||||
</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { organizations } from "@/api/storeManage.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// 表格
|
||||
list: [],
|
||||
listLoading: false,
|
||||
elementLoadingText: '正在加载...',
|
||||
// 其它
|
||||
mulSelect: [],
|
||||
dialogVisible: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// ======================== 弹窗 ======================== //
|
||||
// 打开
|
||||
show(list) {
|
||||
this.dialogVisible = true
|
||||
this.fetchData()
|
||||
},
|
||||
close() {
|
||||
this.list = Array.from([]);
|
||||
this.mulSelect = Array.from([]);
|
||||
this.dialogVisible = false
|
||||
},
|
||||
// ======================== 查询 ======================== //
|
||||
async fetchData() {
|
||||
let { code, rows, message } = await organizations({ storeRequest: null })
|
||||
if (code == '000000') {
|
||||
this.list = Array.from(rows);
|
||||
}
|
||||
if (code == '010000') {
|
||||
this.$message({
|
||||
message: message,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
},
|
||||
// ======================== 其它 ======================== //
|
||||
handleSelect(data) {
|
||||
this.mulSelect = Array.from(data);
|
||||
},
|
||||
handleRowClick(row) {
|
||||
this.$refs.list.toggleRowSelection(row)
|
||||
},
|
||||
// 确定
|
||||
confirm(row) {
|
||||
if (row.id) {
|
||||
this.$emit('call-back-store', [{ storeId: row.id, storeNum: row.storeNum, storeName: row.storeName }]);
|
||||
} else {
|
||||
let list = this.mulSelect.map((item) => {
|
||||
return { storeId: item.id, storeNum: item.storeNum, storeName: item.storeName }
|
||||
})
|
||||
this.$emit('call-back-store', list);
|
||||
}
|
||||
this.close()
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@ -0,0 +1 @@
|
||||
|
||||
@ -0,0 +1,92 @@
|
||||
<template>
|
||||
<el-dialog title="打款" :visible.sync="dialogFormVisible" width="500px" @close="close" :close-on-click-modal="false" v-dialogDrag>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="保证金">
|
||||
<el-input v-model.trim="form.guaranteeMoney" readonly></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="打款回执" prop="">
|
||||
<el-upload class="avatar-uploader" :limit="10" ref="upload" action="#" :show-file-list="false" :auto-upload="false" :on-change="handleChange">
|
||||
<img v-if="imageUrl" :src="imageUrl" class="avatar">
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="close">取 消</el-button>
|
||||
<el-button type="primary" @click="save">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'pay',
|
||||
data() {
|
||||
return {
|
||||
imageUrl: '',//图片链接
|
||||
form: {},
|
||||
dialogFormVisible: false//弹窗显示
|
||||
}
|
||||
},
|
||||
created() { },
|
||||
methods: {
|
||||
// ============================ 弹窗 ============================ //
|
||||
// 显示弹窗
|
||||
show() {
|
||||
this.dialogFormVisible = true
|
||||
},
|
||||
// 关闭弹窗
|
||||
close() {
|
||||
this.dialogFormVisible = false
|
||||
},
|
||||
|
||||
// ============================ 操作 ============================ //
|
||||
// 选择图片后形成图片访问路径和将文件流传给edit.vue
|
||||
handleChange(file, fileList) {
|
||||
this.imageUrl = URL.createObjectURL(file.raw);//形成虚拟文件访问路径
|
||||
this.$emit('active-img', file.raw);//raw要上传的文件流
|
||||
},
|
||||
// 发布后清除选择的文件
|
||||
handleClear() {
|
||||
this.$refs.upload.clearFiles();
|
||||
},
|
||||
// 保存
|
||||
save() {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.avatar-uploader .el-upload {
|
||||
border: 1px dashed #d9d9d9;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
}
|
||||
.avatar-uploader .el-upload:hover {
|
||||
border-color: #409eff;
|
||||
}
|
||||
.avatar-uploader-icon {
|
||||
font-size: 28px;
|
||||
color: #8c939d;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
line-height: 150px;
|
||||
text-align: center;
|
||||
}
|
||||
.avatar {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog title="增加优惠券" :visible.sync="dialogFormVisible" ref="dialog" width="450px" @close="close">
|
||||
<el-dialog title="编辑" :visible.sync="dialogFormVisible" ref="dialog" width="450px" @close="close">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="auto">
|
||||
<el-form-item label="增量" prop="num">
|
||||
<el-input v-model.trim="form.num" clearable autocomplete="off" onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"></el-input>
|
||||
@ -1,187 +1,187 @@
|
||||
/* 主题样式 */
|
||||
|
||||
.el-aside {
|
||||
/* background: #f78989; */
|
||||
/* background: linear-gradient(#f78989, #d69c9c); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#51a5ff, #1873d4);
|
||||
|
||||
/* 随着.el-menu-item background:rgb(247, 137, 137) !important;一起变 */
|
||||
/* background: rgb(247, 137, 137); */
|
||||
height: 100%;
|
||||
font-family: "幼圆";
|
||||
font-weight: 700;
|
||||
color: rgb(207, 207, 207) !important;
|
||||
|
||||
}
|
||||
|
||||
.collapse:hover {
|
||||
/* 收缩菜单按钮样式 */
|
||||
/* background: #fc9ca7; */
|
||||
background-color: linear-gradient(#fc3b3b, #2375f0);
|
||||
box-shadow: #51a5ff 10px 10px 8px;
|
||||
}
|
||||
|
||||
/* 菜单 */
|
||||
.el-submenu .el-menu-item {
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
/* 图标 */
|
||||
.el-submenu [class^=el-icon-] {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* 一级菜单字体 */
|
||||
.el-submenu__title span {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.el-menu-item,
|
||||
.el-submenu__title {
|
||||
/* 一级菜单 */
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
}
|
||||
|
||||
/* 二级菜单字体 */
|
||||
.el-menu-item {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
.el-menu-vertical-demo {
|
||||
/*菜单列表样式*/
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
/* background-color: #fc7483 !important; */
|
||||
/* 右边菜单样式 */
|
||||
/* background-color: linear-gradient(#f78989, #f78989); */
|
||||
/* background-color: #1873d4; */
|
||||
/* background: linear-gradient(#1873d4, #51a5ff); */
|
||||
color: rgb(207, 207, 207) !important;
|
||||
}
|
||||
|
||||
.el-menu-item:focus {
|
||||
background-color: none !important;
|
||||
}
|
||||
|
||||
.el-menu {
|
||||
/* 右边菜单样式 */
|
||||
/* background: linear-gradient(#f78989, #fdb3b3); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#1873d4, #51a5ff);
|
||||
|
||||
}
|
||||
|
||||
.el-submenu .is-active {
|
||||
/* 菜单栏选中样式 */
|
||||
min-width: 64px;
|
||||
border: none;
|
||||
/* background: #f0eeef; */
|
||||
/* background: linear-gradient(#f78989, #a1c5fc); */
|
||||
background: linear-gradient(#5aa7fa, #116cce) !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.el-submenu__title:hover,
|
||||
.el-menu-item:hover {
|
||||
/* 菜单鼠标覆盖样式 */
|
||||
/* background: linear-gradient(#f78989, #a1c5fc) !important; */
|
||||
background: linear-gradient(#5aa7fa, #116cce) !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
/* 主题样式 */
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
/* background: linear-gradient(#ffffff, #f9f9f9); */
|
||||
background-color: #5e9af5;
|
||||
}
|
||||
|
||||
.el-header {
|
||||
/* 头部样式 */
|
||||
/* background: linear-gradient(#fda1a1, #fd7b7b); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#6cb3ff, #1873d4);
|
||||
|
||||
border-top: 2px solid linear-gradient(#f78989, #5e9af5);
|
||||
width: 100%;
|
||||
z-index: 98;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
/* 面包屑导航样式 */
|
||||
|
||||
|
||||
/* ------------------- */
|
||||
|
||||
|
||||
/* ------------------- */
|
||||
|
||||
|
||||
/* 搜索 */
|
||||
|
||||
|
||||
/* .el-form-item label:after {
|
||||
content: " ";
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
.el-form-item__label {
|
||||
text-align: justify
|
||||
}
|
||||
.el-form-item.is-required .el-form-item__label:before {
|
||||
content: none !important;
|
||||
} */
|
||||
.el-radio__input.is-checked .el-radio__inner {
|
||||
border-color: #f78989;
|
||||
background: #f78989;
|
||||
}
|
||||
|
||||
.el-radio__input.is-checked+.el-radio__label {
|
||||
color: #f78989;
|
||||
}
|
||||
|
||||
.max-height-60 {
|
||||
max-height: 60vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-55 {
|
||||
max-height: 55vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-50 {
|
||||
max-height: 50vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-45 {
|
||||
max-height: 45vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-40 {
|
||||
max-height: 40vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-65 {
|
||||
max-height: 65vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-35 {
|
||||
max-height: 35vh;
|
||||
overflow: auto;
|
||||
}
|
||||
/* 主题样式 */
|
||||
|
||||
.el-aside {
|
||||
/* background: #f78989; */
|
||||
/* background: linear-gradient(#f78989, #d69c9c); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#51a5ff, #1873d4);
|
||||
|
||||
/* 随着.el-menu-item background:rgb(247, 137, 137) !important;一起变 */
|
||||
/* background: rgb(247, 137, 137); */
|
||||
height: 100%;
|
||||
font-family: "幼圆";
|
||||
font-weight: 700;
|
||||
color: rgb(207, 207, 207) !important;
|
||||
|
||||
}
|
||||
|
||||
.collapse:hover {
|
||||
/* 收缩菜单按钮样式 */
|
||||
/* background: #fc9ca7; */
|
||||
background-color: linear-gradient(#fc3b3b, #2375f0);
|
||||
box-shadow: #51a5ff 10px 10px 8px;
|
||||
}
|
||||
|
||||
/* 菜单 */
|
||||
.el-submenu .el-menu-item {
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
/* 图标 */
|
||||
.el-submenu [class^=el-icon-] {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* 一级菜单字体 */
|
||||
.el-submenu__title span {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.el-menu-item,
|
||||
.el-submenu__title {
|
||||
/* 一级菜单 */
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
}
|
||||
|
||||
/* 二级菜单字体 */
|
||||
.el-menu-item {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
.el-menu-vertical-demo {
|
||||
/*菜单列表样式*/
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
/* background-color: #fc7483 !important; */
|
||||
/* 右边菜单样式 */
|
||||
/* background-color: linear-gradient(#f78989, #f78989); */
|
||||
/* background-color: #1873d4; */
|
||||
/* background: linear-gradient(#1873d4, #51a5ff); */
|
||||
color: rgb(207, 207, 207) !important;
|
||||
}
|
||||
|
||||
.el-menu-item:focus {
|
||||
background-color: none !important;
|
||||
}
|
||||
|
||||
.el-menu {
|
||||
/* 右边菜单样式 */
|
||||
/* background: linear-gradient(#f78989, #fdb3b3); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#1873d4, #51a5ff);
|
||||
|
||||
}
|
||||
|
||||
.el-submenu .is-active {
|
||||
/* 菜单栏选中样式 */
|
||||
min-width: 64px;
|
||||
border: none;
|
||||
/* background: #f0eeef; */
|
||||
/* background: linear-gradient(#f78989, #a1c5fc); */
|
||||
background: linear-gradient(#5aa7fa, #116cce) !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.el-submenu__title:hover,
|
||||
.el-menu-item:hover {
|
||||
/* 菜单鼠标覆盖样式 */
|
||||
/* background: linear-gradient(#f78989, #a1c5fc) !important; */
|
||||
background: linear-gradient(#5aa7fa, #116cce) !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
/* 主题样式 */
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
/* background: linear-gradient(#ffffff, #f9f9f9); */
|
||||
background-color: #5e9af5;
|
||||
}
|
||||
|
||||
.el-header {
|
||||
/* 头部样式 */
|
||||
/* background: linear-gradient(#fda1a1, #fd7b7b); */
|
||||
/* background-color: #1873d4; */
|
||||
background: linear-gradient(#6cb3ff, #1873d4);
|
||||
|
||||
border-top: 2px solid linear-gradient(#f78989, #5e9af5);
|
||||
width: 100%;
|
||||
z-index: 98;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
/* 面包屑导航样式 */
|
||||
|
||||
|
||||
/* ------------------- */
|
||||
|
||||
|
||||
/* ------------------- */
|
||||
|
||||
|
||||
/* 搜索 */
|
||||
|
||||
|
||||
/* .el-form-item label:after {
|
||||
content: " ";
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
.el-form-item__label {
|
||||
text-align: justify
|
||||
}
|
||||
.el-form-item.is-required .el-form-item__label:before {
|
||||
content: none !important;
|
||||
} */
|
||||
/* .el-radio__input.is-checked .el-radio__inner {
|
||||
border-color: #f78989;
|
||||
background: #f78989;
|
||||
}
|
||||
|
||||
.el-radio__input.is-checked+.el-radio__label {
|
||||
color: #f78989;
|
||||
} */
|
||||
|
||||
.max-height-60 {
|
||||
max-height: 60vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-55 {
|
||||
max-height: 55vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-50 {
|
||||
max-height: 50vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-45 {
|
||||
max-height: 45vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-40 {
|
||||
max-height: 40vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-65 {
|
||||
max-height: 65vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.max-height-35 {
|
||||
max-height: 35vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@ -1,72 +1,73 @@
|
||||
export const phoneNum = /^((1)|(\\+861)|(861))[0-9]{10}$/;
|
||||
|
||||
export const email = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
|
||||
|
||||
// export const http = "https://www.decaisoft.com:443/";
|
||||
// export const https = "https://www.decaisoft.com:443/img";
|
||||
|
||||
export const http = "http://14.18.154.50:5757/img";
|
||||
export const https = "http://14.18.154.50:5757/img";
|
||||
|
||||
var month = "";
|
||||
if (new Date().getMonth() + 1 < 10) {
|
||||
month = "0" + (new Date().getMonth() + 1);
|
||||
} else {
|
||||
month = new Date().getMonth() + 1;
|
||||
}
|
||||
|
||||
var day = "";
|
||||
if (new Date().getDate() < 10) {
|
||||
day = "0" + new Date().getDate();
|
||||
} else {
|
||||
day = new Date().getDate();
|
||||
}
|
||||
|
||||
var hours = "";
|
||||
if (new Date().getHours() < 10) {
|
||||
hours = "0" + new Date().getHours();
|
||||
} else {
|
||||
hours = new Date().getHours();
|
||||
}
|
||||
|
||||
var Min = null;
|
||||
if (new Date().getMinutes() < 10) {
|
||||
Min = "0" + new Date().getMinutes();
|
||||
} else {
|
||||
Min = new Date().getMinutes();
|
||||
}
|
||||
var seconds = null;
|
||||
if (new Date().getSeconds() < 10) {
|
||||
seconds = "0" + new Date().getSeconds();
|
||||
} else {
|
||||
seconds = new Date().getSeconds();
|
||||
}
|
||||
|
||||
export const date =
|
||||
new Date().getFullYear() +
|
||||
"" +
|
||||
month +
|
||||
"" +
|
||||
day +
|
||||
"" +
|
||||
hours +
|
||||
"" +
|
||||
Min +
|
||||
"" +
|
||||
seconds;
|
||||
export const dates =
|
||||
new Date().getFullYear() +
|
||||
"/" +
|
||||
month +
|
||||
"/" +
|
||||
day +
|
||||
" " +
|
||||
hours +
|
||||
":" +
|
||||
Min +
|
||||
":" +
|
||||
seconds;
|
||||
|
||||
export const dayStatisticDate =
|
||||
new Date().getFullYear() + "-" + month + "-" + new Date().getDate();
|
||||
export const months = new Date().getFullYear() + "-" + month + "";
|
||||
export const phoneNum = /^((1)|(\\+861)|(861))[0-9]{10}$/;
|
||||
|
||||
export const email = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
|
||||
|
||||
// export const http = "https://www.decaisoft.com:443/";
|
||||
// export const https = "https://www.decaisoft.com:443/img";
|
||||
|
||||
export const http = "http://14.18.154.50:5757/img";
|
||||
export const https = "http://14.18.154.50:5757/img";
|
||||
export const imagePath = "https://139.9.185.131:8093/img"
|
||||
|
||||
var month = "";
|
||||
if (new Date().getMonth() + 1 < 10) {
|
||||
month = "0" + (new Date().getMonth() + 1);
|
||||
} else {
|
||||
month = new Date().getMonth() + 1;
|
||||
}
|
||||
|
||||
var day = "";
|
||||
if (new Date().getDate() < 10) {
|
||||
day = "0" + new Date().getDate();
|
||||
} else {
|
||||
day = new Date().getDate();
|
||||
}
|
||||
|
||||
var hours = "";
|
||||
if (new Date().getHours() < 10) {
|
||||
hours = "0" + new Date().getHours();
|
||||
} else {
|
||||
hours = new Date().getHours();
|
||||
}
|
||||
|
||||
var Min = null;
|
||||
if (new Date().getMinutes() < 10) {
|
||||
Min = "0" + new Date().getMinutes();
|
||||
} else {
|
||||
Min = new Date().getMinutes();
|
||||
}
|
||||
var seconds = null;
|
||||
if (new Date().getSeconds() < 10) {
|
||||
seconds = "0" + new Date().getSeconds();
|
||||
} else {
|
||||
seconds = new Date().getSeconds();
|
||||
}
|
||||
|
||||
export const date =
|
||||
new Date().getFullYear() +
|
||||
"" +
|
||||
month +
|
||||
"" +
|
||||
day +
|
||||
"" +
|
||||
hours +
|
||||
"" +
|
||||
Min +
|
||||
"" +
|
||||
seconds;
|
||||
export const dates =
|
||||
new Date().getFullYear() +
|
||||
"/" +
|
||||
month +
|
||||
"/" +
|
||||
day +
|
||||
" " +
|
||||
hours +
|
||||
":" +
|
||||
Min +
|
||||
":" +
|
||||
seconds;
|
||||
|
||||
export const dayStatisticDate =
|
||||
new Date().getFullYear() + "-" + month + "-" + new Date().getDate();
|
||||
export const months = new Date().getFullYear() + "-" + month + "";
|
||||
|
||||
Loading…
Reference in New Issue