提交 3455ac61 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

Merge branch 'dev-new-campaign-0302' of...

Merge branch 'dev-new-campaign-0302' of 192.168.110.53:com.pica.cloud.education.frontend/pica-new-compaign into dev-new-campaign-0302
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" x="0px"
y="0px" y="0px"
width="40" width="80"
height="40" height="80"
viewBox="0 0 60 60" viewBox="0 0 60 60"
style="enable-background:new 0 0 80 80;" style="enable-background:new 0 0 80 80;"
xml:space="preserve" xml:space="preserve"
...@@ -53,6 +53,6 @@ ...@@ -53,6 +53,6 @@
svg path, svg path,
svg rect { svg rect {
fill: #449284; fill: #aaa;
} }
</style> </style>
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
</div> </div>
</div> </div>
</div> </div>
<loading v-if="loadingFlag"></loading>
</div> </div>
</template> </template>
...@@ -52,8 +53,12 @@ ...@@ -52,8 +53,12 @@
import { getNewActivityDesc } from '@/service'; import { getNewActivityDesc } from '@/service';
// const cookies = require('cookie-universal')(); // const cookies = require('cookie-universal')();
import { setCookie, getCookie, delCookie } from '@/utils/index'; import { setCookie, getCookie, delCookie } from '@/utils/index';
import loading from '../components/bussiness/common-loading';
export default { export default {
name: 'TaskActivity', name: 'TaskActivity',
components: {
loading
},
props: { props: {
acTempId: { acTempId: {
type: Number | String, type: Number | String,
...@@ -86,6 +91,7 @@ export default { ...@@ -86,6 +91,7 @@ export default {
}, },
data() { data() {
return { return {
loadingFlag: false,
taskList: [], taskList: [],
status: true, status: true,
statusText: '去完成', statusText: '去完成',
...@@ -146,7 +152,7 @@ export default { ...@@ -146,7 +152,7 @@ export default {
}, },
// 活动详情 // 活动详情
getNewActivityDesc() { getNewActivityDesc() {
let self = this; this.loadingFlag = true;
let req = null; let req = null;
let {acTempId, acToken} = this; let {acTempId, acToken} = this;
req = { req = {
...@@ -154,6 +160,7 @@ export default { ...@@ -154,6 +160,7 @@ export default {
token: getCookie('token') token: getCookie('token')
} }
getNewActivityDesc({ id: req.id, token: req.token }).then(res => { getNewActivityDesc({ id: req.id, token: req.token }).then(res => {
this.loadingFlag = false;
if(res.code == '000000') { if(res.code == '000000') {
if(res.data.loginStatus == 2) { // 未登录 或者token失效 if(res.data.loginStatus == 2) { // 未登录 或者token失效
delCookie('token'); delCookie('token');
......
...@@ -58,9 +58,7 @@ export default { ...@@ -58,9 +58,7 @@ export default {
pubKey: '' pubKey: ''
} }
}, },
created() { created() {},
},
mounted() { mounted() {
this.activityId = parseInt(this.$route.query.activityId); this.activityId = parseInt(this.$route.query.activityId);
this.taskId = parseInt(this.$route.query.taskId); this.taskId = parseInt(this.$route.query.taskId);
...@@ -172,7 +170,7 @@ export default { ...@@ -172,7 +170,7 @@ export default {
let param = { let param = {
mobile: this.mobilePhone, mobile: this.mobilePhone,
authCode: this.authCode, authCode: this.authCode,
id: this.userId, id: this.userId.replace(/\s/g,'+'),
taskId: this.taskId, taskId: this.taskId,
activityId: this.activityId activityId: this.activityId
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册