浏览代码

路演模块初始化

jwyu 3 年之前
父节点
当前提交
391a412142
共有 3 个文件被更改,包括 68 次插入0 次删除
  1. 51 0
      pages-approve/activity/list.vue
  2. 6 0
      pages.json
  3. 11 0
      pages/workbench/index.vue

+ 51 - 0
pages-approve/activity/list.vue

@@ -0,0 +1,51 @@
+<template>
+    <view>
+        <van-sticky>
+			<view class="top-wrap">
+				<van-tabs swipeable id="tabs" :active="status" title-active-color="#3385FF" color="#3385FF" @change="typeChange">
+					<van-tab title="待审批" name="待审批"></van-tab>
+					<van-tab title="已审批" name="已审批"></van-tab>
+				</van-tabs>
+			</view>
+		</van-sticky>
+        <van-empty description="暂无数据" :image="require('@/static/empty.png')" v-if="finished&&list.length===0"/>
+        <view class="list">
+            <view class="item">
+                
+            </view>
+        </view>
+    </view>
+</template>
+
+<script>
+export default {
+    data () {
+        return {
+			status: '待审批',
+			list:[],
+			page:1,
+			finished:false,
+		}
+    },
+    onShow() {
+	    this.selectComponent('#tabs').resize();// 解决初始渲染 vant tab 底部条
+	},
+    methods: {
+        typeChange(e){
+			this.status=e.detail.name
+			this.page=1
+			this.finished=false
+			this.list=[]
+			this.getList()
+		},
+
+        async getList(){
+
+        }
+    }
+}
+</script>
+
+<style>
+
+</style>

+ 6 - 0
pages.json

@@ -126,6 +126,12 @@
           "style": {
             "navigationBarTitleText": "驳回理由"
           }
+        },
+        {
+          "path": "activity/list",
+          "style":{
+            "navigationBarTitleText": "活动审批"
+          }
         }
       ]
     }

+ 11 - 0
pages/workbench/index.vue

@@ -12,6 +12,10 @@
 			<image src="../../static/icon-3.png" mode="aspectFill" class="icon"></image>
 			<view class="label">用印审批</view>
 		</view>
+		<view class="section white-wrap" @click="handleGoNext('activity')">
+			<image src="../../static/icon-3.png" mode="aspectFill" class="icon"></image>
+			<view class="label">活动审批</view>
+		</view>
 	</view>
 </template>
 
@@ -45,6 +49,13 @@
 						url:"/pages-approve/seal/list"
 					})
 				}
+
+				if(type==='activity'){
+					uni.navigateTo({
+						url:"/pages-approve/activity/list"
+					})
+				}
+
 			}
 		},
 	}