feat: 入库页面改为先选种类->商品->弹窗填数量,支持多商品批量入库
This commit is contained in:
@@ -1,45 +1,121 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="stock-in">
|
<view class="page">
|
||||||
<view class="form">
|
<!-- 分类 + 商品列表 -->
|
||||||
<view class="form-item">
|
<view class="content-wrapper">
|
||||||
<text class="label">商品</text>
|
<!-- 左侧分类 -->
|
||||||
<picker
|
<scroll-view scroll-y class="category-sidebar">
|
||||||
mode="selector"
|
<view
|
||||||
:range="productList"
|
class="category-item"
|
||||||
range-key="name"
|
:class="{ active: !categoryId }"
|
||||||
@change="onProductChange"
|
@click="selectCategory('')"
|
||||||
>
|
>
|
||||||
<view class="picker">
|
全部
|
||||||
{{ selectedProduct ? selectedProduct.name : '请选择商品' }}
|
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
<view
|
||||||
|
v-for="cat in categories"
|
||||||
|
:key="cat.categoryId"
|
||||||
|
class="category-item"
|
||||||
|
:class="{ active: categoryId === cat.categoryId }"
|
||||||
|
@click="selectCategory(cat.categoryId)"
|
||||||
|
>
|
||||||
|
{{ cat.name }}
|
||||||
</view>
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
|
||||||
<view class="form-item">
|
<!-- 右侧商品列表 -->
|
||||||
<text class="label">入库数量</text>
|
<scroll-view scroll-y class="product-scroll">
|
||||||
<input
|
<view class="product-list">
|
||||||
class="input"
|
<view
|
||||||
v-model="quantity"
|
v-for="item in productList"
|
||||||
type="number"
|
:key="item.productId"
|
||||||
placeholder="请输入数量"
|
class="product-item"
|
||||||
/>
|
@click="openQuantityPopup(item)"
|
||||||
|
>
|
||||||
|
<view class="product-info">
|
||||||
|
<text class="product-name">{{ item.name }}</text>
|
||||||
|
<text class="product-spec">{{ item.spec || '-' }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="product-add">
|
||||||
<view class="form-item">
|
<text class="add-icon">+</text>
|
||||||
<text class="label">备注</text>
|
|
||||||
<input
|
|
||||||
class="input"
|
|
||||||
v-model="remark"
|
|
||||||
placeholder="可选填写"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="btn-area">
|
<view v-if="productList.length === 0" class="empty">
|
||||||
|
<text class="empty-icon">📭</text>
|
||||||
|
<text class="empty-text">暂无商品</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 已添加商品列表 -->
|
||||||
|
<view class="selected-section" v-if="selectedItems.length > 0">
|
||||||
|
<view class="selected-header">
|
||||||
|
<text class="selected-title">已选择商品</text>
|
||||||
|
<text class="selected-count">{{ selectedItems.length }} 项</text>
|
||||||
|
</view>
|
||||||
|
<scroll-view scroll-x class="selected-list">
|
||||||
|
<view
|
||||||
|
v-for="(item, index) in selectedItems"
|
||||||
|
:key="index"
|
||||||
|
class="selected-item"
|
||||||
|
>
|
||||||
|
<view class="selected-info">
|
||||||
|
<text class="selected-name">{{ item.productName }}</text>
|
||||||
|
<text class="selected-qty">× {{ item.quantity }}</text>
|
||||||
|
</view>
|
||||||
|
<text class="selected-delete" @click="removeItem(index)">×</text>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 底部提交按钮 -->
|
||||||
|
<view class="submit-bar" v-if="selectedItems.length > 0">
|
||||||
|
<view class="submit-info">
|
||||||
|
<text class="submit-label">共 {{ totalQuantity }} 件</text>
|
||||||
|
</view>
|
||||||
<button class="submit-btn" @click="submit" :disabled="submitting">
|
<button class="submit-btn" @click="submit" :disabled="submitting">
|
||||||
{{ submitting ? '提交中...' : '确认入库' }}
|
{{ submitting ? '提交中...' : '确认入库' }}
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 数量填写弹窗 -->
|
||||||
|
<view class="popup-mask" v-if="showPopup" @click="closePopup"></view>
|
||||||
|
<view class="popup-content" v-if="showPopup">
|
||||||
|
<view class="popup-header">
|
||||||
|
<text class="popup-title">{{ currentProduct.name }}</text>
|
||||||
|
<text class="popup-close" @click="closePopup">×</text>
|
||||||
|
</view>
|
||||||
|
<view class="popup-body">
|
||||||
|
<view class="popup-spec" v-if="currentProduct.spec">
|
||||||
|
规格: {{ currentProduct.spec }}
|
||||||
|
</view>
|
||||||
|
<view class="popup-qty">
|
||||||
|
<text class="qty-label">入库数量</text>
|
||||||
|
<view class="qty-input-wrapper">
|
||||||
|
<text class="qty-minus" @click="qtyMinus">-</text>
|
||||||
|
<input
|
||||||
|
class="qty-input"
|
||||||
|
type="number"
|
||||||
|
v-model="inputQuantity"
|
||||||
|
/>
|
||||||
|
<text class="qty-plus" @click="qtyPlus">+</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="popup-remark">
|
||||||
|
<text class="remark-label">备注(可选)</text>
|
||||||
|
<input
|
||||||
|
class="remark-input"
|
||||||
|
v-model="inputRemark"
|
||||||
|
placeholder="填写备注"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="popup-footer">
|
||||||
|
<button class="popup-btn cancel" @click="closePopup">取消</button>
|
||||||
|
<button class="popup-btn confirm" @click="confirmAdd">确定</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -50,55 +126,131 @@ import productApi from '@/api/product'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
categoryId: '',
|
||||||
|
categories: [],
|
||||||
productList: [],
|
productList: [],
|
||||||
selectedProduct: null,
|
page: 1,
|
||||||
quantity: '',
|
pageSize: 50,
|
||||||
remark: '',
|
loading: false,
|
||||||
|
|
||||||
|
// 已选择的商品
|
||||||
|
selectedItems: [],
|
||||||
|
|
||||||
|
// 弹窗相关
|
||||||
|
showPopup: false,
|
||||||
|
currentProduct: {},
|
||||||
|
inputQuantity: 1,
|
||||||
|
inputRemark: '',
|
||||||
|
|
||||||
|
// 提交状态
|
||||||
submitting: false
|
submitting: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
totalQuantity() {
|
||||||
|
return this.selectedItems.reduce((sum, item) => sum + item.quantity, 0)
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.loadCategories()
|
||||||
this.getProducts()
|
this.getProducts()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getProducts() {
|
async loadCategories() {
|
||||||
try {
|
try {
|
||||||
const res = await productApi.getProducts({ page: 1, pageSize: 100 })
|
const categories = await productApi.getCategories()
|
||||||
if (res.code === 0) {
|
this.categories = categories || []
|
||||||
this.productList = res.data.records || []
|
|
||||||
}
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.showToast({ title: '加载商品失败', icon: 'none' })
|
console.error(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onProductChange(e) {
|
async getProducts() {
|
||||||
this.selectedProduct = this.productList[e.detail.value]
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await productApi.getProducts({
|
||||||
|
categoryId: this.categoryId,
|
||||||
|
page: this.page,
|
||||||
|
pageSize: this.pageSize
|
||||||
|
})
|
||||||
|
this.productList = res.records || []
|
||||||
|
} catch (e) {
|
||||||
|
uni.showToast({ title: '加载失败', icon: 'none' })
|
||||||
|
} finally {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async submit() {
|
selectCategory(id) {
|
||||||
if (!this.selectedProduct) {
|
this.categoryId = id
|
||||||
uni.showToast({ title: '请选择商品', icon: 'none' })
|
this.page = 1
|
||||||
|
this.getProducts()
|
||||||
|
},
|
||||||
|
openQuantityPopup(product) {
|
||||||
|
this.currentProduct = product
|
||||||
|
this.inputQuantity = 1
|
||||||
|
this.inputRemark = ''
|
||||||
|
this.showPopup = true
|
||||||
|
},
|
||||||
|
closePopup() {
|
||||||
|
this.showPopup = false
|
||||||
|
},
|
||||||
|
qtyMinus() {
|
||||||
|
if (this.inputQuantity > 1) {
|
||||||
|
this.inputQuantity--
|
||||||
|
}
|
||||||
|
},
|
||||||
|
qtyPlus() {
|
||||||
|
this.inputQuantity++
|
||||||
|
},
|
||||||
|
confirmAdd() {
|
||||||
|
if (this.inputQuantity <= 0) {
|
||||||
|
uni.showToast({ title: '请输入有效数量', icon: 'none' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.quantity || this.quantity <= 0) {
|
|
||||||
uni.showToast({ title: '请输入有效数量', icon: 'none' })
|
// 检查是否已存在,存在则累加
|
||||||
|
const existsIndex = this.selectedItems.findIndex(
|
||||||
|
item => item.productId === this.currentProduct.productId
|
||||||
|
)
|
||||||
|
|
||||||
|
if (existsIndex > -1) {
|
||||||
|
this.selectedItems[existsIndex].quantity += parseInt(this.inputQuantity)
|
||||||
|
this.selectedItems[existsIndex].remark = this.inputRemark || this.selectedItems[existsIndex].remark
|
||||||
|
} else {
|
||||||
|
this.selectedItems.push({
|
||||||
|
productId: this.currentProduct.productId,
|
||||||
|
productName: this.currentProduct.name,
|
||||||
|
quantity: parseInt(this.inputQuantity),
|
||||||
|
remark: this.inputRemark
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.closePopup()
|
||||||
|
uni.showToast({ title: '已添加', icon: 'success' })
|
||||||
|
},
|
||||||
|
removeItem(index) {
|
||||||
|
this.selectedItems.splice(index, 1)
|
||||||
|
},
|
||||||
|
async submit() {
|
||||||
|
if (this.selectedItems.length === 0) {
|
||||||
|
uni.showToast({ title: '请先添加商品', icon: 'none' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.submitting = true
|
this.submitting = true
|
||||||
try {
|
try {
|
||||||
const res = await stockApi.stockIn({
|
// 逐个入库
|
||||||
productId: this.selectedProduct.productId,
|
for (const item of this.selectedItems) {
|
||||||
quantity: parseInt(this.quantity),
|
await stockApi.stockIn({
|
||||||
remark: this.remark
|
productId: item.productId,
|
||||||
|
quantity: item.quantity,
|
||||||
|
remark: item.remark || ''
|
||||||
})
|
})
|
||||||
if (res.code === 0) {
|
}
|
||||||
|
|
||||||
uni.showToast({ title: '入库成功', icon: 'success' })
|
uni.showToast({ title: '入库成功', icon: 'success' })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} else {
|
|
||||||
uni.showToast({ title: res.message || '入库失败', icon: 'none' })
|
|
||||||
}
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.showToast({ title: '入库失败', icon: 'none' })
|
uni.showToast({ title: '入库失败', icon: 'none' })
|
||||||
} finally {
|
} finally {
|
||||||
@@ -109,54 +261,346 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style>
|
||||||
.stock-in {
|
.page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: #f5f5f5;
|
background: #f8f9fa;
|
||||||
|
padding-bottom: 180rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form {
|
.content-wrapper {
|
||||||
|
display: flex;
|
||||||
|
height: calc(100vh - 200rpx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 左侧分类 */
|
||||||
|
.category-sidebar {
|
||||||
|
width: 180rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
margin: 20rpx;
|
flex-shrink: 0;
|
||||||
border-radius: 12rpx;
|
|
||||||
padding: 0 30rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-item {
|
.category-item {
|
||||||
|
padding: 28rpx 20rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #666;
|
||||||
|
text-align: center;
|
||||||
|
border-left: 6rpx solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-item.active {
|
||||||
|
background: #f8f9fa;
|
||||||
|
color: #667eea;
|
||||||
|
font-weight: bold;
|
||||||
|
border-left-color: #667eea;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 右侧商品 */
|
||||||
|
.product-scroll {
|
||||||
|
flex: 1;
|
||||||
|
background: #f8f9fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-list {
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-info {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-name {
|
||||||
|
display: block;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-spec {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-add {
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
border-radius: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 30rpx 0;
|
justify-content: center;
|
||||||
border-bottom: 1rpx solid #eee;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-item:last-child {
|
.add-icon {
|
||||||
border-bottom: none;
|
font-size: 36rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.empty {
|
||||||
width: 160rpx;
|
padding: 100rpx;
|
||||||
font-size: 30rpx;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.picker, .input {
|
.empty-icon {
|
||||||
|
font-size: 80rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-text {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 已选择商品 */
|
||||||
|
.selected-section {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 120rpx;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: #fff;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-count {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #667eea;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-list {
|
||||||
|
white-space: nowrap;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-item {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-name {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #fff;
|
||||||
|
max-width: 200rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-qty {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
margin-top: 4rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-delete {
|
||||||
|
margin-left: 16rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
padding: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 底部提交 */
|
||||||
|
.submit-bar {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 30rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-area {
|
.submit-label {
|
||||||
padding: 40rpx 30rpx;
|
font-size: 28rpx;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn {
|
.submit-btn {
|
||||||
|
width: 240rpx;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background: #3cc51f;
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 32rpx;
|
border: none;
|
||||||
border-radius: 8rpx;
|
border-radius: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: 0 8rpx 30rpx rgba(102, 126, 234, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn[disabled] {
|
/* 弹窗 */
|
||||||
background: #ccc;
|
.popup-mask {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-content {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 32rpx 32rpx 0 0;
|
||||||
|
padding: 40rpx 30rpx;
|
||||||
|
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
|
||||||
|
z-index: 101;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-close {
|
||||||
|
font-size: 48rpx;
|
||||||
|
color: #999;
|
||||||
|
padding: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-spec {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-qty {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qty-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
width: 160rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qty-input-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: #f5f5f5;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qty-minus, .qty-plus {
|
||||||
|
width: 80rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #667eea;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qty-input {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 32rpx;
|
||||||
|
background: transparent;
|
||||||
|
border-left: 1rpx solid #eee;
|
||||||
|
border-right: 1rpx solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-remark {
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remark-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remark-input {
|
||||||
|
width: 100%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #f5f5f5;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-footer {
|
||||||
|
display: flex;
|
||||||
|
gap: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 88rpx;
|
||||||
|
line-height: 88rpx;
|
||||||
|
border-radius: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-btn.cancel {
|
||||||
|
background: #f5f5f5;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-btn.confirm {
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
color: #fff;
|
||||||
|
box-shadow: 0 8rpx 30rpx rgba(102, 126, 234, 0.4);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user