- 列表到详情页的图片怎么一致,像新闻那样
列表到详情页的图片怎么一致,像新闻那样
2017-08-25 - 模板里面的图片怎么不显示呢?
<template name="items"> <view class="title">{{title}}</view> <view class="wangzhi">{{wangzhi}}</view> <view><image src="{wimg}" class="wimg" mode="scaleToFill"></image></view> </template> <block wx:for="{{mydata}}" > <template is="items" data="{{...item}}"></template> </block> mydata:[ { id: 1, title: "武汉1", wangzhi: "www.1.com", wimg:"http://a8adue.m7.magic2008.cn/ufile/6624/xcx/banner/banner1.jpg"}, { id: 2, title: "武汉2", wangzhi: "www.2.com", wimg:"http://a8adue.m7.magic2008.cn/ufile/6624/xcx/banner/banner1.jpg"}, { id: 3, title: "武汉3", wangzhi: "www.3.com", wimg:"http://a8adue.m7.magic2008.cn/ufile/6624/xcx/banner/banner1.jpg"}, { id: 4, title: "武汉4", wangzhi: "www.4.com", wimg:"http://a8adue.m7.magic2008.cn/ufile/6624/xcx/banner/banner1.jpg"} ] [图片]
2017-08-24 - 微信小程序字体怎么设置苹方?
微信小程序字体怎么设置苹方?
2017-08-22 - 教程里面swiper怎么定义高度
[代码]<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> <block wx:for="{{imgUrls}}"> <swiper-item> <image src="{{item}}" class="slide-image" width="355" height="150"/> </swiper-item> </block></swiper><button bindtap="changeIndicatorDots"> indicator-dots </button><button bindtap="changeAutoplay"> autoplay </button><slider bindchange="intervalChange" show-value min="500" max="2000"/> interval<slider bindchange="durationChange" show-value min="1000" max="10000"/> duration[代码][代码]Page({ data: { imgUrls: [ 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg', 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg' ], indicatorDots: false, autoplay: false, interval: 5000, duration: 1000 }, changeIndicatorDots: function(e) { this.setData({ indicatorDots: !this.data.indicatorDots }) }, changeAutoplay: function(e) { this.setData({ autoplay: !this.data.autoplay }) }, intervalChange: function(e) { this.setData({ interval: e.detail.value }) }, durationChange: function(e) { this.setData({ duration: e.detail.value }) } })[代码]
2017-08-22 - index页面的顶部导航栏可以隐藏吗?
index页面的顶部导航栏可以隐藏吗?或者怎么添加背景图
2017-08-18 - 小程序的单页导航栏怎么隐藏?
导航栏可以隐藏吗?
2017-08-18 - wx.switchTab是哪里写错了吗?不跳转
<view bindtap="tz">跳转</view> tapname: function (){ wx.switchTab({ url: '../pages/lianxi/lianxi', success:function(e){ var page = getCurrrentPages().pop(); if(pany == undefined ||page==null) return; page.onShow(); } }) }
2017-08-18 - wx.switchTab写法是哪里错了吗?不跳转
<view bindtap="tz">跳转</view> tapname: function (){ wx.switchTab({ url: '../pages/lianxi/lianxi', success:function(e){ var page = getCurrrentPages().pop(); if(pany == undefined ||page==null) return; page.onShow(); } }) }
2017-08-18 - 求教!!!index页面链接到tabBar页面要怎么写代码呢?
[图片] index页面无法链接到tabBar页面
2017-08-17