about.vue 2.5 KB

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