This commit is contained in:
zmj 2024-06-22 19:58:02 +08:00
commit 0a8c7b0504

View File

@ -24,15 +24,19 @@
<view class="store-info"> <view class="store-info">
<view style="display: flex;font-size: 30rpx;font-weight: bold;"> <view style="display: flex;font-size: 30rpx;font-weight: bold;">
<text v-if="userStore.userInfo.user_ship == 1 || shareInfo.store_id" <text v-if="userStore.userInfo.user_ship == 1 || shareInfo.store_id"
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{(shareInfo.real_name||( userStore.userInfo.real_name|| userStore.userInfo.nickname)) + '的供销个人门店' }}</text> style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{
(shareInfo.real_name || (
userStore.userInfo.real_name || userStore.userInfo.nickname)) + '的供销个人门店' }}</text>
<text v-else <text v-else
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{STORE_INFO.store_name}}</text> style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{
STORE_INFO.store_name }}</text>
<up-icon name="arrow-right"></up-icon> <up-icon name="arrow-right"></up-icon>
</view> </view>
</view> </view>
</template> </template>
</up-navbar> </up-navbar>
<view class="share-btn" :style="{height:btns.height + 'px',top:btns.top + 'px',left:(btns.left - 40) + 'px'}"> <view class="share-btn"
:style="{ height: btns.height + 'px', top: btns.top + 'px', left: (btns.left - 40) + 'px' }">
<up-button icon="share-square" openType="share" plain size="large" loadingSize="100" /> <up-button icon="share-square" openType="share" plain size="large" loadingSize="100" />
</view> </view>
@ -48,7 +52,7 @@
<view class="nav-item" @click="navTo('/pagesOrder/order/order?type=0')"> <view class="nav-item" @click="navTo('/pagesOrder/order/order?type=0')">
<image src="@/static/tab/da.png"></image> <image src="@/static/tab/da.png"></image>
<text>我的订单</text> <text>我的订单</text>
<view class="badge">{{ userStore.userInfo.no_writeoff }}</view> <view class="badge" v-if="userStore.userInfo.no_writeoff">{{ userStore.userInfo.no_writeoff }}</view>
</view> </view>
<view class="nav-item" @click="navTo('/pages/my/my')"> <view class="nav-item" @click="navTo('/pages/my/my')">
<image src="@/static/tab/ca.png"></image> <image src="@/static/tab/ca.png"></image>
@ -114,7 +118,8 @@
<view class="item" :class="{ 'order-active': where.order == 'desc' || where.order == 'asc' }" <view class="item" :class="{ 'order-active': where.order == 'desc' || where.order == 'asc' }"
@click="changeOrder(where.order == 'asc' ? 'desc' : 'asc')">价格</view> @click="changeOrder(where.order == 'asc' ? 'desc' : 'asc')">价格</view>
<view class="item" :class="{ 'order-active': where.order == 'sales' }" <view class="item" :class="{ 'order-active': where.order == 'sales' }"
@click="changeOrder('sales')">销量</view> @click="changeOrder('sales')">销量
</view>
</view> </view>
</view> </view>
<viewPopup v-if="show === 2" @close="show = 0"> <viewPopup v-if="show === 2" @close="show = 0">
@ -123,18 +128,16 @@
<view class="classify-list"> <view class="classify-list">
<view class="classify-list-item u-line-1" <view class="classify-list-item u-line-1"
:class="{ 'item-active': rightActive === item.id }" :class="{ 'item-active': rightActive === item.id }"
v-for="(item, index) in goodClassThree" :key="index" v-for="(item, index) in goodClassThree" :key="index" @click="changeThree(item, index)">
@click="changeThree(item, index)">
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</viewPopup> </viewPopup>
<scroll-view class="list" id='drag_area' style="overscroll-behavior: none;" @scroll="hideHeadView" <scroll-view class="list" id='drag_area' style="overscroll-behavior: none;" @scroll="hideHeadView" scroll-y
scroll-y @scrolltolower="loadMoreGood"> @scrolltolower="loadMoreGood">
<view class="shop-item" v-for="(item, index) in goodList" :key="item.id" <view class="shop-item" v-for="(item, index) in goodList" :key="item.id" @click="openGoodPopup(item)">
@click="openGoodPopup(item)">
<view class="shop-img" <view class="shop-img"
:style="{ backgroundImage: `url(${item.image}?x-oss-process=image/format,webp)` }"> :style="{ backgroundImage: `url(${item.image}?x-oss-process=image/format,webp)` }">
</view> </view>
@ -677,10 +680,11 @@
right: 0; right: 0;
background-color: #FF0000; background-color: #FF0000;
color: #FFFFFF; color: #FFFFFF;
padding: 0 5rpx; padding: 0 8rpx;
border-radius: 50rpx; border-radius: 50rpx;
font-size: 18rpx; font-size: 18rpx;
} }
} }
} }