mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
提交调整
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
<view>
|
||||
<u-avatar v-if="avatar && avatar!=''" shape="circle" :size="size" :src="fileBaseUrl + avatar" ></u-avatar>
|
||||
<view v-else>
|
||||
<view v-if="sex == null" class="peo" :style="{width:width,height:height}"></view>
|
||||
<view v-if="sex == null" class="peo" :style="{width:width,height:height}">
|
||||
<image src="../../static/images/default.png" alt="">
|
||||
</view>
|
||||
<view v-else :style="{width:width,height:height}">
|
||||
<view class="peo" v-if="sex === 1 "><image src="../../static/images/man.png" alt=""></view>
|
||||
<view class="peo" v-else><image src="../../static/images/woman.png" alt=""></view>
|
||||
<view class="peo" v-if="sex == 1 "><image src="../../static/images/man.png" alt=""></view>
|
||||
<view class="peo" v-else-if="sex==2 "><image src="../../static/images/woman.png" alt=""></view>
|
||||
<view class="peo" v-else><image src="../../static/images/man.png" alt=""></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -27,7 +27,14 @@
|
||||
plus.runtime.openURL(this.$config.loginPath) //这里默认使用外部浏览器打开而不是内部web-view组件打开
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
window.open(this.$config.loginPath)
|
||||
console.log('this.$config.loginPath',this.$config.loginPath);
|
||||
if(this.$config.loginPath.startsWith('http')){
|
||||
let returnUrl=window.location.protocol+'//'+window.location.host+"/"+this.$config.context;
|
||||
location.href=this.$config.loginPath+"?returnUrl="+encodeURIComponent(returnUrl+'/pages/login/loading');
|
||||
}else{
|
||||
location.href=this.$config.loginPath;
|
||||
}
|
||||
|
||||
// #endif
|
||||
}else{
|
||||
apiLogin.boeLogin(token).then(rs=>{
|
||||
@@ -55,9 +62,9 @@
|
||||
}
|
||||
}
|
||||
}else{
|
||||
uni.switchTab({
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@@ -105,7 +105,9 @@
|
||||
if(res.result.list.length!=0){
|
||||
res.result.list.forEach(item => {
|
||||
item.authorInfo={avatar:'',name:'',code:'',sex:null};
|
||||
ids.push(item.sendAid);
|
||||
if(item.sendAid){
|
||||
ids.push(item.sendAid);
|
||||
}
|
||||
item.checked = false;
|
||||
this.message.list.push(item);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user