|
@@ -26,10 +26,23 @@
|
|
|
<div class="plusDrawer" @tap="hideModal">
|
|
|
<plusDrawer ref="plusDrawer"></plusDrawer>
|
|
|
</div>
|
|
|
- <view>
|
|
|
+<!-- <view>
|
|
|
<button class="cu-btn bg-red lg" @tap="falseLogin" type="" :style="{ 'height': buttonHeight}">注销账号</button>
|
|
|
+ </view> -->
|
|
|
+
|
|
|
+ <view v-if="toggleid==12">
|
|
|
+ <mine ref="r1"></mine>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view v-if="toggleid==13">
|
|
|
+ <chatindex ref="r1"></chatindex>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -37,13 +50,19 @@
|
|
|
import drawer from '../../components/drawer/threeLineDrawer.vue'
|
|
|
import plusDrawer from '../../components/drawer/plusDrawer.vue';
|
|
|
|
|
|
+ import mine from '../../components/mine/Mine.vue';
|
|
|
+ import chatindex from '../../components/mine/chat/Chatindex.vue';
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
- "drawer": drawer,
|
|
|
- plusDrawer: plusDrawer
|
|
|
+ drawer: drawer,
|
|
|
+ plusDrawer: plusDrawer,
|
|
|
+ mine:mine,
|
|
|
+ chatindex:chatindex
|
|
|
},
|
|
|
data:function(){
|
|
|
return{
|
|
|
+ toggleid:12,//12我的主页,13聊天通讯,默认12
|
|
|
badge: 22,
|
|
|
inconList:["form","favor","question","edit"],
|
|
|
modalName:null,
|
|
@@ -60,6 +79,9 @@
|
|
|
this.address = this.dataprocessing.getWindPowerStationName();
|
|
|
this.FDC=this.dataprocessing.getWindPowerStationId();
|
|
|
this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
|
|
|
+ this.plusDrawerList=uni.getStorageSync('plusList');
|
|
|
+ this.drawerList=uni.getStorageSync('leftlist5');
|
|
|
+ console.log(this.drawerList);
|
|
|
},
|
|
|
onHide() {
|
|
|
this.$refs.drawer.closeDrawer();
|
|
@@ -73,11 +95,21 @@
|
|
|
this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
|
|
|
},
|
|
|
methods:{
|
|
|
- openDrawer:function(){
|
|
|
- this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ openDrawer: function() {
|
|
|
+
|
|
|
+ if(this.$refs.drawer != undefined){
|
|
|
+ this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
- closeDrawer:function(){
|
|
|
- this.drawerIsShow=false;
|
|
|
+ closeDrawer: function() {
|
|
|
+ this.drawerIsShow = false;
|
|
|
+
|
|
|
},viewUserid: function() {
|
|
|
this.plusDrawerList=uni.getStorageSync('plusList');
|
|
|
},
|