🚸 usability: 动态加载标题

This commit is contained in:
wangsongsole 2023-08-04 17:22:52 +08:00
parent 84ec931f7b
commit e01a903c88
4 changed files with 7 additions and 0 deletions

View File

@ -135,6 +135,10 @@
modelPop modelPop
}, },
mounted () {
document.title = this.goodsInfo.entity.batch_goods_name;
},
methods: { methods: {
/* 立即领取 */ /* 立即领取 */
receive () { receive () {

View File

@ -161,6 +161,7 @@
goodsCount = sessionStorage.getItem('goodsCount'); goodsCount = sessionStorage.getItem('goodsCount');
this.backAble = goodsCount > 1;//多个商品才有返回 this.backAble = goodsCount > 1;//多个商品才有返回
this.reduceInfo = goodsDetail.entity; this.reduceInfo = goodsDetail.entity;
document.title = this.reduceInfo.batch_goods_name;
this.plaflam = goodsDetail.entity.channel; this.plaflam = goodsDetail.entity.channel;
if (goodsDetail.entity.time_limit.use_time.type == 'week') { //处理星期连贯操作 if (goodsDetail.entity.time_limit.use_time.type == 'week') { //处理星期连贯操作
goodsDetail.entity.time_limit.use_time.week = sortWeeks(goodsDetail.entity.time_limit.use_time.week); goodsDetail.entity.time_limit.use_time.week = sortWeeks(goodsDetail.entity.time_limit.use_time.week);

View File

@ -126,6 +126,7 @@
}, },
mounted () { mounted () {
document.title = this.ysf.entity.batch_goods_name;
/* 判断是否是微信小程序内 */ /* 判断是否是微信小程序内 */
let ua = window.navigator.userAgent.toLowerCase(); let ua = window.navigator.userAgent.toLowerCase();
this.isMini = /miniProgram/i.test(ua); this.isMini = /miniProgram/i.test(ua);

View File

@ -125,6 +125,7 @@
}, },
mounted () { mounted () {
document.title = this.ysf.entity.batch_goods_name;
/* 判断是否是微信小程序内 */ /* 判断是否是微信小程序内 */
let ua = window.navigator.userAgent.toLowerCase(); let ua = window.navigator.userAgent.toLowerCase();
this.isMini = /miniProgram/i.test(ua); this.isMini = /miniProgram/i.test(ua);