htc 19 ore fa
parent
commit
053595baf3
3 ha cambiato i file con 96 aggiunte e 47 eliminazioni
  1. 25 6
      components/CusTeamInfoFill/index.vue
  2. 70 19
      pages/login.vue
  3. 1 22
      pagesMy/userInfo.vue

+ 25 - 6
components/CusTeamInfoFill/index.vue

@@ -2,19 +2,19 @@
 	<view class="ti_page">
 		<view class="form">
 			<view class="form-item adfacjb">
-				<view class="form-item-title">团队名称</view>
+				<view class="form-item-title red">团队名称</view>
 				<view class="form-item-inp">
 					<u-input v-model="teamInfo.teamName" placeholder="请输入团队名称" placeholder-style="color:#B3BFC8;" border="none" inputAlign="right" fontSize="30rpx" color="#667E90"/>
 				</view>
 			</view>
 			<view class="form-item adfacjb">
-				<view class="form-item-title">所在公司</view>
+				<view class="form-item-title red">所在公司</view>
 				<view class="form-item-inp">
 					<u-input v-model="teamInfo.enterpriseName" placeholder="请输入公司名称" placeholder-style="color:#B3BFC8;" border="none" inputAlign="right" fontSize="30rpx" color="#667E90"/>
 				</view>
 			</view>
 			<view class="form-item adfacjb">
-				<view class="form-item-title">所属地区</view>
+				<view class="form-item-title red">所属地区</view>
 				<view class="form-item-inp adfac" @click="pickerShow('areaShow')">
 					<text :class="{'active':areaText!=='请选择'}">{{areaText}}</text>
 					<u-icon name="arrow-right" size="24rpx" color="#B9C0C8"></u-icon>
@@ -42,14 +42,14 @@
 				</view>
 			</view>
 			<view class="form-item adfacjb">
-				<view class="form-item-title">团队规模</view>
+				<view class="form-item-title red">团队规模</view>
 				<view class="form-item-inp adfac" @click="selectShow('teamScaleShow')">
 					<text :class="{'active':teamScaleText!=='请选择'}">{{teamScaleText}}</text>
 					<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
 				</view>
 			</view>
 			<view class="form-item adfacjb">
-				<view class="form-item-title">团队层级</view>
+				<view class="form-item-title red">团队层级</view>
 				<view class="form-item-inp adfac" @click="selectShow('teamLevelShow')">
 					<text :class="{'active':teamLevelText!=='请选择'}">{{teamLevelText}}</text>
 					<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
@@ -57,7 +57,7 @@
 			</view>
 		</view>
 		<view class="box">
-			<view class="box-title">团队简介</view>
+			<view class="box-title red">团队简介</view>
 			<view class="box-textarea">
 				<u-textarea border="none" height="320rpx" maxlength="-1" style="color: #667E90;padding: 0;" :placeholderStyle="{'color':'#B3BFC8','font-size':'30rpx','line-height':'40rpx'}" 
 				v-model="teamInfo.brief" placeholder="示例:这是一个为公司ERP系统升级而组建的36人团队,成员由公司副总经理、各部门总监以及各部门核心骨干组成。团队成员工作地点分布在香港、上海、苏州、深圳和东莞等地。团队成员年龄在35-50岁之间,男女比例比较均衡,大部份成员在该公司同事超过十年。"></u-textarea>
@@ -190,9 +190,15 @@
 				this[key3] = false;
 			},
 			handleConfirm(){
+				if(!this.teamInfo.teamName) return this.$showToast('请输入团队名称')
+				if(!this.teamInfo.enterpriseName) return this.$showToast('请输入公司名称')
+				if(!this.teamInfo.districtId) return this.$showToast('请选择所属地区')
 				if(!this.teamInfo.industryId) return this.$showToast('请选择所属行业')
 				if(this.teamInfo.functionIds.length===0) return this.$showToast('请选择团队职能类型')
 				if(this.teamInfo.orgIds.length===0) return this.$showToast('请选择团队架构类型')
+				if(!this.teamInfo.scale) return this.$showToast('请选择团队规模')
+				if(!this.teamInfo.hierarchy) return this.$showToast('请选择团队层级')
+				if(!this.teamInfo.brief) return this.$showToast('请输入团队简介')
 				
 				this.$emit('handleConfirm',this.teamInfo)
 			},
@@ -288,6 +294,19 @@
 				font-size: 30rpx;
 				color: #002846;
 				line-height: 42rpx;
+				position: relative;
+				&.red{
+					&::after{
+						content: "*";
+						font-family: PingFangSC, PingFang SC;
+						font-weight: 400;
+						font-size: 30rpx;
+						color: #FD4F66;
+						line-height: 42rpx;
+						position: absolute;
+						left: -16rpx;
+					}
+				}
 			}
 		}
 		

+ 70 - 19
pages/login.vue

@@ -30,14 +30,24 @@
 				</view>
 			</view>
 		</view>
-		<u-popup :show="show" @close="cancel" mode="center" :round="20">
+		<u-popup :show="show" @close="cancel" mode="bottom" :round="20">
 			<view class="code">
