Browse Source

feat: 接口对接;

h5
Fox-33 1 month ago
parent
commit
4b41cb47b2
6 changed files with 38 additions and 20 deletions
  1. +1
    -1
      pages_order/auth/wxLogin.vue
  2. +20
    -5
      pages_order/report/index.vue
  3. +7
    -11
      pages_order/report/pay.vue
  4. +9
    -3
      pages_order/report/reportTableView.vue
  5. BIN
      pages_order/static/auth/bg.png
  6. +1
    -0
      pages_order/test/answer.vue

+ 1
- 1
pages_order/auth/wxLogin.vue View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page_view"> <view class="page_view">
<image class="bg" src="@/pages_order/static/auth/bg.png" mode="widthFix"></image>
<image class="bg" :src="configList.login_bg" mode="widthFix"></image>
<view class="content flex flex-column"> <view class="content flex flex-column">


+ 20
- 5
pages_order/report/index.vue View File

@ -13,17 +13,23 @@
<view class="section-content"> <view class="section-content">
<view class="summary"> <view class="summary">
<view class="text"> <view class="text">
经过本次问答信息收集的综合分析检测出风险点共<text class="highlight">{{ detail.levelAllNum }}</text>其中极高风险{{ detail.level3Num }}高风险{{ detail.level2Num }}中风险{{ detail.level1Num }}低风险{{ detail.level0Num }}
经过本次问答信息收集的综合分析检测出风险点共<text class="highlight">{{ detail.levelAllNum - detail.level3Num }}</text>其中高风险{{ detail.level2Num }}中风险{{ detail.level1Num }}低风险{{ detail.level0Num }}
</view> </view>
<view class="flex charts"> <view class="flex charts">
<progressCircle label="极高风险" :value="detail.level3Num" color="#B81C1C"></progressCircle>
<progressCircle label="高风险" :value="detail.level2Num" color="#FF0000"></progressCircle> <progressCircle label="高风险" :value="detail.level2Num" color="#FF0000"></progressCircle>
<progressCircle label="中风险" :value="detail.level1Num" color="#FFA800"></progressCircle> <progressCircle label="中风险" :value="detail.level1Num" color="#FFA800"></progressCircle>
<progressCircle label="低风险" :value="detail.level0Num" color="#014FA2"></progressCircle> <progressCircle label="低风险" :value="detail.level0Num" color="#014FA2"></progressCircle>
<progressCircle label="合规" :value="detail.level3Num" color="#5AC725"></progressCircle>
</view> </view>
</view> </view>
<view class="table"> <view class="table">
<reportTableView :list="tableList"></reportTableView>
<!-- 全部合规 -->
<template v-if="detail.level3Num === detail.levelAllNum">
<image class="img-succ" :src="configList.compliance_img" mode="widthFix"></image>
</template>
<template v-else>
<reportTableView :list="tableList"></reportTableView>
</template>
</view> </view>
</view> </view>
</view> </view>
@ -73,7 +79,7 @@
level0Num, // level0Num, //
level1Num, // level1Num, //
level2Num, // level2Num, //
level3Num, //
level3Num, //
levelAllNum, levelAllNum,
pageList, pageList,
} = result } = result
@ -81,6 +87,10 @@
this.tableList = pageList.reduce((arr, item) => { this.tableList = pageList.reduce((arr, item) => {
const { id, risk, reason, level, consequence } = item const { id, risk, reason, level, consequence } = item
if (level == '3') {
return arr
}
const obj = { const obj = {
id, id,
reason, reason,
@ -108,7 +118,7 @@
level0Num, // level0Num, //
level1Num, // level1Num, //
level2Num, // level2Num, //
level3Num, //
level3Num, //
levelAllNum, levelAllNum,
} }
} catch (err) { } catch (err) {
@ -176,6 +186,11 @@
.table { .table {
margin-top: 49rpx; margin-top: 49rpx;
} }
.img-succ {
width: 100%;
height: auto;
}
.contact { .contact {
margin-top: 53rpx; margin-top: 53rpx;


+ 7
- 11
pages_order/report/pay.vue View File

@ -132,8 +132,10 @@
code, code,
} = this.form } = this.form
let payAmount = this.payAmount
let discountAmount = 0
const params = {
batchNo: this.batchNo,
payAmount: this.payAmount,
}
if (payment == 1) { // if (payment == 1) { //
const infoRes = await this.$fetch('queryCodeById', { code }, false, null, true) const infoRes = await this.$fetch('queryCodeById', { code }, false, null, true)
@ -144,16 +146,10 @@
return return
} }
discountAmount = infoResult.discountAmount
payAmount -= discountAmount
params.discountAmount = infoResult.discountAmount
params.payAmount -= params.discountAmount
params.code = code
} }
const params = {
batchNo: this.batchNo,
payAmount,
discountAmount,
code,
}
const result = await this.$fetch('createOrder', params) const result = await this.$fetch('createOrder', params)


+ 9
- 3
pages_order/report/reportTableView.vue View File

@ -25,7 +25,7 @@
'0': '低风险', '0': '低风险',
'1': '中风险', '1': '中风险',
'2': '高风险', '2': '高风险',
'3': '极高风险',
'3': '合规',
} }
export default { export default {
@ -91,9 +91,15 @@
} }
&:last-child { &:last-child {
.table-cell {
& > .table-cell {
border-bottom: none; border-bottom: none;
} }
& > .table-row-cols {
.table-cell:nth-last-child(-n+3) {
border-bottom: none;
}
}
} }
} }
@ -140,7 +146,7 @@
color: #FF0000; color: #FF0000;
} }
&-3 { &-3 {
color: #B81C1C;
color: #5AC725;
} }
} }
</style> </style>

BIN
pages_order/static/auth/bg.png View File

Before After
Width: 750  |  Height: 563  |  Size: 22 KiB

+ 1
- 0
pages_order/test/answer.vue View File

@ -384,6 +384,7 @@
.card { .card {
min-height: 745rpx; min-height: 745rpx;
padding: 0; padding: 0;
background: transparent;
&-bg { &-bg {
width: 100%; width: 100%;


Loading…
Cancel
Save