cityAgreement.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div>
  3. <template>
  4. <div>
  5. <registerCenter-header/>
  6. </div>
  7. <div class="x-content">
  8. <div class="container">
  9. <div class="x-form-wrap">
  10. <%--优软云协议开始--%>
  11. <div class="rules-content" v-html="agreementUrl.term"></div>
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <div v-html="loginStyle && loginStyle.footUrl || ''" style="margin: 50px 0;"></div>
  17. </div>
  18. </template>
  19. <script>
  20. import RegisterCenterHeader from '~components/default/RegisterCenterHeader.vue'
  21. export default {
  22. layout (context) {
  23. return context.store.state.option.isMobile ? 'mobile' : 'isCityFooter'
  24. },
  25. components: {
  26. RegisterCenterHeader
  27. },
  28. fetch ({store, route}) {
  29. return Promise.all([
  30. store.dispatch('GetLoginStyle', {appId: route.query.appId}),
  31. store.dispatch('GetAgreementUrl', {appId: route.query.appId})
  32. ])
  33. },
  34. computed: {
  35. isMobile () {
  36. return this.$store.state.option.isMobile
  37. },
  38. loginStyle () {
  39. return this.$store.state.login.loginStyle.data.content
  40. },
  41. agreementUrl () {
  42. return this.$store.state.login.agreementUrl.data.content
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .x-content .container .x-form-wrap .rules-content{
  49. color: #000;
  50. }
  51. .w-form-wrap {
  52. padding: .2rem;
  53. background: #fff;
  54. border: 1px solid #e4ecf3;
  55. padding-bottom: .4rem;
  56. .rules-content {
  57. width: 100%;
  58. margin: 0 auto;
  59. color: #000;
  60. h3 {
  61. font-size: 14px;
  62. font-weight: bold;
  63. line-height: 80px;
  64. text-align: center;
  65. margin-bottom: 0;
  66. color: #333;
  67. }
  68. .content {
  69. width: 98%;
  70. margin: 0 auto;
  71. font-size: 14px;
  72. color: #333;
  73. p {
  74. font-size: 14px;
  75. color: #333;
  76. margin-bottom: 0;
  77. line-height: 35px;
  78. strong{
  79. font-weight: bold;
  80. }
  81. }
  82. div {
  83. line-height: 35px;
  84. }
  85. }
  86. }
  87. }
  88. .x-content {
  89. position: relative;
  90. margin-top: 30px;
  91. .container{
  92. width: 990px!important;
  93. position: relative;
  94. .x-form-wrap {
  95. padding: 20px;
  96. background: #fff;
  97. border: 1px solid #e4ecf3;
  98. padding-bottom: 40px;
  99. .rules-content {
  100. width: 100%;
  101. margin: 0 auto;
  102. h3 {
  103. font-size: 18px;
  104. font-weight: bold;
  105. line-height: 80px;
  106. text-align: center;
  107. margin-bottom: 0;
  108. color: #333;
  109. }
  110. .content {
  111. width: 98%;
  112. margin: 0 auto;
  113. font-size: 14px;
  114. color: #333;
  115. p {
  116. font-size: 14px;
  117. color: #333;
  118. margin-bottom: 0;
  119. /* text-indent: 2em; */
  120. line-height: 35px;
  121. strong{
  122. font-weight: bold;
  123. }
  124. }
  125. div {
  126. line-height: 35px;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133. </style>