暂时提交
This commit is contained in:
@@ -70,11 +70,11 @@
|
||||
</view> -->
|
||||
|
||||
<!-- 底部操作栏(完全保留原逻辑和样式) -->
|
||||
<view v-if="contract.signStatus === '待签署'" class="bottom-bar">
|
||||
<!-- <view v-if="contract.signStatus === '待签署'" class="bottom-bar">
|
||||
<u-button class="sign-btn" @click="goSign">
|
||||
去签署
|
||||
</u-button>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
// await this.$checkToken(this.$getToken())
|
||||
this.getContractDetail()
|
||||
} catch (e) {
|
||||
return
|
||||
@@ -132,20 +132,30 @@ export default {
|
||||
methods: {
|
||||
/** 合同详情 + 第一条资产 */
|
||||
getContractDetail() {
|
||||
this.$u.get(`/contract/detail?contractNo=${this.contractNo}`, {},{
|
||||
WT: this.$getToken()
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.contract = res.data || {}
|
||||
// TODO: 接口联调时取消注释,删除 mock 数据
|
||||
// this.$u.get(`/contract/detail?contractNo=${this.contractNo}`, {},{
|
||||
// WT: this.$getToken()
|
||||
// }).then(res => {
|
||||
// console.log(res)
|
||||
// this.contract = res.data || {}
|
||||
// // this.assetList = (res.assetsInfos.assets || []).map((item, index) => ({
|
||||
// // ...item,
|
||||
// // expanded: index === 0
|
||||
// // }))
|
||||
// // this.hasMoreAssets =
|
||||
// // this.assetList.length < (res.totalAssets || 0)
|
||||
// })
|
||||
|
||||
// this.assetList = (res.assetsInfos.assets || []).map((item, index) => ({
|
||||
// ...item,
|
||||
// expanded: index === 0
|
||||
// }))
|
||||
|
||||
// this.hasMoreAssets =
|
||||
// this.assetList.length < (res.totalAssets || 0)
|
||||
})
|
||||
// Mock 静态数据
|
||||
this.contract = {
|
||||
contractNo: this.contractNo || 'HT-2026-001',
|
||||
contractName: '东山大道435-2-1-104号房屋租赁合同',
|
||||
signStatus: '待签署',
|
||||
startDate: '2026-01-01',
|
||||
endDate: '2026-12-31',
|
||||
rentFee: 2500,
|
||||
deposit: 5000
|
||||
}
|
||||
},
|
||||
|
||||
/** 加载更多资产 */
|
||||
@@ -337,7 +347,7 @@ export default {
|
||||
&::v-deep .u-btn {
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, #ff6f63 0%, #fb392a 100%);
|
||||
background-color: #0088FE;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user