Commit 2f582f03 authored by 罗超's avatar 罗超

1

parent fd14700b
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
></u-tabs> ></u-tabs>
<template> <template>
<u-empty <u-empty
v-if="current == 0 && goodslist.length == 0" v-if="goodslist.length == 0"
text="没有任何收藏商品哦~" text="没有任何收藏哦~"
mode="favor" mode="favor"
></u-empty> ></u-empty>
<view <view
v-if="current == 0 && goodslist.length > 0" v-if="goodslist.length > 0"
style=" style="
height: calc(100vh - 50px); height: calc(100vh - 50px);
width: calc(100vw - 20px); width: calc(100vw - 20px);
...@@ -41,13 +41,18 @@ ...@@ -41,13 +41,18 @@
<view class="good" @click="clickHandler(cx)"> <view class="good" @click="clickHandler(cx)">
<view class="good-img"> <view class="good-img">
<image <image
mode="aspectFit" mode="aspectFill"
:src="cx.CoverImage" :src="cx.BannerList[0]"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
/> />
</view> </view>
<view class="good-name">{{ cx.Name }}</view> <view class="good-name">
<view <text>{{ cx.SourceName }}</text>
<view class="SourceFullName">{{
cx.SourceFullName
}}</view></view
>
<!-- <view
class="good-info" class="good-info"
v-if="setting && setting.is_show_korea == 0" v-if="setting && setting.is_show_korea == 0"
> >
...@@ -58,7 +63,7 @@ ...@@ -58,7 +63,7 @@
<view class="cart" @click.stop="showSkuHandler(cx)"> <view class="cart" @click.stop="showSkuHandler(cx)">
<u-icon name="cart-o" size="40" :color="mainColor" /> <u-icon name="cart-o" size="40" :color="mainColor" />
</view> </view>
</view> </view> -->
</view> </view>
</u-col> </u-col>
</u-row> </u-row>
...@@ -111,27 +116,6 @@ ...@@ -111,27 +116,6 @@
bg-color="#f3f4f6" bg-color="#f3f4f6"
/> />
</scroll-view> </scroll-view>
<u-empty
v-if="current == 0 && goodslist.length == 0"
text="没有任何收藏哦~"
mode="favor"
></u-empty>
</view>
<view
v-show="current == 1"
style="
height: calc(100vh - 50px);
width: calc(100vw - 20px);
margin-left: 10px;
overflow: hidden;
padding-top: 10px;
"
>
<u-empty
v-if="current == 1 && topiclist.length == 0"
text="没有任何收藏哦~"
mode="favor"
></u-empty>
</view> </view>
</template> </template>
<good-sku <good-sku
...@@ -229,6 +213,7 @@ export default { ...@@ -229,6 +213,7 @@ export default {
}, },
change(index) { change(index) {
this.current = index; this.current = index;
this.msg.pageIndex = 1;
this.goodslist = []; this.goodslist = [];
this.getList(); this.getList();
}, },
...@@ -244,10 +229,11 @@ export default { ...@@ -244,10 +229,11 @@ export default {
}, },
(res) => { (res) => {
uni.hideLoading(); uni.hideLoading();
console.log(209, res);
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.goodslist = this.goodslist.concat(res.data.pageData); this.goodslist = this.goodslist.concat(res.data.pageData);
this.page_count = res.data.pageCount; this.page_count = res.data.pageCount;
console.log(209, this.goodslist);
if (this.page_count == 1) { if (this.page_count == 1) {
this.status = "nomore"; this.status = "nomore";
} }
...@@ -266,7 +252,7 @@ export default { ...@@ -266,7 +252,7 @@ export default {
}, },
clickHandler(cx) { clickHandler(cx) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/goods/goods?GoodsId=" + cx.Id, url: "/pages/kotra/brand/detail?id=" + cx.SourceId,
}); });
}, },
lower(e) { lower(e) {
...@@ -335,6 +321,15 @@ export default { ...@@ -335,6 +321,15 @@ export default {
width: 40rpx; width: 40rpx;
text-align: right; text-align: right;
} }
.SourceFullName {
color: #999999;
font-size: 22rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.good_study_one { .good_study_one {
margin: 12px; margin: 12px;
position: relative; position: relative;
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
height: 86px; height: 86px;
margin-left: 12rpx; margin-left: 12rpx;
margin-right: -40rpx; margin-right: -40rpx;
position:absolute position: absolute;
top:0; top: 0;
right:30rpx; right: 30rpx;
" "
@click="follow" @click="follow"
> >
...@@ -986,13 +986,12 @@ export default { ...@@ -986,13 +986,12 @@ export default {
}, },
// 关注与取消关注 // 关注与取消关注
follow() { follow() {
console.log("follow");
let that = this; let that = this;
let parms = { let parms = {
url: "/api/AppletTrade/GetCollect", url: "/api/AppletTrade/GetCollect",
data: { data: {
SourceId: this.id, SourceId: this.ID,
Id: this.detailData.CollectId, Id: this.details.CollectId,
Type: 2, Type: 2,
}, },
}; };
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment