南骏 池
2025-02-07 da82bc7c0a078eccbc45f4e25a697a5622a46fee
1.登录页优化调整,去除软键盘
已修改4个文件
34 ■■■■ 文件已修改
H5/Js/UserLogin.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Mst.master 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Scripts/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserLogin.aspx 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/UserLogin.js
@@ -16,6 +16,8 @@
            that.phone = Cookies.get('phone');
            that.passwd = Cookies.get('passwd');
        }
        that.phone = "admin";
        that.passwd = "123456";
    },
    methods: {
        onSubmit(name) {
@@ -25,8 +27,6 @@
        _userLogin() {
            var that = this;
            that.isLoading = true;
            that.phone = "admin";
            that.passwd = "123456";
            that.AxiosHttp("post", 'login/login', {
                userID: that.phone,
                userPass: that.passwd,
Mst.master
@@ -11,7 +11,7 @@
    <script src="/Scripts/vue.min.js"></script>
    <script src="/Scripts/js.cookie.min.js"></script>
    <script src="/scripts/axios0.25.0.js"></script>
    <script src="/scripts/config.js?<%=1121111122211 %>"></script>
    <script src="/scripts/config.js?<%=345 %>"></script>
    <link href="/scripts/vant/vant.css" rel="stylesheet" />
    <script src="/scripts/vant/vant.js"></script>
    <link href="/Images/Style.css?<%=1 %>" rel="stylesheet" />
Scripts/config.js
@@ -1,5 +1,5 @@
//var APIURL = "http://192.168.1.145:83/api/";
var APIURL = "http://localhost:55640/api/";
var APIURL = "http://localhost:5204/api/";
var APIURL_PC = "http://192.168.1.145:81/api/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {
UserLogin.aspx
@@ -24,19 +24,17 @@
                  v-model="phone"
                  name="phone"
                  label=""
                  readonly
                  clickable
                  placeholder="请输入账号" @touchstart.native.stop="show=true;"
                  placeholder="请输入账号"
                  :rules="[{ required: true, message: '请输入账号' }]"
                ></van-field>
                <van-field
                  readonly
                 clickable
                  v-model="passwd"
                  type="password"
                  name="password"
                  label=""
                  placeholder="请输入密码" @touchstart.native.stop="show2 = true;"
                  placeholder="请输入密码"
                  :rules="[{ required: true, message: '请输入密码' }]"
                ></van-field>
             </van-cell-group>
@@ -53,24 +51,8 @@
</template>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
   <van-number-keyboard
     v-model="phone"
     :show="show"
      theme="custom"
      extra-key="."
      close-button-text="完成"
      @blur="show =false;show2 =false;"
    ></van-number-keyboard>
     <van-number-keyboard
   v-model="passwd"
   :show="show2"
    theme="custom"
    extra-key="."
    close-button-text="完成"
    @blur="show2 =false;show =false;"
  ></van-number-keyboard>
     <comloading  v-if="isLoading"></comloading>
  <comloading  v-if="isLoading"></comloading>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" runat="Server">
    <script src="/H5/Js/UserLogin.js?<%=1234561111111111 %>"></script>
    <script src="/H5/Js/UserLogin.js?<%=123 %>"></script>
</asp:Content>