修改心身量表选择城市的展现形式
This commit is contained in:
@@ -248,7 +248,7 @@ export default {
|
|||||||
const countryNames = this.countries.map(item => item.title);
|
const countryNames = this.countries.map(item => item.title);
|
||||||
this.multiArray[0] = countryNames;
|
this.multiArray[0] = countryNames;
|
||||||
//默认选择中国,并加载其省份
|
//默认选择中国,并加载其省份
|
||||||
if (this.countries[0].cities&&this.value[0]==0) { //如果默认显示的是第一个-中国,则显示城市列
|
if (this.countries[0].cities) { //如果默认显示的是第一个-中国,则显示城市列
|
||||||
this.multiArray[1] = Object.keys(this.countries[0].cities).map(key => this.countries[0].cities[key]);
|
this.multiArray[1] = Object.keys(this.countries[0].cities).map(key => this.countries[0].cities[key]);
|
||||||
} else {
|
} else {
|
||||||
this.multiArray[1] = [];
|
this.multiArray[1] = [];
|
||||||
@@ -489,7 +489,7 @@ export default {
|
|||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
.curseSet{margin-right: 12rpx; font-size: 28rpx; display: flex; align-items: center;}
|
.curseSet{margin-right: 18rpx; font-size: 28rpx; display: flex; align-items: center;}
|
||||||
.fixed {
|
.fixed {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1; width: 100%; background-color: #fff;
|
z-index: 1; width: 100%; background-color: #fff;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<view class="scale_des"><text style="font-weight: bold;">题目数量:</text>{{data.num}}</view>
|
<view class="scale_des"><text style="font-weight: bold;">题目数量:</text>{{data.num}}</view>
|
||||||
<view class="scale_des"><text style="font-weight: bold;">测试说明:</text>{{data.tip}}</view>
|
<view class="scale_des"><text style="font-weight: bold;">测试说明:</text>{{data.tip}}</view>
|
||||||
</view>
|
</view>
|
||||||
<u-button class="scale_btn" @click="startTest">进入测试</u-button>
|
<u-button class="scale_btn" @click="startTest">开始测试</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="scale_block" v-show="status==1">
|
<view class="scale_block" v-show="status==1">
|
||||||
<view class="test_block">
|
<view class="test_block">
|
||||||
@@ -63,6 +63,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.selectedData = uni.getStorageSync('countryData');
|
||||||
this.data = JSON.parse(uni.getStorageSync('data'));
|
this.data = JSON.parse(uni.getStorageSync('data'));
|
||||||
this.resultList = this.data.result;
|
this.resultList = this.data.result;
|
||||||
//选项
|
//选项
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ showCodeImg:false,
|
|||||||
signOut() {
|
signOut() {
|
||||||
this.signShow = false;
|
this.signShow = false;
|
||||||
this.setUserInfo({ token: null });
|
this.setUserInfo({ token: null });
|
||||||
|
uni.removeStorageSync('countryData');
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: "/pages/user/login",
|
url: "/pages/user/login",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user