Przeglądaj źródła

最新要求样式调整

htc 2 dni temu
rodzic
commit
08acbd5d36

Plik diff jest za duży
+ 5 - 5
components/CusNotice/index.vue


Plik diff jest za duży
+ 1 - 1
components/CusTeamInfoFill/index.vue


+ 3 - 2
components/CusTeamUser/index.vue

@@ -119,6 +119,7 @@
 						&.wzd{
 							background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_wzd.png') no-repeat;
 							background-size: 100% 100%;
+							color: #193D59;
 						}
 						&.yzd{
 							background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_yzd.png') no-repeat;
@@ -135,13 +136,13 @@
 						}
 						.type{
 							margin-left: 20rpx;
-							background: #F8F4F8;
+							background: #FFF7DC;
 							border-radius: 20rpx;
 							padding: 5rpx 16rpx;
 							font-family: PingFangSC, PingFang SC;
 							font-weight: 400;
 							font-size: 22rpx;
-							color: #9F6196;
+							color: #BA9B31;
 							line-height: 30rpx;
 						}
 					}

+ 3 - 3
pages/dialog.vue

@@ -60,7 +60,7 @@
 			<view class="ask">
 				<view class="a_inp">
 					<view class="ai_l">
-						<u-textarea v-model="question" placeholder="请输入的问题" autoHeight :showConfirmBar="false" :adjustPosition="false" maxlength="999999"></u-textarea>
+						<u-textarea v-model="question" placeholder="请输入的问题" autoHeight :showConfirmBar="false" :adjustPosition="false" maxlength="999999"></u-textarea>
 					</view>
 					<view class="ai_r">
 						<image @tap="sendQuestion" :src="imgBase+'dialog_send.png'"></image>
@@ -70,7 +70,7 @@
 			<view class="ask_memo">本服务为AI生成内容,结果仅供参考</view>
 		</view>
 		<u-modal :show="commentShow" title="评论" @confirm="commentConfirm" @cancel="commentCancel" @close="commentCancel" :showCancelButton="true">
-			<u-textarea v-model="content" placeholder="对于我们的回答您是否不满意,您有更好的答案建议吗?请在此输入."></u-textarea>
+			<u-textarea v-model="content" placeholder="对于我们的回答你是否不满意,你有更好的答案建议吗?请在此输入."></u-textarea>
 		</u-modal>
 	</view>
 </template>
@@ -244,7 +244,7 @@
 				return Math.min(1000 * Math.pow(2, this.currentRetry), 10000);
 			},
 			sendQuestion(){
-				if(!this.question) return this.$showToast('请输入的问题');
+				if(!this.question) return this.$showToast('请输入的问题');
 				if(!this.isLogin()) return
 				let qa = {
 					question:JSON.parse(JSON.stringify(this.question)),

+ 4 - 4
pages/home.vue

@@ -95,9 +95,9 @@
 			<view class="kr-box adffcac">
 				<image :src="imgBase+'remind_close.png'" @click="teamKindShow=false"></image>
 				<view class="kr-title">温馨提示</view>
-				<view class="kr-p" style="margin-top: 32rpx;">尚未加入<span>(问卷ID:{{87999}})</span>的团队</view>
+				<view class="kr-p" style="margin-top: 32rpx;">尚未加入<span>(问卷ID:{{87999}})</span>的团队</view>
 				<view class="kr-p">因此无法填写此问卷</view>
-				<view class="kr-p">请联系问卷创建者<span>{{'刘怡然'}}</span>将加入团队</view>
+				<view class="kr-p">请联系问卷创建者<span>{{'刘怡然'}}</span>将加入团队</view>
 				<view class="kr-btn" @click="teamKindShow=false">我知道了</view>
 			</view>
 		</view>
@@ -105,8 +105,8 @@
 			<view class="kr-box adffcac">
 				<image :src="imgBase+'remind_close.png'" @click="questionnaireKindShow=false"></image>
 				<view class="kr-title">温馨提示</view>
-				<view class="kr-p" style="margin-top: 32rpx;">有一份<span>“PERILL团队评估初级”</span>问卷待完成,请及时填写,</view>
-				<view class="kr-p">以便我们为提供精准分析</view>
+				<view class="kr-p" style="margin-top: 32rpx;">有一份<span>“PERILL团队评估初级”</span>问卷待完成,请及时填写,</view>
+				<view class="kr-p">以便我们为提供精准分析</view>
 				<view class="kr-btn" @click="handleToFill">去填写</view>
 			</view>
 		</view>

+ 6 - 5
pages/publish.vue

@@ -8,7 +8,7 @@
 					<div class="list-item-left-title">{{item.title}}</div>
 					<div class="list-item-left-type">{{typeDict[item.type]||'默认版'}}</div>
 				</div>
-				<image class="list-item-right" :src="imgBase+'publish_arrow_right.png'"></image>
+				<image class="list-item-right" :src="imgBase+'publish_arrow_right.png'" v-if="item.type<3"></image>
 			</div>
 		</div>
 		<div class="dialog adffcacjc" v-if="buyShow">
@@ -41,7 +41,7 @@
 				typeDict:{
 					1:'基础版',
 					2:'专业版',
-					3:'专家版'
+					3:'专家版,敬请期待'
 				},
 				buyShow:false,
 				buyImgList:[
@@ -64,6 +64,7 @@
 				})
 			},
 			handleTurnPage(item){
+				if(item.type==3) return this.$showToast('敬请期待专家版~')
 				this.questionnaireId = item.id;
 				this.type = item.type;
 				// this.buyShow = true;
@@ -77,7 +78,7 @@
 			handleKnow(){
 				this.noticeShow = false;
 				uni.navigateTo({
-					url:'/pagesPublish/fillTeamInfo?id='+this.questionnaireId
+					url:'/pagesPublish/fillTeamInfo?questionnaireId='+this.questionnaireId
 				})
 			}
 		}
