Commit f96329f8 by xinla

color: #333333 color: var(--font-black), color: #999999 color: #666666

color: #888   color: var(--font-black-6)
1 parent 7938f3a0
Showing 50 changed files with 529 additions and 539 deletions
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
color: var(--font-black); color: var(--font-black);
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
...@@ -360,7 +360,7 @@ export default { ...@@ -360,7 +360,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
img { img {
height: 40px; height: 40px;
width: 40px; width: 40px;
......
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.add-continue { .add-continue {
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
flex: none; flex: none;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #333333; color: var(--font-black);
} }
.preview-content { .preview-content {
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
color: var(--font-black); color: var(--font-black);
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
color: var(--font-black); color: var(--font-black);
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -731,7 +731,7 @@ export default { ...@@ -731,7 +731,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.add-continue { .add-continue {
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
img { img {
height: 40px; height: 40px;
width: 40px; width: 40px;
......
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
} }
} }
.el-icon-QuestionFilled { .el-icon-QuestionFilled {
color: #888; color: var(--font-black-6);
margin-left: 10px; margin-left: 10px;
} }
.home { .home {
......
...@@ -254,7 +254,7 @@ div:focus { ...@@ -254,7 +254,7 @@ div:focus {
color: var(--font-black); color: var(--font-black);
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -215,6 +215,6 @@ textarea { ...@@ -215,6 +215,6 @@ textarea {
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.info_title { .info_title {
font-size: 16px; font-size: 16px;
......
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
color: var(--font-black); color: var(--font-black);
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.title { .title {
font-size: 16px; font-size: 16px;
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
transform: translateX(-50%); transform: translateX(-50%);
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
padding: 20px; padding: 20px;
...@@ -153,6 +153,6 @@ export default { ...@@ -153,6 +153,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -26,122 +26,122 @@ ...@@ -26,122 +26,122 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'short-link-preview-type-3', name: 'short-link-preview-type-3',
components: {}, components: {},
props: { props: {
name: { name: {
type: String, type: String,
default: '短链推广' default: '短链推广',
},
value: {
type: String,
default: ''
},
poster: {
type: String,
default: ''
}
}, },
watch: { value: {
value(val) { type: String,
// this.$forceUpdate() default: '',
},
poster() {
// this.$forceUpdate()
}
}, },
data() { poster: {
return { type: String,
list: [] default: '',
}
}, },
created() {}, },
mounted() {}, watch: {
methods: {} value(val) {
} // this.$forceUpdate()
},
poster() {
// this.$forceUpdate()
},
},
data() {
return {
list: [],
}
},
created() {},
mounted() {},
methods: {},
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.preview { .preview {
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
width: 300px; width: 300px;
height: 640px; height: 640px;
background: url(../../../../assets/drainageCode/preview-bg.png); background: url(../../../../assets/drainageCode/preview-bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.title { .title {
position: absolute; position: absolute;
top: 37px; top: 37px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
// text-align: center; // text-align: center;
position: absolute; position: absolute;
height: 545px; height: 545px;
width: 280px; width: 280px;
overflow-y: auto; overflow-y: auto;
top: 70px; top: 70px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
border-bottom-left-radius: 20px; border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px; border-bottom-right-radius: 20px;
.header_bg { .header_bg {
height: 200px; height: 200px;
background-color: #cdf3df; background-color: #cdf3df;
position: relative; position: relative;
.header { .header {
height: 48px; height: 48px;
width: 48px; width: 48px;
position: absolute; position: absolute;
bottom: -25px; bottom: -25px;
right: 16px; right: 16px;
}
}
.header_con {
padding: 0 20px;
margin-top: 60px;
.img {
display: flex;
align-items: center;
.name {
margin-left: 10px;
font-size: 14px;
font-weight: 600;
color: #596c94;
} }
} }
.header_con { .circle_con {
padding: 0 20px; margin-left: 42px;
margin-top: 60px; // margin-top: 10px;
.img { .word {
display: flex; font-size: 14px;
align-items: center; font-weight: 400;
.name { color: #191919;
margin-left: 10px;
font-size: 14px;
font-weight: 600;
color: #596c94;
}
} }
.circle_con { .code_img {
margin-left: 42px; height: 140px;
// margin-top: 10px; width: 140px;
.word { margin: 5px auto;
font-size: 14px;
font-weight: 400;
color: #191919;
}
.code_img {
height: 140px;
width: 140px;
margin: 5px auto;
}
} }
} }
} }
} }
.sub-des { }
text-align: center; .sub-des {
font-size: 12px; text-align: center;
font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
...@@ -101,6 +101,6 @@ export default { ...@@ -101,6 +101,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
font-size: 13px; font-size: 13px;
.name { .name {
margin-right: 6px; margin-right: 6px;
color: #888; color: var(--font-black-6);
} }
} }
} }
......
...@@ -386,7 +386,7 @@ export default { ...@@ -386,7 +386,7 @@ export default {
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.roster-btn-delete { .roster-btn-delete {
margin-top: -16%; margin-top: -16%;
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
} }
.timeline-time { .timeline-time {
font-size: 14px; font-size: 14px;
color: #999999; color: var(--font-black-6);
line-height: 48px; line-height: 48px;
} }
.el-timeline > .timeline-box-item:first-child ::v-deep .el-timeline-item__node { .el-timeline > .timeline-box-item:first-child ::v-deep .el-timeline-item__node {
......
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
} }
.timeline-time { .timeline-time {
font-size: 14px; font-size: 14px;
color: #999999; color: var(--font-black-6);
line-height: 48px; line-height: 48px;
} }
.el-timeline > .timeline-box-item:first-child ::v-deep .el-timeline-item__node { .el-timeline > .timeline-box-item:first-child ::v-deep .el-timeline-item__node {
......
...@@ -380,6 +380,6 @@ export default { ...@@ -380,6 +380,6 @@ export default {
font-size: 12px; font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
color: var(--font-black); color: var(--font-black);
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
// color: #333333; // color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
padding: 5px 20px; padding: 5px 20px;
margin-top: 10px; margin-top: 10px;
font-size: 12px; font-size: 12px;
color: #999999; color: var(--font-black-6);
.title { .title {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 14px; font-size: 14px;
......
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
...@@ -97,6 +97,6 @@ export default { ...@@ -97,6 +97,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: var(--font-black);
} }
.content { .content {
...@@ -148,6 +148,6 @@ export default { ...@@ -148,6 +148,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
::v-deep .image-uploader { ::v-deep .image-uploader {
.uploader-icon { .uploader-icon {
......
...@@ -410,7 +410,7 @@ export default { ...@@ -410,7 +410,7 @@ export default {
background-color: white; background-color: white;
padding: 0 10px; padding: 0 10px;
font-weight: bold; font-weight: bold;
color: #666666; color: var(--font-black-4);
.example-text { .example-text {
font-size: 12px; font-size: 12px;
......
...@@ -488,7 +488,7 @@ export default { ...@@ -488,7 +488,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.total-item { .total-item {
...@@ -515,7 +515,7 @@ export default { ...@@ -515,7 +515,7 @@ export default {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #333333; color: var(--font-black);
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </style>
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.total-item { .total-item {
......
...@@ -462,7 +462,7 @@ export default { ...@@ -462,7 +462,7 @@ export default {
.sub-des { .sub-des {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
::v-deep .image-uploader { ::v-deep .image-uploader {
.uploader-icon { .uploader-icon {
......
...@@ -1498,7 +1498,7 @@ export default { ...@@ -1498,7 +1498,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.add-continue { .add-continue {
...@@ -1537,7 +1537,7 @@ export default { ...@@ -1537,7 +1537,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
......
...@@ -1043,7 +1043,7 @@ export default { ...@@ -1043,7 +1043,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.add-continue { .add-continue {
...@@ -1081,7 +1081,7 @@ export default { ...@@ -1081,7 +1081,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
......
...@@ -431,7 +431,7 @@ export default { ...@@ -431,7 +431,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,7 @@ export default {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #333333; color: var(--font-black);
} }
.right-title-edit { .right-title-edit {
font-size: 12px; font-size: 12px;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div> <div>
<el-form label-width="120px" label-position="right" ref="form" :rules="rule" :model="form"> <el-form label-width="120px" label-position="right" ref="form" :rules="rule" :model="form">
<div class="g-card"> <div class="g-card">
<div class="card-title" style="display: inline-block;">基础信息</div> <div class="card-title" style="display: inline-block">基础信息</div>
<div style="float: right;" v-if="isDetail"> <div style="float: right" v-if="isDetail">
<el-button <el-button
type="primary" type="primary"
@click=" @click="
...@@ -11,11 +11,10 @@ ...@@ -11,11 +11,10 @@
path: 'add', path: 'add',
query: { query: {
id: $route.query.id, id: $route.query.id,
obj: encodeURIComponent(JSON.stringify(form)) obj: encodeURIComponent(JSON.stringify(form)),
} },
}) })
" ">
>
编辑 编辑
</el-button> </el-button>
</div> </div>
...@@ -24,10 +23,9 @@ ...@@ -24,10 +23,9 @@
:disabled="isDetail" :disabled="isDetail"
v-model="form.storeName" v-model="form.storeName"
placeholder="请输入门店名称" placeholder="请输入门店名称"
style="width: 400px;" style="width: 400px"
show-word-limit show-word-limit
maxlength="30" maxlength="30" />
/>
</el-form-item> </el-form-item>
<el-form-item label="所属地区" prop="area"> <el-form-item label="所属地区" prop="area">
<el-cascader <el-cascader
...@@ -36,8 +34,7 @@ ...@@ -36,8 +34,7 @@
:props="props" :props="props"
:options="cityTree" :options="cityTree"
ref="tree" ref="tree"
@change="handleTree" @change="handleTree"></el-cascader>
></el-cascader>
</el-form-item> </el-form-item>
<baidu-map @update="handleChange" @point="getPoint" :isDetail="isDetail" :initData="form"></baidu-map> <baidu-map @update="handleChange" @point="getPoint" :isDetail="isDetail" :initData="form"></baidu-map>
</div> </div>
...@@ -50,10 +47,10 @@ ...@@ -50,10 +47,10 @@
<el-button v-if="!isDetail" icon="el-icon-plus" type="primary" plain @click="dialogVisibleQr = true"> <el-button v-if="!isDetail" icon="el-icon-plus" type="primary" plain @click="dialogVisibleQr = true">
{{ form.shopGuideUrl ? '编辑' : '选择' }}员工活码 {{ form.shopGuideUrl ? '编辑' : '选择' }}员工活码
</el-button> </el-button>
<div style="margin-top: 10px;" v-if="form.shopGuideUrl"> <div style="margin-top: 10px" v-if="form.shopGuideUrl">
<ul class="el-upload-list el-upload-list--picture-card"> <ul class="el-upload-list el-upload-list--picture-card">
<li class="el-upload-list__item is-success"> <li class="el-upload-list__item is-success">
<img style="width: 100%; height: 100%;" :src="form.shopGuideUrl" /> <img style="width: 100%; height: 100%" :src="form.shopGuideUrl" />
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<span class="el-upload-list__item-delete"> <span class="el-upload-list__item-delete">
<el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete> <el-icon-delete class="el-icon-delete" @click="handleRemove"></el-icon-delete>
...@@ -66,7 +63,7 @@ ...@@ -66,7 +63,7 @@
<el-form-item label="门店群活码"> <el-form-item label="门店群活码">
<div v-if="form.groupCodeUrl"> <div v-if="form.groupCodeUrl">
<div>{{ form.groupCodeName }}</div> <div>{{ form.groupCodeName }}</div>
<img style="height: 80px; width: 80px; margin-top: 5px;" :src="form.groupCodeUrl" /> <img style="height: 80px; width: 80px; margin-top: 5px" :src="form.groupCodeUrl" />
</div> </div>
<el-button <el-button
...@@ -74,8 +71,7 @@ ...@@ -74,8 +71,7 @@
icon="el-icon-plus" icon="el-icon-plus"
type="primary" type="primary"
plain plain
@click="dialogVisibleSelectQrCode = true" @click="dialogVisibleSelectQrCode = true">
>
{{ form.groupCodeUrl ? '编辑' : '选择' }}群活码 {{ form.groupCodeUrl ? '编辑' : '选择' }}群活码
</el-button> </el-button>
</el-form-item> </el-form-item>
...@@ -87,8 +83,7 @@ ...@@ -87,8 +83,7 @@
active-text="启用" active-text="启用"
inactive-text="停用" inactive-text="停用"
:active-value="0" :active-value="0"
:inactive-value="1" :inactive-value="1"></el-switch>
></el-switch>
</template> </template>
<template v-else> <template v-else>
<el-switch <el-switch
...@@ -97,8 +92,7 @@ ...@@ -97,8 +92,7 @@
active-text="启用" active-text="启用"
inactive-text="停用" inactive-text="停用"
:active-value="0" :active-value="0"
:inactive-value="1" :inactive-value="1"></el-switch>
></el-switch>
</template> </template>
</el-form-item> </el-form-item>
</div> </div>
...@@ -118,218 +112,217 @@ ...@@ -118,218 +112,217 @@
<SelectQrCode <SelectQrCode
v-model:visible="dialogVisibleSelectQrCode" v-model:visible="dialogVisibleSelectQrCode"
@success="selectedQrCode" @success="selectedQrCode"
:selected="selectedCodeList" :selected="selectedCodeList"></SelectQrCode>
></SelectQrCode>
<SelectStaffQrCode v-model:visible="dialogVisibleQr" @success="selectedQr"></SelectStaffQrCode> <SelectStaffQrCode v-model:visible="dialogVisibleQr" @success="selectedQr"></SelectStaffQrCode>
</div> </div>
</template> </template>
<script> <script>
import BaiduMap from '@/components/common/BaiduMap' import BaiduMap from '@/components/common/BaiduMap'
import SelectQrCode from '@/components/SelectQrCode' import SelectQrCode from '@/components/SelectQrCode'
import SelectUser from '@/components/SelectUser' import SelectUser from '@/components/SelectUser'
import SelectStaffQrCode from '@/components/SelectStaffQrCode' import SelectStaffQrCode from '@/components/SelectStaffQrCode'
import { getProCityList } from '@/api/common' import { getProCityList } from '@/api/common'
import { addOrUpdateStore, storeDetail } from '@/api/drainageCode/store' import { addOrUpdateStore, storeDetail } from '@/api/drainageCode/store'
export default { export default {
name: 'store-add', name: 'store-add',
data() { data() {
return { return {
areaArray: [], areaArray: [],
current: { current: {
province: '', province: '',
city: '', city: '',
area: '' area: '',
}, },
form: { form: {
storeState: 1, storeState: 1,
storeName: '', storeName: '',
area: '', area: '',
provinceId: '', provinceId: '',
cityId: '', cityId: '',
areaId: '', areaId: '',
longitude: '', longitude: '',
latitude: '', latitude: '',
shopGuideId: '', shopGuideId: '',
shopGuideName: '', shopGuideName: '',
address: '', address: '',
groupCodeUrl: '', groupCodeUrl: '',
groupCodeName: '', groupCodeName: '',
groupCodeId: '', groupCodeId: '',
shopGuideUrl: '' shopGuideUrl: '',
}, },
selectedUserList: [], selectedUserList: [],
dialogVisibleSelectUser: false, dialogVisibleSelectUser: false,
dialogVisibleSelectQrCode: false, dialogVisibleSelectQrCode: false,
selectedCodeList: [], selectedCodeList: [],
submitLoading: false, submitLoading: false,
cityTree: [], cityTree: [],
props: { props: {
label: 'name', label: 'name',
value: 'name' value: 'name',
}, },
rule: { rule: {
storeName: [{ required: true, message: '请输入门店名称', trigger: 'blur' }], storeName: [{ required: true, message: '请输入门店名称', trigger: 'blur' }],
area: [{ required: true, message: '请选择所属地区', trigger: 'blur' }], area: [{ required: true, message: '请选择所属地区', trigger: 'blur' }],
address: [{ required: true, message: '请选择详细地址', trigger: 'blur' }] address: [{ required: true, message: '请选择详细地址', trigger: 'blur' }],
}, },
dialogVisibleQr: false dialogVisibleQr: false,
}
},
props: {
isDetail: {
type: Boolean,
default: false,
},
},
components: {
BaiduMap,
SelectQrCode,
SelectUser,
SelectStaffQrCode,
},
methods: {
handleRemove() {
this.form.shopGuideUrl = ''
this.form.shopGuideId = ''
this.form.shopGuideName = ''
},
selectedQr(data) {
let arr = []
if (data.qrUserInfos.length) {
data.qrUserInfos.forEach((dd) => {
arr = [...arr, ...dd.weQrUserList]
})
} }
let ids = []
let names = []
arr.forEach((dd) => {
ids.push(dd.userId)
names.push(dd.userName)
})
this.form.shopGuideId = ids.join(',')
this.form.shopGuideName = names.join(',')
this.form.shopGuideUrl = data.qrCode
this.dialogVisibleQr = false
},
getPoint(addrPoint) {
this.form.longitude = addrPoint.lng.toString()
this.form.latitude = addrPoint.lat.toString()
}, },
props: { handleChange(data) {
isDetail: { if (data.address) {
type: Boolean, this.form.address = data.address
default: false this.form.area = data.province + data.city + data.area
if (data.province) {
this.areaArray = [data.province, data.city, data.area]
}
this.form.longitude = data.addrPoint.lng.toString()
this.form.latitude = data.addrPoint.lat.toString()
} }
}, },
components: { handleTree(data) {
BaiduMap, this.form.area = this.areaArray.join('')
SelectQrCode, this.form.address = ''
SelectUser, this.form.longitude = ''
SelectStaffQrCode this.form.latitude = ''
}, },
methods: { selectedUser(data) {
handleRemove() { this.selectedUserList = data
this.form.shopGuideUrl = '' let ids = []
this.form.shopGuideId = '' let names = []
this.form.shopGuideName = '' data.forEach((dd) => {
}, ids.push(dd.userId)
selectedQr(data) { names.push(dd.name)
let arr = [] })
if (data.qrUserInfos.length) { this.form.shopGuideId = ids.join(',')
data.qrUserInfos.forEach((dd) => { this.form.shopGuideName = names.join(',')
arr = [...arr, ...dd.weQrUserList] },
onSelectUser() {
// this.dialogVisibleSelectUser = true
this.dialogVisibleQr = true
},
selectedQrCode(data) {
if (data) {
this.selectedCodeList[0] = data
this.form.groupCodeUrl = data.codeUrl
this.form.groupCodeName = data.activityName
this.form.groupCodeId = data.id
}
},
submitFn() {
this.$refs['form'].validate((valitate) => {
if (valitate) {
this.submitLoading = true
addOrUpdateStore(this.form).then((res) => {
if (res.code === 200) {
this.msgSuccess('操作成功')
this.$router.back()
this.submitLoading = false
} else {
this.submitLoading = false
this.msgInfo(res.msg)
}
}) })
} }
let ids = [] })
let names = [] },
arr.forEach((dd) => { cancelFn() {
ids.push(dd.userId) this.$confirm(`是否确认取消${this.$route.query.id ? '编辑' : '新建'}?取消后不可恢复,请谨慎操作。`, '提示', {
names.push(dd.userName) confirmButtonText: '确认',
}) cancelButtonText: '取消',
this.form.shopGuideId = ids.join(',') type: 'warning',
this.form.shopGuideName = names.join(',') })
.then(() => {
this.form.shopGuideUrl = data.qrCode this.$router.back()
this.dialogVisibleQr = false
},
getPoint(addrPoint) {
this.form.longitude = addrPoint.lng.toString()
this.form.latitude = addrPoint.lat.toString()
},
handleChange(data) {
if (data.address) {
this.form.address = data.address
this.form.area = data.province + data.city + data.area
if (data.province) {
this.areaArray = [data.province, data.city, data.area]
}
this.form.longitude = data.addrPoint.lng.toString()
this.form.latitude = data.addrPoint.lat.toString()
}
},
handleTree(data) {
this.form.area = this.areaArray.join('')
this.form.address = ''
this.form.longitude = ''
this.form.latitude = ''
},
selectedUser(data) {
this.selectedUserList = data
let ids = []
let names = []
data.forEach((dd) => {
ids.push(dd.userId)
names.push(dd.name)
})
this.form.shopGuideId = ids.join(',')
this.form.shopGuideName = names.join(',')
},
onSelectUser() {
// this.dialogVisibleSelectUser = true
this.dialogVisibleQr = true
},
selectedQrCode(data) {
if (data) {
this.selectedCodeList[0] = data
this.form.groupCodeUrl = data.codeUrl
this.form.groupCodeName = data.activityName
this.form.groupCodeId = data.id
}
},
submitFn() {
this.$refs['form'].validate((valitate) => {
if (valitate) {
this.submitLoading = true
addOrUpdateStore(this.form).then((res) => {
if (res.code === 200) {
this.msgSuccess('操作成功')
this.$router.back()
this.submitLoading = false
} else {
this.submitLoading = false
this.msgInfo(res.msg)
}
})
}
}) })
}, .catch(function () {})
cancelFn() { },
this.$confirm(`是否确认取消${this.$route.query.id ? '编辑' : '新建'}?取消后不可恢复,请谨慎操作。`, '提示', { setDetail() {
confirmButtonText: '确认', if (this.form.groupCodeId) {
cancelButtonText: '取消', this.selectedCodeList[0] = { id: this.form.groupCodeId }
type: 'warning' }
if (this.form.area) {
let reg = /.+?(省|市|自治区|自治州|县|区|旗)/g
let arr = this.form.area.match(reg)
this.areaArray = arr
}
if (this.form.shopGuideId) {
this.selectedUserList = []
let idList = this.form.shopGuideId.split(',')
let nameList = this.form.shopGuideName.split(',')
let arr = []
idList.forEach((dd, index) => {
arr.push({ name: nameList[index], userId: dd })
}) })
.then(() => { this.selectedUserList = [...arr]
this.$router.back() // this.$forceUpdate()
})
.catch(function () {})
},
setDetail() {
if (this.form.groupCodeId) {
this.selectedCodeList[0] = { id: this.form.groupCodeId }
}
if (this.form.area) {
let reg = /.+?(省|市|自治区|自治州|县|区|旗)/g
let arr = this.form.area.match(reg)
this.areaArray = arr
}
if (this.form.shopGuideId) {
this.selectedUserList = []
let idList = this.form.shopGuideId.split(',')
let nameList = this.form.shopGuideName.split(',')
let arr = []
idList.forEach((dd, index) => {
arr.push({ name: nameList[index], userId: dd })
})
this.selectedUserList = [...arr]
// this.$forceUpdate()
}
} }
}, },
created() { },
getProCityList({ isExtName: true }).then((res) => { created() {
getProCityList({ isExtName: true }).then((res) => {
if (res.code === 200) {
this.cityTree = res.data
}
})
if (this.$route.query.id) {
storeDetail(this.$route.query.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.cityTree = res.data this.form = res.data
this.setDetail()
} }
}) })
if (this.$route.query.id) {
storeDetail(this.$route.query.id).then((res) => {
if (res.code === 200) {
this.form = res.data
this.setDetail()
}
})
}
} }
} },
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-title { .card-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #333333; color: var(--font-black);
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </style>
...@@ -385,6 +385,6 @@ export default { ...@@ -385,6 +385,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -181,6 +181,6 @@ export default { ...@@ -181,6 +181,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
</style> </style>
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #333333; color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #333333; color: var(--font-black);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -646,7 +646,7 @@ export default { ...@@ -646,7 +646,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
......
...@@ -451,7 +451,7 @@ export default { ...@@ -451,7 +451,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: var(--font-black-4);
display: flex; display: flex;
} }
......
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
font-size: 12px; font-size: 12px;
font-family: 'PingFang SC-中等', 'PingFang SC'; font-family: 'PingFang SC-中等', 'PingFang SC';
font-weight: normal; font-weight: normal;
color: #666666; color: var(--font-black-4);
line-height: 17px; line-height: 17px;
} }
.nomal { .nomal {
...@@ -178,11 +178,11 @@ export default { ...@@ -178,11 +178,11 @@ export default {
line-height: 17px; line-height: 17px;
} }
span:nth-child(1) { span:nth-child(1) {
color: #666666; color: var(--font-black-4);
margin-bottom: 9px; margin-bottom: 9px;
} }
span:nth-child(2) { span:nth-child(2) {
color: #999999; color: var(--font-black-6);
} }
} }
} }
......
<script> <script>
import { getList, getAnalysis, remove } from '@/api/intelligentShortLink' import { getList, getAnalysis, remove } from '@/api/intelligentShortLink'
import * as api from '@/api/enterpriseId' import * as api from '@/api/enterpriseId'
import { touchTypeDict } from './components/mixin' import { touchTypeDict } from './components/mixin'
export default { export default {
name: '', name: '',
components: {}, components: {},
data() { data() {
return { return {
loading: false, loading: false,
cardData: [], cardData: [],
total: 0, total: 0,
query: { query: {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1,
}, },
touchTypeDict, touchTypeDict,
// dictStatus: Object.freeze({ // dictStatus: Object.freeze({
// 1: '启用', // 1: '启用',
// 2: '关闭', // 2: '关闭',
// }), // }),
list: [], list: [],
ids: [], ids: [],
needMoreInfo: false, needMoreInfo: false,
dialogVisible: false dialogVisible: false,
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
created() { created() {
this.setState() this.setState()
this.getList() this.getList()
this.getAnalysis() this.getAnalysis()
this.$store.setBusininessDesc(` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `) this.$store.setBusininessDesc(` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `)
},
mounted() {
this.clipboard = new this.ClipboardJS('.copy-btn')
},
unmounted() {
this.clipboard.destroy()
},
methods: {
cancelFn() {
this.needMoreInfo = false
this.dialogVisible = false
this.goRoute()
}, },
mounted() { gotoSetting() {
this.clipboard = new this.ClipboardJS('.copy-btn') this.$router.push({
path: '/enterpriseManage/enterpriseWechat',
})
}, },
unmounted() { setState() {
this.clipboard.destroy() api.getDetail().then((res) => {
if (!res.data.wxAppletOriginalId || !res.data.miniAppId || !res.data.miniSecret) {
this.needMoreInfo = true
}
})
}, },
methods: { getAnalysis() {
cancelFn() { this.loading = true
this.needMoreInfo = false getAnalysis()
this.dialogVisible = false .then(({ data }) => {
this.goRoute() this.cardData = [
}, {
gotoSetting() { title: '访问总数(pv)',
this.$router.push({ tips: '短链页面访问的总次数',
path: '/enterpriseManage/enterpriseWechat' value: data.pvTotalCount,
},
{
title: '访问总人数(uv)',
tips: '短链页面访问的独立IP数',
value: data.uvTotalCount,
},
{
title: '小程序打开数',
tips: '小程序成功打开的总次数',
value: data.openTotalCount,
},
{
title: '今日访问总数(pv)',
tips: '今日短链页面访问的总次数',
value: data.pvTodayCount,
title1: '较昨日',
value1: data.pvDiff,
},
{
title: '今日访问总人数(uv)',
tips: '今日短链页面访问的独立IP数',
value: data.uvTodayCount,
title1: '较昨日',
value1: data.uvDiff,
},
{
title: '今日小程序打开数',
tips: '今日小程序成功打开的总次数',
value: data.openTodayCount,
title1: '较昨日',
value1: data.openDiff,
},
]
}) })
}, .catch((e) => {
setState() { console.log(e)
api.getDetail().then((res) => {
if (!res.data.wxAppletOriginalId || !res.data.miniAppId || !res.data.miniSecret) {
this.needMoreInfo = true
}
}) })
}, .finally(() => {
getAnalysis() { this.loading = false
this.loading = true
getAnalysis()
.then(({ data }) => {
this.cardData = [
{
title: '访问总数(pv)',
tips: '短链页面访问的总次数',
value: data.pvTotalCount
},
{
title: '访问总人数(uv)',
tips: '短链页面访问的独立IP数',
value: data.uvTotalCount
},
{
title: '小程序打开数',
tips: '小程序成功打开的总次数',
value: data.openTotalCount
},
{
title: '今日访问总数(pv)',
tips: '今日短链页面访问的总次数',
value: data.pvTodayCount,
title1: '较昨日',
value1: data.pvDiff
},
{
title: '今日访问总人数(uv)',
tips: '今日短链页面访问的独立IP数',
value: data.uvTodayCount,
title1: '较昨日',
value1: data.uvDiff
},
{
title: '今日小程序打开数',
tips: '今日小程序成功打开的总次数',
value: data.openTodayCount,
title1: '较昨日',
value1: data.openDiff
}
]
})
.catch((e) => {
console.log(e)
})
.finally(() => {
this.loading = false
})
},
getList(page) {
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows
this.total = +total
})
.catch(() => {})
.finally(() => {
this.loading = false
})
},
resetForm() {
this.$refs['queryForm'].resetFields()
this.getList(1)
},
goRoute(row = {}, detail) {
if (this.needMoreInfo) {
this.dialogVisible = true
return
}
let { id } = row
this.$router.push({
path: './' + (detail || 'addEdit'),
query: { id }
}) })
}, },
remove(id) { getList(page) {
const ids = id || this.ids + '' page && (this.query.pageNum = page)
this.$confirm('是否确认删除吗?', '警告', { this.loading = true
confirmButtonText: '确定', getList(this.query)
cancelButtonText: '取消', .then(({ rows, total }) => {
type: 'warning' this.list = rows
this.total = +total
}) })
.then(function () { .catch(() => {})
return remove(ids) .finally(() => {
}) this.loading = false
.then(() => { })
this.getList() },
this.msgSuccess('删除成功') resetForm() {
}) this.$refs['queryForm'].resetFields()
this.getList(1)
},
goRoute(row = {}, detail) {
if (this.needMoreInfo) {
this.dialogVisible = true
return
} }
} let { id } = row
} this.$router.push({
path: './' + (detail || 'addEdit'),
query: { id },
})
},
remove(id) {
const ids = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(function () {
return remove(ids)
})
.then(() => {
this.getList()
this.msgSuccess('删除成功')
})
},
},
}
</script> </script>
<template> <template>
...@@ -169,8 +169,7 @@ ...@@ -169,8 +169,7 @@
v-for="(item, index) in touchTypeDict" v-for="(item, index) in touchTypeDict"
:key="index" :key="index"
:label="item.allName" :label="item.allName"
:value="+index" :value="+index"></el-option>
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="" prop="status"> <!-- <el-form-item label="" prop="status">
...@@ -202,8 +201,7 @@ ...@@ -202,8 +201,7 @@
<el-icon-copy-document <el-icon-copy-document
class="el-icon-copy-document copy-btn cp ml20" class="el-icon-copy-document copy-btn cp ml20"
title="复制" title="复制"
:data-clipboard-text="row.shortLink" :data-clipboard-text="row.shortLink"></el-icon-copy-document>
></el-icon-copy-document>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="状态" align="center" prop="status"> <!-- <el-table-column label="状态" align="center" prop="status">
...@@ -221,14 +219,13 @@ ...@@ -221,14 +219,13 @@
<pagination :total="total" v-model:page="query.pageNum" v-model:limit="query.pageSize" @pagination="getList()" /> <pagination :total="total" v-model:page="query.pageNum" v-model:limit="query.pageSize" @pagination="getList()" />
<template v-if="!list.length"> <template v-if="!list.length">
<div class="tips"> <div class="tips">
智能短链需要先配置短链小程序,否则无法正常使用,<a class="link" @click="gotoSetting">去配置</a> 智能短链需要先配置短链小程序,否则无法正常使用,
<a class="link" @click="gotoSetting">去配置</a>
</div> </div>
</template> </template>
</div> </div>
<el-dialog title="提示" :close-on-click-modal="false" :show-close="false" v-model="dialogVisible" width="auto"> <el-dialog title="提示" :close-on-click-modal="false" :show-close="false" v-model="dialogVisible" width="auto">
<div style="text-align: center;"> <div style="text-align: center">智能短链需要先配置短链小程序,否则无法正常使用。</div>
智能短链需要先配置短链小程序,否则无法正常使用。
</div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="cancelFn">继续新建</el-button> <el-button @click="cancelFn">继续新建</el-button>
...@@ -240,18 +237,18 @@ ...@@ -240,18 +237,18 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.tips { .tips {
margin-top: 30px; margin-top: 30px;
text-align: center; text-align: center;
color: #999999; color: var(--font-black-6);
} }
.link { .link {
color: var(--color);
border-bottom: 1px solid var(--color);
}
.el-icon-copy-document {
&:hover {
color: var(--color); color: var(--color);
border-bottom: 1px solid var(--color);
}
.el-icon-copy-document {
&:hover {
color: var(--color);
}
} }
}
</style> </style>
...@@ -342,19 +342,19 @@ export default { ...@@ -342,19 +342,19 @@ export default {
font-size: 16px; font-size: 16px;
} }
.desc { .desc {
color: #888; color: var(--font-black-6);
word-break: break-all; word-break: break-all;
margin: 5px 0; margin: 5px 0;
} }
.list-label { .list-label {
color: #888; color: var(--font-black-6);
width: 90px; width: 90px;
} }
} }
} }
.dialog-tip { .dialog-tip {
color: #888; color: var(--font-black-6);
font-size: 12px; font-size: 12px;
} }
// .avatar-wrap { // .avatar-wrap {
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
} }
.dialog-tip { .dialog-tip {
color: #888; color: var(--font-black-6);
font-size: 12px; font-size: 12px;
} }
</style> </style>
...@@ -993,6 +993,6 @@ export default { ...@@ -993,6 +993,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -366,7 +366,7 @@ export default { ...@@ -366,7 +366,7 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
.red-packet-message { .red-packet-message {
display: inline-block; display: inline-block;
......
...@@ -290,6 +290,6 @@ export default { ...@@ -290,6 +290,6 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
...@@ -322,6 +322,6 @@ export default { ...@@ -322,6 +322,6 @@ export default {
font-size: 12px; font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #999999; color: var(--font-black-6);
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!