浏览代码

no message

linwenxin 5 月之前
父节点
当前提交
567852faa0
共有 1 个文件被更改,包括 39 次插入38 次删除
  1. 39 38
      src/packageMine/pages/workerEnter.vue

+ 39 - 38
src/packageMine/pages/workerEnter.vue

@@ -213,52 +213,53 @@
                   </radio-group>
                 </view>
               </view>
-
-              <view class="item flex">
-                <view class="required">保险公司名称</view>
-                <view class="flex" style="flex: 1">
-                  <input v-model="insurancePolicyName" type="text" placeholder="请输入姓名" />
+              <template v-if="isBuy === 'YES'">
+                <view class="item flex">
+                  <view class="required">保险公司名称</view>
+                  <view class="flex" style="flex: 1">
+                    <input v-model="insurancePolicyName" type="text" placeholder="请输入姓名" />
+                  </view>
                 </view>
-              </view>
-              <view class="item flex">
-                <view class="">保单名称</view>
-                <view class="flex" style="flex: 1">
-                  <input v-model="insuranceName" maxlength="18" type="text" placeholder="请输入银行卡号" />
+                <view class="item flex">
+                  <view class="">保单名称</view>
+                  <view class="flex" style="flex: 1">
+                    <input v-model="insuranceName" maxlength="18" type="text" placeholder="请输入银行卡号" />
+                  </view>
                 </view>
-              </view>
-              <view class="item flex">
-                <view class="">保险单号</view>
-                <view class="flex" style="flex: 1">
-                  <input v-model="insuranceNumber" maxlength="18" type="text" placeholder="请输入银行卡号" />
+                <view class="item flex">
+                  <view class="">保险单号</view>
+                  <view class="flex" style="flex: 1">
+                    <input v-model="insuranceNumber" maxlength="18" type="text" placeholder="请输入银行卡号" />
+                  </view>
                 </view>
-              </view>
-              <view class="item flex" @click="$refs.insuranceStateTime.showWin">
-                <view class="">保险有效期开始日期</view>
-                <view class="flex" style="flex: 1; pointer-events: none">
-                  <input v-model="insuranceStateTime" disabled type="text" placeholder="请选择日期" />
+                <view class="item flex" @click="$refs.insuranceStateTime.showWin">
+                  <view class="">保险有效期开始日期</view>
+                  <view class="flex" style="flex: 1; pointer-events: none">
+                    <input v-model="insuranceStateTime" disabled type="text" placeholder="请选择日期" />
+                  </view>
                 </view>
-              </view>
-              <view class="item flex" @click="$refs.insuranceEndTime.showWin">
-                <view class="">保险有效期结束日期</view>
-                <view class="flex" style="flex: 1; pointer-events: none">
-                  <input v-model="insuranceEndTime" disabled type="text" placeholder="请选择日期" />
+                <view class="item flex" @click="$refs.insuranceEndTime.showWin">
+                  <view class="">保险有效期结束日期</view>
+                  <view class="flex" style="flex: 1; pointer-events: none">
+                    <input v-model="insuranceEndTime" disabled type="text" placeholder="请选择日期" />
+                  </view>
                 </view>
-              </view>
-              <view class="mt30 image-container">
-                <view class="common-title">上传图片(最多3张)</view>
-                <view class="images">
-                  <block v-for="(item, index) in imageList" :key="index">
-                    <view class="img">
-                      <image :src="item.url" mode="aspectFill" @tap="prevImg(item.url)"></image>
-                      <text class="iconfont icon-guanbi1" @tap="delImage(index)"></text>
+                <view class="mt30 image-container">
+                  <view class="common-title">上传图片(最多3张)</view>
+                  <view class="images">
+                    <block v-for="(item, index) in imageList" :key="index">
+                      <view class="img">
+                        <image :src="item.url" mode="aspectFill" @tap="prevImg(item.url)"></image>
+                        <text class="iconfont icon-guanbi1" @tap="delImage(index)"></text>
+                      </view>
+                    </block>
+                    <view class="add" @tap="addImage" v-if="imageList.length < 3">
+                      <text class="iconfont icon-xiangji"></text>
+                      <text class="text">添加图片</text>
                     </view>
-                  </block>
-                  <view class="add" @tap="addImage" v-if="imageList.length < 3">
-                    <text class="iconfont icon-xiangji"></text>
-                    <text class="text">添加图片</text>
                   </view>
                 </view>
-              </view>
+              </template>
             </view>
           </view>
           <!-- ----------------------------------------------------------------- -->