about.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view class="all">
  3. <u-navbar title="关于我们"></u-navbar>
  4. <view class="about">
  5. <img src="../../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. }
  33. },
  34. methods: {
  35. theme(type) {
  36. if(type == 'elder')
  37. {
  38. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  39. let data = {
  40. "font-size":'32rpx',
  41. "font-weight":'bold!important'
  42. };
  43. this.titleStyle = data;
  44. }
  45. else
  46. {
  47. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  48. let data = {
  49. "font-size":'28rpx'
  50. };
  51. this.titleStyle = data;
  52. }
  53. }
  54. },
  55. onReady(){
  56. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  57. if(this.elderMode)
  58. this.theme('elder')
  59. else
  60. this.theme('standard')
  61. },
  62. onLoad(){
  63. this.projectName=process.car.ProjectName;
  64. }
  65. }
  66. </script>
  67. <style>
  68. page{
  69. background-color: #F7F7F7;
  70. }
  71. </style>
  72. <style lang="scss" scoped>
  73. @import "@/_theme.scss";
  74. .all{
  75. @include themeify{
  76. font-size: themed('font-size2');
  77. }
  78. }
  79. .about{
  80. background-color: #fff;
  81. padding: 36px 0;
  82. margin-bottom: 10px;
  83. display: flex;
  84. align-items: center;
  85. flex-direction: column;
  86. img{
  87. height: 120rpx;
  88. width: 120rpx;
  89. }
  90. p{
  91. margin-top: 8px;
  92. }
  93. }
  94. .about-foot{
  95. position: fixed;
  96. bottom:16px;
  97. text-align: center;
  98. left: 0;
  99. right: 0;
  100. p{
  101. color:#666;
  102. }
  103. }
  104. </style>