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

边栏推荐
猜你喜欢

手机滚动截屏软件推荐

2022 low voltage electrician examination questions and answers

Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions

2022 melting welding and thermal cutting examination questions and online simulation examination

Another way of understanding the essence of Hamming code

Entering the world of audio and video -- flv video packaging format

2022 high altitude installation, maintenance, removal of examination question bank and online simulated examination

2022 melting welding and thermal cutting examination questions and online simulation examination

JMeter installation tutorial and login add token

Multi level cache scheme
随机推荐
软件测试工程师的职业规划
【LeetCode】1331. 数组序号转换
八、picker用法 下拉框选择效果
Why is it reverse to convert from other formats to BMP
如何有效进行回顾会议(上)?
文件批量重命名工具Bulk Rename Utility
RSA encrypts data with private key and decrypts data with public key (not a signature verification process)
Langjing Technology (Trax China) "robot +ai" opens the era of Chinese retail meta universe
HCIP第十二天
Brief introduction of diversity technology
如何有效进行回顾会议(上)?
Literature reading (245) roller
IP black and white list
Minitest -- applet automation testing framework
Development and definition of software testing
Revised version | target detection: speed and accuracy comparison (faster r-cnn, r-fcn, SSD, FPN, retinanet and yolov3)
Entering the world of audio and video -- flv video packaging format
Read how to deploy highly available k3s with external database
Collaborative office tools: Online whiteboard is in its infancy, and online design has become a red sea
Detailed explanation of C language student achievement management system [easy to understand]