Commit 441623c9 by xiexiaoqin

fix: 修复安卓图标不显示,头像不显示

parent 4bd59542
...@@ -21,7 +21,6 @@ export default async function login() { ...@@ -21,7 +21,6 @@ export default async function login() {
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
success: function (res) { success: function (res) {
console.log(res)
if (res.data.code == 0) { if (res.data.code == 0) {
const { oapiUser } = res.data.data; const { oapiUser } = res.data.data;
getApp().globalData.token = res.data.data.accessToken.access_token; getApp().globalData.token = res.data.data.accessToken.access_token;
......
export const globalUrl = "https://gateway-beta.mingwork.com"; export const globalUrl = "https://gateway-beta.mingwork.com";
export const globalUrl2 = "https://third-authentication.mingwork.com"; export const globalUrl2 = "https://third-authentication.mingwork.com";
export const version = 0.0317; export const version = 0.0318;
export const websocketUrl = 'ws://139.196.213.18:9999'; export const websocketUrl = 'ws://139.196.213.18:9999';
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<template name="avater"> <template name="avater">
<view class="avater"> <view class="avater">
<image a:if="{{item.avatar}}" mode="scaleToFill" src="{{item.avatar}}" /> <image a:if="{{item.avatar}}" mode="scaleToFill" src="{{item.avatar}}" />
<text a:if="{{item.username}}">{{item.username.slice(0, split || 2)}}
</text>
<text a:else>{{item.name.slice(0, split || 2)}} <text a:else>{{item.name.slice(0, split || 2)}}
</text> </text>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment