<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
- 发布:2023-06-26 19:59
- 更新:2023-06-26 20:40
- 阅读:164
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 64
HBuilderX类型: 正式
HBuilderX版本号: 3.4.6
第三方开发者工具版本号: 1.06.2210172
基础库版本号: 2.30.2
项目创建方式: HBuilderX
示例代码:
操作步骤:
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
预期结果:
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
实际结果:
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
<uni-list :border="false">
<!-- 血糖 -->
<block v-if="tipIndex == 0 ">
<uni-list-item title="上限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseHigh">
</template>
</uni-list-item>
<uni-list-item title="下限(mmol/L)" showArrow>
<template v-slot:footer>
<input type="digit" placeholder="请输入" v-model="form.glucoseLow">
</template>
</uni-list-item>
</block>
</uni-list>
1***@qq.com (作者)
testList是demo,还是一样的问题
2023-06-27 09:48
DCloud_uniCloud_JSON
回复 1***@qq.com: 我这边未复现,建议你通过chrome 浏览器访问chrome://inspect/#devices 检查看看,
2023-06-27 11:55
1***@qq.com (作者)
回复 DCloud_uniCloud_JSON: 在真机出现的这种情况,在chrome 浏览器是正常的
2023-06-27 17:28
DCloud_uniCloud_JSON
回复 1***@qq.com: 访问chrome://inspect/#devices 是调试你的 Android手机上运行的应用
2023-06-27 17:37