index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="inspage-content" :style="{'--status-bar-': statusBarHeight}">
  3. <view class="inspage-content-info">
  4. <!-- 头部主要内容 开始 -->
  5. <view class="inspage-content-header">
  6. <customNavbar
  7. title="银联支付入网签约认证"
  8. bgColor="#fff"
  9. :contentStyle="{color: '#000'}"
  10. ></customNavbar>
  11. </view>
  12. <!-- 头部主要内容 结束 -->
  13. <!-- userInfo内容 开始 -->
  14. <view class="inspage-content-userinfo">
  15. <iframe :src="jumpUrl" frameborder="0"></iframe>
  16. <!-- <web-view :src="jumpUrl"></web-view> -->
  17. </view>
  18. <!-- userInfo内容 结束 -->
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import { navigateTo } from "@/utils/util.js"
  24. export default {
  25. data() {
  26. return {
  27. title: '统计分销',
  28. statusBarHeight: 0, // 状态栏安全距离
  29. jumpUrl: null
  30. }
  31. },
  32. onLoad() {
  33. this.getUnionAccessUrlFun()
  34. },
  35. onShow() {
  36. this.statusBarHeight = getApp().globalData.statusBarHeight
  37. },
  38. methods: {
  39. /** 银联签约入网地址 */
  40. async getUnionAccessUrlFun(){
  41. try{
  42. let res = await this.$u.api.getUnionAccessUrl({
  43. userid: this.distribution_user_info.userId
  44. })
  45. if(res && res.code ===200) {
  46. //this.show = false
  47. this.jumpUrl = res.data.jumpUrl
  48. //location.href = res.data.jumpUrl
  49. }
  50. }catch(e){
  51. //TODO handle the exception
  52. console.error("e===",e)
  53. }
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .inspage-content {
  60. display: flex;
  61. flex-direction: column;
  62. align-items: center;
  63. justify-content: center;
  64. --header-h: 90rpx;
  65. .inspage-content-info {
  66. width: 100%;
  67. box-sizing: border-box;
  68. }
  69. }
  70. /** 头部主要内容 开始 */
  71. .inspage-content-header {
  72. width: 100%;
  73. height: var(--header-h);
  74. box-sizing: border-box;
  75. ::v-deep .u-search {
  76. padding: 0 30rpx !important;
  77. }
  78. ::v-deep .u-search__action {
  79. color: #fff !important;
  80. }
  81. }
  82. /** 头部主要内容 结束 **/
  83. /** userInfo内容 开始 */
  84. .inspage-content-userinfo {
  85. width: 100%;
  86. height: calc( 100vh - var(--header-h) );
  87. box-sizing: border-box;
  88. >iframe {
  89. width: 100%;
  90. height: 100%;
  91. }
  92. }
  93. /** userInfo内容 结束 **/
  94. </style>