diff --git a/components/base/fileUpload.vue b/components/base/fileUpload.vue new file mode 100644 index 0000000..2518f4a --- /dev/null +++ b/components/base/fileUpload.vue @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/config.js b/config.js index 971f7be..0c638da 100644 --- a/config.js +++ b/config.js @@ -3,8 +3,6 @@ import Vue from 'vue' import api from '@/api/api.js' import utils from './utils/utils.js' -import uvUI from '@/uni_modules/uv-ui-tools' -Vue.use(uvUI); // 当前环境 const type = 'dev' @@ -41,14 +39,6 @@ const defaultConfig = { } -uni.$uv.setConfig({ - // 修改$uv.config对象的属性 - config: { - // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx' - unit: 'rpx' - }, -}) - Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type]) Vue.prototype.$api = api diff --git a/main.js b/main.js index 59a0cd7..8468fb0 100644 --- a/main.js +++ b/main.js @@ -15,6 +15,17 @@ import i18n from './locale/index.js' import './config' import './utils/index.js' +import uvUI from '@/uni_modules/uv-ui-tools' +Vue.use(uvUI); + +uni.$uv.setConfig({ + // 修改$uv.config对象的属性 + config: { + // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx' + unit: 'rpx' + }, +}) + //组件注册 import configPopup from '@/components/config/configPopup.vue' import changeLanguage from '@/components/base/changeLanguage.vue' diff --git a/manifest.json b/manifest.json index f3f3714..6f93d37 100644 --- a/manifest.json +++ b/manifest.json @@ -52,7 +52,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxe7ae8cbe1673834c", + "appid" : "wx3c24e397e3b132ea", "setting" : { "urlCheck" : false, "ignoreDevUnusedFiles" : false diff --git a/pages/publish/publishPost.vue b/pages/publish/publishPost.vue index e85a995..f0b3e69 100644 --- a/pages/publish/publishPost.vue +++ b/pages/publish/publishPost.vue @@ -6,14 +6,6 @@ title="发布帖子"/> - + placeholder="添加正文"> - + 是否置顶 @@ -75,10 +67,12 @@