球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.4 KiB

4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
3 years ago
4 years ago
  1. <template>
  2. <view>
  3. <u-parse :content="article"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. import { tipsDetail,aboutUs, gradeAgreement, privacyAgreement, cardDesign, ratingStandard, getServiceStandard } from '@/service/agreementArticle.js';
  8. export default {
  9. data(){
  10. return {
  11. id: '',
  12. article: '',
  13. type: ''
  14. }
  15. },
  16. onLoad(options){
  17. this.id = options.id || '';
  18. if(options.type === 'about_us'){
  19. this.getAboutUsDetail();
  20. }else if(options.type === 'grade_agreement'){
  21. this.getGradeAgreement();
  22. }else if(options.type === 'privacy_agreement'){
  23. this.getPrivacyAgreement();
  24. }else if(options.type === 'card_design'){
  25. this.getCardDesign();
  26. }else if(options.type === 'rating_standard'){
  27. this.getRatingStandard();
  28. }else if(options.type === 'service_standard'){
  29. this.getServiceStandard();
  30. }else{
  31. this.getTips();
  32. }
  33. },
  34. methods: {
  35. // 获取关于我们
  36. async getTips(){
  37. let res = await tipsDetail(this.id);
  38. this.article = res.data.datas.content;
  39. uni.setNavigationBarTitle({
  40. title: res.data.datas.title
  41. })
  42. },
  43. // 获取关于我们
  44. async getAboutUsDetail(){
  45. let res = await aboutUs();
  46. this.article = res.data.datas.content;
  47. uni.setNavigationBarTitle({
  48. title: res.data.datas.title
  49. })
  50. },
  51. // 获取快速评级的相关协议
  52. async getGradeAgreement(){
  53. let res = await gradeAgreement();
  54. this.article = res.data.datas.content;
  55. uni.setNavigationBarTitle({
  56. title: res.data.datas.title
  57. })
  58. },
  59. // 获取用户隐私协议协议
  60. async getPrivacyAgreement(){
  61. let res = await privacyAgreement();
  62. this.article = res.data.datas.content;
  63. uni.setNavigationBarTitle({
  64. title: res.data.datas.title
  65. })
  66. },
  67. // 获取卡砖设计
  68. async getCardDesign(){
  69. let res = await cardDesign();
  70. this.article = res.data.datas.content;
  71. uni.setNavigationBarTitle({
  72. title: res.data.datas.title
  73. })
  74. },
  75. // 获取评级标准
  76. async getRatingStandard(){
  77. let res = await ratingStandard();
  78. this.article = res.data.datas.content;
  79. uni.setNavigationBarTitle({
  80. title: res.data.datas.title
  81. })
  82. },
  83. async getServiceStandard(){
  84. let res = await getServiceStandard();
  85. this.article = res.data.datas.content;
  86. uni.setNavigationBarTitle({
  87. title: res.data.datas.title
  88. })
  89. },
  90. }
  91. }
  92. </script>
  93. <style>
  94. </style>