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