index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="user-info-wrap">
  3. <uni-list>
  4. <uni-list-item :to="item.to" :title="item.title" showArrow thumb-size="sm" v-for="(item,index) in list" :key="index" />
  5. </uni-list>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. list:[
  13. {title:'关于我们',to:'/myPages/TermsOfService/index?name='+'关于我们'+'&type=' + 0},
  14. {title:'服务对象协议',to:'/myPages/TermsOfService/index?name='+'服务对象协议'+'&type=' + 1},
  15. {title:'隐私条款',to:'/myPages/TermsOfService/index?name='+'隐私条款'+'&type=' + 2},
  16. {title:'加盟合作',to:'/myPages/TermsOfService/index?name='+'加盟合作'+'&type=' + 3},
  17. {title:'常见问题',to:'/myPages/TermsOfService/index?name='+'常见问题'+'&type=' + 4}
  18. ],
  19. };
  20. },
  21. mounted() {
  22. },
  23. onLoad(e) {
  24. },
  25. methods: {
  26. // 获取服务条款信息
  27. gotoTermOfService(name){
  28. uni.navigateTo({
  29. url: '/myPages/TermsOfService/index?name='+name,
  30. })
  31. },
  32. }
  33. };
  34. </script>
  35. <style lang="scss">
  36. .user-info-wrap{
  37. margin-left: 12px;
  38. margin-right: 12px;
  39. /* 导航菜单 */
  40. .nav-bar{
  41. background: #fff;
  42. border-radius: 10px;
  43. margin-top: 12px;
  44. /* 商店信息 */
  45. .nav-content{
  46. padding-top: 10px;
  47. padding-bottom: 6px;
  48. border-bottom: 1px solid #f7f7f7;
  49. .nav-info{
  50. display: flex;
  51. padding-left: 10px;
  52. .logo {
  53. width: 12%;
  54. text-align: center;
  55. image{
  56. width: 24px;
  57. height: 24px;
  58. }
  59. }
  60. .nav-desc{
  61. width: 60%;
  62. display: flex;
  63. line-height: 30px;
  64. .nav-name{
  65. font-size: 16px;
  66. width: 60%;
  67. }
  68. .change-store{
  69. text-align: right;
  70. width: 40%;
  71. font-size: 12px;
  72. color: #666;
  73. }
  74. }
  75. .arrow-right{
  76. width:40%;
  77. text-align: right;
  78. margin: 0 auto;
  79. cursor: pointer;
  80. padding-top: 3px;
  81. display: flex;
  82. justify-content: flex-end;
  83. align-items: center;
  84. image{
  85. width: 18px;
  86. height: 18px;
  87. }
  88. .head-img {
  89. text-align: center;
  90. image{
  91. width: 24px;
  92. height: 24px;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .sure-btn{
  100. margin-top: 20px;
  101. width: 100%;
  102. .btn{
  103. background: #FF6C7B;
  104. text-align: center;
  105. border-radius: 14px;
  106. height: 36px;
  107. line-height: 36px;
  108. color: #fff;
  109. font-size: 16px;
  110. }
  111. }
  112. }
  113. </style>