This commit is contained in:
zmj 2024-01-22 19:25:40 +08:00
parent 0d4530e162
commit dbe16b4dee
5 changed files with 162 additions and 22 deletions

View File

@ -19,8 +19,8 @@ switch (env) {
httpApiTwo = 'https://preview-logistics.lihaink.cn' //预上线
break;
case 'local':
httpApi = 'http://192.168.1.25:8083' //预上线
httpApiThree = 'http://192.168.1.25:8083' //预上线
httpApi = 'http://192.168.1.23:8083' //预上线
httpApiThree = 'http://192.168.1.23:8083' //预上线
httpApiTwo = 'https://ceshi-logistics.lihaink.cn' //测试环境
break;
default:

View File

@ -26,7 +26,7 @@
"style": {
"navigationBarTitleText": "首笔消费金额",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarBackgroundColor": "#2B63E3",
"navigationBarTextStyle": "white"
}
},

View File

@ -1,6 +1,5 @@
<template>
<view class="card">
<!-- <view class="card">
<view class="li" v-for="item,index in orderList.lists" :key='index'>
<view class="">
订单编号: {{item.order_no}}
@ -9,6 +8,66 @@
订单金额: <text style="color: #FF4141;">{{item.order_money}}</text>
</view>
</view>
</view> -->
<view class="">
<view class="head">
<view class="money">
总资产
<view class="" style="margin-top: 35rpx;font-size: 35rpx;">
{{money.toLocaleString('zh-CN')}}
</view>
</view>
</view>
<view class="cont" v-if='show'>
<view class="tit">
订单明细
</view>
<view class="card" v-for="(item,index) in orderList" :key='index'>
<view class="card-top">
<view class="">
{{item.create_time}}
</view>
<view class="" style="color: #6A92EB;">
交易成功
</view>
</view>
<view class="card-bottom" style="margin-top: 30rpx;">
<view class="order_detail">
<view class="content" style="display: flex;justify-content: space-between;">
<view class="" v-if="item.order_info" style="display: flex;align-items: center;">
<u--image :showLoading="true" width="70rpx" height="70rpx"
:src="item.order_info.image"></u--image>
<view class="" style="margin-left: 20rpx;">
{{item.order_info.store_name}}
</view>
</view>
<view class="">
{{item.order_money}}
</view>
</view>
</view>
<view class="">
订单编号:{{item.order_no}}
</view>
<!-- <view class="tit" style="font-size: 28rpx;">
{{item.order_no}}
</view>
<view class="">
{{item.order_money}}
</view> -->
</view>
</view>
</view>
</view>
</template>
@ -23,20 +82,33 @@
flag: false,
status: "",
page_no: 0,
page_size: 20
page_size: 20,
money: "",
show: true,
list: [],
}
},
methods: {
async getFirstOrderLogList() {
let res = await getFirstOrderLog()
console.log(res)
this.orderList = res.data
// for (let key in res.data.lists) {
// this.orderList.push(res.data.lists[key])
// }
this.orderList = res.data.lists
console.log(this.orderList)
// res.data.lists.forEach(item => {
// console.log(item)
// })
}
},
mounted() {
onLoad(option) {
this.getFirstOrderLogList()
},
this.money = Number(option.money)
// setTimeout(() => {
// this.show = true
// }, 3000)
}
// onReachBottom() {
// if (this.flag) return
// let {
@ -63,17 +135,81 @@
</script>
<style lang="scss" scoped>
.card {
width: 690rpx;
margin: 30rpx auto;
background-color: #fff;
padding: 20rpx;
border-radius: 29rpx;
page {
background-color: #F9FBFF;
}
.li {
margin: 20rpx;
font-size: 28rpx;
.head {
width: 750rpx;
background-color: #2B63E3;
height: 200rpx;
position: relative;
.money {
width: 670rpx;
background-color: rgba(255, 255, 255, .2);
box-shadow: 0.5rpx 0.5rpx 200rpx 0.5rpx rgba(0, 0, 0, 0.1);
height: 220rpx;
margin: 0 auto;
border-radius: 20rpx;
position: absolute;
left: 50%;
top: 100%;
transform: translate(-50%, -50%);
backdrop-filter: blur(50rpx);
color: white;
padding: 20rpx;
}
}
.cont {
// width: 690rpx;
margin: 120rpx auto;
padding: 20rpx;
.tit {
position: relative;
padding-left: 20rpx;
font-size: 30rpx;
color: #1A1A1A;
font-weight: bold;
}
.tit::before {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
width: 6rpx;
/* 左边框的宽度 */
height: 25rpx;
border-radius: 20rpx;
background-color: #2B63E3;
}
.card {
background-color: #fff;
padding: 20rpx;
border-radius: 20rpx;
margin-top: 20rpx;
box-shadow: 0.5rpx 0.5rpx 200rpx 0.5rpx rgba(0, 0, 0, 0.1);
.card-top {
display: flex;
justify-content: space-between;
}
}
}
.content {
width: 100%;
padding: 20rpx;
background-color: #F5F5F5;
height: 80rpx;
align-items: center;
margin: 10rpx 0;
}
</style>

View File

@ -102,6 +102,10 @@
</script>
<style lang="scss" scoped>
page {
background-color: #F9FBFF;
}
.head {
width: 750rpx;
background-color: #2B63E3;

View File

@ -106,7 +106,7 @@
<view class="code-img">
<view class="" style="margin: 0 auto;width: 440rpx;">
<uqrcode ref="uqrcode" canvas-id="qrcode"
:value="`https://shop.lihaink.cn/download/index.html?code=${myOaInfo.invite_code}`"
:value="`https://crmeb-test.shop.lihaink.cn/download/index.html?code=${myOaInfo.invite_code}`"
:size=440 sizeUnit='rpx'>
</uqrcode>
</view>
@ -308,7 +308,7 @@
unit: "¥",
event: () => {
uni.navigateTo({
url: '/pages/oaHome/FirstOrderLog'
url: `/pages/oaHome/FirstOrderLog?money=${this.myOaInfo.trade_amount}`
})
}
},
@ -371,7 +371,7 @@
id: "",
is_captain: 0,
notArr: [],
orderList: [1],
orderList: [],
oaHomeData: [],
taskList: [],
// src: "https://cdn.uviewui.com/uview/album/1.jpg",