|
|
|
@ -1,22 +1,22 @@ |
|
|
|
<template> |
|
|
|
<view class="role-container"> |
|
|
|
<view class="wrap"> |
|
|
|
<view class="stabar"></view> |
|
|
|
<view class="secbar"> <label class="back" @click="back()"></label></view> |
|
|
|
<view class="secbar"> <span class="back" @click="back()"></span></view> |
|
|
|
<view class="mainwrap3"> |
|
|
|
<img src="/static/images/bg_role.jpg" alt=""/> |
|
|
|
<view class="role_wrap"> |
|
|
|
<view class="contit">请选择您在“<font style="color:#fd6d1f;">{{sceneName}}</font>”演练中的角色:</view> |
|
|
|
<view class="<strong>contit</strong>">请选择您在“<font style="color:#fd6d1f;">{{sceneName}}</font>”演练中的角色:</view> |
|
|
|
<view class="role_box"> |
|
|
|
<block class="role-item" v-for="(item,i) in roleList" :key="i"> |
|
|
|
<span :class="item.choose === 'true' ? 'change_color':''" @click="chooseRole(item)">{{item.name}}</span> |
|
|
|
<!-- <span class="spanitem" @click="chooseRole(item)">{{item.name}}</span> --> |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
<!-- <view class="more_role" @click="showMoreRole()"><a>更多角色</a></view> --> |
|
|
|
<view class="more_role" @click="showMoreRole()"><a>更多角色</a></view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view :class="practice"><image src="/static/images/btn_start.png" @click="startPractice()"></image><a>开始演练</a></view> |
|
|
|
<view class="startbtn"><image src="/static/images/btn_start.png" @click="startPractice()"></image><a>开始演练</a></view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="cnote">题目来源:深圳市******有限公司</view> |
|
|
|
@ -70,8 +70,7 @@ |
|
|
|
sceneName:"", |
|
|
|
roleId:"", |
|
|
|
roleList:[], |
|
|
|
practice:"startbtn" |
|
|
|
|
|
|
|
practice:false |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
@ -100,12 +99,10 @@ |
|
|
|
if (item.choose === "true") { |
|
|
|
this.$set(item, 'choose', 'false') |
|
|
|
this.roleId = '' |
|
|
|
this.practice = 'startbtn' |
|
|
|
} else if(item.choose === "false"){ |
|
|
|
this.roleList.forEach(item=>{this.$set(item, 'choose', 'false')}) |
|
|
|
this.$set(item, 'choose', 'true') |
|
|
|
this.roleId = item.guid |
|
|
|
this.practice = 'startbtn.active' |
|
|
|
} |
|
|
|
}, |
|
|
|
startPractice(item) { |
|
|
|
@ -114,7 +111,7 @@ |
|
|
|
} |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/subpkg/practice/practice?roleId='+this.roleId |
|
|
|
// url: '/subpkg/respractice/respractice?roleId='+this.roleId |
|
|
|
//url: '/subpkg/practice/respractice?roleId='+this.roleId |
|
|
|
}) |
|
|
|
}, |
|
|
|
back(){ |
|
|
|
@ -132,9 +129,17 @@ |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.secbar { |
|
|
|
top: 0; |
|
|
|
z-index: 1; |
|
|
|
} |
|
|
|
.secbar ._span.back { |
|
|
|
top: 50px; |
|
|
|
} |
|
|
|
.mainwrap3 { |
|
|
|
top: 90rpx; |
|
|
|
top: 0; |
|
|
|
height: calc(100% - 70px); |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.mainwrap3 > img { |
|
|
|
@ -150,10 +155,6 @@ |
|
|
|
width: 94%; |
|
|
|
} |
|
|
|
|
|
|
|
.contit { |
|
|
|
margin: 3% 0; |
|
|
|
} |
|
|
|
|
|
|
|
.role_box { |
|
|
|
margin: 1% 0 2% 4%; |
|
|
|
width: 96%; |
|
|
|
@ -308,8 +309,7 @@ |
|
|
|
letter-spacing: 2px; |
|
|
|
} |
|
|
|
.change_color{ |
|
|
|
background: #1367fe; |
|
|
|
color: #fff !important; |
|
|
|
background:rgba(138, 162, 254, 1.0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|