|
|
@@ -3,7 +3,7 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
<!-- 商家信息-->
|
|
|
- <view class="padding20">
|
|
|
+ <view class="merchant-info">
|
|
|
<view class="store-card">
|
|
|
<view class="info-top">
|
|
|
<view class="left">
|
|
|
@@ -40,7 +40,7 @@
|
|
|
transform: 'scale(1)'
|
|
|
}"></up-tabs>
|
|
|
<!-- 商品列表-->
|
|
|
- <view class="index-product-wrapper padding30" v-if="tabActive == '0'">
|
|
|
+ <view class="index-product-wrapper" v-if="tabActive == '0'">
|
|
|
<view
|
|
|
class="list-box animated"
|
|
|
:class="goodsList.length > 0 ? 'fadeIn on' : ''"
|
|
|
@@ -62,16 +62,16 @@
|
|
|
<view class="bottom-row">
|
|
|
<!-- <text class="price">工费: {{ item.price }}/克</text> -->
|
|
|
<text class="price">¥ {{ item.totalPrice }}</text>
|
|
|
- <text class="sales">
|
|
|
+ <text class="sales" style="color:#666;">
|
|
|
销量:{{ Number(item.sales || 0) + Number(item.ficti || 0) }}件
|
|
|
</text>
|
|
|
<!-- <view class="txt">券</view> -->
|
|
|
</view>
|
|
|
<view class="bottom-row">
|
|
|
<!-- <text class="price">工费: {{ item.price }}/克</text> -->
|
|
|
- <text class="sales">工费: {{ item.totalLaborCost }}</text>
|
|
|
+ <text class="sales">工费:¥{{ item.totalLaborCost }}</text>
|
|
|
<text class="sales">
|
|
|
- 附加费: {{ item.additionalAmount }}
|
|
|
+ 附加费:¥{{ item.additionalAmount }}
|
|
|
</text>
|
|
|
<!-- <view class="txt">券</view> -->
|
|
|
</view>
|
|
|
@@ -177,12 +177,14 @@ const getSbmerchantInfoFn = async () => {
|
|
|
}
|
|
|
let obj ={
|
|
|
merchantId:query.value.merchantId,
|
|
|
- userId:appStore.userInfo.userId
|
|
|
+ userId:appStore?.userInfo?.userId
|
|
|
+ }
|
|
|
+ if(appStore?.userInfo?.userId){
|
|
|
+ await footprintScan(obj)
|
|
|
+ appStore.USERINFO();
|
|
|
}
|
|
|
- await footprintScan(obj)
|
|
|
- appStore.USERINFO();
|
|
|
// 当浏览的店铺主页不是上次浏览店铺时,才改变状态
|
|
|
- if(query.value.merchantId != appStore.userInfo.lastVisitedMerchantId){
|
|
|
+ if(query.value.merchantId != appStore?.userInfo?.lastVisitedMerchantId){
|
|
|
appStore.setIndexRefersh(true)
|
|
|
}
|
|
|
getSbmerchantInfo(data).then((res) => {
|
|
|
@@ -267,11 +269,13 @@ const goDetail = async (item) => {
|
|
|
//padding: 30rpx;
|
|
|
//box-sizing: border-box;
|
|
|
}
|
|
|
+.merchant-info{
|
|
|
+ padding: 16rpx 16rpx 0;
|
|
|
+}
|
|
|
.store-card{
|
|
|
background: #ffffff;
|
|
|
border-radius: 16rpx;
|
|
|
padding: 20rpx;
|
|
|
- margin-bottom: 10rpx;
|
|
|
|
|
|
.info-top{
|
|
|
display: flex;
|
|
|
@@ -325,10 +329,10 @@ const goDetail = async (item) => {
|
|
|
float: right;
|
|
|
}
|
|
|
.index-product-wrapper {
|
|
|
- //padding: 0 30rpx;
|
|
|
+ padding: 0 16rpx 16rpx;
|
|
|
margin-bottom: 110rpx;
|
|
|
min-height: 700rpx;
|
|
|
- margin-top: 30rpx;
|
|
|
+ margin-top: 16rpx;
|
|
|
//background: #fff;
|
|
|
position: relative;
|
|
|
|
|
|
@@ -343,11 +347,11 @@ const goDetail = async (item) => {
|
|
|
|
|
|
.item {
|
|
|
width: 48.99%;
|
|
|
- height: 490rpx;
|
|
|
+ // height: 490rpx;
|
|
|
background-color: #ffffff;
|
|
|
- box-shadow: 0rpx 3rpx 13rpx 0rpx rgba(0, 0, 0, 0.13);
|
|
|
- border-radius: 20rpx;
|
|
|
- margin-bottom: 20rpx;
|
|
|
+ // box-shadow: 0rpx 3rpx 13rpx 0rpx rgba(0, 0, 0, 0.13);
|
|
|
+ border-radius: 16rpx;
|
|
|
+ margin-bottom: 16rpx;
|
|
|
|
|
|
overflow: hidden;
|
|
|
display: flex;
|
|
|
@@ -364,10 +368,10 @@ const goDetail = async (item) => {
|
|
|
}
|
|
|
|
|
|
.text-info {
|
|
|
- padding: 10rpx 20rpx 15rpx;
|
|
|
+ padding: 16rpx 8rpx;
|
|
|
|
|
|
.title {
|
|
|
- color: #222222;
|
|
|
+ color: #333;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-items: space-between;
|