联系官方销售客服
1835022288
028-61286886
插件 | API接口 V7.7 |
应用作者 | 迅睿官方团队 |
发布时间 | 2019-03-14 09:57:26 |
更新时间 | 2024-08-24 20:57:34 |
小程序首页默认的代码如下(调用资讯列表四条):
var http_url = app.globalData.http_api + "s=news&c=search&pagesize=4"; http_url += '&api_call_function=module_search_news_list';
我想增加调用商品4条,如何写呢?
按照默认的仿照写出来,全部变成产品了。我需要第一栏是资讯,第二栏是产品。默认是就是这两个如何弄一起。下面调用这么写的:<view class="index-row"> <view class="index-row-index"> <view class="index-row-h">最新新闻</view> </view> <view class="fabu-row"> <block wx:for="{{fabuData}}" wx:for-item="news"> <navigator url="../news/show?id={{news.id}}"> <view class="news-view"> <image class='news-thumb' src="{{news.thumb}}" wx:if="{{news.thumb!=''}}"/> <view class="news-title"> <view class="news-title1">{{news.title}}</view> <view class="news-title2">{{news.description}}</view> </view> </view> </navigator> </block> </view></view><view class="index-row"> <view class="index-row-index"> <view class="index-row-h">富硒商品</view> </view> <view class="fabu-row"> <block wx:for="{{fabuData}}" wx:for-item="store"> <navigator url="../store/show?id={{store.id}}"> <view class="store-view"> <image class='store-thumb' src="{{store.thumb}}" wx:if="{{store.thumb!=''}}"/> <view class="store-title"> <view class="store-title1">{{store.title}}</view> <view class="store-title2"><view class="gm">立即购买</view>¥:{{store.dj}}</view> </view> </view> </navigator> </block> </view></view></view>