joinPlatfrom.vue 500 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view>
  3. <u-parse :content="agreement"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. agreement: "",
  11. };
  12. },
  13. methods: {
  14. getAgreement() {
  15. uni.$u.http.get(`/api/agreement?code=entry_agreement`).then((res) => {
  16. this.agreement = res.content_cn;
  17. });
  18. },
  19. },
  20. mounted() {
  21. this.getAgreement();
  22. uni.setNavigationBarTitle({
  23. title: "用户入驻申请协议",
  24. });
  25. },
  26. };
  27. </script>
  28. <style></style>