|
@@ -12,9 +12,8 @@
|
|
|
{{item.description}}
|
|
|
</view>
|
|
|
<view class="text-right flex-1" v-if="item.type == 'radio' || item.type == 'select'">
|
|
|
- <text class="muted">{{info[item.name]}}</text>
|
|
|
- <u-icon name="arrow-right" size="28" color="#B8B8B8"
|
|
|
- :label="info[item.name]!= undefined ? '' :'请选择'" label-pos="left"></u-icon>
|
|
|
+ <text class="muted">{{item.value[info[item.name]]}}</text>
|
|
|
+ <u-icon name="arrow-right" size="28" color="#B8B8B8"></u-icon>
|
|
|
<u-picker v-model="show[item.name]" mode="selector" :range="item.value"
|
|
|
@confirm="pickerConfirm(index, $event)" @cancel="pickerCancel(index)"></u-picker>
|
|
|
</view>
|
|
@@ -116,7 +115,7 @@
|
|
|
},
|
|
|
pickerConfirm(index, obj) {
|
|
|
let item = this.surveyList[index]
|
|
|
- this.info[item.name] = item.value[obj[0]]
|
|
|
+ this.info[item.name] = obj[0]
|
|
|
this.show[item.name] = false
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
@@ -140,7 +139,7 @@
|
|
|
// this.show[item.name] = false;
|
|
|
//初始化radio的info
|
|
|
if (item.type == 'radio' || item.type == 'select') {
|
|
|
- this.info[item.name] = item.value[0]
|
|
|
+ this.info[item.name] = 0
|
|
|
}
|
|
|
//初始化模糊搜索框
|
|
|
if (item.type == 'text') {
|
|
@@ -332,7 +331,7 @@
|
|
|
width: 700rpx;
|
|
|
|
|
|
.select_modal {
|
|
|
- height: 100%;
|
|
|
+ height: 300px;
|
|
|
}
|
|
|
.select_content_li {
|
|
|
text-align: left !important;
|
|
@@ -342,5 +341,28 @@
|
|
|
line-height: normal !important;
|
|
|
margin-bottom: 16rpx !important;
|
|
|
}
|
|
|
+
|
|
|
+ ::-webkit-scrollbar {
|
|
|
+ display: block;
|
|
|
+ /*滚动条整体样式*/
|
|
|
+ width: 10px !important;
|
|
|
+ /*高宽分别对应横竖滚动条的尺寸*/
|
|
|
+ height: 1px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::-webkit-scrollbar-thumb {
|
|
|
+
|
|
|
+ /*滚动条里面小方块*/
|
|
|
+ border-radius: 10px;
|
|
|
+ -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
|
|
+ background: #535353;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::-webkit-scrollbar-track {
|
|
|
+ /*滚动条里面轨道*/
|
|
|
+ -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
|
|
+ border-radius: 10px;
|
|
|
+ background: #EDEDED;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|