ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯(lián)系官方銷售客服

1835022288

028-61286886

投訴 已解決 為什么小程序調(diào)用不出數(shù)據(jù)? 4 0
POSCMS版本:

index.wxml

<!--index.wxml-->

<block wx:for-items="{{result}}">

<view style="width:100%; height: 50rpx"></view>

<!--index默認為下標,item為每項-->

<text>標題 {{item.title}}</text>

<text>圖片地址{{item.thumb}}</text>

</block>

index.js 簡化接口

//index.js

//獲取應用實例

var app = getApp()

Page({

data: {

// text:"這是一個頁面"

result: []

},

onLoad: function () {

var that = this;

wx.request({

url: 'https://www.jiangxiaohai.cn/index.php?c=api&m=data2&auth=6d41236f9179ab62b5f378667302476c&function=dr_function_test&param=list%20action=module%20module=news',

method: 'GET',

success: function (res) {

that.setData({

result: res.data.results

})

}

})

},

listenerButton: function () {

}

})

官方接口:https://www.jiangxiaohai.cn/index.php?c=api&m=data2&format=jsonp&auth=6d41236f9179ab62b5f378667302476c&param=list%20action=module%20module=news%20order=updatetime%20num=10

使用2個接口,都調(diào)用不出數(shù)據(jù),到底該如何調(diào)用數(shù)據(jù)啊?

解決方案