style(scope): format

This commit is contained in:
lukaijie
2026-05-29 17:54:51 +08:00
parent c54d3e8b1d
commit 1a56385665
17 changed files with 212 additions and 66 deletions

View File

@@ -36,11 +36,17 @@
</style>
<template>
<div class="wgt-hotzone" :style="outerStyle">
<div class="wgt-hotzone-bd" :class="{ 'wgt-hotzone-bd-vertical': value.animation === 'vertical' }">
<el-image :src="value.data.imgUrl" :style="{
height: value.animation === 'vertical' ? value.imgHeight + 'px' : 'auto',
display: 'block'
}">
<div
class="wgt-hotzone-bd"
:class="{ 'wgt-hotzone-bd-vertical': value.animation === 'vertical' }"
>
<el-image
:src="value.data.imgUrl"
:style="{
height: value.animation === 'vertical' ? value.imgHeight + 'px' : 'auto',
display: 'block'
}"
>
<div slot="error" class="wgt-hotzone-error">
<img :src="dImage" width="100%" height="100%" style="object-fit: cover" />
</div>
@@ -75,7 +81,7 @@ export default {
return getOuterStyle(this.value)
}
},
created() { },
created() {},
methods: {}
}
</script>

View File

@@ -414,7 +414,8 @@ export default {
this.refreshNode(parent_id)
this.categoryDialog = false
// 创建/编辑保持一致:弹「同步翻译」弹框
const newCategoryId = (res && res.data && res.data.data && (res.data.data.category_id || res.data.data.id)) || 0
const newCategoryId =
(res && res.data && res.data.data && (res.data.data.category_id || res.data.data.id)) || 0
if (newCategoryId) {
this.openTranslate(newCategoryId, ['category_name'], [category_name || ''])
}

View File

@@ -389,9 +389,18 @@ export default {
this.show_sideBar = false
this.fetchList()
// 创建/编辑保持一致:弹「同步翻译」弹框
const newAttrId = (res && res.data && res.data.data && (res.data.data.attribute_id || res.data.data.id)) || 0
const newAttrId =
(res &&
res.data &&
res.data.data &&
(res.data.data.attribute_id || res.data.data.id)) ||
0
if (newAttrId) {
this.openTranslate(newAttrId, ['attribute_name', 'attribute_memo'], [submitData.attribute_name || '', submitData.attribute_memo || ''])
this.openTranslate(
newAttrId,
['attribute_name', 'attribute_memo'],
[submitData.attribute_name || '', submitData.attribute_memo || '']
)
}
})
} else {
@@ -399,7 +408,11 @@ export default {
this.$message({ type: 'success', message: this.$t('5db1387d.33130f') })
this.show_sideBar = false
this.fetchList()
this.openTranslate(params.attribute_id, ['attribute_name', 'attribute_memo'], [submitData.attribute_name || '', submitData.attribute_memo || ''])
this.openTranslate(
params.attribute_id,
['attribute_name', 'attribute_memo'],
[submitData.attribute_name || '', submitData.attribute_memo || '']
)
})
}
},

View File

@@ -216,7 +216,12 @@ export default {
this.show_sideBar = false
this.$refs.finder.refresh(true)
// 创建/编辑保持一致:弹「同步翻译」弹框
const newAttrId = (res && res.data && res.data.data && (res.data.data.attribute_id || res.data.data.id)) || 0
const newAttrId =
(res &&
res.data &&
res.data.data &&
(res.data.data.attribute_id || res.data.data.id)) ||
0
if (newAttrId) {
this.openTranslate(newAttrId, ['attribute_name'], [submitData.attribute_name || ''])
}
@@ -226,7 +231,11 @@ export default {
this.$message({ type: 'success', message: this.$t('6ec569f9.33130f') })
this.show_sideBar = false
this.$refs.finder.refresh()
this.openTranslate(submitData.attribute_id, ['attribute_name'], [submitData.attribute_name || ''])
this.openTranslate(
submitData.attribute_id,
['attribute_name'],
[submitData.attribute_name || '']
)
})
}
},

View File

@@ -321,9 +321,18 @@ export default {
this.show_sideBar = false
this.$refs.finder.refresh(true)
// 创建/编辑保持一致:弹「同步翻译」弹框
const newAttrId = (res && res.data && res.data.data && (res.data.data.attribute_id || res.data.data.id)) || 0
const newAttrId =
(res &&
res.data &&
res.data.data &&
(res.data.data.attribute_id || res.data.data.id)) ||
0
if (newAttrId) {
this.openTranslate(newAttrId, ['attribute_name', 'attribute_memo'], [submitData.attribute_name || '', submitData.attribute_memo || ''])
this.openTranslate(
newAttrId,
['attribute_name', 'attribute_memo'],
[submitData.attribute_name || '', submitData.attribute_memo || '']
)
}
})
} else {
@@ -331,7 +340,11 @@ export default {
this.$message({ type: 'success', message: this.$t('07504bf6.33130f') })
this.show_sideBar = false
this.$refs.finder.refresh()
this.openTranslate(params.attribute_id, ['attribute_name', 'attribute_memo'], [submitData.attribute_name || '', submitData.attribute_memo || ''])
this.openTranslate(
params.attribute_id,
['attribute_name', 'attribute_memo'],
[submitData.attribute_name || '', submitData.attribute_memo || '']
)
})
}
},

