Commit f1b13326 by 曾经

Merge branch 'feature/停复机1' into dev

* feature/停复机1:
  暂无已结束活动 空页面
  已完成活动列表
  展示白条问题
  开发环境 域名替换
  update: dist
  update: dist
parents be73f5d4 e50a986f
......@@ -9,28 +9,28 @@
module.exports = {
proxyList: {
'/api-auth/': {
target: 'http://gicdev.demogic.com/api-auth/',
target: 'http://www.gicdev.com/api-auth/',
changeOrigin: true,
pathRewrite: {
'^/api-auth': ''
}
},
'/api-admin/': {
target: 'http://gicdev.demogic.com/api-admin/',
target: 'http://www.gicdev.com/api-admin/',
changeOrigin: true,
pathRewrite: {
'^/api-admin': ''
}
},
'/api-plug/': {
target: 'http://gicdev.demogic.com/api-plug/',
target: 'http://www.gicdev.com/api-plug/',
changeOrigin: true,
pathRewrite: {
'^/api-plug': ''
}
},
'/sharing-core-web/': {
target: 'http://gicdev.demogic.com/sharing-core-web/',
target: 'http://www.gicdev.com/sharing-core-web/',
changeOrigin: true,
pathRewrite: {
'^/sharing-core-web': ''
......
......@@ -12,6 +12,8 @@
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/c/font_3380872_vkgiwdkji6p.css" />
<script src="//at.alicdn.com/t/c/font_3380872_vkgiwdkji6p.js"></script>
<title></title>
<!-- <title>分享有礼</title> -->
</head>
......
......@@ -22,7 +22,7 @@ export default {
},
created() {
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : window.location.origin;
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : window.location.origin;
this._getUserInfo();
this.changeTab();
},
......
......@@ -8,7 +8,7 @@ import {
Vue.axios.defaults.timeout = 25000;
let local = window.location.origin;
if (local.indexOf('localhost') != -1) {
local = 'http://gicdev.demogic.com';
local = 'http://www.gicdev.com';
}
Vue.axios.interceptors.request.use(
......
......@@ -17,7 +17,7 @@ export default {
errorMsg: function (response) {
let local = window.location.origin;
if (local.indexOf('localhost')) {
local = 'http://gicdev.demogic.com';
local = 'http://www.gicdev.com';
}
if (response.errorCode != 1) {
if (response.errorCode == 4) {
......
......@@ -14,8 +14,8 @@ import finishedActive from '@/components/active/finished-active.vue';
<template>
<div>
<div v-if="finishedData.length" class="separator-space">- 以下为已结束活动 -</div>
<div class="finished-active border-box">
<div class="separator-space">- 以下为已结束活动 -</div>
<div class="finished-active border-box" v-if="finishedData.length">
<ul>
<template v-for="(item, index) in finishedData">
<li :class="['border-box', selectItem == item.activityId && index != 0 ? 'li-border' : '']" :key="index + 'data'">
......@@ -44,6 +44,15 @@ import finishedActive from '@/components/active/finished-active.vue';
<dm-pagination small :page-size="pageSize" :current-page="currentPage" layout="prev, pager, next" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange"> </dm-pagination>
</div>
</div>
<div class="empty-page" v-else-if="haveLoad">
<div class="empty-box">
<!-- <div class="icon iconfont icon-no-data"></div> -->
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-no-data"></use>
</svg>
<div class="empty-text">暂无已结束活动</div>
</div>
</div>
</div>
</template>
<script>
......@@ -58,6 +67,7 @@ export default {
},
data() {
return {
haveLoad: false,
funnelData: [],
barChartData: {
columns: ['日期', '访问用户', '下单用户'],
......@@ -173,11 +183,13 @@ export default {
} */
that.finishedData = resData.result.result || [];
that.total = resData.result.totalCount;
that.haveLoad = true;
return false;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.haveLoad = true;
that.$message.error({
duration: 2500,
message: error.message
......@@ -231,4 +243,28 @@ export default {
}
}
}
.empty-page{
position: relative;
height: 300px;
background: white;
.empty-box {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
.icon {
width: 96px;
height: 96px;
margin: 0 auto;
}
.empty-text{
margin-top: 12px;
color: #606266;
font-size: 14px;
}
}
}
</style>
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
......@@ -101,7 +101,7 @@ export default {
const that = this;
let host = window.location.origin;
if (host.indexOf('localhost') != -1) {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......@@ -117,7 +117,7 @@ export default {
let host = window.location.origin;
let baseUrl;
if (host.indexOf('localhost') != '-1') {
baseUrl = 'http://gicdev.demogic.com';
baseUrl = 'http://www.gicdev.com';
} else {
baseUrl = host;
}
......
const host = window.location.origin;
// eslint-disable-next-line
export const baseUrl = host.indexOf('localhost') > '-1' ? 'http://gicdev.demogic.com' : host;
export const baseUrl = host.indexOf('localhost') > '-1' ? 'http://www.gicdev.com' : host;
export const ERR_OK = 0;
......@@ -4,7 +4,7 @@ import { Message } from 'element-ui';
const host = window.location.origin;
const BASEURL = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com/gic-member-tag-web' : `${host}/gic-member-tag-web`;
const BASEURL = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com/gic-member-tag-web' : `${host}/gic-member-tag-web`;
const server = axios.create({
baseURL: BASEURL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment