当前位置:网站首页>9、 Uni popup usage popup effect at the bottom of the drop-down box
9、 Uni popup usage popup effect at the bottom of the drop-down box
2022-07-28 14:28:00 【Ming-Afresh】
The list in this method code is optional 【 name 】 Defined by the back-end interface
<view class="uni-form-item">
<view class="tips">*</view>
<view class="title"> Hospital </view>
<!-- The picture here is a small arrow to the right -->
<view class="input_box" @click="getFactory"><text v-if="factureName==''"> Please select </text><view class="input_box_info">{
{
factureName}}</view><image src="../../static/right.png"></image></view>
</view>
<uni-popup ref='namePopup' type="bottom" mask-background-color='rgba(0,0,0,0.5)'>
<view class="select_list_box">
<view class="poputitle"> Name of the company </view>
<scroll-view class="popup_list" :scroll-y="true">
<view v-for="item in factoryList" class="list_li" @click="getItmeName(item)" :key="item.id">{
{
item.yyname}}</view>
</scroll-view>
</view>
</uni-popup>
export default {
data(){
return{
factureName:'',
factoryList:[],
}
},
methods: {
// Get the list of company names
getFactory(){
this.$refs.namePopup.open()
uni.request({
// baseurl Is the address of the imported interface
url:baseurl+'/wx/user/yyname',
method: 'POST',
data: {
dictType:'admp_reagent_manufacturer'},
header: {
'content-type': 'application/json'
},
success: res => {
this.factoryList=res.data.data
console.log(res.data.data);
}
})
},
getItmeName(item){
this.form.reagentManufacturer=Number(item.id)
this.factureName=item.yyname
this.$refs.namePopup.close()
this.form.companyName=this.factureName
},
}
}

边栏推荐
- QT self-made soft keyboard is the most perfect and simple, just like its own virtual keyboard
- Factory mode and constructor mode
- Brief introduction of diversity technology
- MeterSphere--开源持续测试平台
- MVC模型:日历系统
- Minitest -- applet automation testing framework
- [ecmascript6] async and await
- Clickhouse architecture and design
- [ecmascript6] set and map
- Alibaba, jd.com, Tiktok: push cloud to the heart of industry
猜你喜欢

Target detection: speed and accuracy comparison (fater r-cnn, r-fcn, SSD, FPN, retinanet and yolov3)

Hcip day 12

When Xcode writes swiftui code, it is a small trap that compiles successfully but causes the preview to crash

软件测试工程师的职业规划

Cv:: mat conversion to qimage error

MiniTest--小程序自动化测试框架

LeetCode 0143. 重排链表
C# 读取ini文件、键值对操作

天气这么热太阳能发电不得起飞喽啊?喽啊个头……

zabbix分布式
随机推荐
工厂模式和构造函数模式
Node file operation
树莓派基础 | 总结记录树莓派学习过程中的一些操作
【Utils】FastDFS工具类
Afnetworking crash course
TDengine 助力西门子轻量级数字化解决方案
Development and definition of software testing
JS instantiation method
HCIP第十天
[ecmascript6] iterator and generator
Super resolution reconstruction based on deep learning
As a programmer, how to manage time efficiently?
PowerDesigner creates a database model (conceptual model example)
【Utils】JsonUtil
Copy excel row to specified row
力扣解法汇总1331-数组序号转换
How to write test cases in software testing technology
UFIDA BiP CRM new product launch enables large and medium-sized enterprises to grow their marketing
Websocket chat
C语言中浮点数据类型(你学废了吗)