瀏覽代碼

服务中心

linwu 6 月之前
父節點
當前提交
43797de91d

+ 24 - 0
app/mobile/controller/Human.php

@@ -184,6 +184,30 @@ class Human extends MobileBaseController
         return view('', ['info' => $info]);
     }
 
+    public function center()
+    {
+        $this->_listValidate();
+
+        return view();
+    }
+
+    public function describe()
+    {
+        return view();
+    }
+
+    public function guide()
+    {
+        $this->_listValidate();
+
+        return view();
+    }
+
+    public function jinjiang()
+    {
+        return view();
+    }
+
     private function _formValidate()
     {
         $open_id = session('mobile.human.open_id');

+ 50 - 0
app/mobile/view/human/center.html

@@ -0,0 +1,50 @@
+{extend name="public/base_human"/}
+{block name="css"}
+<style>
+
+</style>
+{/block}
+{block name="body"}
+<van-sticky>
+    <van-nav-bar
+            class="nav-theme"
+            :fixed="true"
+            :placeholder="true"
+    >
+        <template #title>
+            <span class="text-white">服务中心</span>
+        </template>
+    </van-nav-bar>
+</van-sticky>
+
+<van-cell-group>
+    <van-cell title="大会介绍" is-link url="{:url('human/describe')}"></van-cell>
+    <van-cell title="活动指南" is-link url="{:url('human/guide')}"></van-cell>
+    <van-cell title="晋江介绍" is-link url="{:url('human/jinjiang')}"></van-cell>
+</van-cell-group>
+
+<van-tabbar v-model="active">
+    <van-tabbar-item icon="home-o" @click="toEnterprise">企业列表</van-tabbar-item>
+    <van-tabbar-item icon="friends-o" @click="toInstitution">机构列表</van-tabbar-item>
+    <van-tabbar-item icon="manager-o">服务中心</van-tabbar-item>
+</van-tabbar>
+{/block}
+{block name="script"}
+<script>
+    function v_setup() {
+        let base = {};
+
+        base.active = Vue.ref(2);
+
+        base.toInstitution = () => {
+            location.href = "{:url('human/institutionList')}";
+        };
+
+        base.toEnterprise = () => {
+            location.href = "{:url('human/enterpriseList')}";
+        };
+
+        return base;
+    }
+</script>
+{/block}

+ 35 - 0
app/mobile/view/human/describe.html

@@ -0,0 +1,35 @@
+{extend name="public/base_human"/}
+{block name="css"}
+<style>
+
+</style>
+{/block}
+{block name="body"}
+<van-nav-bar
+        class="nav-theme"
+        :fixed="true"
+        :placeholder="true"
+        left-text="返回"
+        left-arrow
+        @click-left="onBack"
+>
+    <template #title>
+        <span class="text-white">大会介绍</span>
+    </template>
+</van-nav-bar>
+
+
+{/block}
+{block name="script"}
+<script>
+    function v_setup() {
+        let base = {};
+
+        base.onBack = () => {
+            history.back();
+        };
+
+        return base;
+    }
+</script>
+{/block}

+ 5 - 0
app/mobile/view/human/enterprise_list.html

@@ -63,6 +63,7 @@
 <van-tabbar v-model="active">
     <van-tabbar-item icon="home-o">企业列表</van-tabbar-item>
     <van-tabbar-item icon="friends-o" @click="toInstitution">机构列表</van-tabbar-item>
+    <van-tabbar-item icon="manager-o" @click="toCenter">服务中心</van-tabbar-item>
 </van-tabbar>
 {/block}
 {block name="script"}
@@ -119,6 +120,10 @@
             location.href = "{:url('human/institutionList')}";
         };
 
+        base.toCenter = () => {
+            location.href = "{:url('human/center')}";
+        };
+
         return base;
     }
 </script>

+ 35 - 0
app/mobile/view/human/guide.html

@@ -0,0 +1,35 @@
+{extend name="public/base_human"/}
+{block name="css"}
+<style>
+
+</style>
+{/block}
+{block name="body"}
+<van-nav-bar
+        class="nav-theme"
+        :fixed="true"
+        :placeholder="true"
+        left-text="返回"
+        left-arrow
+        @click-left="onBack"
+>
+    <template #title>
+        <span class="text-white">活动指南</span>
+    </template>
+</van-nav-bar>
+
+
+{/block}
+{block name="script"}
+<script>
+    function v_setup() {
+        let base = {};
+
+        base.onBack = () => {
+            history.back();
+        };
+
+        return base;
+    }
+</script>
+{/block}

+ 4 - 13
app/mobile/view/human/index.html

@@ -5,18 +5,10 @@
     .title {text-align: center;}
     .btn-box {width:80%;margin:0 auto;padding-top:20px;}
     .btn-box .van-button {margin-top:30px;}
-    .content-box {height: calc(100vh - 46px);width:100vw;box-sizing: border-box;background-image: url("/static/mobile/images/bg_human.jpg");background-size:cover;background-repeat: no-repeat;}
+    .content-box {height: 100vh;width:100vw;box-sizing: border-box;background-image: url("/static/mobile/images/bg_human.jpg");background-size:cover;background-repeat: no-repeat;}
 </style>
 {/block}
 {block name="body"}
-<van-nav-bar
-        class="nav-theme"
-        :placeholder="true"
->
-    <template #title>
-        <span class="text-white">首页</span>
-    </template>
-</van-nav-bar>
 <div class="content-box">
     <div class="title-box">
         <h3 class="title">民营经济与人力资源服务发展大会</h3>
@@ -42,13 +34,12 @@
             location.href = "{:url('human/institutionForm')}";
         };
         base.toDescribe = () => {
-            alert('敬请期待');
+            location.href = "{:url('human/describe')}";
         };
         base.toJinjiang = () => {
-            alert('敬请期待');
+            location.href = "{:url('human/jinjiang')}";
         };
-
-
+        
         return base;
     }
 </script>

+ 5 - 0
app/mobile/view/human/institution_list.html

@@ -70,6 +70,7 @@
 <van-tabbar v-model="active">
     <van-tabbar-item icon="home-o" @click="toEnterprise">企业列表</van-tabbar-item>
     <van-tabbar-item icon="friends-o">机构列表</van-tabbar-item>
+    <van-tabbar-item icon="manager-o" @click="toCenter">服务中心</van-tabbar-item>
 </van-tabbar>
 {/block}
 {block name="script"}
@@ -129,6 +130,10 @@
             location.href = "{:url('human/enterpriseList')}";
         };
 
+        base.toCenter = () => {
+            location.href = "{:url('human/center')}";
+        };
+
         return base;
     }
 </script>

+ 35 - 0
app/mobile/view/human/jinjiang.html

@@ -0,0 +1,35 @@
+{extend name="public/base_human"/}
+{block name="css"}
+<style>
+
+</style>
+{/block}
+{block name="body"}
+<van-nav-bar
+        class="nav-theme"
+        :fixed="true"
+        :placeholder="true"
+        left-text="返回"
+        left-arrow
+        @click-left="onBack"
+>
+    <template #title>
+        <span class="text-white">晋江介绍</span>
+    </template>
+</van-nav-bar>
+
+
+{/block}
+{block name="script"}
+<script>
+    function v_setup() {
+        let base = {};
+
+        base.onBack = () => {
+            history.back();
+        };
+
+        return base;
+    }
+</script>
+{/block}

二進制
public/static/mobile/images/bg_my.png