feat: 添加ai店铺-列表记录、金种子图表样式调整
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<view class="tab2-wrap p-x-32 p-t-16 p-b-24">
|
||||
<view class="shop-card m-b-24" v-for="(v, i) in list" :key="v.id || i">
|
||||
<view class="tab2-wrap p-x-32 p-b-24">
|
||||
<view
|
||||
class="shop-card m-b-24"
|
||||
v-for="(v, i) in mockList"
|
||||
:key="v.id || i"
|
||||
@tap="toListRecord(v)"
|
||||
>
|
||||
<view class="shop-card-inner">
|
||||
<view class="shop-card-top">
|
||||
<view class="shop-name lineOne">{{ v.name }}</view>
|
||||
@@ -93,6 +98,18 @@
|
||||
if (!Number.isFinite(num)) return '0.00';
|
||||
return num.toFixed(2);
|
||||
};
|
||||
|
||||
const toListRecord = (item) => {
|
||||
const shopId = item?.id ?? '';
|
||||
const name = item?.name ?? '';
|
||||
const cover = item?.cover ?? '';
|
||||
const url =
|
||||
'/pages/index/listRecord' +
|
||||
`?shopId=${encodeURIComponent(String(shopId))}` +
|
||||
`&name=${encodeURIComponent(String(name))}` +
|
||||
`&cover=${encodeURIComponent(String(cover))}`;
|
||||
uni.navigateTo({ url });
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user