微信小程序?qū)崿F(xiàn)彈出框提交信息
更新時(shí)間:2022年07月07日 08:01:33 作者:In Heaven
這篇文章主要為大家詳細(xì)介紹了微信小程序?qū)崿F(xiàn)彈出框提交信息,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
本文實(shí)例為大家分享了微信小程序?qū)崿F(xiàn)彈出框提交信息的具體代碼,供大家參考,具體內(nèi)容如下
<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">該功能尚未開發(fā),請(qǐng)留下您的需求,我們會(huì)盡快處理</view>
? <view class="phonebox">
? ? <input class="inputA" type="number" name="mobile" placeholder="請(qǐng)獲取" value="{{mobile}}" style="display:block;"
? ? ? placeholder-class="placeholder-class" disabled="true" />
? ? <button open-type="getPhoneNumber" wx:if="{{isSHow}}" class="getphone"
? ? ? bindgetphonenumber="getPhoneNumber">獲取手機(jī)號(hào)</button>
? </view>
? <view class="area">
? ? <textarea bindinput="bindinput" placeholder="請(qǐng)輸入建議反饋" style="height:320rpx"
? ? ? placeholder-class="placeholder-class " />
? ? </view>
? <view class="btn btn1" bindtap="submit">確認(rèn)</view>
</view>data: {
? ? showModalStatus: false,
? },
? toolNo: utils.throttle(function () {
? ? this.setData({
? ? ? showModalStatus: true
? ? })
? }),
? // 關(guān)閉彈窗
? 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;
}
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
使用JS獲取input file的路徑C:\fakepath\問題及解決方法
這篇文章主要介紹了使用JS獲取input file的路徑C:\fakepath\問題及解決方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友參考下吧2024-01-01
javascript中活靈活現(xiàn)的Array對(duì)象詳解
本文的內(nèi)容就如同標(biāo)題一樣,這篇文章將會(huì)靈活的運(yùn)行Array對(duì)象的一些方法來實(shí)現(xiàn)看上去較復(fù)雜的應(yīng)用。相信對(duì)大家學(xué)習(xí)或者理解javascript中的Array對(duì)象能具有一定的參考借鑒價(jià)值,有需要的朋友們下面跟著小編一起來學(xué)習(xí)學(xué)習(xí)吧。2016-11-11
200行HTML+JavaScript實(shí)現(xiàn)年會(huì)抽獎(jiǎng)程序
這篇文章主要為大家詳細(xì)介紹了HTML+JavaScript實(shí)現(xiàn)年會(huì)抽獎(jiǎng)程序的200行代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2019-01-01
JavaScript浮點(diǎn)數(shù)及運(yùn)算精度調(diào)整詳解
浮點(diǎn)數(shù)的精度問題不是JavaScript特有的,本文主要介紹了JavaScript浮點(diǎn)數(shù)及運(yùn)算精度調(diào)整詳解,有需要的朋友可以了解一下。2016-10-10
微信小程序 this.triggerEvent()的具體使用
這篇文章主要介紹了微信小程序 this.triggerEvent()的具體使用,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-12-12

