HolyKnightIX 1 rok temu
rodzic
commit
7138737015
3 zmienionych plików z 24 dodań i 19 usunięć
  1. +3
    -0
      src/main.js
  2. +0
    -19
      src/pages/uploadPhoto/uploadPhoto.vue
  3. +21
    -0
      src/utils/share.js

+ 3
- 0
src/main.js Wyświetl plik

@@ -5,10 +5,13 @@ import "./style/my.scss";
//#region VUE3
import { createSSRApp } from 'vue'
import { store } from '../src/store/index'
import share from "../src/utils/share"
export function createApp() {
const app = createSSRApp(App)
app.use(uviewPlus)
app.use(store)
app.mixin(share)
return {
app
}


+ 0
- 19
src/pages/uploadPhoto/uploadPhoto.vue Wyświetl plik

@@ -424,25 +424,6 @@ onShow(() => {
});
//#endregion ---------------------
onShareAppMessage((res) => {
return {
title: "邃芒智像",
};
});
// 分享到朋友圈
onShareTimeline((res) => {
return {
title: "邃芒智像",
};
});
// 收藏
onAddToFavorites((res) => {
return {
title: "邃芒智像",
};
});
//#region 公共方法
function goOtherPage(url) {


+ 21
- 0
src/utils/share.js Wyświetl plik

@@ -0,0 +1,21 @@
export default {
onShareAppMessage() {
return {
title: "邃芒智像",
};
},

// 分享到朋友圈
onShareTimeline() {
return {
title: "邃芒智像",
};
},

// 收藏
onAddToFavorites() {
return {
title: "邃芒智像",
};
}
}

Ładowanie…
Anuluj
Zapisz