优化buyer端配置信息完善性
parent
1ac5dcfe25
commit
6c6b89f512
|
@ -68,12 +68,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
export default {
|
export default {
|
||||||
name: "Footer",
|
name: "Footer",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
guideArr: [
|
guideArr: [
|
||||||
// 导航链接
|
// 导航链接
|
||||||
["购物指南", "购物流程", "会员介绍", "生活旅行", "常见问题"],
|
["购物指南", "购物流程", "会员介绍", "生活旅行", "常见问题"],
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
import {articleList} from '@/api/common.js'
|
import {articleList} from '@/api/common.js'
|
||||||
import storage from '@/plugins/storage';
|
import storage from '@/plugins/storage';
|
||||||
export default {
|
export default {
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
props: ['data'],
|
props: ['data'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
userInfo: {}, // 用户信息
|
userInfo: {}, // 用户信息
|
||||||
articleList: [], // 常见问题
|
articleList: [], // 常见问题
|
||||||
params: { // 请求常见问题参数
|
params: { // 请求常见问题参数
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
import {articleList} from '@/api/common.js'
|
import {articleList} from '@/api/common.js'
|
||||||
import storage from '@/plugins/storage';
|
import storage from '@/plugins/storage';
|
||||||
export default {
|
export default {
|
||||||
|
@ -65,7 +65,7 @@ export default {
|
||||||
props: ['data'],
|
props: ['data'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
userInfo: {}, // 用户信息
|
userInfo: {}, // 用户信息
|
||||||
articleList: [], // 常见问题
|
articleList: [], // 常见问题
|
||||||
params: { // 请求常见问题参数
|
params: { // 请求常见问题参数
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<script>
|
<script>
|
||||||
import AMapLoader from '@amap/amap-jsapi-loader';
|
import AMapLoader from '@amap/amap-jsapi-loader';
|
||||||
import { handleRegion } from '@/api/address.js';
|
import { handleRegion } from '@/api/address.js';
|
||||||
import config from '@/config'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'map',
|
name: 'map',
|
||||||
props: {
|
props: {
|
||||||
|
@ -42,7 +42,7 @@ export default {
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
showMap: false, // 展示地图
|
showMap: false, // 展示地图
|
||||||
mapSearch: '', // 地图搜索
|
mapSearch: '', // 地图搜索
|
||||||
map: null, // 初始化地图
|
map: null, // 初始化地图
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default {
|
module.exports = {
|
||||||
/**
|
/**
|
||||||
* @description 配置显示在浏览器标签的title、底部信息、部分信息展示的值
|
* @description 配置显示在浏览器标签的title、底部信息、部分信息展示的值
|
||||||
*/
|
*/
|
||||||
|
@ -30,13 +30,5 @@ export default {
|
||||||
* @description 高德web端申请的api key
|
* @description 高德web端申请的api key
|
||||||
*/
|
*/
|
||||||
aMapKey: "b440952723253aa9fe483e698057bf7d",
|
aMapKey: "b440952723253aa9fe483e698057bf7d",
|
||||||
/**
|
|
||||||
* @description 需要加载的插件
|
|
||||||
*/
|
|
||||||
plugin: {
|
|
||||||
"error-store": {
|
|
||||||
showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
|
|
||||||
developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,7 @@ import storage from '@/plugins/storage';
|
||||||
// 全局引入封装组件
|
// 全局引入封装组件
|
||||||
import {InstallAll} from '@/components/global.js';
|
import {InstallAll} from '@/components/global.js';
|
||||||
|
|
||||||
|
let title = require('@/config').title
|
||||||
Vue.use(ViewUI);
|
Vue.use(ViewUI);
|
||||||
Vue.use(InstallAll);
|
Vue.use(InstallAll);
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
@ -20,7 +21,7 @@ Object.keys(filters).forEach(key => {
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
ViewUI.LoadingBar.start();
|
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();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
import * as RegExp from '@/plugins/RegExp.js';
|
import * as RegExp from '@/plugins/RegExp.js';
|
||||||
import { md5 } from '@/plugins/md5.js';
|
import { md5 } from '@/plugins/md5.js';
|
||||||
import * as apiLogin from '@/api/login.js';
|
import * as apiLogin from '@/api/login.js';
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
||||||
components: { Verify },
|
components: { Verify },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
loading: false, // 加载状态
|
loading: false, // 加载状态
|
||||||
loading1: false, // 第二步加载状态
|
loading1: false, // 第二步加载状态
|
||||||
formFirst: { // 手机验证码表单
|
formFirst: { // 手机验证码表单
|
||||||
|
|
|
@ -96,14 +96,14 @@
|
||||||
<Row type="flex" justify="center" class="copyright">
|
<Row type="flex" justify="center" class="copyright">
|
||||||
Copyright © {{year}} - Present
|
Copyright © {{year}} - Present
|
||||||
<a href="https://pickmall.cn" target="_blank" style="margin: 0 5px">{{config.title}}</a>
|
<a href="https://pickmall.cn" target="_blank" style="margin: 0 5px">{{config.title}}</a>
|
||||||
版权所有
|
版权所有
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
import * as RegExp from "@/plugins/RegExp.js";
|
import * as RegExp from "@/plugins/RegExp.js";
|
||||||
import { md5 } from "@/plugins/md5.js";
|
import { md5 } from "@/plugins/md5.js";
|
||||||
import * as apiLogin from "@/api/login.js";
|
import * as apiLogin from "@/api/login.js";
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
type: true, // true 账号登录 false 验证码登录
|
type: true, // true 账号登录 false 验证码登录
|
||||||
formData: {
|
formData: {
|
||||||
// 登录表单
|
// 登录表单
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
|
||||||
import * as RegExp from '@/plugins/RegExp.js';
|
import * as RegExp from '@/plugins/RegExp.js';
|
||||||
import { md5 } from '@/plugins/md5.js';
|
import { md5 } from '@/plugins/md5.js';
|
||||||
import * as apiLogin from '@/api/login.js';
|
import * as apiLogin from '@/api/login.js';
|
||||||
|
@ -108,7 +108,7 @@ export default {
|
||||||
components: { Verify },
|
components: { Verify },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config,
|
config:require('@/config'),
|
||||||
year: new Date().getFullYear(),
|
year: new Date().getFullYear(),
|
||||||
formRegist: {
|
formRegist: {
|
||||||
// 注册表单
|
// 注册表单
|
||||||
|
|
|
@ -4,6 +4,7 @@ const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
||||||
const resolve = dir => {
|
const resolve = dir => {
|
||||||
return path.join(__dirname, dir);
|
return path.join(__dirname, dir);
|
||||||
};
|
};
|
||||||
|
const configs = require('./src/config')
|
||||||
/**
|
/**
|
||||||
* 在项目开发的时候将生产环境以及开发环境进行判断
|
* 在项目开发的时候将生产环境以及开发环境进行判断
|
||||||
* 将生产环境中的路径用cdn来进行优化处理
|
* 将生产环境中的路径用cdn来进行优化处理
|
||||||
|
@ -128,6 +129,7 @@ module.exports = {
|
||||||
config.resolve.alias.set("@", resolve("src"));
|
config.resolve.alias.set("@", resolve("src"));
|
||||||
config.plugin("html").tap(args => {
|
config.plugin("html").tap(args => {
|
||||||
args[0].cdn = cdn;
|
args[0].cdn = cdn;
|
||||||
|
args[0].title = configs.title;
|
||||||
return args;
|
return args;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,8 +88,6 @@
|
||||||
width="800"
|
width="800"
|
||||||
:z-index="100"
|
:z-index="100"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<!-- 分类tab栏 -->
|
<!-- 分类tab栏 -->
|
||||||
<div class="modal-tab-bar">
|
<div class="modal-tab-bar">
|
||||||
|
|
|
@ -148,8 +148,6 @@
|
||||||
width="800"
|
width="800"
|
||||||
:z-index="100"
|
:z-index="100"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<div class="modal-top-advert">
|
<div class="modal-top-advert">
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue