|
@@ -37,29 +37,30 @@
|
|
|
</p>
|
|
|
<p>
|
|
|
<span class="label">支付时间:</span>
|
|
|
- <span class="value">2021-8-12 09:23:04</span>
|
|
|
+ <span class="value">{{ objBillDetail.created_at }}</span>
|
|
|
</p>
|
|
|
<p>
|
|
|
<span class="label">订单号:</span>
|
|
|
- <span class="value">126452164518</span>
|
|
|
+ <span class="value">todo</span>
|
|
|
</p>
|
|
|
<p>
|
|
|
<span class="label">交易单号:</span>
|
|
|
- <span class="value">1274554794</span>
|
|
|
+ <span class="value">{{ objBillDetail.finance_number }}</span>
|
|
|
</p>
|
|
|
<p>
|
|
|
<span class="label">备注:</span>
|
|
|
- <span class="value">备注备注备注备注备注</span>
|
|
|
+ <span class="value">{{ objBillDetail.finance_remark }}</span>
|
|
|
</p>
|
|
|
- <p class="amont">+¥736.23</p>
|
|
|
+ <p class="amont">+¥{{ objBillDetail.finance_balance }}</p>
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { Tabs, Tab, Popup } from 'vant'
|
|
|
+import { Tabs, Tab, Popup, Toast } from 'vant'
|
|
|
import Main from './child/main'
|
|
|
+import { apiBillDetail } from './api/api'
|
|
|
|
|
|
export default {
|
|
|
name: 'index',
|
|
@@ -72,7 +73,8 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
numActiveTab: 0,
|
|
|
- showDetail: false
|
|
|
+ showDetail: false,
|
|
|
+ objBillDetail: {}
|
|
|
}
|
|
|
},
|
|
|
async mounted () {
|
|
@@ -89,6 +91,17 @@ export default {
|
|
|
const scroll = this.$refs[allScrolls[val]].scroll
|
|
|
scroll && scroll.refresh()
|
|
|
})
|
|
|
+ },
|
|
|
+ async fetchBillDetail (id) {
|
|
|
+ try {
|
|
|
+ this.showDetail = true
|
|
|
+ const { status, data, msg } = apiBillDetail(id)
|
|
|
+ if (status) {
|
|
|
+ this.objBillDetail = data
|
|
|
+ } else {
|
|
|
+ Toast(msg)
|
|
|
+ }
|
|
|
+ } catch (err) {}
|
|
|
}
|
|
|
}
|
|
|
}
|