about.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="all">
  3. <ujp-navbar title="关于我们"></ujp-navbar>
  4. <view class="about">
  5. <img v-if="branchParameterBl('ud')" src="@/assets/static/img/aboutusUd.jpg" alt="">
  6. <img v-else src="@/assets/static/img/aboutus.png" alt="">
  7. <p class="font-weight2">{{projectName}}</p>
  8. </view>
  9. <u-cell-group>
  10. <u-cell-item :titleStyle='titleStyle' title="用户协议" @click="gotoUrl('pages/article/details?code=YHXY')"></u-cell-item>
  11. <u-cell-item :titleStyle='titleStyle' title="隐私政策" @click="gotoUrl('pages/article/details?code=YSZC')"></u-cell-item>
  12. <u-cell-item :titleStyle='titleStyle' title="充值协议" @click="gotoUrl('pages/article/details?code=CZXY')"></u-cell-item>
  13. </u-cell-group>
  14. <view class="about-foot">
  15. <p>湖北荆鹏集团</p>
  16. <p>版权所有 Copyright ©2022</p>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. elderMode:false,
  25. projectName:'',
  26. form: {
  27. name: '',
  28. intro: '',
  29. },
  30. titleStyle:{
  31. "font-size":'28rpx'
  32. },
  33. elderStatus: false,
  34. }
  35. },
  36. onReady() {
  37. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  38. this.elderStatus = true;
  39. } else {
  40. this.elderStatus = false;
  41. }
  42. },
  43. methods: {
  44. theme(type) {
  45. if(type == 'elder')
  46. {
  47. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  48. let data = {
  49. "font-size":'32rpx',
  50. "font-weight":'bold!important'
  51. };
  52. this.titleStyle = data;
  53. }
  54. else
  55. {
  56. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  57. let data = {
  58. "font-size":'28rpx'
  59. };
  60. this.titleStyle = data;
  61. }
  62. }
  63. },
  64. onReady(){
  65. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  66. if(this.elderMode)
  67. this.theme('elder')
  68. else
  69. this.theme('standard')
  70. },
  71. onLoad(){
  72. this.projectName=process.car.ProjectName;
  73. }
  74. }
  75. </script>
  76. <style>
  77. page{
  78. background-color: #F7F7F7;
  79. }
  80. </style>
  81. <style lang="scss" scoped>
  82. @import "@/_theme.scss";
  83. .all{
  84. @include themeify{
  85. font-size: themed('font-size2');
  86. }
  87. }
  88. .about{
  89. background-color: #fff;
  90. padding: 36px 0;
  91. margin-bottom: 10px;
  92. display: flex;
  93. align-items: center;
  94. flex-direction: column;
  95. img{
  96. height: 120rpx;
  97. width: 120rpx;
  98. }
  99. p{
  100. margin-top: 8px;
  101. }
  102. }
  103. .about-foot{
  104. position: fixed;
  105. bottom:16px;
  106. text-align: center;
  107. left: 0;
  108. right: 0;
  109. p{
  110. color:#666;
  111. }
  112. }
  113. </style>