diff --git a/pages/goods-category/goods-category.vue b/pages/goods-category/goods-category.vue
index 6096174..6001bdb 100644
--- a/pages/goods-category/goods-category.vue
+++ b/pages/goods-category/goods-category.vue
@@ -1,1393 +1,1412 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
- {{ item.describe }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('common.all') }}
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- {{ $t('common.all') }}
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
- {{ item.simple_desc }}
-
-
-
-
- {{ item.show_price_symbol }}
- {{ item.min_price }}
-
- {{ item.show_price_unit }}
-
-
-
-
-
-
-
- {{ item.buy_number }}
-
-
-
-
-
-
- {{ item.error_msg }}
-
-
-
-
-
-
-
-
-
-
- {{ lv.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ data_content.vice_name }}
-
- {{ data_content.describe }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ v.name }}
-
-
-
-
-
-
-
-
-
-
- {{ v.name }}
- {{ v.describe }}
-
- {{ $t('common.more') }}
-
-
-
-
-
-
- {{ vs.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.describe }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('common.all') }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ {{ $t('common.all') }}
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.simple_desc }}
+
+
+
+
+ {{ item.show_price_symbol }}
+ {{ item.min_price }}
+
+ {{ item.show_price_unit }}
+
+
+
+
+
+
+
+ {{ item.buy_number }}
+
+
+
+
+
+
+ {{ item.error_msg }}
+
+
+
+
+
+
+
+
+
+
+ {{ lv.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ data_content.vice_name }}
+
+ {{ data_content.describe }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ v.name }}
+
+
+
+
+
+
+
+
+
+
+ {{ v.name }}
+ {{ v.describe }}
+
+ {{ $t('common.more') }}
+
+
+
+
+
+
+ {{ vs.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
- {{ $t('goods-category.goods-category.ico62g') }}
-
-
-
-
- {{ $t('common.clear') }}
-
-
-
-
-
-
-
-
- {{ goods.title }}
-
-
- ;
- {{ sv.value }}
-
-
-
-
- {{ currency_symbol }}{{ goods.price }}
-
-
-
-
-
-
- {{ goods.stock }}
-
-
-
-
-
-
- {{ goods.error_msg }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ currency_symbol }}
- {{ (cart || null) == null ? 0 : cart.total_price || 0 }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ $t('goods-category.goods-category.ico62g') }}
+
+
+
+
+ {{ $t('common.clear') }}
+
+
+
+
+
+
+
+
+ {{ goods.title }}
+
+
+ ;
+ {{ sv.value }}
+
+
+
+
+ {{ currency_symbol }}{{ goods.price }}
+
+
+
+
+
+
+ {{ goods.stock }}
+
+
+
+
+
+
+ {{ goods.error_msg }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currency_symbol }}
+ {{ (cart || null) == null ? 0 : cart.total_price || 0 }}
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6725c95..959d60e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -152,11 +152,19 @@
{{ themeConfigData.layoutData.recommandGoods.block1.title }}
-
-
-
- ¥{{ item.min_price }}
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+ ¥{{ item.min_price }}
+
+
@@ -166,14 +174,22 @@
{{ themeConfigData.layoutData.recommandGoods.block2.title }}
-
-
-
- {{ item.title }}
-
-
- ¥{{ item.min_price }}
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+ {{ item.title }}
+
+
+ ¥{{ item.min_price }}
+
+
@@ -182,14 +198,22 @@
{{ themeConfigData.layoutData.recommandGoods.block3.title }}
-
-
-
- {{ item.title }}
-
-
- ¥{{ item.min_price }}
-
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ item.title }}
+
+
+ ¥{{ item.min_price }}
+
+
@@ -206,16 +230,28 @@
-
-
- {{ item.title }}
+
+
+
+ {{ item.name }}
+
+
+
+ {{ item.title }}
+
-
-
- {{ item.title }}
+
+
+
+ {{ item.name }}
+
+
+
+ {{ item.title }}
+
@@ -224,15 +260,23 @@
{{ themeConfigData.layoutData.recommandGoods.block5.title }}
-
-
-
- {{ item.title }}
-
-
- ¥{{ item.min_price }}
- ¥{{ item.original_price }}
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+ {{ item.title }}
+
+
+ ¥{{ item.min_price }}
+ ¥{{ item.original_price }}
+
+
@@ -518,6 +562,55 @@
},
});
},
+ // 分类加商品跳转
+ goodsHandle(e, item) {
+ console.log(e);
+ console.log(item);
+ if (item.isCategory) {
+ let ids = JSON.stringify(item.path).split(',');
+
+ console.log(ids);
+
+ let index = -1; // 一级分类
+ let itemtwoindex = -1; // 二级分类
+ let itemthreeindex = -1; // 三级分类
+
+ console.log('分类数据===', this.category_list);
+
+ this.category_list.map((item, itemIndex) => {
+ if (item.id == ids[0]) {
+ index = itemIndex;
+ if (ids.length > 1) {
+ item.items.map((val, idx) => {
+ if (val.id == ids[1]) {
+ itemtwoindex = idx;
+ if (ids.length > 2) {
+ val.items.map((v, i) => {
+ if (v.id == ids[2]) {
+ itemthreeindex = i;
+ }
+ });
+ }
+ }
+ });
+ }
+ }
+ });
+
+ console.log({
+ index,
+ itemtwoindex,
+ itemthreeindex,
+ });
+
+ uni.setStorageSync('categoryIndex', `${index},${itemtwoindex},${itemthreeindex}`);
+ uni.switchTab({
+ url: `/pages/goods-category/goods-category`,
+ });
+ } else {
+ app.globalData.url_event(e);
+ }
+ },
// 商品事件
goods_event(e) {
console.log('goods_event===', e);
@@ -1459,6 +1552,7 @@
display: flex;
gap: $gap;
box-sizing: border-box;
+ padding: 0 $gap $gap;
.item {
flex: 1;
display: flex;
@@ -1479,6 +1573,7 @@
box-sizing: border-box;
}
.t {
+ width: 140upx;
display: flex;
align-items: center;
box-sizing: border-box;
@@ -1488,9 +1583,11 @@
}
.old {
color: #999;
- font-size: 20upx;
+ font-size: 16upx;
text-decoration: line-through;
box-sizing: border-box;
+ position: relative;
+ top: 4upx;
}
}
}