aboutUS.vue 3.9 KB

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