修复从我的分享进入设备页有权限验证的问题

This commit is contained in:
liub
2026-02-07 13:52:40 +08:00
parent 4a7af6d093
commit 8f211750b0
3 changed files with 26 additions and 13 deletions

View File

@ -147,7 +147,7 @@
// 页面跳转成功后的回调函数 // 页面跳转成功后的回调函数
res.eventChannel.emit('detailData', { res.eventChannel.emit('detailData', {
data: item, data: item,
apiType: 'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息 apiType:this.activeTab===0?'listA':'listB' // 自定义标识 // 自定义标识,详情哪里根据这个参数不同信息
}); });
} }
}) })

View File

@ -91,9 +91,9 @@
</MessagePopup> </MessagePopup>
<view class="displayNone"> <!-- <view class="displayNone">
<audio :src="cPlay.src" :id="cPlay.Id" :name="cPlay.name" author=""></audio> <audio :src="cPlay.src" :id="cPlay.Id" :name="cPlay.name" author=""></audio>
</view> </view> -->
<global-loading ref="loading"></global-loading> <global-loading ref="loading"></global-loading>
</view> </view>
@ -216,16 +216,16 @@
statu: "", //状态,是否公开 statu: "", //状态,是否公开
isApply: "" //是否使用中 isApply: "" //是否使用中
}, }//,
cPlay: { // cPlay: {
Id: "", //编号 // Id: "", //编号
name: "", //名称 // name: "", //名称
createTime: "", //创建时间 // createTime: "", //创建时间
localPath: "", //本地地址 // localPath: "", //本地地址
webPath: "", //网络地址 // webPath: "", //网络地址
statu: "", //状态,是否公开 // statu: "", //状态,是否公开
isApply: "" //是否使用中 // isApply: "" //是否使用中
} // }
} }
}, },
onLoad() { onLoad() {

View File

@ -147,6 +147,19 @@
}); });
return false; return false;
} }
else{
let phone= uni.getStorageSync('phone');
if(phone==phoneNumber){
uni.showToast({
title: '手机号不能是自己账号',
icon: 'none',
duration: 1000
});
return false;
}
}
try { try {
await deviceShareCode({ await deviceShareCode({
phonenumber: this.phone phonenumber: this.phone