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