@@ -122,14 +123,14 @@
 						white-space: nowrap;
 					}
 					&-type{
-						background: #FFEFB9;
+						background: #FFF7DC;
 						border-radius: 8rpx;
 						margin-top: 20rpx;
 						padding: 2rpx 13rpx;
 						font-family: PingFangSC, PingFang SC;
 						font-weight: 400;
 						font-size: 24rpx;
-						color: #335368;
+						color: #BA9B31;
 						line-height: 33rpx;
 						letter-spacing: 2rpx;
 						display: inline-block;

+ 4 - 4
pages/registerInfo.vue

@@ -2,17 +2,17 @@
 	<view class="default_page" :style="{'height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='创衡汇教练AI智能体' bgColor="transparent" backUrl="/pages/login"></cus-header>
 		<div class="info">
-			<div class="info-title">邀请填写以下基本信息</div>
-			<div class="info-tip">以便后续为发送问卷和报告,确保接收成功!</div>
+			<div class="info-title">邀请填写以下基本信息</div>
+			<div class="info-tip">以便后续为发送问卷和报告,确保接收成功!</div>
 			<div class="info-form">
 				<div class="info-form-item adfacjb">
-					<div class="info-form-item-left">的姓名</div>
+					<div class="info-form-item-left">的姓名</div>
 					<div class="info-form-item-right">
 						<u-input v-model="dto.realName" border="none" placeholder="请填写姓名"></u-input>
 					</div>
 				</div>
 				<div class="info-form-item adfacjb">
-					<div class="info-form-item-left">的邮箱</div>
+					<div class="info-form-item-left">的邮箱</div>
 					<div class="info-form-item-right">
 						<u-input v-model="dto.email" border="none" placeholder="请填写邮箱"></u-input>
 					</div>

+ 15 - 4
pagesHome/components/createList.vue

@@ -18,9 +18,9 @@
 						</view>
 						<view class="bottom adfacjb">
 							<view class="bottom-left">截止时间:{{item.endTime}}</view>
-							<view class="bottom-right" v-if="item.status===0">立即作答</view>
-							<view class="bottom-right" v-else-if="item.status===1">生成报告</view>
-							<view class="bottom-right" v-else-if="item.status===2">发送报告</view>
+							<view class="bottom-right" v-if="item.status===0" @click.stop="handleAnswer(item)">立即作答</view>
+							<view class="bottom-right" v-else-if="item.status===1" @click.stop="createReport(item)">生成报告</view>
+							<view class="bottom-right" v-else-if="item.status===2" @click.stop="sendReport(item)">发送报告</view>
 						</view>
 					</view>
 				</up-list-item>
@@ -180,7 +180,18 @@
 			},
 			handleConfirm(){
 				this.teamInfoShow = false;
-			}
+			},
+			handleAnswer(item){
+				uni.navigateTo({
+					url:'/pagesPublish/questionnaireFill?questionnaireId='+item.questionnaireId
+				})
+			},
+			createReport(item){
+				
+			},
+			sendReport(item){
+				
+			},
 		}
 	}
 </script>

+ 3 - 0
pagesHome/components/receiveList.vue

