|
@@ -25,7 +25,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="padding text-center margin-top">
|
|
<view class="padding text-center margin-top">
|
|
<button class="cu-btn bg-blue lg margin-right shadow" :loading="loading"
|
|
<button class="cu-btn bg-blue lg margin-right shadow" :loading="loading"
|
|
- :class="[shape == 'round' ? 'round' : '']" @tap="onLogin"><text space="emsp">{{ loading ? "登录中..." : "登录"}}</text>
|
|
|
|
|
|
+ :class="[shape == 'round' ? 'round' : '']" @tap="onLogin"><text space="emsp">{{ loading ? "登录中..." :
|
|
|
|
+ "登录"}}</text>
|
|
</button>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
@@ -124,11 +125,6 @@ export default {
|
|
this.saveClientId();
|
|
this.saveClientId();
|
|
// #endif
|
|
// #endif
|
|
// #ifndef APP-PLUS
|
|
// #ifndef APP-PLUS
|
|
- this.$tip.success("登录成功!");
|
|
|
|
-
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/index/index",
|
|
|
|
- });
|
|
|
|
//获取权限菜单
|
|
//获取权限菜单
|
|
this.getPermissionList()
|
|
this.getPermissionList()
|
|
// #endif
|
|
// #endif
|
|
@@ -153,10 +149,14 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
console.log(response, '权限菜单----------------')
|
|
console.log(response, '权限菜单----------------')
|
|
if (response.statusCode == 200) {
|
|
if (response.statusCode == 200) {
|
|
- let data=response.data.result.menuApp
|
|
|
|
- let dataBtn=response.data.result.appauth
|
|
|
|
- uni.setStorageSync('menuPermission',data);
|
|
|
|
- uni.setStorageSync('btnPermission',dataBtn);
|
|
|
|
|
|
+ let data = response.data.result.menuApp
|
|
|
|
+ let dataBtn = response.data.result.appauth
|
|
|
|
+ uni.setStorageSync('menuPermission', data);
|
|
|
|
+ uni.setStorageSync('btnPermission', dataBtn);
|
|
|
|
+ this.$tip.success("登录成功!");
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/index/index",
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
reject(response);
|
|
reject(response);
|
|
}
|
|
}
|