优化buyer端配置信息完善性

master
lemon橪 2021-11-18 17:10:44 +08:00
parent 1ac5dcfe25
commit 6c6b89f512
12 changed files with 21 additions and 30 deletions

View File

@ -68,12 +68,12 @@
</template>
<script>
import config from '@/config'
export default {
name: "Footer",
data() {
return {
config,
config:require('@/config'),
guideArr: [
//
["购物指南", "购物流程", "会员介绍", "生活旅行", "常见问题"],

View File

@ -49,7 +49,7 @@
</template>
<script>
import config from '@/config'
import {articleList} from '@/api/common.js'
import storage from '@/plugins/storage';
export default {
@ -57,7 +57,7 @@ export default {
props: ['data'],
data () {
return {
config,
config:require('@/config'),
userInfo: {}, //
articleList: [], //
params: { //

View File

@ -57,7 +57,7 @@
</template>
<script>
import config from '@/config'
import {articleList} from '@/api/common.js'
import storage from '@/plugins/storage';
export default {
@ -65,7 +65,7 @@ export default {
props: ['data'],
data () {
return {
config,
config:require('@/config'),
userInfo: {}, //
articleList: [], //
params: { //

View File

@ -31,7 +31,7 @@
<script>
import AMapLoader from '@amap/amap-jsapi-loader';
import { handleRegion } from '@/api/address.js';
import config from '@/config'
export default {
name: 'map',
props: {
@ -42,7 +42,7 @@ export default {
},
data () {
return {
config,
config:require('@/config'),
showMap: false, //
mapSearch: '', //
map: null, //

View File

@ -1,4 +1,4 @@
export default {
module.exports = {
/**
* @description 配置显示在浏览器标签的title底部信息部分信息展示的值
*/
@ -30,13 +30,5 @@ export default {
* @description 高德web端申请的api key
*/
aMapKey: "b440952723253aa9fe483e698057bf7d",
/**
* @description 需要加载的插件
*/
plugin: {
"error-store": {
showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
developmentOff: true // 设为true后在开发环境不会收集错误信息方便开发中排查错误
}
}
};

View File

@ -10,6 +10,7 @@ import storage from '@/plugins/storage';
// 全局引入封装组件
import {InstallAll} from '@/components/global.js';
let title = require('@/config').title
Vue.use(ViewUI);
Vue.use(InstallAll);
Vue.config.productionTip = false;
@ -20,7 +21,7 @@ Object.keys(filters).forEach(key => {
router.beforeEach((to, from, next) => {
ViewUI.LoadingBar.start();
window.document.title = to.meta.title === undefined ? 'lili shop' : to.meta.title
window.document.title = to.meta.title === undefined ? title : to.meta.title
next();
});

View File

@ -108,7 +108,7 @@
</template>
<script>
import config from '@/config'
import * as RegExp from '@/plugins/RegExp.js';
import { md5 } from '@/plugins/md5.js';
import * as apiLogin from '@/api/login.js';
@ -119,7 +119,7 @@ export default {
components: { Verify },
data () {
return {
config,
config:require('@/config'),
loading: false, //
loading1: false, //
formFirst: { //

View File

@ -96,14 +96,14 @@
<Row type="flex" justify="center" class="copyright">
Copyright © {{year}} - Present
<a href="https://pickmall.cn" target="_blank" style="margin: 0 5px">{{config.title}}</a>
版权所有
版权所有
</Row>
</div>
</div>
</template>
<script>
import config from '@/config'
import * as RegExp from "@/plugins/RegExp.js";
import { md5 } from "@/plugins/md5.js";
import * as apiLogin from "@/api/login.js";
@ -119,7 +119,7 @@ export default {
},
data() {
return {
config,
config:require('@/config'),
type: true, // true false
formData: {
//

View File

@ -97,7 +97,7 @@
</template>
<script>
import config from '@/config'
import * as RegExp from '@/plugins/RegExp.js';
import { md5 } from '@/plugins/md5.js';
import * as apiLogin from '@/api/login.js';
@ -108,7 +108,7 @@ export default {
components: { Verify },
data () {
return {
config,
config:require('@/config'),
year: new Date().getFullYear(),
formRegist: {
//

View File

@ -4,6 +4,7 @@ const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const resolve = dir => {
return path.join(__dirname, dir);
};
const configs = require('./src/config')
/**
* 在项目开发的时候将生产环境以及开发环境进行判断
* 将生产环境中的路径用cdn来进行优化处理
@ -128,6 +129,7 @@ module.exports = {
config.resolve.alias.set("@", resolve("src"));
config.plugin("html").tap(args => {
args[0].cdn = cdn;
args[0].title = configs.title;
return args;
});
}

View File

@ -88,8 +88,6 @@
width="800"
:z-index="100"
:mask-closable="false"
>
<!-- 分类tab栏 -->
<div class="modal-tab-bar">

View File

@ -148,8 +148,6 @@
width="800"
:z-index="100"
:mask-closable="false"
>
<div class="modal-top-advert">
<div>