mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
(function(vc) {
|
|
vc.extends({
|
|
data: {
|
|
propertyIndexInfo: {
|
|
storeTypeCd: '',
|
|
}
|
|
},
|
|
_initMethod: function() {
|
|
setTimeout(function(){
|
|
$that._computeStoreTypeCd();
|
|
|
|
},1000)
|
|
},
|
|
_initEvent: function() {
|
|
|
|
},
|
|
methods: {
|
|
_computeStoreTypeCd:function(){
|
|
let _getUserInfo = vc.getData('/nav/getUserInfo')
|
|
if(_getUserInfo){
|
|
$that.propertyIndexInfo.storeTypeCd = _getUserInfo.storeTypeCd
|
|
}
|
|
|
|
if($that.propertyIndexInfo.storeTypeCd == '800900000003'){
|
|
vc.emit('indexCommunityView','initData',{});
|
|
vc.emit('indexNotice','initData',{});
|
|
vc.emit('indexRepairComplaint','initData',{});
|
|
vc.emit('indexOwnerRoom','initData',{});
|
|
}
|
|
|
|
if($that.propertyIndexInfo.storeTypeCd == '800900000001'){
|
|
vc.emit('adminIndex', 'initData',{})
|
|
}
|
|
|
|
if($that.propertyIndexInfo.storeTypeCd == '800900000000'){
|
|
vc.emit('devIndex', 'initData',{})
|
|
}
|
|
|
|
}
|
|
}
|
|
})
|
|
})(window.vc); |