Fix(云灵AI):[#5193]返回主页,需要关闭规格弹窗
This commit is contained in:
@@ -507,7 +507,7 @@ export const chatMixinsV2 = {
|
|||||||
uniqueId: _this.attr.productSelect !== undefined ? _this.attr.productSelect.unique : ''
|
uniqueId: _this.attr.productSelect !== undefined ? _this.attr.productSelect.unique : ''
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
try {
|
try {
|
||||||
_this.$set(_this.attr, 'cartAttr', false)
|
_this.closeAttrWindow()
|
||||||
const { cartId } = res.data
|
const { cartId } = res.data
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -534,6 +534,9 @@ export const chatMixinsV2 = {
|
|||||||
_this.buyLoading = false
|
_this.buyLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
closeAttrWindow() {
|
||||||
|
this.$set(this.attr, 'cartAttr', false)
|
||||||
|
},
|
||||||
hotelItemClickHandle(item) {
|
hotelItemClickHandle(item) {
|
||||||
this.audioStopHandle()
|
this.audioStopHandle()
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
|
|||||||
@@ -645,6 +645,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 创建新会话
|
// 创建新会话
|
||||||
createNewHandle() {
|
createNewHandle() {
|
||||||
|
this.closeAttrWindow()
|
||||||
if (this.audioContext) {
|
if (this.audioContext) {
|
||||||
this.audioContext.stop()
|
this.audioContext.stop()
|
||||||
}
|
}
|
||||||
@@ -681,9 +682,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.$refs.attrWindow && this.$refs.attrWindow.attr) {
|
|
||||||
this.$refs.attrWindow.attr.cartAttr = false
|
|
||||||
}
|
|
||||||
this.createNewHandle()
|
this.createNewHandle()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user