Commit b1971dd9 by hank

签到后地址修改

parent cd6a6dc6
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
</div> </div>
</div> </div>
<div class="btn-box"> <div class="btn-box">
<button :class="btnClass" @click="save">{{isUse == 1 ? '签到' : '已签到'}}</button> <button :class="btnClass" @click="save">{{isUse == 1 ? '签到' : (isPhoto ? '我的摄影证' : '已签到')}}</button>
<button class="log" @click="toricheng">查看日程</button> <button class="log" @click="toricheng">摄影月赛</button>
<!-- <router-link to="http://mr-static.maxrocky.com/h5/wanda/dzgp" tag="button" class="log">查看日程</router-link> --> <!-- <router-link to="http://mr-static.maxrocky.com/h5/wanda/dzgp" tag="button" class="log">查看日程</router-link> -->
</div> </div>
<img src="../assets/bottom.png" alt="" class="bottom"> <img src="../assets/bottom.png" alt="" class="bottom">
...@@ -93,7 +93,11 @@ export default { ...@@ -93,7 +93,11 @@ export default {
obj1: {}, obj1: {},
obj2: {}, obj2: {},
obj3: {}, obj3: {},
isUse: 1 isUse: 1,
isPhoto: 0,
weburl: '/relay/contest/h5',
url: 'http://web-comment.canskj.cn' // 测试地址
// url: 'http://wanda-qj.maxrocky.com' // 正式地址
} }
}, },
computed: { computed: {
...@@ -136,6 +140,7 @@ export default { ...@@ -136,6 +140,7 @@ export default {
_this.phoneNumber = res.data.data.mobile _this.phoneNumber = res.data.data.mobile
_this.address1 = res.data.data.address _this.address1 = res.data.data.address
_this.danwei = res.data.data.company _this.danwei = res.data.data.company
_this.isPhoto = res.data.data.is_passport
} }
}) })
//分享 //分享
...@@ -185,10 +190,17 @@ export default { ...@@ -185,10 +190,17 @@ export default {
methods: { methods: {
save(){ save(){
let _this = this; let _this = this;
if(this.isUse == 0) { if(this.isUse == 0 && !this.isPhoto) {
// Toast('已签到'); // Toast('已签到');
return; return;
} }
if(this.isUse == 0 && this.isPhoto) {
// Toast('已签到');
// 个人中心地址
var userCenterHref = this.url + this. weburl + '/newuser/7';
window.location.replace(userCenterHref);
return;
}
if(this.$refs.input1.setVal() != false){ if(this.$refs.input1.setVal() != false){
this.name = this.$refs.input1.setVal() this.name = this.$refs.input1.setVal()
}else{ }else{
...@@ -275,7 +287,12 @@ export default { ...@@ -275,7 +287,12 @@ export default {
}, },
toricheng(){ toricheng(){
window.location.replace('http://mr-static.maxrocky.com/h5/wanda/dzgp/index.html'); // window.location.replace('http://mr-static.maxrocky.com/h5/wanda/dzgp/index.html');
// to 摄影月赛
//首页地址
var indexHref = this.url + this. weburl + '/7';
window.location.replace(indexHref);
}, },
//省市区 取消 //省市区 取消
handleNot(){ handleNot(){
......
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 sign in to comment