View File

@@ -13,9 +13,7 @@
<template>
<div class="comp-refund-amount">
<el-input v-model="fee" type="text" disabled @change="onChangeFee" />
<div class="refund-amount-tip">
{{ $t('8a5fac4d.eea9ab') }}{{ refundFee }}
</div>
<div class="refund-amount-tip">{{ $t('8a5fac4d.eea9ab') }}{{ refundFee }}</div>
</div>
</template>

View File

@@ -37,9 +37,7 @@ export default {
leftPoint +=
item.refundNum === item.left_aftersales_num
? item.remain_point / 100
: parseInt(
(item.remain_point / 100 / item.left_aftersales_num) * item.refundNum
)
: parseInt((item.remain_point / 100 / item.left_aftersales_num) * item.refundNum)
}
})
this.refundPoint = leftPoint

View File

@@ -1115,7 +1115,11 @@ export default {
duration: 2 * 1000
})
this.refresh()
this.openTranslate(this.form.card_id, ['title', 'description'], [this.form.title || '', this.form.description || ''])
this.openTranslate(
this.form.card_id,
['title', 'description'],
[this.form.title || '', this.form.description || '']
)
} else {
this.$message.error(this.$t('dba53da0.445eb0'))
this.submitDisabled = false
@@ -1137,7 +1141,11 @@ export default {
this.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
const newCardId = (res.data.data && res.data.data.card_id) || this.form.card_id
this.openTranslate(newCardId, ['title', 'description'], [this.form.title || '', this.form.description || ''])
this.openTranslate(
newCardId,
['title', 'description'],
[this.form.title || '', this.form.description || '']
)
} else {
this.$message.error(this.$t('dba53da0.be28db'))
this.submitDisabled = false
@@ -1153,7 +1161,7 @@ export default {
}
})
},
addStoreAction() {
this.storeVisible = true
this.setStatus = true

View File

@@ -538,9 +538,17 @@ export default {
updateMarketingActivity(this.form).then((res) => {
if (res.data.data.marketing_id) {
this.loading = false
this.$message({ message: this.$t('ded9cbe0.3a5c8d'), type: 'success', duration: 2 * 1000 })
this.$message({
message: this.$t('ded9cbe0.3a5c8d'),
type: 'success',
duration: 2 * 1000
})
that.refresh()
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('ded9cbe0.2e6f0a'))
return false
@@ -557,7 +565,11 @@ export default {
})
that.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('ded9cbe0.2e6f0a'))
return false
@@ -565,7 +577,7 @@ export default {
})
}
},
getActivityDetail(id) {
getMarketingActivityInfo({ marketing_id: id }).then((res) => {
let response = res.data.data

View File

@@ -631,9 +631,17 @@ export default {
updateMarketingActivity(thisform).then((res) => {
if (res.data.data.marketing_id) {
this.loading = false
this.$message({ message: this.$t('5c0a87f2.55aa63'), type: 'success', duration: 2 * 1000 })
this.$message({
message: this.$t('5c0a87f2.55aa63'),
type: 'success',
duration: 2 * 1000
})
that.refresh()
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('5c0a87f2.73b0d9'))
return false
@@ -650,7 +658,11 @@ export default {
})
that.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('5c0a87f2.73b0d9'))
return false
@@ -658,7 +670,7 @@ export default {
})
}
},
getActivityDetail(id) {
getMarketingActivityInfo({ marketing_id: id }).then((res) => {
let response = res.data.data

View File

@@ -554,9 +554,17 @@ export default {
updateMarketingActivity(thisform).then((res) => {
if (res.data.data.marketing_id) {
this.loading = false
this.$message({ message: this.$t('118844d3.55aa63'), type: 'success', duration: 2 * 1000 })
this.$message({
message: this.$t('118844d3.55aa63'),
type: 'success',
duration: 2 * 1000
})
that.refresh()
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('118844d3.73b0d9'))
return false
@@ -573,7 +581,11 @@ export default {
})
that.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('118844d3.73b0d9'))
return false
@@ -581,7 +593,7 @@ export default {
})
}
},
getActivityDetail(id) {
getMarketingActivityInfo({ marketing_id: id }).then((res) => {
let response = res.data.data

View File

@@ -391,9 +391,17 @@ export default {
updateMarketingActivity(this.form).then((res) => {
if (res.data.data.marketing_id) {
this.loading = false
this.$message({ message: this.$t('89f4b371.55aa63'), type: 'success', duration: 2 * 1000 })
this.$message({
message: this.$t('89f4b371.55aa63'),
type: 'success',
duration: 2 * 1000
})
that.refresh()
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('89f4b371.73b0d9'))
return false
@@ -410,7 +418,11 @@ export default {
})
that.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('89f4b371.73b0d9'))
return false
@@ -418,7 +430,7 @@ export default {
})
}
},
getActivityDetail(id) {
getMarketingActivityInfo({ marketing_id: id }).then((res) => {
let response = res.data.data

View File

@@ -698,9 +698,17 @@ export default {
updateMarketingActivity(this.form).then((res) => {
if (res.data.data.marketing_id) {
this.loading = false
this.$message({ message: this.$t('4262458d.55aa63'), type: 'success', duration: 2 * 1000 })
this.$message({
message: this.$t('4262458d.55aa63'),
type: 'success',
duration: 2 * 1000
})
that.refresh()
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('4262458d.73b0d9'))
return false
@@ -717,7 +725,11 @@ export default {
})
that.refresh()
// 创建/编辑保持一致:弹「同步翻译」弹框;仅保存/取消由 mixin 跳回列表
this.openTranslate(res.data.data.marketing_id, ['marketing_name', 'marketing_desc'], [this.form.marketing_name || '', this.form.marketing_desc || ''])
this.openTranslate(
res.data.data.marketing_id,
['marketing_name', 'marketing_desc'],
[this.form.marketing_name || '', this.form.marketing_desc || '']
)
} else {
this.$message.error(this.$t('4262458d.73b0d9'))
return false
@@ -725,7 +737,7 @@ export default {
})
}
},
getActivityDetail(id) {
getMarketingActivityInfo({ marketing_id: id }).then((res) => {
let response = res.data.data

View File

@@ -1058,7 +1058,11 @@ export default {
await this.$api.marketing.updateDistributorInfo(distributor_id, params)
this.submitLoading = false
this.$message.success(this.$t('027707af.c83614'))
this.openTranslate(distributor_id, ['name', 'address', 'introduce'], [this.form.name || '', this.form.address || '', this.form.introduce || ''])
this.openTranslate(
distributor_id,
['name', 'address', 'introduce'],
[this.form.name || '', this.form.address || '', this.form.introduce || '']
)
} else {
const ids = (this.$refs['daoDianZiti']?.finderData || []).map((item) => item.id)
await this.$api.marketing.saveDistributorInfo({
@@ -1068,9 +1072,18 @@ export default {
this.submitLoading = false
this.$message.success(this.$t('027707af.931e30'))
// 创建/编辑保持一致:拿到新店铺 id 弹「同步翻译」弹框;取不到 id 时退回原行为
const newDistributorId = (res && res.data && res.data.data && (res.data.data.distributor_id || res.data.data.id)) || 0
const newDistributorId =
(res &&
res.data &&
res.data.data &&
(res.data.data.distributor_id || res.data.data.id)) ||
0
if (newDistributorId) {
this.openTranslate(newDistributorId, ['name', 'address', 'introduce'], [this.form.name || '', this.form.address || '', this.form.introduce || ''])
this.openTranslate(
newDistributorId,
['name', 'address', 'introduce'],
[this.form.name || '', this.form.address || '', this.form.introduce || '']
)
} else if (!this.IS_DISTRIBUTOR()) {
this.$router.go(-1)
}

View File

@@ -21,10 +21,7 @@
<p v-if="pageInfo.description">{{ pageInfo.description }}</p>
</div>
<div
v-if="!loading && goodsList.length === 0"
class="appcenter-empty"
>
<div v-if="!loading && goodsList.length === 0" class="appcenter-empty">
{{ pageInfo.empty_text || '暂无可展示应用' }}
</div>
<div v-else class="appcenter-items appcenter-layout-grid">
@@ -66,10 +63,7 @@ import {
getAppcenterGoods,
loginUsercenter
} from '@/api/company'
import {
isUsercenterLoggedIn,
setUsercenterLoginSuccess
} from '@/utils/usercenter-storage'
import { isUsercenterLoggedIn, setUsercenterLoginSuccess } from '@/utils/usercenter-storage'
export default {
data() {
@@ -137,8 +131,7 @@ export default {
async redirectToAppcenter() {
const urlResponse = await getAppcenterUrl()
const urlData = urlResponse?.data?.data
const appcenterUrl =
(typeof urlData === 'string' ? urlData : '') || urlData?.url || ''
const appcenterUrl = (typeof urlData === 'string' ? urlData : '') || urlData?.url || ''
if (!appcenterUrl) {
throw new Error('获取用户中心地址失败')
}

View File

@@ -6,8 +6,14 @@
<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('')">
@@ -15,11 +21,30 @@
</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>
@@ -27,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">

View File

@@ -154,7 +154,9 @@ export default {
} else {
// 新增
const res = await this.$api.store.createStoreCategory({ category_name })
translateCategoryId = (res && res.data && res.data.data && (res.data.data.category_id || res.data.data.id)) || 0
translateCategoryId =
(res && res.data && res.data.data && (res.data.data.category_id || res.data.data.id)) ||
0
this.$message.success(this.$t('9a30bc45.3fdaea'))
}
this.categoryDialog = false