doum
2025-09-04 9d901b4215323c97a00a068cd962f5c9c04dadfa
small-program/pages/freight/freight.vue
@@ -91,12 +91,15 @@
               <view class="list-item-row">
                  <view class="list-item-row-label">运输重量/数量<b>*</b></view>
                  <view class="list-item-row-val">
                     <input type="text" style="flex: 1;" v-model="form.transportNum" placeholder="请输入" />
                     <view @click="show4 = true" style="width: 100rpx; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;">
                     <input type="text" style="flex: 3;" v-model="form.transportNum" placeholder="请输入" />
                     <!-- <view @click="show4 = true" style="width: 100rpx; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;">
                        <text>{{form.transportUnit}}</text>
                        <u-icon name="arrow-down" color="#111111" size="16"></u-icon>
                     </view> -->
                     <view  style="flex: 1;" :class="form.transportUnit ==='个' ? 'val-cate-item val-active' : 'val-cate-item'"   @click="form.transportUnit = '个'">个</view>
                     <view  style="flex: 1;" :class="form.transportUnit ==='斤' ? 'val-cate-item val-active' : 'val-cate-item'"   @click="form.transportUnit = '斤'">斤</view>
                     </view>
                  </view>
               </view>
               <view class="list-item-row" v-if="viewStatus">
                  <view class="list-item-row-label">需求补充</view>
@@ -438,7 +441,7 @@
                     }).then(res => {
                        if (res.code == 200) {
                           uni.showToast({
                              title: '编辑成功',
                              title: '修改成功',
                              icon: 'success',
                              mask: true,
                              duration: 2000
@@ -552,6 +555,7 @@
                  if ([2].includes(type)) {
                     this.form.latitude = res.latitude
                     this.form.longitude = res.longitude
                     this.form.location = res.name || res.address
                     this.form.address = res.name || res.address
                  } else if (type === 3) {
                     this.form.locationEnd = res.name || res.address
@@ -989,6 +993,25 @@
                     font-size: 30rpx;
                     color: #111111;
                  }
                  .val-active {
                     background: #00BC12 !important;
                     color: #ffffff !important;
                  }
                  .val-cate-item {
                     width: 208rpx;
                     height: 72rpx;
                     line-height: 72rpx;
                     text-align: center;
                     font-weight: 400;
                     font-size: 28rpx;
                     color: #333333;
                     background: #EEEEEE;
                     border-radius: 36rpx;
                     margin-right: 24rpx;
                     &:last-child {
                        margin: 0 !important;
                     }
                  }
               }
            }
         }