王飞
2025-01-23 76459cbad8d071085ea0e719e2c1bbfe73895f05
pages/index/person.vue
@@ -15,6 +15,7 @@
            </view>
            <view class="userinfo-value-box">
               <view class="user-nickname">{{ vuex_is_login ? vuex_user :'昵称' }}</view>
               <view class="user-nickname">{{ vuex_is_login ? company :'昵称' }}</view>
               <!-- <view class="user-company">{{ vuex_is_login ? usercode :'暂未登录' }}</view> -->
            </view>
         </view>
@@ -56,8 +57,8 @@
                  </uni-grid-item>
               </view>
            </uni-grid>
            <view v-else style="background-color: #ffffff; margin-top: 30px;margin-bottom: 120px;"></view>
            <u--form style="width: 80%; position: absolute;bottom: 60px;" labelPosition="left" :model="model2"
             <view v-else style="background-color: #ffffff; margin-top: 30px;margin-bottom: 30px;"></view>
            <!--<u--form style="width: 80%; position: absolute;bottom: 60px;" labelPosition="left" :model="model2"
               :rules="rules2" ref="uForm">
               <u-form-item required label="手机号:" prop="userInfo.phone" borderBottom ref="item1" labelWidth="60px">
                  <u--input v-model="model2.userInfo.phone" border="none" placeholder="请输入电话"></u--input>
@@ -68,7 +69,7 @@
                  <u-code :seconds="seconds" ref="uCode" @change="codeChange"></u-code>
                  <u-button slot="right" type="primary" size="small" @tap="getCode2">{{tips}}</u-button>
               </u-form-item>
            </u--form>
            </u--form> -->
         </u-modal>
         <u-modal buttonReverse confirmText="保存" :show="showinfo" :title="titleinfo" @cancel="cancelinfo"
            @confirm="confirminfo" ref="uModal" :showCancelButton="true">
@@ -185,7 +186,7 @@
            tag: '',
            value: 0,
            guizi: [],
            appversion: 'v1.0.6',
            appversion: 'v1.0.7',
            downloadUrl: '',
            text1: [],
            isguizi: false,
@@ -695,17 +696,17 @@
         },
         cancelfaka() {
            if (this.model2.userInfo.phone == '' || this.model2.userInfo.yzm == '') {
               this.$refs.refSuccess.showBox({
                  type: 'error',
                  txt: '请先输入手机号和验证码'
               });
            } else if (this.model2.userInfo.yzm != this.yzm) {
               this.$refs.refSuccess.showBox({
                  type: 'error',
                  txt: '验证码有误'
               });
            } else
            // if (this.model2.userInfo.phone == '' || this.model2.userInfo.yzm == '') {
            //    this.$refs.refSuccess.showBox({
            //       type: 'error',
            //       txt: '请先输入手机号和验证码'
            //    });
            // } else if (this.model2.userInfo.yzm != this.yzm) {
            //    this.$refs.refSuccess.showBox({
            //       type: 'error',
            //       txt: '验证码有误'
            //    });
            // } else
            if (this.isguizi == false) {
               this.$refs.refSuccess.showBox({
                  type: 'error',
@@ -774,17 +775,17 @@
            }
         },
         confirmfaka() {
            if (this.model2.userInfo.phone == '' || this.model2.userInfo.yzm == '') {
               this.$refs.refSuccess.showBox({
                  type: 'error',
                  txt: '请先输入手机号和验证码'
               });
            } else if (this.model2.userInfo.yzm != this.yzm) {
               this.$refs.refSuccess.showBox({
                  type: 'error',
                  txt: '验证码有误'
               });
            } else
            // if (this.model2.userInfo.phone == '' || this.model2.userInfo.yzm == '') {
            //    this.$refs.refSuccess.showBox({
            //       type: 'error',
            //       txt: '请先输入手机号和验证码'
            //    });
            // } else if (this.model2.userInfo.yzm != this.yzm) {
            //    this.$refs.refSuccess.showBox({
            //       type: 'error',
            //       txt: '验证码有误'
            //    });
            // } else
            if (this.checked == false) {
               this.$refs.refSuccess.showBox({
                  type: 'error',
@@ -824,7 +825,7 @@
                  //    'content-type': contentType,
                  // },
                  timeout: 5000, //设置超时时间,默认5秒
                  success: (rep) => { //具体捕获请看自己接口返回的形式
                  success: (rep) => { //具体捕获请看自己接口返回的形式
                     console.log(rep);
                     if (rep.data > 0) {
                        const params = {