Commit b786080d by xinla

新客拉群等升级优化

1 parent 54ec7e9b
......@@ -4,7 +4,7 @@
ref="pagination"
v-if="['false', 'undefined'].includes($attrs['hide-on-single-page'] + '') || $attrs.total > limit">
<el-pagination
v-bind="$attrs"
v-bind="Object.assign({}, this.$attrs, { style: undefined, class: undefined })"
:background="background"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
......
......@@ -165,6 +165,7 @@ export default {
<slot :data="data"></slot>
<pagination
style="margin-bottom: -20px"
:total="total"
v-model:page="query.pageNum"
v-model:limit="query.pageSize"
......
......@@ -37,10 +37,11 @@
// }
.el-button:not(.el-button--small, .el-button--large) {
padding: 9px 19px;
}
.el-button:not(.is-text) {
font-size: 13px;
}
.el-button.is-circle {
padding: 9px;
}
.el-button:not(.is-text, .is-circle, .is-round) {
border-radius: var(--border-radius-small);
}
......@@ -49,7 +50,7 @@
padding-left: 0;
padding-right: 0;
height: auto;
font-size: 12px;
font-size: 13px;
background-clip: content-box;
outline: 0 !important;
}
......@@ -348,6 +349,7 @@
// 表单禁用详情数据展示
.form-detail {
.el-input.is-disabled .el-input__inner,
.el-input.is-disabled .el-input__wrapper,
.el-textarea.is-disabled .el-textarea__inner {
background-color: transparent;
// border-color: transparent;
......
......@@ -139,19 +139,22 @@ export default {
<template>
<div v-loading="loading">
<div class="flex">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="fxauto g-margin-r">
<el-form
:model="form"
ref="form"
:rules="rules"
label-width="100px"
scroll-to-error
class="fxauto g-margin-r"
:class="isDetail && 'form-detail'"
:disabled="isDetail">
<div class="g-card">
<div class="g-card-title fxbw">
基础信息
<el-button
v-if="isDetail"
type="primary"
@click="
$router.push({
path: './aev',
query: { id: $route.query.id },
})
">
@click="$router.push({ path: './aev', query: { id: $route.query.id } })">
编辑
</el-button>
</div>
......@@ -235,15 +238,24 @@ export default {
</div>
</el-form>
<div>
<div class="g-card" v-if="isDetail"></div>
<div class="g-card" v-if="isDetail">
<div class="g-card-title">活码</div>
<div class="ac">
<el-image class="" :src="form.groupCodeUrl" fit="contain" style="width: 120px"></el-image>
<div class="mt10">
<el-button text @click="downloadBlob(form.groupCodeUrl, '新客拉群活码.png', 'image')">下载活码</el-button>
<el-button class="copy" text @click="$copyText(form.groupCodeUrl)">复制链接</el-button>
</div>
</div>
</div>
<div class="preview-wrap g-card">
<!-- 预览 -->
<div class="g-card-title">预览</div>
<PhoneDialog :message="form.welcomeMsg || '请输入加群引导语'" isOther>
<div style="line-height: 1.5">
<div class="msg-title">{{ form.linkTitle }}</div>
<div class="msg-content">
<div class="msg-desc">{{ form.linkDesc }}</div>
<el-image class="phone-dialog-image fxnone" :src="form.linkCoverUrl" fit="contain"></el-image>
<el-image class="fxnone" :src="form.linkCoverUrl" fit="contain"></el-image>
</div>
</div>
</PhoneDialog>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!