linwu 1 vuosi sitten
vanhempi
commit
70767df7da

+ 2 - 2
app/mobile/controller/Ejobs.php

@@ -44,8 +44,8 @@ class Ejobs extends EmpBaseController
             $post['workerid']   = $this->worker->id;
             $post['priority']   = 0;
             $post['province']   = '福建省';
-            $item['city']       = '福州市';
-            $item['district']   = '马尾区';
+            $post['city']       = '福州市';
+            $post['district']   = '马尾区';
             $post['bwagall']    = $post['zwagall'];
             $post['emp_time']   = [];
             $post['createtime'] = time();

+ 3 - 3
app/mobile/controller/Login.php

@@ -276,7 +276,7 @@ class Login
         $user_id = get_user_id();
         $worker  = WorkerModel::field(['id', 'realname', 'mobile', 'address', 'title', 'details', 'picone', 'remark', 'status'])->where('userid', $user_id)->find();
         if (empty($worker)) {
-            $worker = json_encode(['id' => 0, 'wtype' => '', 'realname' => '', 'mobile' => '', 'address' => '', 'title' => '', 'details' => '', 'picone' => '', 'remark' => '']);
+            $worker = json_encode(['id' => 0, 'wtype' => '1', 'realname' => '', 'mobile' => '', 'address' => '', 'title' => '', 'details' => '', 'picone' => '', 'remark' => '']);
         } else {
             if ($worker->status == 1) {
                 return $this->_jump('等待管理员审核', url('/login/setType') . '?type=1');
@@ -302,8 +302,8 @@ class Login
             $data['userid']     = $user_id;
             $data['ftitle']     = $data['title'];
             $data['province']   = '福建省';
-            $item['city']       = '福州市';
-            $item['district']   = '马尾区';
+            $data['city']       = '福州市';
+            $data['district']   = '马尾区';
             $data['createitme'] = time();
             if ($data['wtype'] == 1) {
                 $data['title'] = $data['ftitle'] = $data['realname'];

+ 6 - 4
app/mobile/view/login/emp_register.html

@@ -4,7 +4,7 @@
         .van-nav-bar__text, .van-nav-bar .van-icon{color:white;}
         .uploader-box{
             width:120px;
-            height:120px;
+            min-height:120px;
             margin:0 auto;
         }
     </style>
@@ -37,8 +37,10 @@
 <van-field v-model="form.address" required label="地址" placeholder="请输入地址"></van-field>
 </van-cell-group>
 <van-cell-group style="margin-top:10px;">
-    <van-field v-model="form.title" label="公司名称" placeholder="请输入公司名称"></van-field>
+    <van-field required v-model="form.title" v-show="form.wtype == 2" label="公司名称" placeholder="请输入公司名称"></van-field>
     <van-field
+            required
+            v-show="form.wtype == 2"
             v-model="form.details"
             rows="1"
             autosize
@@ -47,8 +49,8 @@
             placeholder="请输入公司介绍"
     ></van-field>
 </van-cell-group>
-<van-cell-group style="margin-top:10px;">
-    <van-field label="营业执照" readonly></van-field>
+<van-cell-group v-show="form.wtype == 2" style="margin-top:10px;">
+    <van-field label="营业执照" required readonly></van-field>
     <div class="uploader-box">
         <van-uploader :max-count="1" :after-read="uploadPic">
             <van-image style="width:80%;display:block;margin:20px auto 0 auto;" :src="pic_image"></van-image>