chenhao 4 years ago
parent
commit
61cb09a38c

+ 2 - 1
application/admin/controller/Uuser.php

@@ -139,7 +139,8 @@ class Uuser extends Controller
             $data['username'] = $post['username'];
             $data['mobile'] = $post['mobile'];
             $data['avatar'] = $post['avatar'];
-            $data['content'] = $post['content'];
+            if (isset($post['address'])) $data['address'] = $post['address'];
+
 
             $upd = Db::name('user')->where('id',$post['id'])->update($data);
 

+ 10 - 0
application/admin/view/uuser/edits.html

@@ -25,6 +25,16 @@
             </label>
             <p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
         </div>
+        {if $vo.level == 0}
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">地址</span>
+                <span class="color-desc margin-left-5">Address</span>
+                <input type="text"  name="address" value='{$vo.address|default=""}'  placeholder="地址" class="layui-input">
+            </label>
+            <p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
+        </div>
+        {/if}
         <div class="layui-form-item">
             <label class="relative block">
                 <span class="color-green font-w7">新的登录密码</span>

BIN
public/upload/947de404d53e7dd3/71906c711a0b8ff6.jpg