|
|
@ -1,7 +1,7 @@ |
|
|
|
<!-- |
|
|
|
* @Author: your name |
|
|
|
* @Date: 2021-07-19 11:35:03 |
|
|
|
* @LastEditTime: 2021-07-19 18:37:13 |
|
|
|
* @LastEditTime: 2021-07-20 14:08:56 |
|
|
|
* @LastEditors: Please set LastEditors |
|
|
|
* @Description: In User Settings Edit |
|
|
|
* @FilePath: \TALL-MUI-3\src\components\Title\titleBar.vue |
|
|
@ -10,8 +10,8 @@ |
|
|
|
<view> |
|
|
|
<u-navbar back-text="返回"> |
|
|
|
<view class="flex justify-center flex-1"> |
|
|
|
<view v-if="true">{{ title }}</view> |
|
|
|
<view v-else>{{ titleBar }}</view> |
|
|
|
<view v-if="Istrue">{{ title }}</view> |
|
|
|
<view v-else>{{ titleBar }} </view> |
|
|
|
</view> |
|
|
|
<view class="mr-2" slot="right"> |
|
|
|
<u-icon class="m-1" name="checkmark-circle"></u-icon> |
|
|
@ -20,7 +20,6 @@ |
|
|
|
<u-icon class="m-1" name="more-dot-fill"></u-icon> |
|
|
|
</view> |
|
|
|
</u-navbar> |
|
|
|
你好 |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
@ -30,10 +29,17 @@ export default { |
|
|
|
return { |
|
|
|
title: '加载中...', |
|
|
|
titleBar: '项目名称', |
|
|
|
Istrue: 'false', |
|
|
|
Istrue: true, |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: {}, |
|
|
|
mounted() { |
|
|
|
this.getTitle(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getTitle() { |
|
|
|
this.Istrue = !this.Istrue; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|