去掉打印 和改接口地址
This commit is contained in:
+22
-15
@@ -99,7 +99,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
if(e.tab){
|
||||
this.follow=e.tab - 1
|
||||
this.current = e.tab
|
||||
@@ -178,7 +177,6 @@
|
||||
this.show= false
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e)
|
||||
this.follow_last = e.value[0].id
|
||||
this.show = false
|
||||
this.queryList(1, 10)
|
||||
@@ -188,7 +186,6 @@
|
||||
},
|
||||
//tab标签切换
|
||||
tabclick(e){
|
||||
console.log(e)
|
||||
if(e.id=='all'){
|
||||
this.follow=''
|
||||
}else{
|
||||
@@ -211,7 +208,6 @@
|
||||
follow_last:this.follow_last,
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res.data)
|
||||
if(res.data.code ==0){
|
||||
var datas = res.data.data.list;
|
||||
this.$refs.paging.complete(datas);
|
||||
@@ -223,7 +219,6 @@
|
||||
})
|
||||
},
|
||||
godetile(item){
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
url: '/pages/customer/detile?id='+item.id
|
||||
});
|
||||
@@ -238,16 +233,28 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
uni.showModal ({
|
||||
title: this.$t('prompt'),
|
||||
content: this.$t('callmsg'),
|
||||
cancelText: this.$t('cancel'),
|
||||
confirmText: this.$t('confirm'),
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
// console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
// console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
editClick(item){
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -76,7 +76,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
},
|
||||
onShow() {
|
||||
this.queryList(1, 10)
|
||||
@@ -110,7 +109,6 @@
|
||||
per_page:10,
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res.data)
|
||||
if(res.data.code ==0){
|
||||
var datas = res.data.data.list;
|
||||
this.$refs.paging.complete(datas);
|
||||
|
||||
+21
-11
@@ -199,7 +199,6 @@
|
||||
this.$i18n.locale = e.value[0].id
|
||||
uni.setStorageSync('i18locale', e.value[0].id);
|
||||
this.showlang = false
|
||||
console.log(uni.getLocale())
|
||||
this.columns =[
|
||||
[{
|
||||
label: this.$t('zh'),
|
||||
@@ -326,16 +325,27 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
uni.showModal ({
|
||||
title: this.$t('prompt'),
|
||||
content: this.$t('callmsg'),
|
||||
cancelText: this.$t('cancel'),
|
||||
confirmText: this.$t('confirm'),
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
// console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
// console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
editClick(item){
|
||||
uni.navigateTo({
|
||||
|
||||
+23
-11
@@ -33,11 +33,11 @@
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="sonContent" @click="navTo('/pages/mine/workreport')">
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/workreport')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon10.png"></image>
|
||||
<span>{{$t('mine.workreport')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="sonContent" @click="navTo('/pages/mine/resetPwd')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon2.png"></image>
|
||||
<span>{{$t('mine.cpassword')}}</span>
|
||||
@@ -178,15 +178,27 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
uni.showModal ({
|
||||
title: this.$t('prompt'),
|
||||
content: this.$t('callmsg'),
|
||||
cancelText: this.$t('cancel'),
|
||||
confirmText: this.$t('confirm'),
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
// console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
// console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//退出登录
|
||||
logout(){
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.getCode(options.code,options.state)
|
||||
},
|
||||
methods: {
|
||||
@@ -28,10 +27,8 @@
|
||||
},
|
||||
getCode(code,state) {
|
||||
// var code = this.getUrlParam('code');
|
||||
console.log(code)
|
||||
var code_url = '';
|
||||
if (code == null || code == '' || !code) {
|
||||
console.log(2222222)
|
||||
request({
|
||||
url:'feishu/getinfo',
|
||||
method:'post',
|
||||
@@ -43,7 +40,7 @@
|
||||
if(res.data.code ==0){
|
||||
var data = res.data.data;
|
||||
this.datas = data
|
||||
console.log(data)
|
||||
// console.log(data)
|
||||
|
||||
code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize'
|
||||
code_url += '?app_id=' + data.app_id
|
||||
@@ -51,7 +48,7 @@
|
||||
code_url += '&scope=' + data.scope
|
||||
code_url += '&state=' + data.state;
|
||||
|
||||
console.log(code_url)
|
||||
// console.log(code_url)
|
||||
// return;
|
||||
window.location.href = code_url;
|
||||
}else{
|
||||
@@ -96,16 +93,16 @@
|
||||
const route = currentPage.route; // 页面路径
|
||||
const options = currentPage.options; // 页面参数
|
||||
const fullUrl = `${route}?${Object.keys(options).map(key => `${key}=${options[key]}`).join('&')}`;
|
||||
console.log('当前页面完整 URL:', fullUrl);
|
||||
// console.log('当前页面完整 URL:', fullUrl);
|
||||
request({
|
||||
url:'feishu/getinfo',
|
||||
method:'post',
|
||||
}).then(res => {
|
||||
var data = res.data.data;
|
||||
var urls = data.url+fullUrl
|
||||
console.log(data)
|
||||
// console.log(data)
|
||||
this.webUrl = 'https://open.feishu.cn/open-apis/authen/v1/authorize?app_id='+data.app_id+'&redirect_uri='+urls+'&scope='+data.scope+'&state='+data.state
|
||||
console.log(this.webUrl)
|
||||
// console.log(this.webUrl)
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user