您可以在弹窗的模板中添加一个提示文本,如下所示:

<uni-popup id="popupOther" ref="popupOther" type="dialog">
  <view class="common-dialog">
    <view class="log-title">确认转给别人</view>
    <view class="form-row">
      <view class="form-row-tt">金额:</view>
      <view class="form-row-dd">
        <input type="text" v-model="toOther.amount" placeholder="请输入金额"/>
        <text class="tip-text">本次转出数量将另外扣减10%,从账户一并扣减</text>
      </view>
    </view>
    <view class="form-row">
      <view class="form-row-tt">对方手机号:</view>
      <view class="form-row-dd">
        <input type="text" v-model="toOther.othersPhone" placeholder="请输入对方手机号"/>
      </view>
    </view>
    <view class="form-row">
      <view class="form-row-tt">支付密码:</view>
      <view class="form-row-dd">
        <input type="password" v-model="toOther.paymentCode" placeholder="请输入支付密码"/>
      </view>
    </view>
    <view class="log-footer">
      <button @click="otherClose" class="cancel">取消</button>
      <button @click="otherConfirm" class="ok">确定</button>
    </view>
  </view>
</uni-popup>

在上面的代码中,我添加了一个名为"tip-text"的class,并在"金额"输入框后面的view标签中添加了一个text标签,用于显示提示文本。您可以根据需要自定义样式和位置

uni-popup id=popupOther ref=popupOther type=dialog		 view class=common-dialog		 view class=log-title确认转给别人view		 view class=form-row		 view class=form-row-tt金额:view		 view class=form-

原文地址: https://www.cveoy.top/t/topic/iYG0 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录