aboutUs.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="container">
  3. <view class="about_us_img_wrap">
  4. <image :src="site_logo" mode="aspectFit" class="about_us_img"></image>
  5. <view class="img_bottom_text">{{site_name}}</view>
  6. </view>
  7. <view class="about_us_item">
  8. <view class="about_us_item_text">{{$L('去评价')}}</view>
  9. <view class="about_us_icon iconfont iconziyuan11"></view>
  10. </view>
  11. <view class="about_us_item" style="border:none;" @click="navTo('/pages/privacyPolicy/privacyPolicy')">
  12. <view class="about_us_item_text">{{$L('隐私政策')}}</view>
  13. <view class="about_us_icon iconfont iconziyuan11"></view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data(){
  20. return {
  21. site_name:'', //网站名称
  22. site_logo:'' //网站logo
  23. }
  24. },
  25. onLoad(){
  26. this.getSettingInfo()
  27. },
  28. methods:{
  29. getSettingInfo(){
  30. let param = {}
  31. param.url = 'v1/front/setting/getSettings'
  32. param.method = 'GET'
  33. param.data = {
  34. names:'basic_site_name,main_site_logo'
  35. }
  36. this.$request(param).then(res=>{
  37. if(res.state == 200){
  38. this.site_name = res.data[0]
  39. this.site_logo = res.data[1]
  40. }
  41. })
  42. },
  43. navTo(url){
  44. uni.navigateTo({
  45. url: url
  46. })
  47. },
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. page{
  53. background:#F5F5F5;
  54. }
  55. .container{
  56. border-top:1rpx solid rgba(0,0,0,0.1);
  57. background-color: #fff;
  58. .about_us_img_wrap{
  59. height:380rpx;
  60. display: flex;
  61. flex-direction: column;
  62. align-items: center;
  63. .about_us_img{
  64. width: 230rpx;
  65. height:230rpx;
  66. margin-top:85rpx;
  67. background: #f8f8f8;
  68. }
  69. .img_bottom_text{
  70. font-size: 24rpx;
  71. color:#2d2d2d;
  72. font-weight: 600;
  73. }
  74. }
  75. .about_us_item{
  76. padding:0 20rpx;
  77. height:100rpx;
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. border-bottom: 1rpx solid rgba(0,0,0,0.1);
  82. .about_us_item_text{
  83. font-size:28rpx;
  84. color:#2d2d2d;
  85. font-weight: 600;
  86. }
  87. .about_us_icon{
  88. color: $main-third-color;
  89. font-size: 18rpx;
  90. margin-left:10rpx;
  91. }
  92. }
  93. }
  94. </style>