-				<p>授权码登录</p>
-				<u-input v-model="phone" placeholder="请输入手机号"></u-input>
-				<view style="margin-top: 20rpx;"></view>
-				<u-input v-model="code" placeholder="请输入授权码"></u-input>
-				<view class="cbtns adfacjb">
-					<view class="zt_btn" @tap="toCodeLogin">登录</view>
+				<image :src="imgBase+'code_top_bg.png'"></image>
+				<view class="code-box">
+					<p>授权码登录</p>
+					<view class="code-box-inp adfacjb" style="margin-top: 64rpx;">
+						<view class="code-box-inp-left">手机号码</view>
+						<view class="code-box-inp-right">
+							<u-input v-model="phone" inputAlign="right" fontSize="30rpx" color="#667E90" border="none" placeholder-style="color:#B3BFC8;font-size:28rpx;" placeholder="请输入手机号"></u-input>
+						</view>
+					</view>
+					<view class="code-box-inp adfacjb">
+						<view class="code-box-inp-left">授权码</view>
+						<view class="code-box-inp-right">
+							<u-input v-model="code" inputAlign="right" fontSize="30rpx" color="#667E90" border="none" placeholder-style="color:#B3BFC8;font-size:28rpx;" placeholder="请输入授权码"></u-input>
+						</view>
+					</view>
+					<view class="zt_btn" @tap="toCodeLogin">立即登录</view>
 					<view class="qx_btn" @tap="cancel">取消</view>
 				</view>
 			</view>
@@ -286,22 +296,63 @@
 	}
 	
 	.code{
-		width: 700rpx;
-		padding: 40rpx 60rpx 40rpx;
-		border-radius: 32rpx 32rpx 0 0;
+		width: 100%;
+		padding: 48rpx 30rpx 88rpx;
 		box-sizing: border-box;
-		p{
-			font-size: 40rpx;
-			font-weight: bold;
-			margin-bottom: 50rpx;
+		border-radius: 32rpx 32rpx 0 0;
+		position: relative;
+		&>image{
+			width: 100%;
+			height: 514rpx;
+			border-radius: 32rpx 32rpx 0 0;
+			position: absolute;
+			left: 0;
+			top: 0;
 		}
-		.cbtns{
-			margin-top: 50rpx;
-			&>view{
-				width: calc(50% - 20rpx);
+		.code-box{
+			position: relative;
+			p{
+				font-family: PingFang-SC, PingFang-SC;
+				font-weight: bold;
+				font-size: 36rpx;
+				color: #002846;
+				line-height: 36rpx;
+				text-align: center;
+			}
+			&-inp{
+				width: 100%;
+				height: 120rpx;
+				background: #FFFFFF;
+				border-radius: 24rpx;
+				padding: 0 24rpx;
+				box-sizing: border-box;
+				margin-top: 20rpx;
+				&-left{
+					width: 130rpx;
+					font-family: PingFang-SC, PingFang-SC;
+					font-weight: bold;
+					font-size: 30rpx;
+					color: #002846;
+					line-height: 42rpx;
+				}
+				&-right{
+					width: calc(100% - 130rpx);
+					
+				}
+			}
+			
+			.zt_btn{
+				margin-top: 149rpx;
+				font-size: 32rpx;
+				letter-spacing: 2rpx
 			}
 			.qx_btn{
-				background: #f1f1f1;
+				margin-top: 40rpx;
+				background: #FFFFFF;
+				border: 1rpx solid #E0E4E7;
+				color: #002846;
+				font-size: 32rpx;
+				letter-spacing: 2rpx;
 			}
 		}
 	}

+ 1 - 22
pagesMy/userInfo.vue

@@ -67,12 +67,10 @@
 			},
 			changeAvatar(){
 				uni.showActionSheet({
-					itemList: ['从手机相册选择', '获取微信头像'],
+					itemList: ['从手机相册选择'],
 					success: (res) => {
 					  if (res.tapIndex === 0) { // 从手机相册选择
 						this.chooseLocalImage();
-					  } else if (res.tapIndex === 1) { // 获取微信头像
-						this.getWeChatProfile(false, true); // 只获取头像
 					  }
 					}
 				});
@@ -113,25 +111,6 @@
 				}
 			  });
 			},
-			// 获取微信用户头像和/或昵称
-			// @param {boolean} getNameOnly 是否只获取昵称
-			// @param {boolean} getAvatarOnly 是否只获取头像
-			async getWeChatProfile(getNameOnly = false, getAvatarOnly = false) {
-			  uni.getUserProfile({
-				desc: '用于完善您的个人资料展示', // 声明获取用户个人信息后的用途,必填
-				success: (res) => {
-				  console.log('获取微信用户信息成功:', res.userInfo);
-				  if (res.userInfo) {
-					if (getAvatarOnly) { // 只获取头像
-					  this.userInfo.headUrl = res.userInfo.avatarUrl;
-					}
-				  }
-				},
-				fail: (err) => {
-				  console.error('获取微信用户信息失败:', err);
-				}
-			  });
-			},
 			handleSave(){
 				if(!this.userInfo.headUrl) return this.$showToast('请上传头像');
 				if(!this.userInfo.realName) return this.$showToast('请输入姓名');