Browse Source

fix: 修复配置环境和商品显示问题

将环境配置从prod2改为local
在商品显示中添加名称和款式的组合展示
调整回收页面样式和按钮文本
master
前端-胡立永 1 week ago
parent
commit
bf9b937302
3 changed files with 10 additions and 10 deletions
  1. +1
    -1
      config.js
  2. +8
    -8
      pages/component/recycle.vue
  3. +1
    -1
      pages/subcomponent/pickup.vue

+ 1
- 1
config.js View File

@ -1,5 +1,5 @@
// config.js
const type = 'prod2'
const type = 'local'
const config = {
local: {


+ 8
- 8
pages/component/recycle.vue View File

@ -129,7 +129,7 @@
<!-- <text class="panel-item-name">{{ item.name }}</text> -->
<!-- <text class="panel-item-desc" v-if="item.brandName && item.styleName">品牌{{ item.brandName }} | 款式{{ item.styleName }}</text> -->
<text class="panel-item-name">{{ item.brandName || item.name }}</text>
<text class="panel-item-desc" v-if="item.styleName">{{ item.styleName }}</text>
<text class="panel-item-desc" v-if="item.styleName">{{ item.name }} | {{ item.styleName }}</text>
<text class="panel-item-desc" v-else>{{ item.service }}</text>
<text class="panel-item-price" v-if="!item.maxPrice || item.maxPrice == item.price">¥{{ item.price }}/{{
item.unit || '件' }}</text>
@ -163,7 +163,7 @@
<!-- 添加衣物浮窗按钮 -->
<view class="floating-add-btn" @click="addMoreItems">
<text class="floating-btn-text">添加衣物</text>
<text class="floating-btn-text">继续添加衣物</text>
</view>
</view>
</view>
@ -2033,7 +2033,7 @@ export default {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 24rpx 0;
padding: 32rpx 0;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
@ -2044,9 +2044,9 @@ export default {
.panel-img-container {
position: relative;
width: 100rpx;
height: 100rpx;
margin-right: 20rpx;
width: 120rpx;
height: 120rpx;
margin-right: 24rpx;
flex-shrink: 0;
}
@ -2221,8 +2221,8 @@ export default {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 210rpx;
width: 160rpx;
bottom: calc(120rpx + env(safe-area-inset-bottom));
width: 220rpx;
height: 80rpx;
background: linear-gradient(to right, #ffd01e, #ff8917);
border-radius: 40rpx;


+ 1
- 1
pages/subcomponent/pickup.vue View File

@ -61,7 +61,7 @@
<text class="name">{{ item.brandName || item.name }}</text>
<text v-if="item.brandName" class="brand-tag">品牌</text>
</view>
<view class="desc" v-if="item.styleName">{{ item.styleName }}</view>
<view class="desc" v-if="item.styleName">{{ item.name }} | {{ item.styleName }}</view>
<view class="desc" v-else>{{ item.desc }}</view>
<view class="price-row">
<text class="price" v-if="!item.maxPrice || item.maxPrice == (item.price || item.unitPrice)">{{


Loading…
Cancel
Save