第一次提交
This commit is contained in:
@@ -125,7 +125,7 @@ var components
|
||||
try {
|
||||
components = {
|
||||
uniIcons: function() {
|
||||
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 395))
|
||||
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 448))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -334,7 +334,11 @@ var _default = { data: function data() {return { user: null, collection: [], men
|
||||
descTitle: '', //模块描述标题
|
||||
descContent: '', //模块描述内容
|
||||
activeIndex: 1 //默认下标
|
||||
};}, onLoad: function onLoad() {this.styles = uni.getMenuButtonBoundingClientRect();}, created: function created() {this.initFn();}, watch: { collection: function collection(n, o) {uni.setStorageSync('collection', n);} }, methods: { close: function close() {uni.showModal({ title: '提示', content: '确认退出登录', success: function success(res) {if (res.confirm) {_oilIdentity.default.logoutAuthSystem().then(function (res) {uni.redirectTo({ url: '../login/login?type=1' });});} else if (res.cancel) {console.log('用户点击取消');}} });}, jump: function jump(e) {if (this.user.authList.includes(e.lable)) {uni.navigateTo({ url: e.router, fail: function fail(e) {console.log('失败');} });} else {uni.showToast({ title: '暂无权限', icon: 'none' });
|
||||
};}, onLoad: function onLoad() {this.styles = uni.getMenuButtonBoundingClientRect();}, created: function created() {this.initFn();}, watch: { menuIndex: function menuIndex(n, o) {console.log(n, 'menuIndex');}, collection: function collection(n, o) {uni.setStorageSync('collection', n);} }, methods: { close: function close() {uni.showModal({ title: '提示', content: '确认退出登录', success: function success(res) {if (res.confirm) {_oilIdentity.default.logoutAuthSystem().then(function (res) {uni.redirectTo({ url: '../login/login?type=1' });});} else if (res.cancel) {console.log('用户点击取消');}} });}, jump: function jump(e) {if (this.user.authList.includes(e.lable)) {uni.navigateTo({ url: e.router, fail: function fail(e) {console.log('失败');} });} else {
|
||||
uni.showToast({
|
||||
title: '暂无权限',
|
||||
icon: 'none' });
|
||||
|
||||
}
|
||||
},
|
||||
remove: function remove(e) {
|
||||
@@ -350,9 +354,10 @@ var _default = { data: function data() {return { user: null, collection: [], men
|
||||
return this.collection.filter(function (item) {return e.name == item.name;}).length == 0 ? '#bbbbbb' : '#FFB730';
|
||||
},
|
||||
initFn: function initFn() {var _this = this;
|
||||
this.menuList = _menu.default;
|
||||
this.menuList = JSON.parse(JSON.stringify(_menu.default));
|
||||
this.menuList.forEach(function (item, index) {
|
||||
item = Object.assign(item, _this.circularPositioning(index));
|
||||
console.log(item, '=========');
|
||||
});
|
||||
this.trackingPosition.x = this.menuList[0].x;
|
||||
this.trackingPosition.y = this.menuList[0].y;
|
||||
@@ -438,15 +443,19 @@ var _default = { data: function data() {return { user: null, collection: [], men
|
||||
|
||||
// }
|
||||
// // NO=8
|
||||
this.Submenu = true;
|
||||
this.Submenu = false;
|
||||
var average = 360 / this.menuList.length;
|
||||
this.trackingPosition.angle = index * average;
|
||||
this.trackingPosition.fangle = -this.trackingPosition.angle;
|
||||
this.menuIndex = null;
|
||||
// this.menuIndex = null
|
||||
if (this.menuList[this.menuIndex].colorOpen) {
|
||||
this.menuList[this.menuIndex].colorOpen = false;
|
||||
}
|
||||
setTimeout(function () {
|
||||
_this3.menuIndex = index;
|
||||
_this3.menuList[_this3.menuIndex].colorOpen = true;
|
||||
_this3.Submenu = true;
|
||||
}, 500);
|
||||
|
||||
},
|
||||
circularPositioning: function circularPositioning(index, position) {
|
||||
var avd = this.PI / this.menuList.length; //每一个 img-box 对应的角度
|
||||
|
||||
Reference in New Issue
Block a user