Commit f83300e2 by 岑成威

fix: 调整文案

1 parent 77c81bfb
......@@ -22,35 +22,15 @@
</view>
<view class="filter-row">
<input
class="filter-input"
v-model="keyword"
placeholder="关键字过滤,如 StoragePathMerge / PathUtils"
confirm-type="search"
/>
<input class="filter-input" v-model="keyword" placeholder="关键字过滤,如 StoragePathMerge / PathUtils" confirm-type="search" />
</view>
<view class="level-row">
<text
v-for="lv in levelOptions"
:key="lv.value"
:class="['level-chip', { active: levelFilter === lv.value }]"
@tap="levelFilter = lv.value"
>{{ lv.label }}</text>
<text v-for="lv in levelOptions" :key="lv.value" :class="['level-chip', { active: levelFilter === lv.value }]" @tap="levelFilter = lv.value">{{ lv.label }}</text>
</view>
<scroll-view
class="log-scroll"
scroll-y
:scroll-into-view="scrollIntoView"
:scroll-with-animation="false"
>
<view
v-for="item in displayLines"
:key="item.id"
:id="'log-' + item.id"
:class="['log-line', 'level-' + item.level]"
>
<scroll-view class="log-scroll" scroll-y :scroll-into-view="scrollIntoView" :scroll-with-animation="false">
<view v-for="item in displayLines" :key="item.id" :id="'log-' + item.id" :class="['log-line', 'level-' + item.level]">
<text class="log-time">{{ item.time }}</text>
<text class="log-tag">[{{ item.level }}]</text>
<text class="log-text">{{ item.text }}</text>
......@@ -59,12 +39,7 @@
</scroll-view>
<view class="tag-row">
<text
v-for="tag in quickTags"
:key="tag.label"
:class="['tag-chip', { active: keyword === tag.value }]"
@tap="setKeyword(tag.value)"
>{{ tag.label }}</text>
<text v-for="tag in quickTags" :key="tag.label" :class="['tag-chip', { active: keyword === tag.value }]" @tap="setKeyword(tag.value)">{{ tag.label }}</text>
</view>
</view>
</view>
......@@ -252,9 +227,7 @@ export default {
},
onCopy() {
const kw = (this.keyword || '').trim()
let list = this._isMergeKeyword(kw)
? [...loadPersistedMergeLogs(), ...FloatLogBus.getMergeLines()]
: FloatLogBus.getLines()
let list = this._isMergeKeyword(kw) ? [...loadPersistedMergeLogs(), ...FloatLogBus.getMergeLines()] : FloatLogBus.getLines()
if (this.levelFilter !== 'all') {
list = list.filter(l => l.level === this.levelFilter)
}
......@@ -262,9 +235,7 @@ export default {
if (kw && !this._isMergeKeyword(kw)) {
list = list.filter(l => l.text.toLowerCase().includes(kwLower))
}
const text = list
.map(l => `${l.time} [${l.level}] ${l.text}`)
.join('\n')
const text = list.map(l => `${l.time} [${l.level}] ${l.text}`).join('\n')
if (!text) {
uni.showToast({ title: '无内容', icon: 'none' })
return
......@@ -310,7 +281,7 @@ export default {
.float-log-fab {
position: fixed;
right: 24rpx;
bottom: 120rpx;
bottom: 20rpx;
width: 120rpx;
height: 120rpx;
z-index: 99999;
......
......@@ -66,10 +66,7 @@
<view class="meal-box" v-for="(item, index) in orderInfo.packageGoodsList">
<view class="meal-hd flex justify-between align-center">
<view class="meal-hd-name flex align-center">
<view
v-if="shouldShowMarketingIcon(item)"
class="sprite-icon icon-activeIcon marketing-icon"
></view>
<view v-if="shouldShowMarketingIcon(item)" class="sprite-icon icon-activeIcon marketing-icon"></view>
<view>{{ item.packageAlias || item.packageName }}</view>
</view>
<view class="price">¥{{ item.finalPrice }}</view>
......@@ -94,10 +91,7 @@
<view class="good" v-for="(item, index) in orderInfo.subOrderList" :key="index">
<view class="flex justify-between align-center mb-20">
<view class="good-name flex align-center">
<view
v-if="shouldShowMarketingIcon(item)"
class="sprite-icon icon-activeIcon marketing-icon"
></view>
<view v-if="shouldShowMarketingIcon(item)" class="sprite-icon icon-activeIcon marketing-icon"></view>
<text class="good-name-text text-hide">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
</view>
<text class="good-price">¥{{ item.finalPrice }}</text>
......@@ -357,12 +351,7 @@ export default {
const rejected = { status: '驳回', statusColor: '#f56c6c' }
return [
{
name: '区域经理',
value: '1',
...(status === 1 ? pending : [2, 3, 4].includes(status) ? approved : empty)
},
{
name: '线上运营',
name: '运营',
value: '2',
...(status === 1 ? empty : status === 2 ? pending : status === 3 ? approved : status === 4 ? rejected : empty)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!