chore:title改成名片
This commit is contained in:
@@ -93,6 +93,13 @@ export default {
|
||||
onLoad() {
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
// 从编辑页保存返回(redirectTo 回本页)时刷新
|
||||
if (this._loadedOnce) this.refresh();
|
||||
|
||||
@@ -82,6 +82,13 @@ export default {
|
||||
onLoad() {
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.refresh(() => uni.stopPullDownRefresh());
|
||||
},
|
||||
|
||||
@@ -88,6 +88,13 @@ export default {
|
||||
onLoad() {
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
// 从编辑页返回时刷新(编辑成功后数据已变)
|
||||
if (this._loadedOnce) this.refresh();
|
||||
|
||||
@@ -68,9 +68,16 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
uni.setNavigationBarTitle({ title: '申请名片' });
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
this.loadStatus();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
loadStatus() {
|
||||
this.$api.sendRequest({
|
||||
|
||||
@@ -82,6 +82,13 @@ export default {
|
||||
this.loadDetail();
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
loadDetail() {
|
||||
this.$cardApi.contactInfo({
|
||||
|
||||
@@ -83,6 +83,13 @@ export default {
|
||||
onLoad() {
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
// 从编辑页保存后 redirectTo 回来会重走 onLoad; 从其它页返回时兜底刷新
|
||||
if (this.list.length > 0) {
|
||||
|
||||
@@ -197,11 +197,18 @@ export default {
|
||||
this.cardId = decodeURIComponent(options.card_id || '');
|
||||
this.isCreate = this.cardId === '';
|
||||
if (this.isCreate) {
|
||||
uni.setNavigationBarTitle({ title: '新建名片' });
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
} else {
|
||||
this.loadDetail();
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
loadDetail() {
|
||||
if (!this.cardId) {
|
||||
|
||||
@@ -60,6 +60,13 @@ export default {
|
||||
this.cardId = decodeURIComponent(options.card_id || '');
|
||||
this.loadList();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
computed: {
|
||||
tabs() {
|
||||
const pending = this.list.filter(i => i.status === 'pending').length;
|
||||
|
||||
@@ -76,6 +76,13 @@ export default {
|
||||
onLoad() {
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.refresh(() => uni.stopPullDownRefresh());
|
||||
},
|
||||
|
||||
@@ -204,6 +204,13 @@ export default {
|
||||
}
|
||||
this.bootstrap();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
// 首次 onShow 紧跟 onLoad(由 bootstrap 负责首屏加载), 这里只处理"返回本页"的刷新
|
||||
if (this._entered) this.refresh();
|
||||
|
||||
@@ -363,6 +363,13 @@ export default {
|
||||
this.loadDetail();
|
||||
this.loadPresets();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
loadDetail() {
|
||||
if (!this.cardId) {
|
||||
this.isLoading = false;
|
||||
|
||||
@@ -71,6 +71,13 @@ export default {
|
||||
this.cardId = (options && options.card_id) ? String(options.card_id) : '';
|
||||
this.refresh();
|
||||
},
|
||||
onReady() {
|
||||
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
|
||||
uni.setNavigationBarTitle({ title: '名片' });
|
||||
// #ifdef H5
|
||||
document.title = '名片';
|
||||
// #endif
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.refresh(() => uni.stopPullDownRefresh());
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user