接单部分完成

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

@ -0,0 +1,86 @@
import {url} from '../../request'
Page({
data: {
items: [null, null, null,null],
},
onLoad(options) {
},
onReady() {
},
onShow() {
const that = this
wx.getStorage({
key: "logmessage",
success(res) {
const userinfo = res.data.Authorization
wx.request({
url: url + '/project/get/running',
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
})
wx.showToast({
title: '查询成功',
icon: 'success',
duration: 2000
});
}else{
wx.showToast({
title: res.data.message,
icon:"error",
duration:2000
})
}
},
fail(err) {
console.error('请求失败', err);
}
});
}
})
},
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,4 @@
{
"navigationBarTitleText": "项目",
"usingComponents": {}
}

View File

@ -0,0 +1,48 @@
<view class="flex-col page">
<view class="flex-col justify-start items-start section">
</view>
<view class="flex-col relative list">
<view
class="flex-row justify-center items-start mt-16 list-item"
wx:for="{{list}}"
wx:for-item="item"
wx:for-index="index"
wx:key="index"
>
<image
class="image_2"
src="{{item.projectImage}}"
mode="aspectFill"
/>
<view class="ml-14 flex-col group_2">
<text class="self-start font">{{item.projectName}}</text>
<text class="self-stretch font_2 text_2 mt-9">结算周期T+{{item.projectSettlementCycle}} 实时数据</text>
</view>
<view class="ml-14 flex-col group_3">
<image
class="self-end image_3"
src="/image/jiatou.png"
mode="aspectFill"
/>
<view class="flex-row self-stretch mt-25">
<view class="flex-row items-center section_2">
<image
class="image_5"
src="/image/erweima.png"
mode="aspectFill"
/>
<text class="font_3 text_3 ml-5">推广码</text>
</view>
<view class="flex-row items-center section_3 ml-11">
<image
class="shrink-0 image_4"
src="/image/17470264949353830750.png"
mode="aspectFill"
/>
<text class="font_3">结算明细</text>
</view>
</view>
</view>
</view>
</view>
</view>

View File

@ -0,0 +1,122 @@
.ml-126 {
margin-left: 242.31rpx;
}
.mt-9 {
margin-top: 17.31rpx;
}
.mt-25 {
margin-top: 48.08rpx;
}
.ml-5 {
margin-left: 9.62rpx;
}
.ml-11 {
margin-left: 21.15rpx;
}
.page {
padding-bottom: 871.15rpx;
background-color: #ffffff;
height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.section {
padding: 44.23rpx 0 373.08rpx;
background-image: linear-gradient(180deg, #ff8d1a -34.1%, #ffffff1a 134.1%);
}
.group {
margin-left: 48.08rpx;
}
.image {
width: 15.38rpx;
height: 23.08rpx;
}
.font {
font-size: 25rpx;
font-family: SourceHanSansCN;
line-height: 23.13rpx;
color: #000000;
}
.text {
color: #ffffff;
font-size: 26.92rpx;
line-height: 23.56rpx;
}
.list {
margin-top: -298.08rpx;
padding: 0 44.23rpx;
}
.list-item {
padding: 38.46rpx 19.23rpx 11.54rpx 38.46rpx;
background-color: #ffffff;
border-radius: 14.58rpx;
box-shadow: 0rpx 3.85rpx 7.69rpx #00000040;
}
.list-item:first-child {
margin-top: 0;
}
.image_2 {
width: 103.85rpx;
height: 103.85rpx;
}
.group_2 {
margin-top: 7.69rpx;
width: 142.31rpx;
}
.font_2 {
font-size: 19.23rpx;
font-family: SourceHanSansCN;
line-height: 23.13rpx;
color: #808080;
}
.text_2 {
line-height: 23.08rpx;
}
.group_3 {
margin-top: 11.54rpx;
}
.image_3 {
margin-right: 23.08rpx;
width: 23.08rpx;
height: 26.92rpx;
}
.section_2 {
padding: 7.69rpx 15.38rpx 3.85rpx;
background-color: #ffffff;
border-radius: 9.62rpx;
width: 142.31rpx;
height: 42.31rpx;
border-left: solid 1.92rpx #ff8d1a;
border-right: solid 1.92rpx #ff8d1a;
border-top: solid 1.92rpx #ff8d1a;
border-bottom: solid 1.92rpx #ff8d1a;
}
.image_5 {
width: 25rpx;
height: 25rpx;
}
.font_3 {
font-size: 19.23rpx;
font-family: SourceHanSansCN;
line-height: 17.92rpx;
color: #ff8d1a;
}
.text_3 {
line-height: 17.9rpx;
}
.section_3 {
padding: 3.85rpx 0;
background-color: #ffffff;
border-radius: 9.62rpx;
width: 142.31rpx;
height: 42.31rpx;
border-left: solid 1.92rpx #ff8d1a;
border-right: solid 1.92rpx #ff8d1a;
border-top: solid 1.92rpx #ff8d1a;
border-bottom: solid 1.92rpx #ff8d1a;
}
.image_4 {
width: 48.08rpx;
height: 36.54rpx;
}