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,16 +87,25 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
console.log('加入申购车==================>', props.dataList) if (props.dataList.isInShoppingCart) {
sgcInsert({ message.error('已经加入申购车了')
delFlag: '0', } else {
resourceId: props.dataList.id, console.log('加入申购车==================>', props.dataList)
// userId: userId.value, sgcInsert({
}).then((res) => { delFlag: '0',
console.log(res) resourceId: props.dataList.id,
message.success('添加申购车成功!') // userId: userId.value,
mybus.emit('getSgcNum') }).then((res) => {
}) console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
} }
// //
function toView() { function toView() {

View File

@ -90,16 +90,25 @@
const applicationArea = ref('') const applicationArea = ref('')
// // // //
const addShoppingCart = () => { const addShoppingCart = () => {
console.log('加入申购车==================>', props.dataList) if (props.dataList.isInShoppingCart) {
sgcInsert({ message.error('已经加入申购车了')
delFlag: '0', } else {
resourceId: props.dataList.id, console.log('加入申购车==================>', props.dataList)
// userId: userId.value, sgcInsert({
}).then((res) => { delFlag: '0',
console.log(res) resourceId: props.dataList.id,
message.success('添加申购车成功!') // userId: userId.value,
mybus.emit('getSgcNum') }).then((res) => {
}) console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
} }
// // // //
function toView() { function toView() {

View File

@ -87,16 +87,25 @@
const componentType = ref('') // const componentType = ref('') //
// // // //
const addShoppingCart = () => { const addShoppingCart = () => {
console.log('加入申购车==================>', props.dataList) if (props.dataList.isInShoppingCart) {
sgcInsert({ message.error('已经加入申购车了')
delFlag: '0', } else {
resourceId: props.dataList.id, console.log('加入申购车==================>', props.dataList)
// userId: userId.value, sgcInsert({
}).then((res) => { delFlag: '0',
console.log(res) resourceId: props.dataList.id,
message.success('添加申购车成功!') // userId: userId.value,
mybus.emit('getSgcNum') }).then((res) => {
}) console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
} }
// // // //
function toView() { function toView() {

View File

@ -82,16 +82,25 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
console.log('加入申购车==================>', props.dataList) if (props.dataList.isInShoppingCart) {
sgcInsert({ message.error('已经加入申购车了')
delFlag: '0', } else {
resourceId: props.dataList.id, console.log('加入申购车==================>', props.dataList)
// userId: userId.value, sgcInsert({
}).then((res) => { delFlag: '0',
console.log(res) resourceId: props.dataList.id,
message.success('添加申购车成功!') // userId: userId.value,
mybus.emit('getSgcNum') }).then((res) => {
}) console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
} }
// //
function toView() { function toView() {

View File

@ -82,16 +82,25 @@
const deploymentLocation = ref('') // const deploymentLocation = ref('') //
// //
const addShoppingCart = () => { const addShoppingCart = () => {
console.log('加入申购车==================>', props.dataList) if (props.dataList.isInShoppingCart) {
sgcInsert({ message.error('已经加入申购车了')
delFlag: '0', } else {
resourceId: props.dataList.id, console.log('加入申购车==================>', props.dataList)
// userId: userId.value, sgcInsert({
}).then((res) => { delFlag: '0',
console.log(res) resourceId: props.dataList.id,
message.success('添加申购车成功!') // userId: userId.value,
mybus.emit('getSgcNum') }).then((res) => {
}) console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
} }
// //
function toView() { function toView() {

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;