cityAgreement.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div>
  3. <template>
  4. <div>
  5. <accountCenter-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.footUrl" style="margin: 50px 0;"></div>
  17. </div>
  18. </template>
  19. <script>
  20. import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  21. export default {
  22. layout (context) {
  23. return context.store.state.option.isMobile ? 'mobile' : 'isCityFooter'
  24. },
  25. components: {
  26. AccountCenterHeader
  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. console.log('agreementUrl', this.$store.state.login.agreementUrl.data.content)
  43. return this.$store.state.login.agreementUrl.data.content
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .w-form-wrap {
  50. padding: .2rem;
  51. background: #fff;
  52. border: 1px solid #e4ecf3;
  53. padding-bottom: .4rem;
  54. .rules-content {
  55. width: 100%;
  56. margin: 0 auto;
  57. h3 {
  58. font-size: 14px;
  59. font-weight: bold;
  60. line-height: 80px;
  61. text-align: center;
  62. margin-bottom: 0;
  63. color: #333;
  64. }
  65. .content {
  66. width: 98%;
  67. margin: 0 auto;
  68. font-size: 14px;
  69. color: #333;
  70. p {
  71. font-size: 14px;
  72. color: #333;
  73. margin-bottom: 0;
  74. line-height: 35px;
  75. strong{
  76. font-weight: bold;
  77. }
  78. }
  79. div {
  80. line-height: 35px;
  81. }
  82. }
  83. }
  84. }
  85. .x-content {
  86. position: relative;
  87. margin-top: 30px;
  88. .container{
  89. width: 990px!important;
  90. position: relative;
  91. .x-form-wrap {
  92. padding: 20px;
  93. background: #fff;
  94. border: 1px solid #e4ecf3;
  95. padding-bottom: 40px;
  96. .rules-content {
  97. width: 100%;
  98. margin: 0 auto;
  99. h3 {
  100. font-size: 18px;
  101. font-weight: bold;
  102. line-height: 80px;
  103. text-align: center;
  104. margin-bottom: 0;
  105. color: #333;
  106. }
  107. .content {
  108. width: 98%;
  109. margin: 0 auto;
  110. font-size: 14px;
  111. color: #333;
  112. p {
  113. font-size: 14px;
  114. color: #333;
  115. margin-bottom: 0;
  116. /* text-indent: 2em; */
  117. line-height: 35px;
  118. strong{
  119. font-weight: bold;
  120. }
  121. }
  122. div {
  123. line-height: 35px;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. </style>