微信小程序实现弹出框提交信息

 更新时间:2022年07月07日 08:01:33   作者:In Heaven  
这篇文章主要为大家详细介绍了微信小程序实现弹出框提交信息,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

本文实例为大家分享了微信小程序实现弹出框提交信息的具体代码,供大家参考,具体内容如下

<view class="navSm" bindtap="toolNo">
      <image src="../../images/idx4.png" class="mavimg" mode="aspectFit"></image>
      <view class="fonts1">出租信息</view>
    </view>
<view class="mask" wx:if="{{showModalStatus}}" bindtap="colse"></view>
<view class="drawerBox" wx:if="{{showModalStatus}}">
  <image class="close" src="../../images/close.png" bindtap="colse"></image>
  <view class="tits">该功能尚未开发,请留下您的需求,我们会尽快处理</view>
  <view class="phonebox">
    <input class="inputA" type="number" name="mobile" placeholder="请获取" value="{{mobile}}" style="display:block;"
      placeholder-class="placeholder-class" disabled="true" />
    <button open-type="getPhoneNumber" wx:if="{{isSHow}}" class="getphone"
      bindgetphonenumber="getPhoneNumber">获取手机号</button>
  </view>
  <view class="area">
    <textarea bindinput="bindinput" placeholder="请输入建议反馈" style="height:320rpx"
      placeholder-class="placeholder-class " />
    </view>
  <view class="btn btn1" bindtap="submit">确认</view>
</view>
data: {
    showModalStatus: false,
  },
  toolNo: utils.throttle(function () {
    this.setData({
      showModalStatus: true
    })
  }),
  // 关闭弹窗
  colse() {
    this.setData({
      showModalStatus: false,
    })
  },
.mask {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  opacity: 0.8;
  overflow: hidden;
}
.drawerBox {
  width: 630rpx;
  height: auto;
  line-height: 40rpx;
  border-radius: 20rpx;
  text-align: center;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4);
  padding: 40rpx;
  box-sizing: border-box;
  margin-left: 60rpx;
  position: fixed;
  top: 28%;
  left: 0;
  z-index: 1001;
  background-color: #fff;
}

.close {
  width: 42rpx;
  height: 42rpx;
  float: right;
  overflow: hidden;
}
.tits {
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  width: 100%;
  overflow: hidden;
  margin: 60rpx 0 40rpx 0;
  line-height: 50rpx;
}

.phonebox {
  margin-bottom: 40rpx;
  display: flex;
  align-items: center;
}

.inputA {
  width: 550rpx;
  height: 92rpx;
  line-height: 92rpx;
  border-radius: 60rpx;
  background-color: rgba(255, 255, 255, 100);
  text-align: left;
  border: 1px solid rgba(230, 230, 230, 100);
}

.getphone {
  width: 200rpx;
  height: 68rpx;
  line-height: 68rpx;
  border-radius: 60rpx;
  background-color: rgba(156, 148, 171, 100);
  color: rgba(255, 255, 255, 100);
  font-size: 14px;
  text-align: center;
  margin-left: -220rpx;
  margin-top: 20rpx;
  z-index: 999;
}

.area {
  width: 550rpx;
  line-height: 40rpx;
  border-radius: 40rpx;
  height: 320rpx;
  border: 1px solid rgba(230, 230, 230, 100);
  text-align: left;
  padding: 30rpx;
  box-sizing: border-box;
  margin-bottom: 40rpx;
}

textarea {
  width: 100%;
  text-align: left;
  line-height: 40rpx;
  font-size: 14px;
}

.btn {
  width: 550rpx;
  margin-bottom: 0;
  height: 80rpx;
  line-height: 80rpx;
  border-radius: 30rpx;
  background-color: #200E32;
  color: rgba(255, 255, 255, 100);
  font-size: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 100);
  margin-top: 20rpx;
}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

相关文章

  • 使用JS获取input file的路径C:\fakepath\问题及解决方法

    使用JS获取input file的路径C:\fakepath\问题及解决方法

    这篇文章主要介绍了使用JS获取input file的路径C:\fakepath\问题及解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧
    2024-01-01
  • 点击页面其它地方隐藏该div的两种思路

    点击页面其它地方隐藏该div的两种思路

    在本文为大家介绍两种思路实现点击页面其它地方隐藏该div,第一种是对document的click事件绑定事件处理程序..详情请参考本文
    2013-11-11
  • javascript中活灵活现的Array对象详解

    javascript中活灵活现的Array对象详解

    本文的内容就如同标题一样,这篇文章将会灵活的运行Array对象的一些方法来实现看上去较复杂的应用。相信对大家学习或者理解javascript中的Array对象能具有一定的参考借鉴价值,有需要的朋友们下面跟着小编一起来学习学习吧。
    2016-11-11
  • jquery及原生js获取select下拉框选中的值示例

    jquery及原生js获取select下拉框选中的值示例

    有一id=test的下拉框,怎么拿到选中的那个值呢?本文将采用javascript原生的方法及jquery方法(前提是已经加载了jquery库)来简单实现下
    2013-10-10
  • 200行HTML+JavaScript实现年会抽奖程序

    200行HTML+JavaScript实现年会抽奖程序

    这篇文章主要为大家详细介绍了HTML+JavaScript实现年会抽奖程序的200行代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2019-01-01
  • JavaScript适配器模式原理与用法实例详解

    JavaScript适配器模式原理与用法实例详解

    这篇文章主要介绍了JavaScript适配器模式原理与用法,结合具体实例形式详细分析了JavaScript适配器模式概念、原理、使用方法与操作注意事项,需要的朋友可以参考下
    2020-03-03
  • 关于img的href和src取变量及赋值的方法

    关于img的href和src取变量及赋值的方法

    这篇文章主要介绍了img的href和src取变量及赋值的方法,需要的朋友可以参考下
    2014-04-04
  • 前端直接导出excel文件的两种方式

    前端直接导出excel文件的两种方式

    这篇文章主要介绍了两种方法在前端实现本地表格导出功能,分别是插件方式和本地直接导出,文中通过代码介绍的非常详细,需要的朋友可以参考下
    2025-01-01
  • JavaScript浮点数及运算精度调整详解

    JavaScript浮点数及运算精度调整详解

    浮点数的精度问题不是JavaScript特有的,本文主要介绍了JavaScript浮点数及运算精度调整详解,有需要的朋友可以了解一下。
    2016-10-10
  • 微信小程序 this.triggerEvent()的具体使用

    微信小程序 this.triggerEvent()的具体使用

    这篇文章主要介绍了微信小程序 this.triggerEvent()的具体使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2019-12-12

最新评论