linwu 5 月之前
父節點
當前提交
789c96a3ac

+ 17 - 4
app/mobile/controller/Human.php

@@ -340,12 +340,24 @@ class Human extends MobileBaseController
             if (empty($enterprise)) {
                 ajax_return(1, '该手机号未报名,请确认手机号');
             } else {
-                $enterprise->open_id = session('mobile.human.open_id');
-                $enterprise->save();
+                HumanEnterpriseApplyModel::create([
+                    'open_id' => session('mobile.human.open_id'),
+                    'name' => $enterprise->name,
+                    'join' => $enterprise->join,
+                    'join_mobile' => $enterprise->join_mobile,
+                    'cooperate' => $enterprise->cooperate,
+                    'status' => HumanEnterpriseApplyModel::STATUS_PASS,
+                ]);
             }
         } else {
-            $institution->open_id = session('mobile.human.open_id');
-            $institution->save();
+            HumanInstitutionApplyModel::create([
+                'open_id' => session('mobile.human.open_id'),
+                'name' => $institution->name,
+                'join' => $institution->join,
+                'join_mobile' => $institution->join_mobile,
+                'cooperate' => $institution->cooperate,
+                'status' => HumanInstitutionApplyModel::STATUS_PASS,
+            ]);
         }
 
         ajax_return();
@@ -353,6 +365,7 @@ class Human extends MobileBaseController
 
     public function seeme()
     {
+        $this->_listValidate();
         return view();
     }
 

+ 1 - 1
app/mobile/view/human/index.html

@@ -5,7 +5,7 @@
     .title {text-align: center;}
     .btn-box {width:80%;margin:0 auto;padding-top:20px;}
     .btn-box .van-button {margin-top:30px;}
-    .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;}
+    .content-box {height: 100vh;width:100vw;box-sizing: border-box;background-image: url("/static/mobile/images/bg_human.jpg?v=1");background-size:cover;background-repeat: no-repeat;}
 </style>
 {/block}
 {block name="body"}

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

@@ -67,6 +67,9 @@
                 <div class="booth" v-if="item.booth">
                     展位:{{item.booth}}
                 </div>
+                <div class="booth" v-if="!item.booth">
+                    无展位
+                </div>
             </div>
         </div>
     </van-list>

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

@@ -28,6 +28,7 @@
 <img src="/static/mobile/images/human/jinjiang1.png" @click="showImage(0)" class="company" alt="">
 <img src="/static/mobile/images/human/jinjiang2.png" @click="showImage(1)" class="company" alt="">
 <img src="/static/mobile/images/human/jinjiang3.png" @click="showImage(2)" class="company" alt="">
+<img src="/static/mobile/images/human/renzi3.png" @click="showImage(3)" class="company" alt="">
 
 {/block}
 {block name="script"}
@@ -45,6 +46,7 @@
                     '/static/mobile/images/human/jinjiang1.png',
                     '/static/mobile/images/human/jinjiang2.png',
                     '/static/mobile/images/human/jinjiang3.png',
+                    '/static/mobile/images/human/renzi3.png',
                 ],
                 startPosition: index,
             });

+ 1 - 3
app/mobile/view/human/renzi.html

@@ -30,8 +30,7 @@
 </div>
 <img src="/static/mobile/images/human/renzi1.png" @click="showImage(0)" class="company" alt="">
 <img src="/static/mobile/images/human/renzi2.png" @click="showImage(1)" class="company" alt="">
-<img src="/static/mobile/images/human/renzi3.png" @click="showImage(2)" class="company" alt="">
-<img src="/static/mobile/images/human/renzi4.png" @click="showImage(3)" class="company" alt="">
+<img src="/static/mobile/images/human/renzi4.png" @click="showImage(2)" class="company" alt="">
 <img src="/static/mobile/images/human/renzi5.png" @click="showImage(3)" class="company" alt="">
 
 {/block}
@@ -49,7 +48,6 @@
                 images:[
                     '/static/mobile/images/human/renzi1.png',
                     '/static/mobile/images/human/renzi2.png',
-                    '/static/mobile/images/human/renzi3.png',
                     '/static/mobile/images/human/renzi4.png',
                     '/static/mobile/images/human/renzi5.png',
                 ],

二進制
public/static/mobile/images/bg_human.jpg