aboutUS.vue 3.3 KB

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