商品发布

This commit is contained in:
zmj 2024-04-27 10:55:52 +08:00
parent 7e98709d06
commit b50c8c6b10
3 changed files with 49 additions and 18 deletions

View File

@ -518,11 +518,11 @@
type: 1, type: 1,
image: require('@/static/images/index7.png') image: require('@/static/images/index7.png')
}, },
{ // {
name: '入库管理', // name: '',
type: 13, // type: 13,
image: require('@/static/images/index9.png') // image: require('@/static/images/index9.png')
}, // },
// { // {
// name: '', // name: '',
// type: 3, // type: 3,
@ -619,11 +619,11 @@
type: 1, type: 1,
image: require('@/static/images/index7.png') image: require('@/static/images/index7.png')
}, },
{ // {
name: '入库管理', // name: '',
type: 13, // type: 13,
image: require('@/static/images/index9.png') // image: require('@/static/images/index9.png')
}, // },
{ {
name: '订单管理', name: '订单管理',
type: 2, type: 2,
@ -699,11 +699,11 @@
type: 1, type: 1,
image: require('@/static/images/index7.png') image: require('@/static/images/index7.png')
}, },
{ // {
name: '入库管理', // name: '',
type: 13, // type: 13,
image: require('@/static/images/index9.png') // image: require('@/static/images/index9.png')
}, // },
{ {
name: '订单管理', name: '订单管理',
type: 2, type: 2,

View File

@ -312,7 +312,7 @@
// } // }
}, },
onShow() { onShow() {
console.log('show')
}, },
methods: { methods: {
handCancel() { handCancel() {
@ -663,8 +663,21 @@
self.seachBarCode(res.result) self.seachBarCode(res.result)
}, },
fail(res) { fail(res) {
// console.log(res); uni.redirectTo({
url: '/pages/product/list/index'
})
// uni.showLoading({
// title: '',
// mask: true
// })
// uni.navigateBack()
}, },
// complete() {
// uni.showLoading({
// title: '',
// mask: true
// })
// }
}) })
}, },
isStartsWith6Or06(str) { isStartsWith6Or06(str) {

View File

@ -447,6 +447,14 @@
methods: { methods: {
handClick(type) { handClick(type) {
if (type == 2) {
// #ifndef APP-PLUS
this.$util.Tips({
title: '当前环境不支持扫码'
});
return
// #endif
}
// console.log(type) // console.log(type)
if (type == 3) { if (type == 3) {
uni.navigateTo({ uni.navigateTo({
@ -506,8 +514,10 @@
getProductTitle() { getProductTitle() {
productTitle(this.mer_id).then(res => { productTitle(this.mer_id).then(res => {
this.tabList = res.data; this.tabList = res.data;
console.log(this.tabList)
let clickIndex = 0; let clickIndex = 0;
this.tabList.forEach((item, index) => { this.tabList.forEach((item, index) => {
item.name = item.name + `(${item.count})`
if (item.type == this.where.type) { if (item.type == this.where.type) {
this.current = index; this.current = index;
} }
@ -849,6 +859,7 @@
that.where.cate_id = this.cate_id.store_category_id; that.where.cate_id = this.cate_id.store_category_id;
// mer_cate_id // mer_cate_id
} }
that.where.order = 'check'
productLstApi(mer_id, that.where).then( productLstApi(mer_id, that.where).then(
res => { res => {
that.loading = false; that.loading = false;
@ -1684,7 +1695,7 @@
.footer { .footer {
width: 750rpx; width: 750rpx;
height: 132rpx; height: 150rpx;
background-color: white; background-color: white;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -1692,12 +1703,17 @@
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
box-sizing: border-box;
.footer-li { .footer-li {
border: 1px solid #989898; border: 1px solid #989898;
font-size: 32rpx; font-size: 32rpx;
padding: 14rpx 27rpx; padding: 14rpx 27rpx;
border-radius: 40rpx; border-radius: 40rpx;
overflow: hidden;
width: 184rpx;
height: 72rpx;
} }
@ -1705,6 +1721,8 @@
border: none; border: none;
background-color: #32BB3B; background-color: #32BB3B;
color: white; color: white;
width: 302rpx;
text-align: center;
} }
} }
</style> </style>