contract_info.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view>
  3. <view class="box " v-if="list">
  4. <h2 class="u-text-center">《{{ list.cache.name }}》</h2>
  5. <br />
  6. <section style="margin: 10rpx auto 0;">
  7. <p>合同编号:{{ list.cache.no }}</p>
  8. <p>合同开始时间:{{ $u.timeFormat(list.ctime, 'yyyy年mm月dd日 hh时MM分ss秒') }}</p>
  9. <p>甲方:{{ list.goods.party }}</p>
  10. <p>乙方:{{ list.vip.name }}</p>
  11. <p>身份证号码:{{ list.cache.idno }}</p>
  12. <p>手机号码:{{ list.cache.vipmobile }}</p>
  13. <p>{{ list.cache.name }}</p>
  14. <p>认购数量:{{ list.cache.totalnum }}</p>
  15. <p>总投资金额:{{ list.cache.totalprice }}</p>
  16. <p>拟收益:{{ list.cache.profit }}</p>
  17. <p>分红方式:{{ list.fh }}</p>
  18. <p>订单编号:{{ list.cache.oid }}</p>
  19. <p>产品编号:{{ list.goods.number }}</p>
  20. <p>保险单号:{{ list.cache.insurance || '暂无' }}</p>
  21. <p>合同开始时间:{{ $u.timeFormat(list.cache.ctime, 'yyyy年mm月dd日 hh时MM分ss秒') }}</p>
  22. <p>合同结束时间:{{ $u.timeFormat(list.cache.etime, 'yyyy年mm月dd日 hh时MM分ss秒') }}</p>
  23. </section>
  24. <view class="u-m-t-30">
  25. <u-parse :content="escape2Html(list.contract_info.content)" :lazy-load="true" :show-with-animation="true"></u-parse>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import mineApi from '@/api/mine/index.js';
  32. export default {
  33. data() {
  34. return {
  35. primary:this.$theme.primary,
  36. settingFile:getApp().globalData.siteinfo,
  37. list: ''
  38. };
  39. },
  40. onLoad(option) {
  41. mineApi.contract_info({ no: option.no }).then(res => {
  42. if (res.status == 200) {
  43. this.list = res.data;
  44. console.log(this.list);
  45. }
  46. });
  47. },
  48. methods:{
  49. escape2Html(str) {
  50. var arrEntities={'lt':'<','gt':'>','nbsp':' ','amp':'&','quot':'"'};
  51. return str.replace(/&(lt|gt|nbsp|amp|quot);/ig,function(all,t){return arrEntities[t];});
  52. }
  53. }
  54. };
  55. </script>
  56. <style lang="scss">
  57. page{
  58. background-color: #fff;
  59. }
  60. .box {
  61. width: 100%;
  62. padding: 30rpx;
  63. box-sizing: border-box;
  64. p{
  65. margin: 10px 0;
  66. }
  67. }
  68. </style>