help.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="content">
  3. <view class="navTitle">
  4. <text>常见问题</text>
  5. </view>
  6. <view class="helpList">
  7. <view v-for="(item,index) in helpList" :key="index">
  8. <view class="helpItem" :class="item.open ? 'open':'more'" @click="helpToggle(index,this)">
  9. <text>{{item.title}}</text>
  10. </view>
  11. <view class="helpOpen" v-if="item.open">
  12. <view class="helpOpenItem" v-for="(Bitem,Bindex) in item.content" :key="Bindex">
  13. <text v-if="item.content.length>1">{{Bindex+1}}.</text>
  14. <text>{{Bitem.text}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default{
  23. data(){
  24. return {
  25. helpList:[
  26. {
  27. title:"如何缴纳",
  28. open:false,
  29. content:[
  30. {
  31. text:"点击缴费入口,进入页面,根据下方提示字进行缴纳,缴纳标准要按规定进行自觉缴纳。"
  32. }
  33. ]
  34. },{
  35. title:"缴纳失败",
  36. open:false,
  37. content:[
  38. {
  39. text:"若缴纳不成功提示余额不足,建议您先充值余额,余额高于缴纳的金额才能完成输入支付宝密码完成缴纳。"
  40. },
  41. {
  42. text:"若页面无提示,缴纳不成功,建议您先在“微信账户余额”内充值大于等于补缴金额的钱款后再操作补缴。"
  43. }
  44. ]
  45. },{
  46. title:"账单问题",
  47. open:false,
  48. content:[
  49. {
  50. text:"充值暂只支持微信支付,每次充值金额请自行计算,充值完成后,详情可以查询以往缴费明细。"
  51. }
  52. ]
  53. }
  54. ]
  55. }
  56. },
  57. onLoad() {
  58. },
  59. methods: {
  60. helpToggle(i){
  61. this.helpList[i]["open"]=!this.helpList[i]["open"]
  62. this.helpList.splice(i,1,this.helpList[i]);
  63. }
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .navTitle{
  69. font-size: 32rpx;
  70. color: #2A2A2A;
  71. margin: 14rpx 30rpx;
  72. padding-top: 30rpx;
  73. }
  74. .helpItem{
  75. margin: 0 30rpx;
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. color: #2A2A2A;
  80. font-size: 28rpx;
  81. height: 77rpx;
  82. line-height: 77rpx;
  83. border-top: 1px solid $uni-border-color-grey;
  84. border-bottom: 1px solid $uni-border-color-grey;
  85. padding-left: 20rpx;
  86. }
  87. .helpList view:nth-of-type(2n) .helpItem{
  88. border-width: 0;
  89. }
  90. .more::after{
  91. content: "";
  92. display: block;
  93. width: 16rpx;
  94. height: 30rpx;
  95. background: url(../../static/arrow_right.jpg);
  96. background-size: 100% 100%;
  97. }
  98. .open::after{
  99. content: "";
  100. display: block;
  101. width: 30rpx;
  102. height: 16rpx;
  103. background: url(../../static/arrow_down.jpg);
  104. background-size: 100% 100%;
  105. }
  106. .helpOpen{
  107. background: $uni-bg-color-normal;
  108. color: #2A2A2A;
  109. font-size: 24rpx;
  110. padding: 30rpx 45px 30rpx 50rpx;
  111. line-height: 36rpx;
  112. }
  113. .helpOpenItem{
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: flex-start;
  117. }
  118. </style>