<open-data style=”border-radius:50%;overflow:hidden;display:block;height:80px;” type=”userAvatarUrl”></open-data>
button border变为0
button::af……继续阅读 »
admin
6年前 (2018-05-16) 3818浏览
2个赞
小程序checkbox 更改大小 zoom:70%;
……继续阅读 »
admin
7年前 (2018-04-06) 1521浏览 0评论
1个赞
小程序跳转页面到tabBar页
wx.switchTab({
url: ‘../aaaaa/aaaaa?id=’+id,
});
……继续阅读 »
admin
7年前 (2018-03-21) 1222浏览 0评论
2个赞
小程序列表toggle效果显示和隐藏
xml:
<view class=”qbox” wx:for=”{{items}}”>
<viewclass=”li”bindtap=”showfun”id=”{{item.id}}”……继续阅读 »
admin
7年前 (2018-03-13) 2525浏览 0评论
1个赞
A页面跳转B页面之后返回:
cityNameClick: function (event) {
var cityName = event.currentTarget.dataset.cityname;
console.log(cityName);
var pages = getCurrentPages();
var currPage = p……继续阅读 »
admin
7年前 (2018-03-10) 1260浏览 0评论
1个赞
//拨打电话
callme: function (event){
wx.makePhoneCall({
phoneNumber: event.currentTarget.dataset.mobile,
})
}
……继续阅读 »
admin
7年前 (2017-12-30) 1227浏览 0评论
0个赞
小程序页面wxml中if else
wxml if else 使用如下:
<text class=”title2″ wx:if=”{{store.service_all_day==1}}”>24小时营业{{store.in_business == ‘1’ ? ‘营……继续阅读 »
admin
7年前 (2017-11-15) 2580浏览 0评论
0个赞
参数传过来为storeid,页面通过下面的e中取到为e.storeid
onLoad: function (e) {
console.log(e.storeid);
var storeid = e.storeid;
var that = this;
that.setData({ storeid……继续阅读 »
admin
7年前 (2017-11-15) 1370浏览 0评论
0个赞
根据绑定的data-id的值:
<view class=”items” data-id=”{{item.id}}” bindtap=”index”>
<viewclass=”detail”>
<viewcla……继续阅读 »
admin
7年前 (2017-11-15) 1409浏览 0评论
1个赞
如下图所示:
需要登录小程序后台,把request合法域名添加上即可,request合法域名域名可以添加多个;
……继续阅读 »
admin
7年前 (2017-09-24) 1511浏览 0评论
0个赞