我是靠谱客的博主 轻松万宝路,这篇文章主要介绍小程序中页面布局和绝对定位以及按钮代码,现在分享给大家,希望可以做个参考。

本篇文章给大家带来的内容是关于小程序中页面布局和绝对定位以及按钮代码,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<view class="dibu"> <input value='{{inputVal}}' bindinput='inputTyping' class="wz" bindinput='inputTyping' placeholder="请输入私信内容" placeholder-style='color:#bdbdbd;line-height:68rpx;margin-left:30rpx;font-size:30rpx;' /> <view bindtap="blurfocus" class="fasong">发送</view> </view> .dibu{ position:fixed; bottom:2px; float:left; border:2px solid #f5f5f5; width:99%; height:70rpx; background:white; } .wz{ /* border:1px solid red; */ height:68rpx; font-size:46rpx; width:630rpx; float:left; border:1px solid #8EE5EE; border-radius:10rpx; } .fasong{ float:right; height:70rpx; margin-right:7rpx; width:90rpx; line-height:66rpx; text-align:center; border-radius:10rpx; font-size:28rpx; background:#8EE5EE; }
登录后复制


分享必须用button,但要自定义button(style="border:0;" plain="true" open-type="share")

复制代码
1
2
3
4
5
6
7
<view class="viewh" wx:if="{{sharpicture==4}}"> <view class="tp"><image class="tpimg" src="../../static/images/yqxg.png"/></view> <view class="imgtxt">你粗糙纹理好过<text style="font-size:60rpx;">{{facedata.defaultdata.wenli}}%</text>的人 </view> <button class="share" style="border:0;" plain="true" open-type="share"> <image src="../../static/images/share.png"/></button> </view>
登录后复制

分享必须带好参数,不然别人不到 都是空白或页面不存在

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
onShareAppMessage: function (ops) { console.log('分享了'); if (ops.from === 'button') { // 来自页面内转发按钮 console.log(ops.target) } return { title: '哈哈哈', path: '/pages/facialEvaluate/facialEvaluate?faceFourdataId=' + this.data.faceFourdataId +'&userId='+this.data.userId, //path:'', success: function (res) { // 转发成功 console.log("转发成功:" + JSON.stringify(res)); }, fail: function (res) { // 转发失败 console.log("转发失败:" + JSON.stringify(res)); } } },
登录后复制

相关推荐:

微信小程序如何获取音乐链接(图文)

微信小程序中带参数返回上一页的方法总结(三种)

以上就是小程序中页面布局和绝对定位以及按钮代码的详细内容,更多请关注靠谱客其它相关文章!

最后

以上就是轻松万宝路最近收集整理的关于小程序中页面布局和绝对定位以及按钮代码的全部内容,更多相关小程序中页面布局和绝对定位以及按钮代码内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(113)

评论列表共有 0 条评论

立即
投稿
返回
顶部