aboutUS.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <view class="box">
  3. <!-- <view class="contBox" v-html="detail">
  4. </view> -->
  5. <rich-text :nodes="detail" style="background: #fff;"></rich-text>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. components: {
  11. },
  12. data() {
  13. return {
  14. detail:'',
  15. unionID:'',
  16. }
  17. },
  18. onLoad(opt) {
  19. this.unionID=opt.unionID
  20. this.getExplain();
  21. },
  22. onShow() {
  23. },
  24. methods: {
  25. getExplain(){
  26. uni.showLoading({
  27. title: '加载中'
  28. })
  29. this.$http('miniApp2/sys/getAboutUS', {
  30. unionID:this.unionID
  31. }, 'GET').then(res => {
  32. uni.hideLoading();
  33. this.detail = res.data;
  34. this.detail = this.detail.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  35. //console.log('list+=', this.queryShopList);
  36. })
  37. },
  38. }
  39. }
  40. </script>
  41. <style scoped lang="less">
  42. .box {
  43. width: 100vw;
  44. min-height: 100vh;
  45. background: #F4F5F7;
  46. }
  47. .contBox{
  48. padding: 20rpx 24rpx;
  49. }
  50. .top{
  51. background: #FFFFFF;
  52. border-radius: 10rpx;
  53. padding: 24rpx 20rpx;
  54. display: flex;
  55. justify-content: space-between;
  56. }
  57. .topLeftTitle{
  58. font-size: 30rpx;
  59. font-family: PingFangSC-Medium, PingFang SC;
  60. font-weight: 500;
  61. color: #333333;
  62. }
  63. .topLeftNum{
  64. font-size: 40rpx;
  65. font-family: PingFangSC-Semibold, PingFang SC;
  66. font-weight: 600;
  67. color: #FF0000;
  68. padding-top: 24rpx;
  69. }
  70. .topRight{
  71. width: 138rpx;
  72. height: 64rpx;
  73. background: #FF0000;
  74. border-radius: 10rpx;
  75. line-height: 64rpx;
  76. text-align: center;
  77. color: #FFFFFF;
  78. font-size: 28rpx;
  79. margin-top: 34rpx;
  80. }
  81. .xffl{
  82. background: #FFFFFF;
  83. margin-top: 20rpx;
  84. padding: 20rpx;
  85. }
  86. .xfflTitle{
  87. font-size: 30rpx;
  88. font-family: PingFangSC-Medium, PingFang SC;
  89. font-weight: 500;
  90. color: #333333;
  91. }
  92. .xfflLine{
  93. display: flex;
  94. justify-content: space-between;
  95. font-size: 24rpx;
  96. font-family: PingFangSC-Regular, PingFang SC;
  97. font-weight: 400;
  98. color: #333333;
  99. line-height: 33rpx;
  100. padding: 15rpx 0;
  101. }
  102. .xfflyq{
  103. width: 10rpx;
  104. height: 10rpx;
  105. background: #D53533;
  106. border-radius: 50%;
  107. margin-top: 12rpx;
  108. margin-right: 14rpx;
  109. }
  110. .xfflyq2{
  111. width: 10rpx;
  112. height: 10rpx;
  113. background: #3F90F7;
  114. border-radius: 50%;
  115. margin-top: 12rpx;
  116. margin-right: 14rpx;
  117. }
  118. .xfflyq3{
  119. width: 10rpx;
  120. height: 10rpx;
  121. background: #FF4F00;
  122. border-radius: 50%;
  123. margin-top: 12rpx;
  124. margin-right: 14rpx;
  125. }
  126. .xfflyq4{
  127. width: 10rpx;
  128. height: 10rpx;
  129. background: #6F2BE8;
  130. border-radius: 50%;
  131. margin-top: 12rpx;
  132. margin-right: 14rpx;
  133. }
  134. .xfflLineLeft{
  135. display: flex;
  136. }
  137. .xfflLineM{
  138. width: 200rpx;
  139. text-align: center;
  140. }
  141. .xfflLineR{
  142. width: 200rpx;
  143. text-align: right;
  144. }
  145. .lineLeftImg{
  146. width: 34rpx;
  147. height: 34rpx;
  148. }
  149. .lineLeftTxt{
  150. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  151. }
  152. .lineRIghtNUm{
  153. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  154. }
  155. .lineRightImg{
  156. width: 12rpx;
  157. height: 20rpx;
  158. margin-top: 7rpx;
  159. }
  160. .lineBox{
  161. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  162. }
  163. .line{
  164. display: flex;
  165. justify-content: space-between;
  166. padding: 38rpx 32rpx;
  167. }
  168. .lineLeft{
  169. display: flex;
  170. }
  171. .lineRight{
  172. display: flex;
  173. }
  174. .smImg{
  175. width: 30rpx;height: 30rpx;
  176. }
  177. .smTxt{
  178. font-size: 28rpx;
  179. font-family: PingFangSC-Regular, PingFang SC;
  180. font-weight: 400;
  181. color: #999999;
  182. line-height: 30rpx;
  183. padding-left: 5rpx;
  184. }
  185. .smBox{
  186. display: flex;
  187. justify-content: center;
  188. padding-top: 30rpx;
  189. }
  190. </style>