Переглянути джерело

登录页修改+服务器配置页面

ming 2 роки тому
батько
коміт
b6a1940779
4 змінених файлів з 87 додано та 1 видалено
  1. 1 1
      src/manifest.json
  2. 6 0
      src/pages.json
  3. 11 0
      src/pages/login.vue
  4. 69 0
      src/pages/serveConfig.vue

+ 1 - 1
src/manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "智慧消防",
-    "appid" : "H5DB88130",
+    "appid" : "__UNI__36DE3A0",
     "description" : "智慧消防",
     "versionName" : "2.0",
     "versionCode" : 2,

+ 6 - 0
src/pages.json

@@ -7,6 +7,12 @@
         "navigationStyle": "custom"
       }
     },
+    {
+      "path": "pages/serveConfig",
+      "style": {
+        "navigationBarTitleText": "服务器配置"
+      }
+    },
     {
       "path": "pages/index",
       "style": {

+ 11 - 0
src/pages/login.vue

@@ -1,10 +1,13 @@
 <template>
   <view class="section">
+    <view style="position:absolute;top:10px;right:10px;z-index:99;color:#2a98ff" @tap="goSeverConfig">服务器配置</view>
+
     <view class="bg">
       <!-- <image class="bgImage" :src="bg" v-if="bg" /> -->
       <!-- <image class="bgImage" src="@/static/images/wt/bg.png" v-if="!bg" /> -->
     </view>
 
+
     <view class="middle login">
       <view class="top">
         <image class="logo" :src="logo" mode="widthFix" v-if="logo" />
@@ -77,6 +80,14 @@ const data = reactive({
 });
 
 const { title, bg, bottomTitle, logo, phone, verify, codeTime, switchText, username, password, tenantId, inputIconBool } = toRefs(data);
+
+function goSeverConfig() {
+
+    uni.navigateTo({
+          url: '/pages/serveConfig'
+    })
+
+}
 /**登录方式切换 */
 function switchMode() {
   if (switchText.value == "验证码登录") {

+ 69 - 0
src/pages/serveConfig.vue

@@ -0,0 +1,69 @@
+<template>
+  <view id="serveConfig">
+    <u--form :model="form" ref="uForm" :rules="rules" labelWidth="80">
+        <view style="padding: 10px 0">
+            <view style="padding: 10px 40px 20px 40px; background: #ffffff">
+            <view style="padding-left: 9px">
+                <u-form-item label="链接地址" prop="companyName" required :borderBottom="true">
+                    <u-input  class="configInput" v-model="form.companyName" placeholder="请输入链接地址" border="none" @click="companySubmit(form.companyName)">
+                    
+                    </u-input>
+                </u-form-item>
+            </view>
+            </view>
+        </view>
+    </u--form>
+</view>
+
+</template>
+
+<script setup>
+import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
+
+
+  const dataList = reactive({
+  form: {
+    companyName: "", //单位名称
+    // organization: "", //信用代码
+    // delegateName: "", //法人代表姓名
+    // streetTown: "", //所属街镇
+    // streetTownValue: 0, //所属街镇
+    // address: "", //详细地址
+    // fireManagePhone: "", //消防安全管理人电话
+    // foundTime: "", //单位成立时间
+    // fireDutyName: "", //消防安全责任人姓名
+    // fireManageName: "", //消防安全管理人姓名
+    // employeeNum: "", //职工人数
+    // fixedAssets: "", //固定资产(单位:万元)
+    // companyNature: "", //单位性质
+    // companyNatureValue: 0, //单位性质
+    // buildArea: "", //建筑面积
+
+    // baseBuildList: [],
+  }
+});
+const { form, baseBuildListForm, rules, baseBuildListRules, noticeBarText, pagingBool, actionTitle, actionIndex, actionsList, actionShow, showTime, timeValue, timeTitle, timeIndex, modalShow } =
+  toRefs(dataList);
+</script>
+
+<style lang="scss">
+body {
+  background: #fff;
+}
+#serveConfig{
+    background:#fff;
+    .configInput{
+        border: 1px solid gray;
+      
+    }
+    .uni-input-placeholder{
+        padding:10px;
+
+    }
+    ::v-deep .u-line{
+        display:none!important
+    }
+
+}
+
+</style>