intro.vue 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. import {getAppCp1Info} from "../../../api/shop";
  27. const imageUrl = ref(null);
  28. onLoad(() => {
  29. initPage()
  30. })
  31. function initPage() {
  32. shopHttp.getAppCp1Info().then(res => {
  33. imageUrl.value = res.data.image;
  34. })
  35. }
  36. function fenxiang() {}
  37. function handleStudy() {
  38. uni.navigateTo({
  39. url: '/pages/chanpinShop/cp1/dingdan'
  40. })
  41. }
  42. function handleBack() {
  43. uni.navigateBack()
  44. }
  45. </script>
  46. <style>
  47. </style>