This commit is contained in:
zmj 2024-06-18 14:26:48 +08:00
parent 75f3d75a25
commit e2fc723655
1 changed files with 5 additions and 22 deletions

View File

@ -21,19 +21,17 @@
<view class="content">
<up-navbar placeholder style="z-index: 10080;">
<template #left>
<view class="store-info">
<view style="display: flex;font-size: 30rpx;font-weight: bold;">
<text v-if="userStore.userInfo.user_ship==1"
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{(shareInfo.real_name||userStore.userInfo.nickname + '的供销个人门店' )}}</text>
<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.nickname) + '的供销个人门店' }}</text>
<text v-else
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{shareInfo.real_name?(shareInfo.real_name + '的' + STORE_INFO.name):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>
</view>
</view>
</template>
</up-navbar>
<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" />
</view>
@ -250,11 +248,8 @@
shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo
.real_name || userStore.userInfo.nickname)
}
let shareInfo = {
title: STORE_INFO.store_name,
title: userStore.userInfo.nickname,
path: '/pages/index/index' + shareStr,
imageUrl: STORE_INFO.image || '',
success() {
@ -267,8 +262,6 @@
return shareInfo;
})
/*商品列表滚动隐藏头部导航 */
const instance = getCurrentInstance(); //
const targetHeight = ref(0)
@ -566,6 +559,7 @@
});
onLoad(async (opt) => {
where.value.store_id = opt.id || STORE_INFO.id;
// id
if (opt.id) {
where.value.store_id = opt.id;
@ -579,18 +573,7 @@
shareInfo.value.store_id = opt.id;
uni.setStorageSync('SHARE_INFO', shareInfo.value);
}
} else {
//
const info = uni.getStorageSync('STORE_INFO');
if (info) {
where.value.store_id = STORE_INFO.id;
}
//
const i = uni.getStorageSync('SHARE_INFO');
if (i)
shareInfo.value = i;
}
getgoodClassList(0);
getGoodList();
//