邓宏
2 years ago
10 changed files with 165 additions and 93 deletions
@ -0,0 +1,2 @@ |
|||
node_modules |
|||
/unpackage/dist/ |
@ -1,21 +1,14 @@ |
|||
import Vue from 'vue' |
|||
import App from './App' |
|||
import store from './store' |
|||
import uView from 'uview-ui'; |
|||
|
|||
// #ifndef VUE3
|
|||
import Vue from 'vue' |
|||
Vue.use(uView) |
|||
Vue.prototype.$store=store |
|||
Vue.config.productionTip = false |
|||
App.mpType = 'app' |
|||
const app = new Vue({ |
|||
...App |
|||
...App, |
|||
store, |
|||
}) |
|||
app.$mount() |
|||
// #endif
|
|||
|
|||
// #ifdef VUE3
|
|||
import { createSSRApp } from 'vue' |
|||
export function createApp() { |
|||
const app = createSSRApp(App) |
|||
return { |
|||
app |
|||
} |
|||
} |
|||
// #endif
|
|||
app.$mount() |
@ -1,15 +1,32 @@ |
|||
{ |
|||
"name": "plant_manage_mobile", |
|||
"lockfileVersion": 2, |
|||
"requires": true, |
|||
"packages": { |
|||
"node_modules/uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
|||
"engines": { |
|||
"HBuilderX": "^3.1.0" |
|||
} |
|||
} |
|||
} |
|||
"name": "plant_manage_mobile", |
|||
"version": "1.0.0", |
|||
"lockfileVersion": 2, |
|||
"requires": true, |
|||
"packages": { |
|||
"node_modules/callsites": { |
|||
"version": "3.1.0", |
|||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
|||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
|||
"engines": { |
|||
"node": ">=6" |
|||
} |
|||
}, |
|||
"node_modules/uni-pages-hot-modules": { |
|||
"version": "0.1.3", |
|||
"resolved": "https://registry.npmjs.org/uni-pages-hot-modules/-/uni-pages-hot-modules-0.1.3.tgz", |
|||
"integrity": "sha512-2nZ6XeHkLtdNLCSDl+/N9+SiXvcLbULyRBHBMyvs5sK9AUfexVlpJZT6InqKYv1DuCZm/+g7HL43f/qvTWqB9Q==", |
|||
"dependencies": { |
|||
"callsites": "^3.1.0" |
|||
} |
|||
}, |
|||
"node_modules/uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
|||
"engines": { |
|||
"HBuilderX": "^3.1.0" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
@ -1,27 +1,60 @@ |
|||
{ |
|||
"name": "plant_manage_mobile", |
|||
"lockfileVersion": 2, |
|||
"requires": true, |
|||
"packages": { |
|||
"": { |
|||
"dependencies": { |
|||
"uview-ui": "^2.0.35" |
|||
} |
|||
}, |
|||
"node_modules/uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
|||
"engines": { |
|||
"HBuilderX": "^3.1.0" |
|||
} |
|||
} |
|||
}, |
|||
"dependencies": { |
|||
"uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==" |
|||
} |
|||
} |
|||
"name": "plant_manage_mobile", |
|||
"version": "1.0.0", |
|||
"lockfileVersion": 2, |
|||
"requires": true, |
|||
"packages": { |
|||
"": { |
|||
"name": "plant_manage_mobile", |
|||
"version": "1.0.0", |
|||
"dependencies": { |
|||
"uni-pages-hot-modules": "^0.1.1", |
|||
"uview-ui": "^2.0.33" |
|||
} |
|||
}, |
|||
"node_modules/callsites": { |
|||
"version": "3.1.0", |
|||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
|||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
|||
"engines": { |
|||
"node": ">=6" |
|||
} |
|||
}, |
|||
"node_modules/uni-pages-hot-modules": { |
|||
"version": "0.1.3", |
|||
"resolved": "https://registry.npmjs.org/uni-pages-hot-modules/-/uni-pages-hot-modules-0.1.3.tgz", |
|||
"integrity": "sha512-2nZ6XeHkLtdNLCSDl+/N9+SiXvcLbULyRBHBMyvs5sK9AUfexVlpJZT6InqKYv1DuCZm/+g7HL43f/qvTWqB9Q==", |
|||
"dependencies": { |
|||
"callsites": "^3.1.0" |
|||
} |
|||
}, |
|||
"node_modules/uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
|||
"engines": { |
|||
"HBuilderX": "^3.1.0" |
|||
} |
|||
} |
|||
}, |
|||
"dependencies": { |
|||
"callsites": { |
|||
"version": "3.1.0", |
|||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
|||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" |
|||
}, |
|||
"uni-pages-hot-modules": { |
|||
"version": "0.1.3", |
|||
"resolved": "https://registry.npmjs.org/uni-pages-hot-modules/-/uni-pages-hot-modules-0.1.3.tgz", |
|||
"integrity": "sha512-2nZ6XeHkLtdNLCSDl+/N9+SiXvcLbULyRBHBMyvs5sK9AUfexVlpJZT6InqKYv1DuCZm/+g7HL43f/qvTWqB9Q==", |
|||
"requires": { |
|||
"callsites": "^3.1.0" |
|||
} |
|||
}, |
|||
"uview-ui": { |
|||
"version": "2.0.35", |
|||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
|||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==" |
|||
} |
|||
} |
|||
} |
|||
|
@ -1,5 +1,9 @@ |
|||
{ |
|||
"dependencies": { |
|||
"uview-ui": "^2.0.35" |
|||
} |
|||
"name":"plant_manage_mobile", |
|||
"version":"1.0.0", |
|||
"main":"main.js", |
|||
"dependencies": { |
|||
"uni-pages-hot-modules": "^0.1.1", |
|||
"uview-ui": "^2.0.33" |
|||
} |
|||
} |
|||
|
@ -0,0 +1,18 @@ |
|||
const {hot} = require('uni-pages-hot-modules') |
|||
|
|||
module.exports = hot((pagesJson)=>{ |
|||
return{ |
|||
...pagesJson, |
|||
pages:[ |
|||
{ |
|||
"path":"pages/index/index", |
|||
"style":{ |
|||
"navigationBarTitleText":"种植管理", |
|||
"app-plus":{ |
|||
"titleNView":true |
|||
} |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}) |
@ -0,0 +1,10 @@ |
|||
import Vue from 'vue' |
|||
import Vuex from 'vuex' |
|||
Vue.use(Vuex) |
|||
|
|||
export default new Vuex.Store({ |
|||
state:{}, |
|||
getters:{}, |
|||
mutations:{}, |
|||
actions:{} |
|||
}) |
Loading…
Reference in new issue