ai_pp.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="page">
  3. <image class="ai_pp" mode="widthFix" src="../../static/home/ai_pipei.jpg"></image>
  4. <image class="pp_title" mode="widthFix" src="../../static/home/pp_title.png"></image>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. components: {},
  10. data() {
  11. return {
  12. title: '',
  13. list: [],
  14. }
  15. },
  16. onLoad() {
  17. let that = this;
  18. setTimeout(function() {
  19. that.loadData();
  20. }, 2000);
  21. },
  22. onShow() {},
  23. methods: {
  24. goHome(uid) {
  25. uni.redirectTo({
  26. url: '/pages/index/peopleHome?uid=' + uid
  27. })
  28. },
  29. loadData() {
  30. console.log({
  31. uuid: getApp().globalData.uuid,
  32. skey: getApp().globalData.skey
  33. });
  34. uni.request({
  35. url: this.$apiHost + '/Index/aiPP',
  36. data: {
  37. uuid: getApp().globalData.uuid
  38. },
  39. header: {
  40. "content-type": "application/json",
  41. 'sign': getApp().globalData.headerSign
  42. },
  43. success: (res) => {
  44. console.log("----:", res.data);
  45. this.goHome(res.data.userID);
  46. },
  47. complete: (com) => {
  48. // uni.hideLoading();
  49. },
  50. fail: (e) => {
  51. console.log("----e:", e);
  52. }
  53. });
  54. },
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. @import 'ai_pp.scss';
  60. </style>