3 Star 3 Fork 1

张文涛 / 物业小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
张文涛 提交于 2024-03-20 10:16 . 初始化
import App from './App'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.mixin({
data() {
return {}
},
onLoad() {
// #ifdef MP-WEIXIN
uni.showShareMenu({})
// #endif
},
onShareAppMessage(res) {
return {
title: '里派物业,快来看看吧!',
path: '/pages/index/index',
imageUrl: 'https://mp-773911e8-6917-4f03-9f50-e2393807e7c3.cdn.bspapp.com/cloudstorage/37e8fc22-7550-4d13-82d1-ff7f341fd8a1.png',
success: function(shareTickets) {
console.log(shareTickets + '成功');
},
fail: function(res) {
console.log(res + '失败');
}
}
}
})
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zwtymm/property-mini-program.git
git@gitee.com:zwtymm/property-mini-program.git
zwtymm
property-mini-program
物业小程序
master

搜索帮助