701bug 通知小铃铛的位置

This commit is contained in:
gaoyuanwei 2022-07-25 09:52:23 +08:00
parent 133553b6a1
commit df43efef31
6 changed files with 96 additions and 51 deletions

View File

@ -87,6 +87,9 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList) console.log('加入申购车==================>', props.dataList)
sgcInsert({ sgcInsert({
delFlag: '0', delFlag: '0',
@ -96,8 +99,14 @@
console.log(res) console.log(res)
message.success('添加申购车成功!') message.success('添加申购车成功!')
mybus.emit('getSgcNum') mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
}
// //
function toView() { function toView() {
// window.open(newpage.href, '_blank') // window.open(newpage.href, '_blank')

View File

@ -90,6 +90,9 @@
const applicationArea = ref('') const applicationArea = ref('')
// // // //
const addShoppingCart = () => { const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList) console.log('加入申购车==================>', props.dataList)
sgcInsert({ sgcInsert({
delFlag: '0', delFlag: '0',
@ -99,8 +102,14 @@
console.log(res) console.log(res)
message.success('添加申购车成功!') message.success('添加申购车成功!')
mybus.emit('getSgcNum') mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
}
// // // //
function toView() { function toView() {
// window.open(newpage.href, '_blank') // window.open(newpage.href, '_blank')

View File

@ -87,6 +87,9 @@
const componentType = ref('') // const componentType = ref('') //
// // // //
const addShoppingCart = () => { const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList) console.log('加入申购车==================>', props.dataList)
sgcInsert({ sgcInsert({
delFlag: '0', delFlag: '0',
@ -96,8 +99,14 @@
console.log(res) console.log(res)
message.success('添加申购车成功!') message.success('添加申购车成功!')
mybus.emit('getSgcNum') mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
}
// // // //
function toView() { function toView() {
// window.open(newpage.href, '_blank') // window.open(newpage.href, '_blank')

View File

@ -82,6 +82,9 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList) console.log('加入申购车==================>', props.dataList)
sgcInsert({ sgcInsert({
delFlag: '0', delFlag: '0',
@ -91,8 +94,14 @@
console.log(res) console.log(res)
message.success('添加申购车成功!') message.success('添加申购车成功!')
mybus.emit('getSgcNum') mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
}
// //
function toView() { function toView() {
// window.open(newpage.href, '_blank') // window.open(newpage.href, '_blank')

View File

@ -82,6 +82,9 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList) console.log('加入申购车==================>', props.dataList)
sgcInsert({ sgcInsert({
delFlag: '0', delFlag: '0',
@ -91,8 +94,14 @@
console.log(res) console.log(res)
message.success('添加申购车成功!') message.success('添加申购车成功!')
mybus.emit('getSgcNum') mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
}
// //
function toView() { function toView() {
// window.open(newpage.href, '_blank') // window.open(newpage.href, '_blank')

View File

@ -465,7 +465,7 @@
border-radius: 0.05rem; border-radius: 0.05rem;
position: absolute; position: absolute;
top: 0.45rem; top: 0.45rem;
right: 3.1rem; right: 2.9rem;
overflow-y: scroll; overflow-y: scroll;
.bottom { .bottom {
cursor: pointer; cursor: pointer;