aboutUS.vue 4.5 KB

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