接单部分完成

This commit is contained in:
Ling53666
2025-05-15 09:40:36 +08:00
parent bb84973913
commit 9b8553930b
37 changed files with 611 additions and 265 deletions

View File

@ -40,26 +40,42 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
const that =this
wx.request({
url: url + '/project/query/card',
method: 'POST',
data: {
},
header: {
'content-type': 'application/json'
},
const that = this
wx.getStorage({
key: "logmessage",
success(res) {
console.log('查询成功', res);
that.setData({
list:res.data.data
})
},
fail(err) {
console.error('请求失败', err);
const userinfo = res.data.Authorization
wx.request({
url: url + '/project/query/card',
method: 'POST',
data: {
},
header: {
'content-type': 'application/json',
'Authorization': userinfo
},
success(res) {
console.log('查询成功', res);
if(res.data.code==1){
that.setData({
list:res.data.data
})
}else{
wx.showToast({
title: res.data.message,
icon:'error',
duration:2000
})
}
},
fail(err) {
console.error('请求失败', err);
}
});
}
});
})
},
/**

View File

@ -1,5 +1,5 @@
<view class="flex-col page">
<swiper class="swiper" autoplay circular indicator-dots>
<swiper class="swiper" autoplay circular >
<swiper-item wx:for="{{picture}}" wx:key="index">
<image class="imagesize" src="{{item.image}}" mode="aspectFill" />
</swiper-item>