|
@@ -4,12 +4,12 @@
|
|
|
<u-list :scrollable="false" height="500px">
|
|
|
<u-list-item v-for="(item, index) in roles" :key="index" >
|
|
|
<!-- <u-button class="custom-style" size="lager" type="primary" shape="circle" :text="`我是${item.roleName}`" @click="choose(item.id)"></u-button> -->
|
|
|
- <u-button :class="index==current?'active-custom-style':'custom-style'" size="lager" type="primary" shape="circle" @click="choose(item)">
|
|
|
+ <u-button :class="item.id==current?'active-custom-style':'custom-style'" size="lager" type="primary" shape="circle" @click="choose(item)">
|
|
|
<text>我是{{item.roleName}}</text>
|
|
|
</u-button>
|
|
|
</u-list-item>
|
|
|
</u-list>
|
|
|
- <u-button type="error" shape="circle" text="下一步" @click="next()"></u-button>
|
|
|
+ <!-- <u-button type="error" shape="circle" text="下一步" @click="next()"></u-button> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -26,12 +26,15 @@
|
|
|
},
|
|
|
methods: {
|
|
|
choose(data) {
|
|
|
- for (let i = 0; i <= this.roles.length; i++) {
|
|
|
+ for (let i = 0; i < this.roles.length; i++) {
|
|
|
if (this.roles[i].roleName == data.roleName) {
|
|
|
- this.current = i+1;
|
|
|
+ this.current = data.id;
|
|
|
}
|
|
|
}
|
|
|
- this.isNext = true
|
|
|
+ var that = this
|
|
|
+ setTimeout(function() {
|
|
|
+ that.$common.to('/pages/login/register?type='+this.current);
|
|
|
+ }, 1000)
|
|
|
},
|
|
|
getList(){
|
|
|
this.$api.getIdentifyList().then(res => {
|