1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
|
{"version":3,"file":"goods-log.js","sources":["../../../../../../src/modules/mall/user/goods-log.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHVzZXJcZ29vZHMtbG9nLnZ1ZQ"],"sourcesContent":["<!-- 商品浏览记录 -->\r\n<template>\r\n <s-layout title=\"我的足迹\" :bgStyle=\"{ color: '#f2f2f2' }\">\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\">\r\n {{ state.pagination.total }}\r\n </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.selectedSpuIdList.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 :skuText=\"item.introduction\"\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 ></s-goods-item>\r\n </view>\r\n </view>\r\n </view>\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 ss-flex\">\r\n <button\r\n :class=\"[\r\n 'ss-reset-button pay-btn ss-font-28 ',\r\n {\r\n 'ui-BG-Main-Gradient': state.selectedSpuIdList.length > 0,\r\n 'ui-Shadow-Main': state.selectedSpuIdList.length > 0,\r\n },\r\n ]\"\r\n @tap=\"onDelete\"\r\n >\r\n 删除足迹\r\n </button>\r\n <button\r\n class=\"ss-reset-button ui-BG-Main-Gradient pay-btn ss-font-28 ui-Shadow-Main ml-2\"\r\n @tap=\"onClean\"\r\n >\r\n 清空\r\n </button>\r\n </view>\r\n </view>\r\n </su-fixed>\r\n </view>\r\n <uni-load-mor
|