@@ -193,6 +193,9 @@ The following statements in the assessment describe the ideal state of a team. P
 					&.dwc{
 						background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_dwc.png') no-repeat;
 						background-size: 100% 100%;
+						text{
+							color: #193D59;
+						}
 					}
 					&.ywc{
 						background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/questionnaire_ywc.png') no-repeat;

+ 21 - 42
pagesHome/questionnaire.vue

@@ -33,58 +33,37 @@
 			return {
 				tindex:0,
 				keyword:'',
-				receiveList:[
-					{
-						status:0,
-						title:'GW+MC PREILL36测评题库版本',
-						teamName:'甜梦巧克力有限公司',
-						endTime:'2025-05-28 24:00:00'
-					},
-					{
-						status:1,
-						title:'GW+MC PREILL36测评题库版本',
-						teamName:'甜梦巧克力有限公司',
-						endTime:'2025-05-28 24:00:00'
-					},
-				],
-				createList:[
-					{
-						status:0,
-						title:'GW+MC PREILL36测评题库版本',
-						teamName:'甜梦巧克力有限公司',
-						yzdNum:0,
-						sum:1,
-						endTime:'2025-05-28 24:00:00'
-					},
-					{
-						status:1,
-						title:'GW+MC PREILL36测评题库版本',
-						teamName:'甜梦巧克力有限公司',
-						yzdNum:5,
-						sum:15,
-						endTime:'2025-05-28 24:00:00'
-					},
-					{
-						status:2,
-						title:'GW+MC PREILL36测评题库版本',
-						teamName:'甜梦巧克力有限公司',
-						yzdNum:15,
-						sum:15,
-						endTime:'2025-05-28 24:00:00'
-					},
-				],
+				receiveList:[],
+				createList:[],
 				teamUserShow:false,
 			}
 		},
+		onLoad() {
+			this.getReceiveList();
+		},
 		methods:{
 			changeTab(index){
+				if(this.tindex===index) return
 				this.tindex = index;
+				if(index===0){
+					this.receiveList = [];
+					this.getReceiveList();
+				}else if(index===1){
+					this.createList = [];
+					this.getCreateList();
+				}
 			},
 			getReceiveList(){
-				
+				this.$api.get('/core/teammember/que/listByUser',{queType:1,teamName:this.keyword}).then(({data:res})=>{
+					if(res.code!==0) return this.$showToast(res.msg)
+					this.receiveList = res.data
+				})
 			},
 			getCreateList(){
-				
+				this.$api.get('/core/teammember/que/listByUser',{queType:0,teamName:this.keyword}).then(({data:res})=>{
+					if(res.code!==0) return this.$showToast(res.msg)
+					this.createList = res.data
+				})
 			},
 			receiveScrolltolower(){
 				console.log(1);

+ 4 - 2
pagesPublish/fillTeamInfo.vue

@@ -18,19 +18,21 @@
 		},
 		onLoad(options) {
 			this.type = options.type||''
-			this.questionnaireId = options.id||''
+			this.questionnaireId = options.questionnaireId||''
 			this.confirmText = options.type?'确定':'下一步'
 		},
 		methods:{
 			handleConfirm(team){
 				if(!this.type){
 					team.questionnaireId = this.questionnaireId;
+					team.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
 					this.$api.post('/core/user/team',team).then(({data:res})=>{
 						if(res.code!==0) return this.$showToast(res.msg)
 						this.$showToast('保存成功,即将填写问卷')
 						setTimeout(()=>{
+							uni.removeStorageSync('newUser')
 							uni.navigateTo({
-								url:'/pagesPublish/questionnaireFill'
+								url:'/pagesPublish/questionnaireFill?questionnaireId='+this.questionnaireId
 							})	
 						},1500)
 					})			

+ 2 - 0
pagesPublish/questionnaireFill.vue

@@ -52,6 +52,7 @@
 		data(){
 			return {
 				type:'',
+				questionnaireId:'',
 				noticeShow:false,
 				noticeContent:`问卷答题说明<br/><br/>问卷答题说明<br/><br/>问卷答题说明<br/><br/>问卷答题说明`,
 				teamShow:false,
@@ -101,6 +102,7 @@
 		},
 		onLoad(options) {
 			this.type = options.type;
+			this.questionnaireId = options.questionnaireId;
 		},
 		methods:{
 			confirmSubmit(){

+ 1 - 1
pagesPublish/questionnaireResult.vue

@@ -3,7 +3,7 @@
 		<cus-header title='问卷结果'></cus-header>
 		<image :src="imgBase+'pay_success.png'"></image>
 		<view class="title">问卷提交成功</view>
-		<view class="tip">正在为生成报告,预计生成时间<span>7~10分钟</span>~<br/>稍后可去报告管理中查看评估报告结果</view>
+		<view class="tip">正在为生成报告,预计生成时间<span>7~10分钟</span>~<br/>稍后可去报告管理中查看评估报告结果</view>
 		<view class="btn" @click="reviewReport">查看报告</view>
 		<view class="btn back" @click="returnHome">返回首页</view>
 	</view>

+ 1 - 1
pagesPublish/submitResult.vue

@@ -3,7 +3,7 @@
 		<cus-header title='提交问卷' bgColor="transparent"></cus-header>
 		<image :src="imgBase+'pay_success.png'"></image>
 		<view class="title">提交成功</view>
-		<view class="tip">感谢的积极参与,待所有团队成员完成作答后,将由教练统一生成,报告生成后,系统会发送给。</view>
+		<view class="tip">感谢的积极参与,待所有团队成员完成作答后,将由教练统一生成,报告生成后,系统会发送给。</view>
 		<view class="btn" @click="returnHome">返回首页</view>
 	</view>
 </template>