优化细节
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="product-edit-page">
|
||||
<view class="page-header">
|
||||
<view class="back-link" @click="goBack">
|
||||
<text class="arrow">{"<"}</text>
|
||||
<text class="back-txt">返回</text>
|
||||
<text class="back-txt">杩斿洖</text>
|
||||
</view>
|
||||
<text class="header-title">编辑商品</text>
|
||||
<text class="header-title">缂栬緫鍟嗗搧</text>
|
||||
</view>
|
||||
|
||||
<!-- 步骤层 -->
|
||||
<!-- 姝ラ灞?-->
|
||||
<view class="steps-card">
|
||||
<view class="step-items">
|
||||
<view v-for="(step, index) in steps" :key="index" class="step-item" :class="{ active: activeStep === index }">
|
||||
@@ -18,17 +18,17 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 表单内容 -->
|
||||
<!-- 琛ㄥ崟鍐呭 -->
|
||||
<view class="form-card">
|
||||
<view class="form-item">
|
||||
<view class="label"><text class="required">*</text><text>商品类型:</text></view>
|
||||
<view class="label"><text class="required">*</text><text>鍟嗗搧绫诲瀷锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="radio-group">
|
||||
<view class="radio-item active">
|
||||
<text class="radio-circle on"></text>
|
||||
<view class="radio-txt">
|
||||
<text class="main">普通商品</text>
|
||||
<text class="sub">(物流发货)</text>
|
||||
<text class="main">鏅€氬晢鍝?/text>
|
||||
<text class="sub">(鐗╂祦鍙戣揣)</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -36,82 +36,82 @@
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text class="required">*</text><text>商品名称:</text></view>
|
||||
<view class="label"><text class="required">*</text><text>鍟嗗搧鍚嶇О锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="input-box">
|
||||
<input class="real-input" value="UR2024夏季新款女装复古纯欲氛围感一字肩短款T恤衫UWG440060" />
|
||||
<input class="real-input" value="UR2024澶忓鏂版濂宠澶嶅彜绾姘涘洿鎰熶竴瀛楄偐鐭T鎭よ~UWG440060" />
|
||||
<text class="count">36/80</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text class="required">*</text><text>单位:</text></view>
|
||||
<view class="label"><text class="required">*</text><text>鍗曚綅锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="input-box small">
|
||||
<input class="real-input" value="件" />
|
||||
<input class="real-input" value="浠? />
|
||||
<text class="count">1/5</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text class="required">*</text><text>商品轮播图:</text></view>
|
||||
<view class="label"><text class="required">*</text><text>鍟嗗搧杞挱鍥撅細</text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="image-uploader">
|
||||
<view v-for="(img, i) in carouselImages" :key="i" class="img-item">
|
||||
<image :src="img" mode="aspectFill" />
|
||||
<view class="img-close">×</view>
|
||||
<view class="img-close">脳</view>
|
||||
</view>
|
||||
<view class="upload-btn">
|
||||
<text class="icon">+</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tip">建议尺寸:800*800,可拖拽改变图片顺序,默认首张图为主图,最多上传10张</text>
|
||||
<text class="tip">寤鸿灏哄锛?00*800锛屽彲鎷栨嫿鏀瑰彉鍥剧墖椤哄簭锛岄粯璁ら寮犲浘涓轰富鍥撅紝鏈€澶氫笂浼?0寮?/text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text>添加视频:</text></view>
|
||||
<view class="label"><text>娣诲姞瑙嗛锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="upload-btn v-btn">
|
||||
<text class="v-icon">📹</text>
|
||||
<text class="v-icon">馃摴</text>
|
||||
</view>
|
||||
<text class="tip">建议时长:9~30秒,视频宽高比16:9</text>
|
||||
<text class="tip">寤鸿鏃堕暱锛?~30绉掞紝瑙嗛瀹介珮姣?6:9</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text class="required">*</text><text>商品分类:</text></view>
|
||||
<view class="label"><text class="required">*</text><text>鍟嗗搧鍒嗙被锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="tag-selector">
|
||||
<view v-for="tag in categories" :key="tag" class="tag-item">
|
||||
<text>{{ tag }}</text>
|
||||
<text class="close">×</text>
|
||||
<text class="close">脳</text>
|
||||
</view>
|
||||
<text class="add-link">新增分类</text>
|
||||
<text class="add-link">鏂板鍒嗙被</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text>商品标签:</text></view>
|
||||
<view class="label"><text>鍟嗗搧鏍囩锛?/text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="mock-btn-select">选择标签</view>
|
||||
<view class="mock-btn-select">閫夋嫨鏍囩</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<view class="label"><text>商品状态:</text></view>
|
||||
<view class="label"><text>鍟嗗搧鐘舵€侊細</text></view>
|
||||
<view class="input-wrap">
|
||||
<view class="radio-group-simple">
|
||||
<view class="radio-simple on">
|
||||
<text class="dot"></text>
|
||||
<text>上架</text>
|
||||
<text>涓婃灦</text>
|
||||
</view>
|
||||
<view class="radio-simple">
|
||||
<text class="dot"></text>
|
||||
<text>下架</text>
|
||||
<text>涓嬫灦</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -119,8 +119,8 @@
|
||||
</view>
|
||||
|
||||
<view class="footer-btns">
|
||||
<button class="btn-next">下一步</button>
|
||||
<button class="btn-save">保存</button>
|
||||
<button class="btn-next">涓嬩竴姝?/button>
|
||||
<button class="btn-save">淇濆瓨</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -130,7 +130,7 @@ import { ref } from 'vue'
|
||||
import { openRoute } from '@/layouts/admin/store/adminNavStore.uts'
|
||||
|
||||
const activeStep = ref(0)
|
||||
const steps = ['基础信息', '规格库存', '商品详情', '物流设置', '会员价/佣金', '营销设置', '其他设置']
|
||||
const steps = ['鍩虹淇℃伅', '瑙勬牸搴撳瓨', '鍟嗗搧璇︽儏', '鐗╂祦璁剧疆', '浼氬憳浠?浣i噾', '钀ラ攢璁剧疆', '鍏朵粬璁剧疆']
|
||||
|
||||
const carouselImages = ref([
|
||||
'https://img1.baidu.com/it/u=254065646,3100346083&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
|
||||
@@ -138,7 +138,7 @@ const carouselImages = ref([
|
||||
'https://img2.baidu.com/it/u=3775079632,546700868&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
|
||||
])
|
||||
|
||||
const categories = ref(['生活家居', '运动专区 / 361', '运动专区 / 特步', '运动专区 / 匹克'])
|
||||
const categories = ref(['鐢熸椿瀹跺眳', '杩愬姩涓撳尯 / 361', '杩愬姩涓撳尯 / 鐗规', '杩愬姩涓撳尯 / 鍖瑰厠'])
|
||||
|
||||
function goBack() {
|
||||
openRoute('product_productList')
|
||||
@@ -147,9 +147,9 @@ function goBack() {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.product-edit-page {
|
||||
padding: 20px;
|
||||
background-color: #f5f7f9;
|
||||
min-height: 100vh;
|
||||
/* padding removed */
|
||||
|
||||
|
||||
}
|
||||
|
||||
.page-header {
|
||||
@@ -249,7 +249,7 @@ function goBack() {
|
||||
.sub { font-size: 12px; color: #999; }
|
||||
}
|
||||
&::after {
|
||||
content: '✓';
|
||||
content: '鉁?;
|
||||
position: absolute;
|
||||
right: 0; bottom: 0;
|
||||
background: #1890ff; color: #fff; font-size: 10px; padding: 0 2px;
|
||||
@@ -345,3 +345,4 @@ function goBack() {
|
||||
.btn-save { background: #fff; color: #1890ff; border: 1px solid #1890ff; padding: 0 24px; height: 40px; border-radius: 4px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,47 +1,47 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="product-list-page">
|
||||
<!-- 1. 搜索表单 -->
|
||||
<!-- 1. 鎼滅储琛ㄥ崟 -->
|
||||
<view class="search-card">
|
||||
<view class="search-row">
|
||||
<view class="search-item">
|
||||
<text class="label">商品搜索:</text>
|
||||
<input class="mock-input" placeholder="请输入商品名称/关键字/ID" />
|
||||
<text class="label">鍟嗗搧鎼滅储锛?/text>
|
||||
<input class="mock-input" placeholder="璇疯緭鍏ュ晢鍝佸悕绉?鍏抽敭瀛?ID" />
|
||||
</view>
|
||||
<view class="search-item">
|
||||
<text class="label">商品类型:</text>
|
||||
<text class="label">鍟嗗搧绫诲瀷锛?/text>
|
||||
<view class="mock-select">
|
||||
<text>全部</text>
|
||||
<text class="arrow">▼</text>
|
||||
<text>鍏ㄩ儴</text>
|
||||
<text class="arrow">鈻?/text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-item">
|
||||
<text class="label">商品分类:</text>
|
||||
<text class="label">鍟嗗搧鍒嗙被锛?/text>
|
||||
<view class="mock-select">
|
||||
<text>请选择</text>
|
||||
<text class="arrow">▼</text>
|
||||
<text>璇烽€夋嫨</text>
|
||||
<text class="arrow">鈻?/text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-btns">
|
||||
<button class="btn-primary">查询</button>
|
||||
<button class="btn-reset">重置</button>
|
||||
<button class="btn-primary">鏌ヨ</button>
|
||||
<button class="btn-reset">閲嶇疆</button>
|
||||
<view class="expand-control">
|
||||
<text class="expand-txt">展开</text>
|
||||
<text class="expand-arrow">▼</text>
|
||||
<text class="expand-txt">灞曞紑</text>
|
||||
<text class="expand-arrow">鈻?/text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-row mt-12">
|
||||
<view class="search-item">
|
||||
<text class="label">配送方式:</text>
|
||||
<text class="label">閰嶉€佹柟寮忥細</text>
|
||||
<view class="mock-select">
|
||||
<text>全部</text>
|
||||
<text class="arrow">▼</text>
|
||||
<text>鍏ㄩ儴</text>
|
||||
<text class="arrow">鈻?/text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 2. 商品状态 Tabs -->
|
||||
<!-- 2. 鍟嗗搧鐘舵€?Tabs -->
|
||||
<view class="status-tabs-wrap">
|
||||
<view class="status-tabs">
|
||||
<view
|
||||
@@ -56,46 +56,46 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 3. 操作按钮行 -->
|
||||
<!-- 3. 鎿嶄綔鎸夐挳琛?-->
|
||||
<view class="action-bar">
|
||||
<view class="left-actions">
|
||||
<button class="btn-add" @click="goEdit(null)">添加商品</button>
|
||||
<button class="btn-collect">商品采集</button>
|
||||
<button class="btn-add" @click="goEdit(null)">娣诲姞鍟嗗搧</button>
|
||||
<button class="btn-collect">鍟嗗搧閲囬泦</button>
|
||||
<view class="btn-dropdown">
|
||||
<text>批量修改</text>
|
||||
<text class="arrow">▼</text>
|
||||
<text>鎵归噺淇敼</text>
|
||||
<text class="arrow">鈻?/text>
|
||||
</view>
|
||||
<view class="btn-dropdown">
|
||||
<text>商品迁移</text>
|
||||
<text class="arrow">▼</text>
|
||||
<text>鍟嗗搧杩佺Щ</text>
|
||||
<text class="arrow">鈻?/text>
|
||||
</view>
|
||||
<button class="btn-export">数据导出</button>
|
||||
<button class="btn-export">鏁版嵁瀵煎嚭</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 4. 商品列表表格 -->
|
||||
<!-- 4. 鍟嗗搧鍒楄〃琛ㄦ牸 -->
|
||||
<view class="list-card">
|
||||
<view class="table-v5">
|
||||
<view class="th-row">
|
||||
<view class="th col-check"><text>□</text></view>
|
||||
<view class="th col-id"><text>商品ID</text></view>
|
||||
<view class="th col-img"><text>商品图</text></view>
|
||||
<view class="th col-name"><text>商品名称</text></view>
|
||||
<view class="th col-activity"><text>参与活动</text></view>
|
||||
<view class="th col-type"><text>商品类型</text></view>
|
||||
<view class="th col-price"><text>商品售价</text></view>
|
||||
<view class="th col-sales"><text>销量</text></view>
|
||||
<view class="th col-stock"><text>库存</text></view>
|
||||
<view class="th col-sort"><text>排序</text></view>
|
||||
<view class="th col-status"><text>状态</text></view>
|
||||
<view class="th col-op"><text>操作</text></view>
|
||||
<view class="th col-check"><text>鈻?/text></view>
|
||||
<view class="th col-id"><text>鍟嗗搧ID</text></view>
|
||||
<view class="th col-img"><text>鍟嗗搧鍥?/text></view>
|
||||
<view class="th col-name"><text>鍟嗗搧鍚嶇О</text></view>
|
||||
<view class="th col-activity"><text>鍙備笌娲诲姩</text></view>
|
||||
<view class="th col-type"><text>鍟嗗搧绫诲瀷</text></view>
|
||||
<view class="th col-price"><text>鍟嗗搧鍞环</text></view>
|
||||
<view class="th col-sales"><text>閿€閲?/text></view>
|
||||
<view class="th col-stock"><text>搴撳瓨</text></view>
|
||||
<view class="th col-sort"><text>鎺掑簭</text></view>
|
||||
<view class="th col-status"><text>鐘舵€?/text></view>
|
||||
<view class="th col-op"><text>鎿嶄綔</text></view>
|
||||
</view>
|
||||
|
||||
<view v-for="(item, index) in productList" :key="index"
|
||||
class="tr-row"
|
||||
:style="{ zIndex: activeDropdownId === item.id ? 1000 : 1 }"
|
||||
>
|
||||
<view class="td col-check"><text>□</text></view>
|
||||
<view class="td col-check"><text>鈻?/text></view>
|
||||
<view class="td col-id"><text>{{ item.id }}</text></view>
|
||||
<view class="td col-img">
|
||||
<image class="p-img" :src="item.image" mode="aspectFill" />
|
||||
@@ -116,28 +116,28 @@
|
||||
<view class="td col-sort"><text>{{ item.sort }}</text></view>
|
||||
<view class="td col-status">
|
||||
<view class="mock-switch" :class="{ on: item.status === 1 }">
|
||||
<text class="switch-txt">{{ item.status === 1 ? '上架' : '下架' }}</text>
|
||||
<text class="switch-txt">{{ item.status === 1 ? '涓婃灦' : '涓嬫灦' }}</text>
|
||||
<view class="switch-dot"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="td col-op op-group">
|
||||
<text class="op-link" @click.stop="goEdit(item.id)">编辑</text>
|
||||
<text class="op-link" @click.stop="goEdit(item.id)">缂栬緫</text>
|
||||
<text class="op-divider">|</text>
|
||||
<view class="more-hover-box"
|
||||
@mouseenter="activeDropdownId = item.id"
|
||||
@mouseleave="activeDropdownId = null"
|
||||
>
|
||||
<view class="more-trigger-txt">
|
||||
<text class="more-link-text">更多</text>
|
||||
<text class="more-arrow-icon">∨</text>
|
||||
<text class="more-link-text">鏇村</text>
|
||||
<text class="more-arrow-icon">鈭?/text>
|
||||
</view>
|
||||
<view class="dropdown-list-container" v-show="activeDropdownId === item.id">
|
||||
<view class="dropdown-triangle"></view>
|
||||
<view class="dropdown-menu-body">
|
||||
<text class="menu-item" @click.stop="goReviews(item.id)">查看评论</text>
|
||||
<text class="menu-item" @click.stop="goMemberPrice(item.id)">会员价管理</text>
|
||||
<text class="menu-item" @click.stop="uni.showToast({title:'佣金管理开发中', icon:'none'})">佣金管理</text>
|
||||
<text class="menu-item danger-item" @click.stop="moveToRecycle(item.id)">{{ activeStatus === 'recycle' ? '恢复商品' : '移到回收站' }}</text>
|
||||
<text class="menu-item" @click.stop="goReviews(item.id)">鏌ョ湅璇勮</text>
|
||||
<text class="menu-item" @click.stop="goMemberPrice(item.id)">浼氬憳浠风鐞?/text>
|
||||
<text class="menu-item" @click.stop="uni.showToast({title:'浣i噾绠$悊寮€鍙戜腑', icon:'none'})">浣i噾绠$悊</text>
|
||||
<text class="menu-item danger-item" @click.stop="moveToRecycle(item.id)">{{ activeStatus === 'recycle' ? '鎭㈠鍟嗗搧' : '绉诲埌鍥炴敹绔? }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -145,9 +145,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 5. 分页 -->
|
||||
<!-- 5. 鍒嗛〉 -->
|
||||
<view class="pagination-row">
|
||||
<text class="total">共 {{ total }} 条</text>
|
||||
<text class="total">鍏?{{ total }} 鏉?/text>
|
||||
<view class="page-ctrl">
|
||||
<text class="page-btn disabled">{"<"}</text>
|
||||
<text class="page-num active">1</text>
|
||||
@@ -168,20 +168,20 @@ const activeStatus = ref('selling')
|
||||
const activeDropdownId = ref<number | null>(null)
|
||||
|
||||
const statusTabs = ref([
|
||||
{ key: 'selling', label: '出售中的商品', count: 49 },
|
||||
{ key: 'warehouse', label: '仓库中的商品', count: 4 },
|
||||
{ key: 'soldout', label: '已经售罄商品', count: 11 },
|
||||
{ key: 'alarm', label: '警戒库存商品', count: 27 },
|
||||
{ key: 'recycle', label: '回收站的商品', count: 176 },
|
||||
{ key: 'selling', label: '鍑哄敭涓殑鍟嗗搧', count: 49 },
|
||||
{ key: 'warehouse', label: '浠撳簱涓殑鍟嗗搧', count: 4 },
|
||||
{ key: 'soldout', label: '宸茬粡鍞絼鍟嗗搧', count: 11 },
|
||||
{ key: 'alarm', label: '璀︽垝搴撳瓨鍟嗗搧', count: 27 },
|
||||
{ key: 'recycle', label: '鍥炴敹绔欑殑鍟嗗搧', count: 176 },
|
||||
])
|
||||
|
||||
const productList = ref([
|
||||
{
|
||||
id: 963,
|
||||
image: 'https://img1.baidu.com/it/u=254065646,3100346083&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
|
||||
name: 'UR2024夏季新款女装复古纯欲氛围感一字肩短款T恤衫UWG440060',
|
||||
name: 'UR2024澶忓鏂版濂宠澶嶅彜绾姘涘洿鎰熶竴瀛楄偐鐭T鎭よ~UWG440060',
|
||||
activities: ['kj', 'pt'],
|
||||
typeName: '普通商品',
|
||||
typeName: '鏅€氬晢鍝?,
|
||||
price: '0.01',
|
||||
sales: 639,
|
||||
stock: 1602,
|
||||
@@ -191,9 +191,9 @@ const productList = ref([
|
||||
{
|
||||
id: 108,
|
||||
image: 'https://img2.baidu.com/it/u=3033501986,2204481084&fm=253&fmt=auto&app=138&f=JPEG?w=569&h=500',
|
||||
name: 'FOMIX 蛋壳椅 进口头层牛皮橙色单人沙发椅Egg chair设计师师单椅单沙头层牛皮/单椅',
|
||||
name: 'FOMIX 铔嬪3妞?杩涘彛澶村眰鐗涚毊姗欒壊鍗曚汉娌欏彂妞匛gg chair璁捐甯堝笀鍗曟鍗曟矙澶村眰鐗涚毊/鍗曟',
|
||||
activities: ['pt', 'ms'],
|
||||
typeName: '普通商品',
|
||||
typeName: '鏅€氬晢鍝?,
|
||||
price: '7580.00',
|
||||
sales: 14,
|
||||
stock: 16638,
|
||||
@@ -203,9 +203,9 @@ const productList = ref([
|
||||
{
|
||||
id: 48,
|
||||
image: 'https://img0.baidu.com/it/u=1762118431,3101886131&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
|
||||
name: '阿迪达斯官网 adidas BBALL CAP COT 男女训练运动帽子FQ5270 传奇墨水蓝/传奇墨水蓝/白 XL',
|
||||
name: '闃胯开杈炬柉瀹樼綉 adidas BBALL CAP COT 鐢峰コ璁粌杩愬姩甯藉瓙FQ5270 浼犲澧ㄦ按钃?浼犲澧ㄦ按钃?鐧?XL',
|
||||
activities: ['kj', 'pt', 'ms'],
|
||||
typeName: '普通商品',
|
||||
typeName: '鏅€氬晢鍝?,
|
||||
price: '100.00',
|
||||
sales: 841,
|
||||
stock: 2318,
|
||||
@@ -215,9 +215,9 @@ const productList = ref([
|
||||
])
|
||||
|
||||
function getActivityName(tag: string): string {
|
||||
if (tag === 'kj') return '砍价'
|
||||
if (tag === 'pt') return '拼团'
|
||||
if (tag === 'ms') return '秒杀'
|
||||
if (tag === 'kj') return '鐮嶄环'
|
||||
if (tag === 'pt') return '鎷煎洟'
|
||||
if (tag === 'ms') return '绉掓潃'
|
||||
return tag
|
||||
}
|
||||
|
||||
@@ -234,13 +234,13 @@ function goMemberPrice(id: number) {
|
||||
}
|
||||
|
||||
function moveToRecycle(id: number) {
|
||||
const action = activeStatus.value === 'recycle' ? '恢复' : '移到回收站';
|
||||
const action = activeStatus.value === 'recycle' ? '鎭㈠' : '绉诲埌鍥炴敹绔?;
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: `确认要将该商品${action}吗?`,
|
||||
title: '鎻愮ず',
|
||||
content: `纭瑕佸皢璇ュ晢鍝?{action}鍚楋紵`,
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.showToast({ title: '操作成功', icon: 'success' });
|
||||
uni.showToast({ title: '鎿嶄綔鎴愬姛', icon: 'success' });
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -249,9 +249,9 @@ function moveToRecycle(id: number) {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.product-list-page {
|
||||
padding: 20px;
|
||||
background-color: #f5f7f9;
|
||||
min-height: 100vh;
|
||||
/* padding removed */
|
||||
|
||||
|
||||
}
|
||||
|
||||
.search-card {
|
||||
@@ -457,7 +457,7 @@ function moveToRecycle(id: number) {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
pointer-events: none; /* 让事件透传给 more-hover-box */
|
||||
pointer-events: none; /* 璁╀簨浠堕€忎紶缁?more-hover-box */
|
||||
}
|
||||
|
||||
.more-link-text {
|
||||
@@ -476,7 +476,7 @@ function moveToRecycle(id: number) {
|
||||
top: 35px;
|
||||
right: -10px;
|
||||
width: 120px;
|
||||
padding-top: 8px; /* 增加感应连续性 */
|
||||
padding-top: 8px; /* 澧炲姞鎰熷簲杩炵画鎬?*/
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
@@ -614,3 +614,4 @@ function moveToRecycle(id: number) {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="member-price-page">
|
||||
<view class="page-header">
|
||||
<view class="back-link" @click="goBack">
|
||||
<text class="arrow">{"<"}</text>
|
||||
<text class="back-txt">返回</text>
|
||||
<text class="back-txt">杩斿洖</text>
|
||||
</view>
|
||||
<text class="header-title">会员价管理</text>
|
||||
<text class="header-title">浼氬憳浠风鐞?/text>
|
||||
</view>
|
||||
|
||||
<view class="content-card">
|
||||
<view class="product-info">
|
||||
<image class="p-img" src="https://img1.baidu.com/it/u=254065646,3100346083&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" mode="aspectFill" />
|
||||
<text class="p-name">UR2024夏季新款女装复古纯欲氛围感一字肩短款T恤衫</text>
|
||||
<text class="p-name">UR2024澶忓鏂版濂宠澶嶅彜绾姘涘洿鎰熶竴瀛楄偐鐭T鎭よ~</text>
|
||||
</view>
|
||||
|
||||
<view class="price-table">
|
||||
<view class="th-row">
|
||||
<view class="th flex-2"><text>规格名称</text></view>
|
||||
<view class="th flex-1"><text>售价</text></view>
|
||||
<view class="th flex-1"><text>普通会员价</text></view>
|
||||
<view class="th flex-1"><text>黄金会员价</text></view>
|
||||
<view class="th flex-1"><text>铂金会员价</text></view>
|
||||
<view class="th flex-2"><text>瑙勬牸鍚嶇О</text></view>
|
||||
<view class="th flex-1"><text>鍞环</text></view>
|
||||
<view class="th flex-1"><text>鏅€氫細鍛樹环</text></view>
|
||||
<view class="th flex-1"><text>榛勯噾浼氬憳浠?/text></view>
|
||||
<view class="th flex-1"><text>閾傞噾浼氬憳浠?/text></view>
|
||||
</view>
|
||||
<view class="tr-row">
|
||||
<view class="td flex-2"><text>XL,卡其</text></view>
|
||||
<view class="td flex-1"><text>¥99.00</text></view>
|
||||
<view class="td flex-2"><text>XL,鍗″叾</text></view>
|
||||
<view class="td flex-1"><text>锟?9.00</text></view>
|
||||
<view class="td flex-1"><input class="price-input" value="89.00" /></view>
|
||||
<view class="td flex-1"><input class="price-input" value="79.00" /></view>
|
||||
<view class="td flex-1"><input class="price-input" value="69.00" /></view>
|
||||
@@ -32,7 +32,7 @@
|
||||
</view>
|
||||
|
||||
<view class="footer-btns">
|
||||
<button class="btn-save">保存设置</button>
|
||||
<button class="btn-save">淇濆瓨璁剧疆</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -47,7 +47,7 @@ function goBack() {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.member-price-page { padding: 20px; background: #f5f7f9; min-height: 100vh; }
|
||||
.member-price-page { /* padding removed */ background: #f5f7f9; }
|
||||
.page-header { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-bottom: 20px;
|
||||
.back-link { display: flex; flex-direction: row; align-items: center; gap: 4px; color: #666; cursor: pointer; }
|
||||
.header-title { font-size: 16px; font-weight: bold; color: #333; }
|
||||
@@ -66,3 +66,4 @@ function goBack() {
|
||||
.price-input { border: 1px solid #dcdfe6; border-radius: 4px; height: 32px; padding: 0 8px; text-align: center; width: 80%; font-size: 13px; }
|
||||
.footer-btns { margin-top: 40px; display: flex; justify-content: center; .btn-save { background: #1890ff; color: #fff; border: none; padding: 0 32px; height: 40px; border-radius: 4px; } }
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user