Forráskód Böngészése

feat: policy type

jiangzixin 1 éve
szülő
commit
54bf9efb13
2 módosított fájl, 31 hozzáadás és 8 törlés
  1. 3 2
      uniapp/pages/policy/index.vue
  2. 28 6
      uniapp/pages/policy/talent.vue

+ 3 - 2
uniapp/pages/policy/index.vue

@@ -9,7 +9,7 @@
         <u-tabs :list="typeList" :is-scroll="false" :bold="true" active-color="#DD4250" height="80" font-size="28"
             :current="currentTab" @change="changeTab" />
         <!-- 我是人才 -->
-        <view class="p-70 p-t-40 talent-tab" v-if="currentTab == 2">
+        <view class="p-70 p-t-40 talent-tab" v-if="currentTab == 0">
             <view class="flex-col col-center">
                 <view class="title">您所从事的行业:</view>
                 <router-link :to="{ path: '/pages/policy/talent', query: { type: item.type, title: item.title }}"
@@ -18,7 +18,8 @@
                 </router-link>
             </view>
         </view>
-        <view class="huodong-details" v-if="currentTab == 0">
+		<!-- 测试默认现代产业表单提交 -->
+        <view class="huodong-details" v-if="currentTab == 999">
 
             <view class="p-30 ">
                 <view class="detail-title">

+ 28 - 6
uniapp/pages/policy/talent.vue

@@ -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>