feat: 新增需求
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
<view class="u-flex card-left">
|
||||
<view class="card-title">{{title}}</view>
|
||||
</view>
|
||||
<view @click="openPage" class="morebtn">更多<u-icon name="arrow-right" class="u-p-r-10"
|
||||
color="#666"></u-icon></view>
|
||||
</view>
|
||||
<view class="card-item">
|
||||
<!-- 遍历渲染业务图标 -->
|
||||
<view class="item u-flex-col" v-for="(item,index) in cardData" :key="index" @click="clickItem(item)">
|
||||
<!-- 替换原有 class 图标为 iconify-icon 标签 -->
|
||||
<view class="item-icon" :style="{ background: item.iconBackground || '#008cff' }">
|
||||
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
|
||||
<iconify-icon
|
||||
@@ -114,14 +115,7 @@
|
||||
})
|
||||
},
|
||||
openPage() {
|
||||
let url;
|
||||
if (this.type === 'collect') {
|
||||
url = this.tabType === 'menu' ? '/pages/commonPage/morePage/index?type=2' :
|
||||
'/pages/commonPage/morePage/index?type=1'
|
||||
} else {
|
||||
url = this.tabType === 'menu' ? '/pages/apply/menu/index' : '/pages/workFlow/workFlow/index'
|
||||
}
|
||||
this.$emit('openPage', url)
|
||||
this.$emit('openPage', '/pages/apply/menu/index')
|
||||
},
|
||||
add() {
|
||||
let url = this.tabType === 'menu' ? '/pages/apply/allAppApply/index' :
|
||||
|
||||
Reference in New Issue
Block a user