feat:性能优化
This commit is contained in:
@@ -26,12 +26,12 @@
|
||||
<!-- 原来单个 v-for 替换成两列 -->
|
||||
<view class="mescrollUniView">
|
||||
<view class="fall-col">
|
||||
<PingItem v-for="(item, i) in leftList" :key="item.id" :obj="item" @ok="onJumpShop"
|
||||
class="ping-item" />
|
||||
<ParityProductItem v-for="(item, i) in leftList" :key="item.id" :obj="item" @ok="onJumpShop"
|
||||
class="parity-product-item" />
|
||||
</view>
|
||||
<view class="fall-col">
|
||||
<PingItem v-for="(item, i) in rightList" :key="item.id" :obj="item" @ok="onJumpShop"
|
||||
class="ping-item" />
|
||||
<ParityProductItem v-for="(item, i) in rightList" :key="item.id" :obj="item" @ok="onJumpShop"
|
||||
class="parity-product-item" />
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
@@ -50,11 +50,11 @@ import { getAcctBalance } from "@/api/finance.js";
|
||||
|
||||
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
|
||||
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue";
|
||||
import PingItem from "@/components/shop/ping-item.vue";
|
||||
import ParityProductItem from "@/components/shop/parity-product-item.vue";
|
||||
|
||||
export default {
|
||||
mixins: [MescrollMixin],
|
||||
components: { Header, TopSafe, MyBtn, PingItem, MescrollUni, },
|
||||
components: { Header, TopSafe, MyBtn, ParityProductItem, MescrollUni, },
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
@@ -78,13 +78,13 @@
|
||||
</view>
|
||||
|
||||
<view class="setting-view">
|
||||
<YouItem
|
||||
<PreferredProductItem
|
||||
@ok="onJumpShop"
|
||||
style="margin-bottom: 24rpx"
|
||||
:obj="item"
|
||||
v-for="(item, index) in dataList"
|
||||
:key="index"
|
||||
></YouItem>
|
||||
></PreferredProductItem>
|
||||
</view>
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
@@ -94,12 +94,12 @@
|
||||
import shopHeader from "@/components/common/shopHeader.vue";
|
||||
import TopSafe from "@/components/common/top-safe.nvue";
|
||||
import MyBtn from "@/components/common/my-btn.vue";
|
||||
import YouItem from "@/components/shop/you-item.vue";
|
||||
import PreferredProductItem from "@/components/shop/preferred-product-item.vue";
|
||||
import { searchList } from "@/api/product.js";
|
||||
import { getCarouselImage } from "@/api/common.js";
|
||||
|
||||
export default {
|
||||
components: { shopHeader, TopSafe, MyBtn, YouItem },
|
||||
components: { shopHeader, TopSafe, MyBtn, PreferredProductItem },
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
@@ -132,7 +132,7 @@ export default {
|
||||
},
|
||||
jumpSearch() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/rwa_package/dongjian/search",
|
||||
url: "/pages/rwa_package/insights/search",
|
||||
});
|
||||
},
|
||||
// 跳转到商品详情
|
||||
@@ -10,7 +10,7 @@
|
||||
</Header>
|
||||
<view class="setting-view">
|
||||
<view class="name-box" v-if="dataList.length">
|
||||
<PingItem @ok="onJumpShop" style="margin-top:24rpx" :obj="item" v-for="(item,index) in dataList" :key="index"></PingItem>
|
||||
<ParityProductItem @ok="onJumpShop" style="margin-top:24rpx" :obj="item" v-for="(item,index) in dataList" :key="index"></ParityProductItem>
|
||||
</view>
|
||||
<view class="bottom-scroll-no " v-else>
|
||||
<text class="text-32" >暂无数据</text>
|
||||
@@ -27,9 +27,9 @@ import MyBtn from '@/components/common/my-btn.vue'
|
||||
import { searchList } from '@/api/product.js';
|
||||
import { getCascadeCategory } from '@/api/common.js';
|
||||
|
||||
import PingItem from "@/components/shop/ping-item.vue";
|
||||
import ParityProductItem from "@/components/shop/parity-product-item.vue";
|
||||
export default {
|
||||
components: { Header, TopSafe,MyBtn,PingItem },
|
||||
components: { Header, TopSafe,MyBtn,ParityProductItem },
|
||||
data() {
|
||||
return {
|
||||
dataList:[
|
||||
|
||||
Reference in New Issue
Block a user