|
@@ -293,7 +293,7 @@ export default {
|
|
|
PhoneNumber: [], //联系方式手机号
|
|
|
address: [], //详细地址
|
|
|
action: '',//动态
|
|
|
- tel: '',//拨打电话的phone
|
|
|
+ tel: '15225791048',//拨打电话的phone
|
|
|
myId: '',
|
|
|
//获取当前外部联系人userid 参数
|
|
|
contactsUserId: '',
|
|
@@ -312,30 +312,30 @@ export default {
|
|
|
Tab, Tabs, Step, Steps
|
|
|
},
|
|
|
async created () {
|
|
|
- // let auth_code = "";
|
|
|
- // if (this.$route.query.auth_code) {
|
|
|
- // auth_code = this.$route.query.auth_code
|
|
|
- // }
|
|
|
- // if (!auth_code) {
|
|
|
- // let userid = sessionStorage.getLocalstorage("user_id");
|
|
|
- // if (userid && userid !== undefined && userid !== "") {
|
|
|
- // this.myId = userid
|
|
|
- // this.getConfigParams({'url': location.href.split('#')[0]});
|
|
|
- // } else {
|
|
|
- // this.$router.push({ name: 'GetMyId' })
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // let result = await getUser_Id(auth_code);
|
|
|
- // if (result.code !== 2000) {
|
|
|
- // alert(result.msg)
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // let { user_id } = result.data;
|
|
|
- // this.myId = user_id;
|
|
|
- // sessionStorage.setLocalstorage('user_id', user_id);
|
|
|
- // this.getConfigParams({'url': location.href.split('#')[0]});
|
|
|
- // }
|
|
|
- this.myId = "WeiQiJia"
|
|
|
+ let auth_code = "";
|
|
|
+ if (this.$route.query.auth_code) {
|
|
|
+ auth_code = this.$route.query.auth_code
|
|
|
+ }
|
|
|
+ if (!auth_code) {
|
|
|
+ let userid = sessionStorage.getLocalstorage("user_id");
|
|
|
+ if (userid && userid !== undefined && userid !== "") {
|
|
|
+ this.myId = userid
|
|
|
+ this.getConfigParams({'url': location.href.split('#')[0]});
|
|
|
+ } else {
|
|
|
+ this.$router.push({ name: 'GetMyId' })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ let result = await getUser_Id(auth_code);
|
|
|
+ if (result.code !== 2000) {
|
|
|
+ alert(result.msg)
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ let { user_id } = result.data;
|
|
|
+ this.myId = user_id;
|
|
|
+ sessionStorage.setLocalstorage('user_id', user_id);
|
|
|
+ this.getConfigParams({'url': location.href.split('#')[0]});
|
|
|
+ }
|
|
|
+ // this.myId = "WeiQiJia"
|
|
|
},
|
|
|
methods: {
|
|
|
onClick (name, title) {
|
|
@@ -358,11 +358,11 @@ export default {
|
|
|
},
|
|
|
//带icon的拨打电话
|
|
|
callPhone () {
|
|
|
- window.location.href = this.tel
|
|
|
+ window.location.href ='tel:' +this.tel
|
|
|
},
|
|
|
//数组拨打电话
|
|
|
telPhoneNumber (item) {
|
|
|
- window.location.href = item
|
|
|
+ window.location.href = 'tel:' +item
|
|
|
},
|
|
|
|
|
|
//获取参数信息
|