Commit 4476a063 authored by 杨梦雪's avatar 杨梦雪

bug

parent 2899052a
...@@ -114,7 +114,8 @@ export function request(config) { ...@@ -114,7 +114,8 @@ export function request(config) {
config.url.indexOf(passwordEmailCode) != -1 || config.url.indexOf(passwordEmailCode) != -1 ||
config.url.indexOf(changePassCode) != -1 || config.url.indexOf(changePassCode) != -1 ||
config.url.indexOf(passwordCode) != -1 || config.url.indexOf(passwordCode) != -1 ||
config.url.indexOf(setLog) != -1) { config.url.indexOf(setLog) != -1)
{
return config return config
} }
const token = localStorage.getItem('index-token-all'); const token = localStorage.getItem('index-token-all');
......
import {setLog} from "../request/index/signUp"; import {setLog} from "../request/index/signUp";
import el from "element-ui/src/locale/lang/el";
//埋点 //埋点
export function commonApi(number) { export function commonApi(number, id) {
console.log(number, "number"); console.log(number, "number");
setLog({type:number}).then((res) => { setLog({type: number, id: id}).then((res) => {
console.log(number, "number");
console.log(res, "signBack"); console.log(res, "signBack");
if (res.data.code != 200) { if (res.data.code != 200) {
return return
} }
}).catch(err=>{ }).catch(err => {
console.log(err, "err"); console.log(err, "err");
}); });
} }
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</div> </div>
<div class="active-list-item-cont-txt3">报名截止时间:{{formatYMDChina(item.bmEndTime)}}</div> <div class="active-list-item-cont-txt3">报名截止时间:{{formatYMDChina(item.bmEndTime)}}</div>
</div> </div>
<div class="active-list-item-bottom" @click="$router.push('/active/'+item.id)"> <div class="active-list-item-bottom" @click="toActive(item.id)">
<div>查看详情</div> <div>查看详情</div>
<i class="el-icon-right"></i> <i class="el-icon-right"></i>
</div> </div>
...@@ -408,6 +408,11 @@ ...@@ -408,6 +408,11 @@
this.queryForm.activityStatus = val.join(','); this.queryForm.activityStatus = val.join(',');
} }
}, },
//查看详情
toActive(id){
this.commonApi(36,id)
this.$router.push('/active/'+id);
},
} }
} }
</script> </script>
......
...@@ -180,8 +180,8 @@ ...@@ -180,8 +180,8 @@
}, },
//查看详情 //查看详情
toActive(id){ toActive(id){
this.commonApi(29) this.commonApi(36,id)
this.$router.push('/active'+id); this.$router.push('/active/'+id);
}, },
getHot() { getHot() {
hot().then((res) => { hot().then((res) => {
......
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