商品改为产品

This commit is contained in:
yyy 2024-12-02 09:01:12 +08:00
parent 334d5d57a9
commit 0113bba6c0
7 changed files with 1335 additions and 1339 deletions

View File

@ -373,7 +373,7 @@
// if(selectList.value.length <= 0){ // if(selectList.value.length <= 0){
// uni.showToast({ // uni.showToast({
// icon: 'error', // icon: 'error',
// title: '' // title: ''
// }) // })
// return // return
@ -384,7 +384,7 @@
// //
const onSubmit = async () => { const onSubmit = async () => {
// //
let newArr = [] let newArr = []
selectList.value.forEach((item, index) => { selectList.value.forEach((item, index) => {
let obj = {} let obj = {}

View File

@ -144,7 +144,7 @@
name: '跟进' name: '跟进'
}, },
{ {
name: '意向品' name: '意向品'
}, },
{ {
name: '客户信息', name: '客户信息',

View File

@ -13,7 +13,7 @@
</uv-navbar> </uv-navbar>
<view class="container"> <view class="container">
<view class="pb-2 flex px-5" style="background-color: #09b4f1;"> <view class="pb-2 flex px-5" style="background-color: #09b4f1;">
<uv-search placeholder="搜索品名称" v-model="keyword" bgColor="#ffffff" :customStyle="customStyle" :show-action="false" @change="onSearch"></uv-search> <uv-search placeholder="搜索品名称" v-model="keyword" bgColor="#ffffff" :customStyle="customStyle" :show-action="false" @change="onSearch"></uv-search>
<uv-icon name="/static/images/screen.png" :size="26" @click="openSearch"></uv-icon> <uv-icon name="/static/images/screen.png" :size="26" @click="openSearch"></uv-icon>
</view> </view>
<view class="wrap"> <view class="wrap">
@ -105,7 +105,7 @@
<view class="popup-title"> <view class="popup-title">
<view class="" style="width: 45px;"> <view class="" style="width: 45px;">
</view> </view>
<text class="">选择品规格</text> <text class="">选择品规格</text>
<view class="" @click="selectShowClose" style="width: 45px;"> <view class="" @click="selectShowClose" style="width: 45px;">
<uv-icon name="close" color="#909399" size="30"></uv-icon> <uv-icon name="close" color="#909399" size="30"></uv-icon>
</view> </view>
@ -146,7 +146,7 @@ import { formatDateTime,prePage } from '@/utils/util'
import { useMainStore } from '@/store/store' import { useMainStore } from '@/store/store'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
const main = useMainStore() const main = useMainStore()
const title = ref('选择品') const title = ref('选择品')
const keyword = ref('') const keyword = ref('')
const selected = ref(false) const selected = ref(false)
const priceShow = ref(false) const priceShow = ref(false)
@ -202,7 +202,7 @@ const selectShowRef = ref()
const onSelect = (val,i)=> { const onSelect = (val,i)=> {
if(!val.sku){ if(!val.sku){
uni.showToast({ uni.showToast({
title: '请先选择品规格', title: '请先选择品规格',
icon: 'error', icon: 'error',
duration: 2000 duration: 2000
}) })

View File

@ -775,7 +775,7 @@ const submit = () => {
if(selectList.value.length <= 0){ if(selectList.value.length <= 0){
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title: '请选择品' title: '请选择品'
}) })
return return

View File

@ -4,7 +4,7 @@
<uv-icon name="arrow-left" size="19" color="#ffffff"></uv-icon> <uv-icon name="arrow-left" size="19" color="#ffffff"></uv-icon>
</template> </template>
<template v-slot:center> <template v-slot:center>
<text style="color:#ffffff">品详情</text> <text style="color:#ffffff">品详情</text>
</template> </template>
</uv-navbar> </uv-navbar>
<view class="page" v-if="state.productInfo"> <view class="page" v-if="state.productInfo">
@ -25,10 +25,6 @@
<view class="info"> <view class="info">
{{state.productInfo.cate_id}} {{state.productInfo.cate_id}}
</view> </view>
<view class="title">产品价格</view>
<view class="info">
{{state.productInfo.price || 0}}
</view>
<view class="title">产品简介</view> <view class="title">产品简介</view>
<view class="info"> <view class="info">
{{state.productInfo.store_info || '暂无'}} {{state.productInfo.store_info || '暂无'}}

View File

@ -12,7 +12,7 @@
</view> </view>
<view class="info"> <view class="info">
<view class="title">名称{{ item.storeName }}</view> <view class="title">名称{{ item.storeName }}</view>
<view class="price">价格<text class="num">{{ item.price }}</text></view> <!-- <view class="price">价格<text class="num">{{ item.price }}</text></view> -->
</view> </view>
</view> </view>
</view> </view>
@ -27,7 +27,7 @@
</view> </view>
<view class="info"> <view class="info">
<view class="title">名称{{ item.storeName }}</view> <view class="title">名称{{ item.storeName }}</view>
<view class="price">价格<text class="num">{{ item.price }}</text></view> <!-- <view class="price">价格<text class="num">{{ item.price }}</text></view> -->
</view> </view>
</view> </view>
</view> </view>
@ -111,14 +111,14 @@
} }
.info { .info {
padding: 10rpx 12rpx 20rpx 16rpx; padding: 14rpx 16rpx 24rpx 16rpx;
.title { .title {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
font-size: 28rpx; font-size: 30rpx;
color: #333; color: #333;
} }

View File

@ -9,7 +9,7 @@
</template> </template>
</uv-navbar> </uv-navbar>
<view class="pb-2 flex px-5" style="background-color: #09b4f1;"> <view class="pb-2 flex px-5" style="background-color: #09b4f1;">
<uv-search placeholder="搜索品名称" v-model="keyword" bgColor="#ffffff" :customStyle="customStyle" <uv-search placeholder="搜索品名称" v-model="keyword" bgColor="#ffffff" :customStyle="customStyle"
:show-action="false" @change="onSearch"></uv-search> :show-action="false" @change="onSearch"></uv-search>
<!-- <uv-icon name="/static/images/screen.png" :size="26" @click="openSearch"></uv-icon> --> <!-- <uv-icon name="/static/images/screen.png" :size="26" @click="openSearch"></uv-icon> -->
</view> </view>
@ -52,7 +52,7 @@
storeToRefs storeToRefs
} from 'pinia' } from 'pinia'
const main = useMainStore() const main = useMainStore()
const title = ref('品') const title = ref('品')
const keyword = ref('') const keyword = ref('')
const listStatus = ref('loadmore') const listStatus = ref('loadmore')
const total = ref(-1) const total = ref(-1)