| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <view>
- <view class="icon-title-navBar-box">
- <view class="nav-bar-icon" @click="handleBack"></view>
- <text class="nav-bar-title">商城</text>
- </view>
- <view>
- <image :src="imageUrl" alt=""></image>
- </view>
- <view>
- <view @click="fenxiang">分享</view>
- <view @click="handleStudy">立即报名学习</view>
- </view>
- </view>
- </template>
- <script setup>
- import {
- reactive,
- ref
- } from "vue";
- import {
- onLoad,
- onShow
- } from "@dcloudio/uni-app"
- import * as shopHttp from "@/api/shop.js"
-
- const imageUrl = ref(null);
- onLoad(() => {
- initPage()
- })
- function initPage() {
- shopHttp.getAppShuxueInfo().then(res => {
- imageUrl.value = res.data.image;
- })
- }
-
- function fenxiang() {}
- function handleStudy() {
- uni.navigateTo({
- url: '/pages/chanpinShop/cp1/dingdan'
- })
- }
- </script>
- <style>
- </style>
|