|
@@ -4,11 +4,12 @@
|
|
<view class="header p-3">
|
|
<view class="header p-3">
|
|
<view class="centerY">
|
|
<view class="centerY">
|
|
<span class="d-inline-block fs-18 text-white font-bold">个人档案</span>
|
|
<span class="d-inline-block fs-18 text-white font-bold">个人档案</span>
|
|
- <span v-if="ipArr.find(item => item.ip == prodIp) && ipArr.find(item => item.ip == prodIp).name !== '兰溪'"
|
|
|
|
|
|
+ <span
|
|
|
|
+ v-if="ipArr.find(item => item.ip == prodIp) && (ipArr.find(item => item.ip == prodIp).name !== '兰溪'&&ipArr.find(item => item.ip == prodIp).name !== '龙游')"
|
|
class="d-inline-block py-1 d-inline-block ml-auto text-white1" @click="closet">
|
|
class="d-inline-block py-1 d-inline-block ml-auto text-white1" @click="closet">
|
|
[ 退出 ]
|
|
[ 退出 ]
|
|
</span>
|
|
</span>
|
|
- <span v-if="ipArr.find(item => item.ip == prodIp) && ipArr.find(item => item.ip == prodIp).name == '兰溪'"
|
|
|
|
|
|
+ <span v-if="ipArr.find(item => item.ip == prodIp) && (ipArr.find(item => item.ip == prodIp).name == '兰溪')"
|
|
class="d-inline-block py-1 d-inline-block ml-auto text-white1" @click="operation">
|
|
class="d-inline-block py-1 d-inline-block ml-auto text-white1" @click="operation">
|
|
[ 切换 ]
|
|
[ 切换 ]
|
|
</span>
|
|
</span>
|
|
@@ -272,6 +273,102 @@
|
|
function errordata() {
|
|
function errordata() {
|
|
if (!uni.getStorageSync('idCard')) {
|
|
if (!uni.getStorageSync('idCard')) {
|
|
t.$refs.popup1.open();
|
|
t.$refs.popup1.open();
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: '提示',
|
|
|
|
+ // content: '您还未绑定身份证!',
|
|
|
|
+ // showCancel: false,
|
|
|
|
+ // success: function(res3) {
|
|
|
|
+ // if (res3.confirm) {
|
|
|
|
+ // console.log('用户点击确定');
|
|
|
|
+ // uni.navigateBack({
|
|
|
|
+ // delta: 1 //返回层数,2则上上页
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // return;
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ } else {
|
|
|
|
+ t.getuserinfo(uni.getStorageSync('idCard'));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //龙游
|
|
|
|
+ longyou() {
|
|
|
|
+ let t = this;
|
|
|
|
+ // s({
|
|
|
|
+ // userId: '1232131',
|
|
|
|
+ // idCard: '330122195011081823'
|
|
|
|
+ // })
|
|
|
|
+ // async function s(res) {
|
|
|
|
+ // if (!res.userId) {
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: '提示',
|
|
|
|
+ // content: '您还未登录请先去登录!',
|
|
|
|
+ // showCancel: false,
|
|
|
|
+ // success: function(res2) {
|
|
|
|
+ // if (res2.confirm) {
|
|
|
|
+ // console.log('用户点击确定');
|
|
|
|
+ // uni.navigateBack({
|
|
|
|
+ // delta: 1 //返回层数,2则上上页
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // t.valueId = res.idCard;
|
|
|
|
+ // t.search()
|
|
|
|
+ // uni.hideLoading();
|
|
|
|
+ // }
|
|
|
|
+ // return
|
|
|
|
+ try {
|
|
|
|
+ window.yt.getUserInfo({
|
|
|
|
+ async success(res) {
|
|
|
|
+ if (!res.userId) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '您还未登录请先去登录!',
|
|
|
|
+ showCancel: false,
|
|
|
|
+ success: function(res2) {
|
|
|
|
+ if (res2.confirm) {
|
|
|
|
+ console.log('用户点击确定');
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1 //返回层数,2则上上页
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ t.valueId = res.idCard;
|
|
|
|
+ t.search()
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ },
|
|
|
|
+ error() {
|
|
|
|
+ errordata();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } catch (e) {
|
|
|
|
+ // console.log(e)
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '环境异常',
|
|
|
|
+ showCancel: false,
|
|
|
|
+ success: function(res3) {
|
|
|
|
+ if (res3.confirm) {
|
|
|
|
+ console.log('用户点击确定');
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1 //返回层数,2则上上页
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function errordata() {
|
|
|
|
+ if (!uni.getStorageSync('idCard')) {
|
|
|
|
+ t.$refs.popup1.open();
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
} else {
|
|
} else {
|
|
t.getuserinfo(uni.getStorageSync('idCard'));
|
|
t.getuserinfo(uni.getStorageSync('idCard'));
|
|
@@ -291,6 +388,11 @@
|
|
clearInterval(timer);
|
|
clearInterval(timer);
|
|
}
|
|
}
|
|
ipArr.map(async item => {
|
|
ipArr.map(async item => {
|
|
|
|
+ console.log(item.ip, globalData.configData.prodIp)
|
|
|
|
+ if (item.ip == globalData.configData.prodIp && item.name == '龙游') {
|
|
|
|
+ t.longyou();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (item.ip == globalData.configData.prodIp && item.name == '兰溪') {
|
|
if (item.ip == globalData.configData.prodIp && item.name == '兰溪') {
|
|
t.lanxi();
|
|
t.lanxi();
|
|
return;
|
|
return;
|