1 line
8.7 KiB
Plaintext
1 line
8.7 KiB
Plaintext
|
{"version":3,"file":"goods-collect.js","sources":["../../../../../../src/modules/mall/user/goods-collect.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHVzZXJcZ29vZHMtY29sbGVjdC52dWU"],"sourcesContent":["<!-- 我的商品收藏 -->\r\n<template>\r\n <s-layout title=\"商品收藏\">\r\n <view class=\"cart-box ss-flex ss-flex-col ss-row-between\">\r\n <!-- 头部 -->\r\n <view class=\"cart-header ss-flex ss-col-center ss-row-between ss-p-x-30\">\r\n <view class=\"header-left ss-flex ss-col-center ss-font-26\">\r\n 共\r\n <text class=\"goods-number ui-TC-Main ss-flex\">{{ state.pagination.total }}</text>\r\n 件商品\r\n </view>\r\n <view class=\"header-right\">\r\n <button\r\n v-if=\"state.editMode && state.pagination.total\"\r\n class=\"ss-reset-button\"\r\n @tap=\"state.editMode = false\"\r\n >\r\n 取消\r\n </button>\r\n <button\r\n v-if=\"!state.editMode && state.pagination.total\"\r\n class=\"ss-reset-button ui-TC-Main\"\r\n @tap=\"state.editMode = true\"\r\n >\r\n 编辑\r\n </button>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"cart-content\">\r\n <view\r\n class=\"goods-box ss-r-10 ss-m-b-14\"\r\n v-for=\"item in state.pagination.list\"\r\n :key=\"item.id\"\r\n >\r\n <view class=\"ss-flex ss-col-center\">\r\n <label\r\n class=\"check-box ss-flex ss-col-center ss-p-l-10\"\r\n v-if=\"state.editMode\"\r\n @tap=\"onSelect(item.spuId)\"\r\n >\r\n <radio\r\n :checked=\"state.selectedCollectList.includes(item.spuId)\"\r\n color=\"var(--ui-BG-Main)\"\r\n style=\"transform: scale(0.8)\"\r\n @tap.stop=\"onSelect(item.spuId)\"\r\n />\r\n </label>\r\n <s-goods-item\r\n :title=\"item.spuName\"\r\n :img=\"item.picUrl\"\r\n :price=\"item.price\"\r\n priceColor=\"#FF3000\"\r\n :titleWidth=\"400\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/goods/index', {\r\n id: item.spuId,\r\n })\r\n \"\r\n />\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部 -->\r\n <su-fixed bottom :val=\"0\" placeholder v-show=\"state.editMode\">\r\n <view class=\"cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom\">\r\n <view class=\"footer-left ss-flex ss-col-center\">\r\n <label class=\"check-box ss-flex ss-col-center ss-p-r-30\" @tap=\"onSelectAll\">\r\n <radio\r\n :checked=\"state.selectAll\"\r\n color=\"var(--ui-BG-Main)\"\r\n style=\"transform: scale(0.7)\"\r\n @tap.stop=\"onSelectAll\"\r\n />\r\n <view>全选</view>\r\n </label>\r\n </view>\r\n <view class=\"footer-right\">\r\n <button\r\n class=\"ss-reset-button ui-BG-Main-Gradient pay-btn ss-font-28 ui-Shadow-Main\"\r\n @tap=\"onCancel\"\r\n >\r\n 取消收藏\r\n </button>\r\n </view>\r\n </view>\r\n </su-fixed>\r\n </view>\r\n <uni-load-more\r\n v-if=\"state.pagination.total > 0\"\r\n :status=\"state.loadStatus\"\r\n :content-text=\"{\r\n contentdown: '上拉加载更多',\r\n }\"\r\n @tap=\"loadMore\"\r\n />\r\n <s-empty v-if=\"state.pagination.total === 0\" text=\"暂无收藏\" icon=\"/static/collect-empty.png\" />\r\n </s-layout>\r\n</template>\r\n\r\n<script setup>\r\nimport sheep from '@/sheep'\r\nimport { reactive } from 'vue'\r\nimport { onLoad, onReachBottom } from '@dcloudio/uni-app'\r\nimport _ from 'lodash-es'\r\nimport FavoriteA
|