Commit 2dcc7ac7 by cen

feat: 新加权益列表

1 parent 7ee562f3
......@@ -3,12 +3,7 @@
<template v-if="entranceList.length">
<view class="entrance-container">
<view class="entrance-list">
<view
class="entrance-item"
v-for="(item, index) in entranceList"
:key="index"
@click="handleClick(item)"
>
<view class="entrance-item" v-for="(item, index) in entranceList" :key="index" @click="handleClick(item)">
<view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view>
</view>
......@@ -17,10 +12,7 @@
</template>
<template v-else>
<view class="developing flex">
<image
class="developing-icon"
src="../assets/images/common/developing.webp"
/>
<image class="developing-icon" src="../assets/images/common/developing.webp" />
功能开发中
</view>
</template>
......@@ -30,13 +22,11 @@
<script>
export default {
name: 'Entrance',
data () {
return {
}
data() {
return {}
},
computed: {
entranceList () {
entranceList() {
let { sceneType } = uni.$storage.get('userInfo'),
entranceList = [
{
......@@ -54,7 +44,7 @@ export default {
{
icon: 'equity-order',
label: '权益提单',
name: 'EquityOrder',
name: 'EquityManagement',
sceneType: [0]
},
{
......@@ -87,7 +77,7 @@ export default {
}
},
methods: {
handleClick (item) {
handleClick(item) {
// 这里可以根据实际需求进行跳转或功能处理
this.$emit('entranceClick', item)
}
......
......@@ -159,6 +159,9 @@ export default {
this.searchObj = null
this.searchObj = val
console.log(this.searchObj)
if (!this.searchObj.orderStatus) {
this.tabIndex = 0
}
this.search()
},
copyText(e) {
......
......@@ -25,7 +25,7 @@
</view>
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
<!-- 学习中心权限弹窗 -->
<!-- 学习中心权限弹窗 -->
<StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870" :topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248" style="overflow: hidden">
<StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" />
</StudyPopup>
......@@ -46,6 +46,7 @@ import { interceptionMixin } from '@/mixin/index'
import UpdateOrderInfo from './components/UpdateOrderInfo.vue'
import StudyPopup from '@/components/StudyPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import EquityManagement from './components/EquityManagement.vue'
export default {
mixins: [interceptionMixin],
......@@ -60,7 +61,8 @@ export default {
OrderDetail,
UpdateOrderInfo,
StudyPopup,
StudyCenterPermissionPopup
StudyCenterPermissionPopup,
EquityManagement
},
data() {
return {
......@@ -88,10 +90,10 @@ export default {
this.currentMonth = dayjs(currentDate).format('YYYY-MM')
},
async entranceClick(item) {
if(this.toolComponentName == item.name) return
if (this.toolComponentName == item.name) return
const noInterceptPage = ['DailyReport']
// if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()))) return
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return
// 提示去学习中心弹窗
const res = await this.getLimitRecord()
if (res.lockOrder) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!