This commit is contained in:
caoqianming 2020-06-29 08:54:51 +08:00
parent 3db94498d6
commit 2c7b3fffff
11 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
test_mini/images/datad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 902 B

BIN
test_mini/images/homed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
test_mini/images/med.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 808 B

After

Width:  |  Height:  |  Size: 688 B

BIN
test_mini/images/newsd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B

View File

@ -5,8 +5,8 @@
<view class="weui-cells weui-cells_after-title">
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active" bindtap="register">
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
<open-data type="userAvatarUrl"></open-data>
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style="border-radius:6px;overflow:hidden">
<open-data type="userAvatarUrl" ></open-data>
</view>
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">账号: {{userinfo.username}}

View File

@ -21,7 +21,7 @@
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",

View File

@ -42,7 +42,7 @@ class MyPermission(RbacPermission):
# perms = get_permission_list(request.user)
return True
elif isinstance(request.user,Consumer):
if cache.get(request.user.username + '__perms'):
if cache.get('cperms_'+str(request.user.id)):
perms = cache.get('cperms_'+str(request.user.id))
else:
perms = get_consumerperm_list(request.user)