add
This commit is contained in:
parent
75f3d75a25
commit
e2fc723655
|
@ -21,19 +21,17 @@
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<up-navbar placeholder style="z-index: 10080;">
|
<up-navbar placeholder style="z-index: 10080;">
|
||||||
<template #left>
|
<template #left>
|
||||||
|
|
||||||
<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"
|
<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>
|
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{(shareInfo.real_name||userStore.userInfo.nickname) + '的供销个人门店' }}</text>
|
||||||
<text v-else
|
<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>
|
<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>
|
||||||
|
@ -250,11 +248,8 @@
|
||||||
shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo
|
shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo
|
||||||
.real_name || userStore.userInfo.nickname)
|
.real_name || userStore.userInfo.nickname)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let shareInfo = {
|
let shareInfo = {
|
||||||
title: STORE_INFO.store_name,
|
title: userStore.userInfo.nickname,
|
||||||
path: '/pages/index/index' + shareStr,
|
path: '/pages/index/index' + shareStr,
|
||||||
imageUrl: STORE_INFO.image || '',
|
imageUrl: STORE_INFO.image || '',
|
||||||
success() {
|
success() {
|
||||||
|
@ -267,8 +262,6 @@
|
||||||
return shareInfo;
|
return shareInfo;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*商品列表滚动隐藏头部导航 */
|
/*商品列表滚动隐藏头部导航 */
|
||||||
const instance = getCurrentInstance(); // 获取组件实例
|
const instance = getCurrentInstance(); // 获取组件实例
|
||||||
const targetHeight = ref(0)
|
const targetHeight = ref(0)
|
||||||
|
@ -566,6 +559,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
onLoad(async (opt) => {
|
onLoad(async (opt) => {
|
||||||
|
where.value.store_id = opt.id || STORE_INFO.id;
|
||||||
// 店铺id
|
// 店铺id
|
||||||
if (opt.id) {
|
if (opt.id) {
|
||||||
where.value.store_id = opt.id;
|
where.value.store_id = opt.id;
|
||||||
|
@ -579,18 +573,7 @@
|
||||||
shareInfo.value.store_id = opt.id;
|
shareInfo.value.store_id = opt.id;
|
||||||
uni.setStorageSync('SHARE_INFO', shareInfo.value);
|
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);
|
getgoodClassList(0);
|
||||||
getGoodList();
|
getGoodList();
|
||||||
// 胶囊布局信息
|
// 胶囊布局信息
|
||||||
|
|
Loading…
Reference in New Issue