修改心身量表选择城市的展现形式
This commit is contained in:
@@ -248,7 +248,7 @@ export default {
|
||||
const countryNames = this.countries.map(item => item.title);
|
||||
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]);
|
||||
} else {
|
||||
this.multiArray[1] = [];
|
||||
@@ -489,7 +489,7 @@ export default {
|
||||
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 {
|
||||
position: fixed;
|
||||
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.tip}}</view>
|
||||
</view>
|
||||
<u-button class="scale_btn" @click="startTest">进入测试</u-button>
|
||||
<u-button class="scale_btn" @click="startTest">开始测试</u-button>
|
||||
</view>
|
||||
<view class="scale_block" v-show="status==1">
|
||||
<view class="test_block">
|
||||
@@ -63,6 +63,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.selectedData = uni.getStorageSync('countryData');
|
||||
this.data = JSON.parse(uni.getStorageSync('data'));
|
||||
this.resultList = this.data.result;
|
||||
//选项
|
||||
|
||||
@@ -155,6 +155,7 @@ showCodeImg:false,
|
||||
signOut() {
|
||||
this.signShow = false;
|
||||
this.setUserInfo({ token: null });
|
||||
uni.removeStorageSync('countryData');
|
||||
uni.redirectTo({
|
||||
url: "/pages/user/login",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user