intro.vue 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view>
  3. <view class="icon-title-navBar-box">
  4. <view class="nav-bar-icon" @click="handleBack"></view>
  5. <text class="nav-bar-title">商城</text>
  6. </view>
  7. <view>
  8. <image :src="imageUrl" alt=""></image>
  9. </view>
  10. <view>
  11. <view @click="fenxiang">分享</view>
  12. <view @click="handleStudy">立即报名学习</view>
  13. </view>
  14. </view>
  15. </template>
  16. <script setup>
  17. import {
  18. reactive,
  19. ref
  20. } from "vue";
  21. import {
  22. onLoad,
  23. onShow
  24. } from "@dcloudio/uni-app"
  25. import * as shopHttp from "@/api/shop.js"
  26. const imageUrl = ref(null);
  27. onLoad(() => {
  28. initPage()
  29. })
  30. function initPage() {
  31. shopHttp.getAppShuxueInfo().then(res => {
  32. imageUrl.value = res.data.image;
  33. })
  34. }
  35. function fenxiang() {}
  36. function handleStudy() {
  37. uni.navigateTo({
  38. url: '/pages/chanpinShop/cp1/dingdan'
  39. })
  40. }
  41. </script>
  42. <style>
  43. </style>