Commit 2dcc7ac7 by cen

feat: 新加权益列表

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