Commit d112cf4b by 胡悦

提交

1 parent b394797c
...@@ -50,4 +50,12 @@ module.exports = { ...@@ -50,4 +50,12 @@ module.exports = {
...data ...data
}); });
}, },
// 历史订单列表
getQuotationList(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
...data
})
}
}; };
...@@ -4,26 +4,24 @@ ...@@ -4,26 +4,24 @@
}, },
"pages": [ "pages": [
{ {
"path": "pages/informationEntry/informationEntry", "path": "pages/common/login",
"style": { "style": {
"navigationBarTitleText": "信息录入", "navigationStyle": "custom"
"enablePullDownRefresh": false
} }
}, },
{ {
"path": "pages/common/login", "path": "pages/home/home",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/home/home", "path": "pages/informationEntry/informationEntry",
"style": { "style": {
"navigationStyle": "custom" "navigationBarTitleText": "信息录入",
"enablePullDownRefresh": false
} }
}, },
{ {
"path": "pages/detail/detail", "path": "pages/detail/detail",
"style": { "style": {
......
<template>
<view class="layout">
<view class="bg">
<glsx-image src="media/bg-6.png" />
</view>
<view class="content">
<view class="title">历史成交记录</view>
<Tabs :list="list" />
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import Tabs from './Tabs.vue';
export default {
name: 'History',
props: {
},
component: {Tabs},
data () {
return {
list: [
]
}
},
mounted () {
const { merchantId } = uni.$storage.get("userInfo");
console.log(this.userInfo, '==========');
this.getQuotationList(merchantId);
},
methods: {
async getQuotationList(merchantId) {
const data = await uni.$api.commonApi.getQuotationList({
currentPage: 1,
pageSize: 10,
merchantId: 421127,
orderStatus: 3
})
console.log(data, '============')
}
}
}
</script>
<style scoped lang='scss'>
.layout {
padding-top: 272rpx;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 864rpx;
background-color: #096;
}
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
overflow: hidden;
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
.form{
display: flex;
flex-wrap: wrap;
gap: 28rpx 0;
&-item{
flex: 50%;
display: flex;
align-items: center;
.value{}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-08 20:43:15 * @LastEditTime: 2024-04-09 14:15:11
--> -->
<template> <template>
<view class="detail-box"> <view class="detail-box">
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
@choose="choose" @choose="choose"
@finish="open" @finish="open"
/> />
<media_1 :views="mediaList" /> <!-- <media_1 :views="mediaList" /> -->
<History></History>
<pay-pop ref="pay"></pay-pop> <pay-pop ref="pay"></pay-pop>
</view> </view>
</template> </template>
...@@ -24,9 +25,10 @@ ...@@ -24,9 +25,10 @@
import payPop from './components/payPop.vue'; import payPop from './components/payPop.vue';
import ToolBox from './components/ToolBox.vue' import ToolBox from './components/ToolBox.vue'
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import History from './components/History.vue';
import Media_1 from './components/Media_1.vue' import Media_1 from './components/Media_1.vue'
export default { export default {
components: { ToolBox, payPop, Media_1 }, components: { ToolBox, payPop, Media_1, History },
mixins: [myClick], mixins: [myClick],
data () { data () {
return { return {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:39:40 * @Date: 2024-04-07 14:39:40
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-08 19:37:16 * @LastEditTime: 2024-04-09 14:28:56
--> -->
<template> <template>
<view class="container"> <view class="container">
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
id:'' id:''
}; };
}, },
onLoad(options) { mounted() {
this.userInfo = uni.$storage.get("userInfo"); this.userInfo = uni.$storage.get("userInfo");
this.getSoure(); this.getSoure();
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!