aboutUS.vue 4.6 KB

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