feat: 添加收支明细页面、修改我的店铺展示、ai店铺-列表记录添加分页
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
<image class="shop-summary-icon" src="/static/index/shop1.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="shop-summary-info flex1">
|
||||
<view class="shop-summary-title">{{ shopSummary.title }}</view>
|
||||
<view class="shop-summary-title">{{ shopTitle }}</view>
|
||||
<view class="shop-summary-id">ID:{{ shopSummary.shopId }}</view>
|
||||
<!-- <view class="shop-summary-id">商品总数:{{ shopSummary.total }}</view> -->
|
||||
</view>
|
||||
@@ -170,6 +170,7 @@
|
||||
<script setup>
|
||||
import { ref, watch, computed } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import sheep from '@/sheep';
|
||||
import * as api from '@/sheep/api/ai/index';
|
||||
import card_pages from '@/components/card_pages/card_pages';
|
||||
import card_payment from '@/components/card_payment/card_payment';
|
||||
@@ -358,6 +359,13 @@
|
||||
{ name: '我的店铺', id: 2 },
|
||||
]);
|
||||
|
||||
const userStore = sheep.$store('user');
|
||||
const shopTitle = computed(() => {
|
||||
const name = String(userStore?.userInfo?.nickname || userStore?.userInfo?.mobile || '').trim();
|
||||
if (!name) return '我的店铺';
|
||||
return `${name}的店铺`;
|
||||
});
|
||||
|
||||
const pageCommodity = ref(null);
|
||||
const dataList = ref([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user