邓宏
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 App from './App' |
||||
|
import store from './store' |
||||
|
import uView from 'uview-ui'; |
||||
|
|
||||
// #ifndef VUE3
|
Vue.use(uView) |
||||
import Vue from 'vue' |
Vue.prototype.$store=store |
||||
Vue.config.productionTip = false |
Vue.config.productionTip = false |
||||
App.mpType = 'app' |
App.mpType = 'app' |
||||
const app = new Vue({ |
const app = new Vue({ |
||||
...App |
...App, |
||||
|
store, |
||||
}) |
}) |
||||
app.$mount() |
app.$mount() |
||||
// #endif
|
|
||||
|
|
||||
// #ifdef VUE3
|
|
||||
import { createSSRApp } from 'vue' |
|
||||
export function createApp() { |
|
||||
const app = createSSRApp(App) |
|
||||
return { |
|
||||
app |
|
||||
} |
|
||||
} |
|
||||
// #endif
|
|
@ -1,15 +1,32 @@ |
|||||
{ |
{ |
||||
"name": "plant_manage_mobile", |
"name": "plant_manage_mobile", |
||||
"lockfileVersion": 2, |
"version": "1.0.0", |
||||
"requires": true, |
"lockfileVersion": 2, |
||||
"packages": { |
"requires": true, |
||||
"node_modules/uview-ui": { |
"packages": { |
||||
"version": "2.0.35", |
"node_modules/callsites": { |
||||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
"version": "3.1.0", |
||||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
||||
"engines": { |
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
||||
"HBuilderX": "^3.1.0" |
"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", |
"name": "plant_manage_mobile", |
||||
"lockfileVersion": 2, |
"version": "1.0.0", |
||||
"requires": true, |
"lockfileVersion": 2, |
||||
"packages": { |
"requires": true, |
||||
"": { |
"packages": { |
||||
"dependencies": { |
"": { |
||||
"uview-ui": "^2.0.35" |
"name": "plant_manage_mobile", |
||||
} |
"version": "1.0.0", |
||||
}, |
"dependencies": { |
||||
"node_modules/uview-ui": { |
"uni-pages-hot-modules": "^0.1.1", |
||||
"version": "2.0.35", |
"uview-ui": "^2.0.33" |
||||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
} |
||||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==", |
}, |
||||
"engines": { |
"node_modules/callsites": { |
||||
"HBuilderX": "^3.1.0" |
"version": "3.1.0", |
||||
} |
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
||||
} |
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
||||
}, |
"engines": { |
||||
"dependencies": { |
"node": ">=6" |
||||
"uview-ui": { |
} |
||||
"version": "2.0.35", |
}, |
||||
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", |
"node_modules/uni-pages-hot-modules": { |
||||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==" |
"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": { |
"name":"plant_manage_mobile", |
||||
"uview-ui": "^2.0.35" |
"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