当前位置:网站首页>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
},
}
}

边栏推荐
猜你喜欢

开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能

UFIDA BiP CRM new product launch enables large and medium-sized enterprises to grow their marketing

十、时间戳

83. (cesium home) how the cesium example works

QQ robot configuration record based on nonebot2

Analysis of thrift serialization protocol

Clickhouse architecture and design

UI开发中所遇到的各种坑

一些企业数据平台建设的思考

BGP experiment
随机推荐
数据库优化 理解这些就够了
Excel VBA 开发过程中遇到的一些问题,解决方案,持续更新
MySQL development skills - View
HCIP第十二天
When Xcode writes swiftui code, it is a small trap that compiles successfully but causes the preview to crash
Solve the problem that uniapp wechat applet canvas cannot introduce fonts
Hcip day 11
Leetcode 0142. circular linked list II
Mobile phone scrolling screenshot software recommendation
MVC model: calendar system
天气这么热太阳能发电不得起飞喽啊?喽啊个头……
Factory mode and constructor mode
[translation] salt companies come to linkerd for load balancing, and stay for efficiency, reliability and performance
Xcode编写SwiftUI代码时一个编译通过但导致预览(Preview)崩溃的小陷阱
Install mysql5.7.36 in CentOS
指针和数组(7)
JS instantiation method
The default storage engine after MySQL 5.5 is InnoDB.
Alibaba, jd.com, Tiktok: push cloud to the heart of industry
LeetCode 0143. 重排链表