kongweiyu_branch
孔维屿 1 year ago
parent 02adbd9c27
commit fc8a36472c

@ -5,14 +5,23 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
teacher: []
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
wx.cloud.callFunction({
name: "recommend",
success: (res) => {
this.setData({
teacher: res.data
})
console.log(res.result.data);
}
}),
console.log(this.teacher);
}, },
/** /**

@ -23,7 +23,7 @@
</view> </view>
<view class="show_information" wx:for="{{[1,2,3,4,5]}}"> <view class="show_information" wx:for="{{teacher}}">
<!-- //当每通过一个教员上传的简历信息则创建一个 --> <!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container"> <view class="content-container">
<image class="image" src="图片地址"></image> <image class="image" src="图片地址"></image>

@ -38,9 +38,6 @@
</view> </view>
</view> </view>
<<<<<<< HEAD
<button class="btn-submit" form-type="submit">提交</button>
=======
<view class="container"> <view class="container">
<text>空闲时间:</text> <text>空闲时间:</text>
<view class="table-container"> <view class="table-container">
@ -128,7 +125,6 @@
</view> </view>
</view> </view>
</view> </view>
>>>>>>> dev
<view class="container"> <view class="container">

@ -1,3 +1,5 @@
const that = this;
Page({ Page({
data:{ data:{
hello:'Hi~', hello:'Hi~',
@ -6,7 +8,7 @@ Page({
onLoad(options) { onLoad(options) {
wx.cloud.callFunction({ wx.cloud.callFunction({
name: "recommend", name: "recommend",
success: function(res) { success: (res) => {
this.setData({ this.setData({
teacher: res.data teacher: res.data
}) })

Loading…
Cancel
Save