|
@@ -15,7 +15,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="options" v-if="show==true" >
|
|
|
- <view v-if="role('3')" @click="changeShow4()">订阅</view>
|
|
|
+ <view v-if="false" @click="changeShow4()">订阅</view>
|
|
|
|
|
|
<view v-if="false" @click="changeShow2()">修改openId</view>
|
|
|
<view @click="logout()">退出账号</view>
|
|
@@ -190,6 +190,27 @@
|
|
|
//this.getUserDepartmentList()
|
|
|
this.getInfo()
|
|
|
},
|
|
|
+ onReady() {
|
|
|
+ console.log("onReady")
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ wx.getSetting({
|
|
|
+ success: res => {
|
|
|
+ console.log("onReady2")
|
|
|
+ if (!res.authSetting['scope.camera']) {
|
|
|
+ wx.authorize({
|
|
|
+ scope: 'scope.camera',
|
|
|
+ success () {
|
|
|
+ // 用户已经同意小程序使用摄像头
|
|
|
+ },
|
|
|
+ fail () {
|
|
|
+ // 用户拒绝了小程序使用摄像头
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
onShow(){
|
|
|
if(this.role("3")){
|
|
|
|
|
@@ -211,6 +232,9 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ error(e) {
|
|
|
+ console.log(e);
|
|
|
+ },
|
|
|
role(val){
|
|
|
if(this.userInfo.type!=null&&this.userInfo.type!=undefined){
|
|
|
var index=this.userInfo.type.split(',').indexOf(val)
|