mirror of
https://gitee.com/ShopeX/ECShopX_admin-frontend
synced 2026-08-05 04:25:50 +08:00
style(scope): code formated
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## 最近一次变更(2026-04-23)
|
||||
## 最近一次变更(2026-04-27)
|
||||
|
||||
**一句话概括**: fix: 软文商品卡片 goodsCard 落库解析、样式转换与预览保存一致
|
||||
**一句话概括**: fix: 跑马灯默认文案改为 i18n 翻译值
|
||||
|
||||
**要点**: `findWidgetForPersistedName` 统一按 `config.name` 找挂件;`goodsCard` 组件名与 transform 对齐;内层样式走 `getInnerStyle`;去掉「组件间距」开关与标题区 UI。
|
||||
**要点**: `wgt_marquees` 的 `dataText` 默认值由 key 字符串改为 `i18n.t('8fc92d38.cbc608')`,新建/初始化挂件时可直接显示多语言文案。
|
||||
|
||||
详见: `.cursor/commit-summary/2026-04-23-goodsCard-decorate.md`
|
||||
详见: `.cursor/commit-summary/2026-04-27-marquees-default-i18n.md`
|
||||
|
||||
@@ -142,7 +142,9 @@ export default {
|
||||
if (w) return w
|
||||
if (String(this.scene) === '1005' && key === 'goods') {
|
||||
return (
|
||||
this.widgets.find((item) => String(item.config?.name || '').toLowerCase() === 'goodscard') ||
|
||||
this.widgets.find(
|
||||
(item) => String(item.config?.name || '').toLowerCase() === 'goodscard'
|
||||
) ||
|
||||
this.widgets.find((item) => (item.name || '').toLowerCase() === 'goods') ||
|
||||
null
|
||||
)
|
||||
|
||||
@@ -78,7 +78,10 @@ export default {
|
||||
return {
|
||||
list: [
|
||||
{ id: 'customerService', title: this.$t('cc5110aa.107a88') },
|
||||
{ id: 'guide_service', title: this.$t('cc5110aa.6f33a3') }
|
||||
{ id: 'guide_service', title: this.$t('cc5110aa.6f33a3') },
|
||||
{ id: 'officialProfile', title: this.$t('cc5110aa.a90321') },
|
||||
{ id: 'officialChat', title: this.$t('cc5110aa.b70432') },
|
||||
{ id: 'official', title: this.$t('cc5110aa.c40543') }
|
||||
],
|
||||
multiple: this.value?.multiple ?? true
|
||||
}
|
||||
|
||||
@@ -104,7 +104,9 @@ export default {
|
||||
{ id: 'homeSearch', title: this.$t('223cc8af.e5f71f') },
|
||||
{ id: 'settings', title: this.$t('223cc8af.e366cc') },
|
||||
{ id: 'kujiale', title: this.$t('223cc8af.f2d3e5') },
|
||||
{ id: 'nearby_store', title: this.$t('223cc8af.3b02dd') }
|
||||
{ id: 'nearby_store', title: this.$t('223cc8af.3b02dd') },
|
||||
{ id: 'nearby_store', title: this.$t('223cc8af.3b02dd') },
|
||||
{ id: 'itemList', title: '商品列表' }
|
||||
],
|
||||
multiple: this.value?.multiple ?? true
|
||||
}
|
||||
|
||||
@@ -22583,6 +22583,13 @@
|
||||
"cc5110aa.5466f6": "اختر خدمة العملاء",
|
||||
"cc5110aa.107a88": "خدمة عملاء البرنامج المصغر",
|
||||
"cc5110aa.6f33a3": "خدمة دليل التسوق عبر WeCom للمؤسسات",
|
||||
"cc5110aa.a90321": "الصفحة الرئيسية للحساب الرسمي",
|
||||
"cc5110aa.b70432": "محادثة الحساب الرسمي",
|
||||
"cc5110aa.c40543": "مقال الحساب الرسمي",
|
||||
"cc5110aa.d10654": "معرّف الحساب الرسمي الخام",
|
||||
"cc5110aa.e20765": "أدخل المعرّف الخام (مثل gh_xxx)",
|
||||
"cc5110aa.f30876": "رابط مقال الحساب الرسمي",
|
||||
"cc5110aa.g40987": "أدخل رابط المقال (HTTPS)",
|
||||
"6478e260.2419d0": "فئة المتجر",
|
||||
"6478e260.84b1aa": "معلومات المتاجر القريبة",
|
||||
"027707af.2419d0": "فئة المتجر",
|
||||
|
||||
@@ -22584,6 +22584,13 @@
|
||||
"cc5110aa.5466f6": "Select Customer Service",
|
||||
"cc5110aa.107a88": "Mini-program customer service",
|
||||
"cc5110aa.6f33a3": "Enterprise WeCom Guide Service",
|
||||
"cc5110aa.a90321": "Official account profile",
|
||||
"cc5110aa.b70432": "Official account chat",
|
||||
"cc5110aa.c40543": "Official account article",
|
||||
"cc5110aa.d10654": "Raw official account ID",
|
||||
"cc5110aa.e20765": "Enter raw ID (e.g. gh_xxx)",
|
||||
"cc5110aa.f30876": "Official account article link",
|
||||
"cc5110aa.g40987": "Enter article link (HTTPS)",
|
||||
"6478e260.2419d0": "Store Category",
|
||||
"6478e260.84b1aa": "Nearby Store Information",
|
||||
"027707af.2419d0": "Store category",
|
||||
|
||||
@@ -22696,6 +22696,13 @@
|
||||
"cc5110aa.5466f6": "选择客服",
|
||||
"cc5110aa.107a88": "小程序客服",
|
||||
"cc5110aa.6f33a3": "企微导购服务",
|
||||
"cc5110aa.a90321": "公众号主页",
|
||||
"cc5110aa.b70432": "公众号会话",
|
||||
"cc5110aa.c40543": "公众号文章",
|
||||
"cc5110aa.d10654": "原始公众号ID",
|
||||
"cc5110aa.e20765": "请输入公众号原始ID(如 gh_xxx)",
|
||||
"cc5110aa.f30876": "公众号文章链接",
|
||||
"cc5110aa.g40987": "请输入公众号文章链接(HTTPS)",
|
||||
"6478e260.2419d0": "门店分类",
|
||||
"6478e260.84b1aa": "附近门店信息",
|
||||
"027707af.2419d0": "门店分类",
|
||||
|
||||
@@ -77,11 +77,35 @@
|
||||
</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div v-if="localValue.linkType == 0" class="tracking-params-wrapper" @click="onPickerPath">
|
||||
<label class="tracking-params-label">{{ $t('4a0a5782.4f35e8') }}</label>
|
||||
<div class="btn-linkpath">{{ getLabelName() }}</div>
|
||||
</div>
|
||||
<div class="tracking-params-wrapper" v-else>
|
||||
<template v-if="localValue.linkType == 0">
|
||||
<div class="tracking-params-wrapper" @click="onPickerPath">
|
||||
<label class="tracking-params-label">{{ $t('4a0a5782.4f35e8') }}</label>
|
||||
<div class="btn-linkpath">{{ getLabelName() }}</div>
|
||||
</div>
|
||||
<div v-if="needsOfficialRawId" class="tracking-params-wrapper">
|
||||
<label class="tracking-params-label">{{ $t('cc5110aa.d10654') }}</label>
|
||||
<el-input
|
||||
v-model="localValue.officialAccountRawId"
|
||||
class="tracking-params-input"
|
||||
size="small"
|
||||
type="text"
|
||||
:placeholder="$t('cc5110aa.e20765')"
|
||||
@input="onOfficialRawIdInput"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="needsOfficialArticleLink" class="tracking-params-wrapper">
|
||||
<label class="tracking-params-label">{{ $t('cc5110aa.f30876') }}</label>
|
||||
<el-input
|
||||
v-model="localValue.officialArticleLink"
|
||||
class="tracking-params-input"
|
||||
size="small"
|
||||
type="text"
|
||||
:placeholder="$t('cc5110aa.g40987')"
|
||||
@input="onOfficialArticleLinkInput"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<div v-else class="tracking-params-wrapper">
|
||||
<label class="tracking-params-label">{{ $t('4a0a5782.4e99fd') }}</label>
|
||||
<el-input
|
||||
v-model="localValue.linkUrl"
|
||||
@@ -107,7 +131,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { cloneDeep } from 'lodash'
|
||||
import { LINK_PATH } from '@/consts'
|
||||
import { i18n } from '@/i18n'
|
||||
export default {
|
||||
@@ -131,10 +154,22 @@ export default {
|
||||
linkPage: '',
|
||||
id: '',
|
||||
title: '',
|
||||
trackingParams: ''
|
||||
trackingParams: '',
|
||||
officialAccountRawId: '',
|
||||
officialArticleLink: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
needsOfficialRawId() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && (id === 'officialProfile' || id === 'officialChat')
|
||||
},
|
||||
needsOfficialArticleLink() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && id === 'official'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
immediate: true,
|
||||
@@ -165,8 +200,36 @@ export default {
|
||||
? true
|
||||
: false // 为了兼容导购装修模板
|
||||
})
|
||||
this.$emit('input', res)
|
||||
this.$emit('change', res)
|
||||
const next = {
|
||||
...this.localValue,
|
||||
...res,
|
||||
linkType: this.localValue.linkType
|
||||
}
|
||||
const needRaw =
|
||||
res?.linkPage === 'customer_service' &&
|
||||
(res?.id === 'officialProfile' || res?.id === 'officialChat')
|
||||
const needArticle = res?.linkPage === 'customer_service' && res?.id === 'official'
|
||||
if (needRaw) {
|
||||
next.officialAccountRawId = this.localValue.officialAccountRawId || ''
|
||||
next.officialArticleLink = ''
|
||||
} else if (needArticle) {
|
||||
next.officialArticleLink = this.localValue.officialArticleLink || ''
|
||||
next.officialAccountRawId = ''
|
||||
} else {
|
||||
next.officialAccountRawId = ''
|
||||
next.officialArticleLink = ''
|
||||
}
|
||||
this.localValue = next
|
||||
this.$emit('input', next)
|
||||
this.$emit('change', next)
|
||||
},
|
||||
onOfficialRawIdInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onOfficialArticleLinkInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onChangeLinkType() {
|
||||
this.$emit('input', this.localValue)
|
||||
|
||||
@@ -365,7 +365,9 @@ export default {
|
||||
if (w) return w
|
||||
if (String(this.localScene) === '1005' && key === 'goods') {
|
||||
return (
|
||||
this.widgets.find((item) => String(item.config?.name || '').toLowerCase() === 'goodscard') ||
|
||||
this.widgets.find(
|
||||
(item) => String(item.config?.name || '').toLowerCase() === 'goodscard'
|
||||
) ||
|
||||
this.widgets.find((item) => (item.name || '').toLowerCase() === 'goods') ||
|
||||
null
|
||||
)
|
||||
|
||||
@@ -102,7 +102,8 @@ const SCENE_1008 = {
|
||||
WgtHotZone,
|
||||
WgtFilm,
|
||||
WgtMarquees,
|
||||
wgtOrderNavigation
|
||||
wgtOrderNavigation,
|
||||
WgtGoods
|
||||
}
|
||||
|
||||
// 分类页面(storeAlphabet 仅在此页可用;店铺挂件仅 BBC 展示)
|
||||
@@ -112,7 +113,8 @@ const SCENE_1007 = {
|
||||
WgtFilm,
|
||||
...(!VERSION_STANDARD() ? { WgtShop } : {}),
|
||||
WgtStoreAlphabet,
|
||||
WgtClassify
|
||||
WgtClassify,
|
||||
WgtGoods
|
||||
// WgtTask
|
||||
}
|
||||
|
||||
|
||||
@@ -153,9 +153,6 @@ const config = {
|
||||
component: function (h, { key }) {
|
||||
return <AttrFunctionArea v-model={this.value[key]} />
|
||||
},
|
||||
isShow: function () {
|
||||
return this.value.titleStyle != '0'
|
||||
},
|
||||
value: {
|
||||
type: 'hotzone',
|
||||
hotzone: { imgUrl: '', data: [] }
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
<div class="wgt-page" :style="headerStyle" @click="handleClickHeader">
|
||||
<div class="wgt-page-content" :style="contentStyle">
|
||||
<div
|
||||
v-if="value && value.titleStyle != '0'"
|
||||
v-if="value"
|
||||
class="header-container"
|
||||
:class="{ 'has-nearby': showFunctionArea && functionAreaType === 'nearby' }"
|
||||
:style="containerStyle"
|
||||
|
||||
@@ -40,9 +40,33 @@
|
||||
<el-radio :label="0">{{ i18n.t('098e5620.e3cf91') }}</el-radio>
|
||||
<el-radio v-if="isShowH5Link" :label="1">{{ i18n.t('098e5620.4e99fd') }}</el-radio>
|
||||
</el-radio-group>
|
||||
<div v-if="localValue.linkType == 0" class="btn-linkpath" @click="onPickerPath">
|
||||
{{ getLabelName() }}
|
||||
</div>
|
||||
<template v-if="localValue.linkType == 0">
|
||||
<div class="btn-linkpath" @click="onPickerPath">
|
||||
{{ getLabelName() }}
|
||||
</div>
|
||||
<div v-if="needsOfficialRawId" style="margin-top: 8px">
|
||||
<div style="font-size: 12px; color: #333; margin-bottom: 4px">
|
||||
{{ i18n.t('cc5110aa.d10654') }}
|
||||
</div>
|
||||
<el-input
|
||||
v-model="localValue.officialAccountRawId"
|
||||
size="small"
|
||||
:placeholder="i18n.t('cc5110aa.e20765')"
|
||||
@input="onOfficialRawIdInput"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="needsOfficialArticleLink" style="margin-top: 8px">
|
||||
<div style="font-size: 12px; color: #333; margin-bottom: 4px">
|
||||
{{ i18n.t('cc5110aa.f30876') }}
|
||||
</div>
|
||||
<el-input
|
||||
v-model="localValue.officialArticleLink"
|
||||
size="small"
|
||||
:placeholder="i18n.t('cc5110aa.g40987')"
|
||||
@input="onOfficialArticleLinkInput"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-else
|
||||
v-model="localValue.linkUrl"
|
||||
@@ -82,12 +106,22 @@ export default {
|
||||
linkUrl: '',
|
||||
linkPage: '',
|
||||
id: '',
|
||||
title: ''
|
||||
title: '',
|
||||
officialAccountRawId: '',
|
||||
officialArticleLink: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['lang'])
|
||||
...mapGetters(['lang']),
|
||||
needsOfficialRawId() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && (id === 'officialProfile' || id === 'officialChat')
|
||||
},
|
||||
needsOfficialArticleLink() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && id === 'official'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
@@ -132,9 +166,36 @@ export default {
|
||||
params.isShowPils = isShowPils
|
||||
}
|
||||
const res = await this.$picker.path(params)
|
||||
console.log('localValue---', res)
|
||||
this.$emit('input', res)
|
||||
this.$emit('change', res)
|
||||
const next = {
|
||||
...this.localValue,
|
||||
...res,
|
||||
linkType: this.localValue.linkType
|
||||
}
|
||||
const needRaw =
|
||||
res?.linkPage === 'customer_service' &&
|
||||
(res?.id === 'officialProfile' || res?.id === 'officialChat')
|
||||
const needArticle = res?.linkPage === 'customer_service' && res?.id === 'official'
|
||||
if (needRaw) {
|
||||
next.officialAccountRawId = this.localValue.officialAccountRawId || ''
|
||||
next.officialArticleLink = ''
|
||||
} else if (needArticle) {
|
||||
next.officialArticleLink = this.localValue.officialArticleLink || ''
|
||||
next.officialAccountRawId = ''
|
||||
} else {
|
||||
next.officialAccountRawId = ''
|
||||
next.officialArticleLink = ''
|
||||
}
|
||||
this.localValue = next
|
||||
this.$emit('input', next)
|
||||
this.$emit('change', next)
|
||||
},
|
||||
onOfficialRawIdInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onOfficialArticleLinkInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onChangeLinkType() {
|
||||
this.$emit('input', this.localValue)
|
||||
|
||||
@@ -180,6 +180,7 @@ export default {
|
||||
max-width: 77px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
|
||||
.goods-img-wrapper {
|
||||
width: 100%;
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
const effectiveDataCount = this.value?.dataCount ?? this.value?.base?.dataCount ?? 4
|
||||
const effectiveDataCount = this.value?.dataCount ?? 4
|
||||
let params = {
|
||||
data_type: dataType,
|
||||
data_value: this.value.data?.id || '',
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<template>
|
||||
<div
|
||||
:class="{
|
||||
'wgt-goods-card': true,
|
||||
'wgt-goods-card': true
|
||||
}"
|
||||
:style="outerStyle"
|
||||
>
|
||||
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
let params = {
|
||||
data_type: 'group',
|
||||
data_value: this.value.data?.id || '',
|
||||
data_count: this.value.dataCount,
|
||||
num: this.value.dataCount,
|
||||
distributor_id: this.value.data?.distributor_id || '',
|
||||
pages_template_id: this.$route.query.id
|
||||
}
|
||||
|
||||
@@ -73,11 +73,11 @@ export default {
|
||||
methods: {
|
||||
// 获取热销榜单商品列表(按销量排序)
|
||||
async getHotRankingGoodsList() {
|
||||
const effectiveDataCount = this.value?.dataCount ?? this.value?.base?.dataCount ?? 4
|
||||
const effectiveDataCount = this.value?.dataCount ?? 4
|
||||
let params = {
|
||||
data_type: 'sales',
|
||||
data_value: '',
|
||||
data_count: effectiveDataCount,
|
||||
num: effectiveDataCount,
|
||||
distributor_id: ''
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,33 @@
|
||||
<el-radio :label="0"> {{ i18n.t('744cc9e0.e3cf91') }} </el-radio>
|
||||
<el-radio v-if="isShowH5Link" :label="1">{{ i18n.t('744cc9e0.4e99fd') }} </el-radio>
|
||||
</el-radio-group>
|
||||
<div v-if="localValue.linkType == 0" class="btn-linkpath" @click="onPickerPath">
|
||||
{{ getLabelName() }}
|
||||
</div>
|
||||
<template v-if="localValue.linkType == 0">
|
||||
<div class="btn-linkpath" @click="onPickerPath">
|
||||
{{ getLabelName() }}
|
||||
</div>
|
||||
<div v-if="needsOfficialRawId" style="margin-top: 8px">
|
||||
<div style="font-size: 12px; color: #333; margin-bottom: 4px">
|
||||
{{ i18n.t('cc5110aa.d10654') }}
|
||||
</div>
|
||||
<el-input
|
||||
v-model="localValue.officialAccountRawId"
|
||||
size="small"
|
||||
:placeholder="i18n.t('cc5110aa.e20765')"
|
||||
@input="onOfficialRawIdInput"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="needsOfficialArticleLink" style="margin-top: 8px">
|
||||
<div style="font-size: 12px; color: #333; margin-bottom: 4px">
|
||||
{{ i18n.t('cc5110aa.f30876') }}
|
||||
</div>
|
||||
<el-input
|
||||
v-model="localValue.officialArticleLink"
|
||||
size="small"
|
||||
:placeholder="i18n.t('cc5110aa.g40987')"
|
||||
@input="onOfficialArticleLinkInput"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-else
|
||||
v-model="localValue.linkUrl"
|
||||
@@ -82,12 +106,22 @@ export default {
|
||||
linkUrl: '',
|
||||
linkPage: '',
|
||||
id: '',
|
||||
title: ''
|
||||
title: '',
|
||||
officialAccountRawId: '',
|
||||
officialArticleLink: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['lang'])
|
||||
...mapGetters(['lang']),
|
||||
needsOfficialRawId() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && (id === 'officialProfile' || id === 'officialChat')
|
||||
},
|
||||
needsOfficialArticleLink() {
|
||||
const { linkPage, id } = this.localValue
|
||||
return linkPage === 'customer_service' && id === 'official'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
@@ -132,9 +166,36 @@ export default {
|
||||
params.isShowPils = isShowPils
|
||||
}
|
||||
const res = await this.$picker.path(params)
|
||||
console.log('localValue---', res)
|
||||
this.$emit('input', res)
|
||||
this.$emit('change', res)
|
||||
const next = {
|
||||
...this.localValue,
|
||||
...res,
|
||||
linkType: this.localValue.linkType
|
||||
}
|
||||
const needRaw =
|
||||
res?.linkPage === 'customer_service' &&
|
||||
(res?.id === 'officialProfile' || res?.id === 'officialChat')
|
||||
const needArticle = res?.linkPage === 'customer_service' && res?.id === 'official'
|
||||
if (needRaw) {
|
||||
next.officialAccountRawId = this.localValue.officialAccountRawId || ''
|
||||
next.officialArticleLink = ''
|
||||
} else if (needArticle) {
|
||||
next.officialArticleLink = this.localValue.officialArticleLink || ''
|
||||
next.officialAccountRawId = ''
|
||||
} else {
|
||||
next.officialAccountRawId = ''
|
||||
next.officialArticleLink = ''
|
||||
}
|
||||
this.localValue = next
|
||||
this.$emit('input', next)
|
||||
this.$emit('change', next)
|
||||
},
|
||||
onOfficialRawIdInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onOfficialArticleLinkInput() {
|
||||
this.$emit('input', { ...this.localValue })
|
||||
this.$emit('change', { ...this.localValue })
|
||||
},
|
||||
onChangeLinkType() {
|
||||
this.$emit('input', this.localValue)
|
||||
|
||||
@@ -46,7 +46,7 @@ const config = {
|
||||
component: function (h, { key }) {
|
||||
return <AttrHorizontal v-model={this.value[key]} />
|
||||
},
|
||||
value: [{ title: '8fc92d38.cbc608' }]
|
||||
value: [{ title: i18n.t('8fc92d38.cbc608') }]
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
let params = {
|
||||
data_type: 'category_ranking',
|
||||
data_value: this.value.data?.id || '',
|
||||
data_count: this.value.dataCount,
|
||||
num: this.value.dataCount,
|
||||
distributor_id: this.value.data?.distributor_id || '',
|
||||
pages_template_id: this.$route.query.id
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ export default {
|
||||
let params = {
|
||||
data_type: dataType,
|
||||
data_value: this.value.data?.id || '',
|
||||
data_count: this.value.dataCount,
|
||||
num: this.value.dataCount,
|
||||
distributor_id: this.value.data?.distributor_id || '',
|
||||
pages_template_id: this.$route.query.id
|
||||
}
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
let params = {
|
||||
data_type: dataType,
|
||||
data_value: this.value.data?.id || '',
|
||||
data_count: this.value.dataCount,
|
||||
num: this.value.dataCount,
|
||||
distributor_id: this.value.data?.distributor_id || '',
|
||||
pages_template_id: this.$route.query.id
|
||||
}
|
||||
|
||||
@@ -110,11 +110,7 @@
|
||||
<div>{{ scope.row.sort }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('0e7dabe2.e8f9a1')"
|
||||
width="120"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column :label="$t('0e7dabe2.e8f9a1')" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
:value="scope.row.is_show_front"
|
||||
@@ -196,7 +192,9 @@ export default {
|
||||
{
|
||||
label: this.$t('0e7dabe2.e8f9a1'),
|
||||
key: 'is_show_front',
|
||||
component: ({ key }, value) => <el-switch v-model={value[key]} active-value="1" inactive-value="0"/>,
|
||||
component: ({ key }, value) => (
|
||||
<el-switch v-model={value[key]} active-value='1' inactive-value='0' />
|
||||
)
|
||||
},
|
||||
{
|
||||
label: this.$t('0e7dabe2.dc1eed'),
|
||||
|
||||
@@ -444,17 +444,17 @@ export default {
|
||||
},
|
||||
{
|
||||
label: this.$t('77050e4f.d64589'),
|
||||
component: () => <span>{this.addForm.bank_name || '-'}</span>,
|
||||
component: () => <span>{this.addForm.bank_name || '-'}</span>
|
||||
},
|
||||
{
|
||||
label: this.$t('77050e4f.27d6ee'),
|
||||
key: 'bank_name',
|
||||
component: () => <span>{this.addForm.bank_account_no || '-'}</span>,
|
||||
component: () => <span>{this.addForm.bank_account_no || '-'}</span>
|
||||
},
|
||||
{
|
||||
label: this.$t('77050e4f.efce56'),
|
||||
key: 'china_ums_no',
|
||||
component: () => <span>{this.addForm.china_ums_no || '-'}</span>,
|
||||
component: () => <span>{this.addForm.china_ums_no || '-'}</span>
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@@ -228,11 +228,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column width="120" :label="$t('9cc0c982.eb4307')">
|
||||
<template slot-scope="scope">
|
||||
{{
|
||||
scope.row.use_all_shops == 1
|
||||
? $t('9cc0c982.77678b')
|
||||
: $t('9cc0c982.fcf7d8')
|
||||
}}
|
||||
{{ scope.row.use_all_shops == 1 ? $t('9cc0c982.77678b') : $t('9cc0c982.fcf7d8') }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -167,10 +167,7 @@
|
||||
>
|
||||
{{ $t('ff141a64.3ae7e4') }}
|
||||
</el-button>
|
||||
<span
|
||||
v-if="scope.row.status == 'waiting'"
|
||||
class="pluspricebuy-waiting-actions"
|
||||
>
|
||||
<span v-if="scope.row.status == 'waiting'" class="pluspricebuy-waiting-actions">
|
||||
<i
|
||||
class="el-icon-edit-outline"
|
||||
@click="editActivityAction(scope.$index, scope.row)"
|
||||
|
||||
@@ -42,11 +42,7 @@
|
||||
<div v-if="hasRegisterJumpPath" class="link-content border px-2">
|
||||
<span @click="handleGoodsChange()">{{ registerJumpPathSummary }}</span>
|
||||
<span style="margin-left: 10px">
|
||||
<i
|
||||
style="color: #f56c6c"
|
||||
class="el-icon-delete"
|
||||
@click.stop="clear_pic_url"
|
||||
/>
|
||||
<i style="color: #f56c6c" class="el-icon-delete" @click.stop="clear_pic_url" />
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -39,10 +39,8 @@
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-tag v-if="isTemplateEnabled(scope.row.status)" type="success">
|
||||
{{
|
||||
$t('8b0d1458.7854b5')
|
||||
}}
|
||||
</el-tag>
|
||||
{{ $t('8b0d1458.7854b5') }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="info">{{ $t('8b0d1458.463776') }}</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -6,22 +6,45 @@
|
||||
<template>
|
||||
<SpPage>
|
||||
<SpRouterView>
|
||||
<SpFormPlus v-model="formData" form-type="searchForm" :form-items="formItems" @submit="onSearch" @reset="onSearch"
|
||||
:inline="true" />
|
||||
<SpFormPlus
|
||||
v-model="formData"
|
||||
form-type="searchForm"
|
||||
:form-items="formItems"
|
||||
@submit="onSearch"
|
||||
@reset="onSearch"
|
||||
:inline="true"
|
||||
/>
|
||||
|
||||
<div class="action-container mt-5">
|
||||
<el-button type="primary" icon="plus" @click="showEditModal('')">
|
||||
{{
|
||||
$t('f06fa37c.66ab5e')
|
||||
}}
|
||||
{{ $t('f06fa37c.66ab5e') }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<SpFinder ref="finder" url="/wxexternalconfig/list" no-selection :setting="setting"
|
||||
:hooks="{ beforeSearch: beforeSearch }" border />
|
||||
<SpFinder
|
||||
ref="finder"
|
||||
url="/wxexternalconfig/list"
|
||||
no-selection
|
||||
:setting="setting"
|
||||
:hooks="{ beforeSearch: beforeSearch }"
|
||||
border
|
||||
/>
|
||||
|
||||
<el-dialog class="modal" width="30%" :title="modalTitle" :visible="showModal" @close="closeModal">
|
||||
<el-form ref="editForm" label-suffix=":" label-width="120px" class="form" :rules="rules" :model="editInfo">
|
||||
<el-dialog
|
||||
class="modal"
|
||||
width="30%"
|
||||
:title="modalTitle"
|
||||
:visible="showModal"
|
||||
@close="closeModal"
|
||||
>
|
||||
<el-form
|
||||
ref="editForm"
|
||||
label-suffix=":"
|
||||
label-width="120px"
|
||||
class="form"
|
||||
:rules="rules"
|
||||
:model="editInfo"
|
||||
>
|
||||
<el-form-item :label="$t('f06fa37c.d34f1f')" prop="app_name">
|
||||
<el-input v-model="editInfo.app_name" />
|
||||
</el-form-item>
|
||||
@@ -29,8 +52,15 @@
|
||||
<el-input v-model="editInfo.app_id" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('f06fa37c.3bdd08')">
|
||||
<el-input v-model="editInfo.app_desc" type="textarea" :placeholder="$t('f06fa37c.d51187')" resize="none"
|
||||
maxlength="30" show-word-limit :rows="3" />
|
||||
<el-input
|
||||
v-model="editInfo.app_desc"
|
||||
type="textarea"
|
||||
:placeholder="$t('f06fa37c.d51187')"
|
||||
resize="none"
|
||||
maxlength="30"
|
||||
show-word-limit
|
||||
:rows="3"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="btns">
|
||||
|
||||
@@ -5,13 +5,7 @@
|
||||
|
||||
<template>
|
||||
<SpPage>
|
||||
<SpPlatformTip
|
||||
v-if="!VERSION_SHUYUN()"
|
||||
h5
|
||||
app
|
||||
alipay
|
||||
:text-val="$t('20f6ad88.c5d4d8')"
|
||||
/>
|
||||
<SpPlatformTip v-if="!VERSION_SHUYUN()" h5 app alipay :text-val="$t('20f6ad88.c5d4d8')" />
|
||||
<SpFormPlus
|
||||
ref="form"
|
||||
v-model="form"
|
||||
|
||||
@@ -166,7 +166,11 @@ export default {
|
||||
EMAIL_SENDER: this.strField(d, 'EMAIL_SENDER'),
|
||||
EMAIL_USER: this.strField(d, 'EMAIL_USER'),
|
||||
EMAIL_PASSWORD: this.strField(d, 'EMAIL_PASSWORD'),
|
||||
EMAIL_ACTIVATION_H5_DOMAIN: this.strField(d, 'EMAIL_ACTIVATION_H5_DOMAIN', 'EMAIL_H5_ACTIVATE_DOMAIN'),
|
||||
EMAIL_ACTIVATION_H5_DOMAIN: this.strField(
|
||||
d,
|
||||
'EMAIL_ACTIVATION_H5_DOMAIN',
|
||||
'EMAIL_H5_ACTIVATE_DOMAIN'
|
||||
),
|
||||
EMAIL_ACTIVATION_PC_DOMAIN: this.strField(d, 'EMAIL_ACTIVATION_PC_DOMAIN')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -6,13 +6,7 @@
|
||||
<template>
|
||||
<SpPage>
|
||||
<div v-loading="loading">
|
||||
<SpPlatformTip
|
||||
v-if="!VERSION_SHUYUN()"
|
||||
h5
|
||||
app
|
||||
alipay
|
||||
:text-val="$t('59579ae2.c5d4d8')"
|
||||
/>
|
||||
<SpPlatformTip v-if="!VERSION_SHUYUN()" h5 app alipay :text-val="$t('59579ae2.c5d4d8')" />
|
||||
<SpFormPlus
|
||||
ref="form"
|
||||
v-model="form"
|
||||
|
||||
Reference in New Issue
Block a user