Compare commits
33 Commits
f98cdd7937
...
5291d70c6c
| Author | SHA1 | Date | |
|---|---|---|---|
| 5291d70c6c | |||
| 60913ab612 | |||
|
|
ee04a8cb08 | ||
| 711eeadc28 | |||
| f577de11f1 | |||
| 689aecc572 | |||
| 8ba87795b3 | |||
|
|
e51675d2e7 | ||
|
|
91927fdc57 | ||
|
|
8f83aeec8e | ||
| d5202c02cc | |||
| 631e8ae3e6 | |||
|
|
b2b740c207 | ||
| 7191b29b44 | |||
|
|
50c790c7fc | ||
| ec8831152e | |||
| 6f5c2d1fc9 | |||
| 41ea8122e6 | |||
| 06ee3b9038 | |||
| 5b763fdb82 | |||
| 31689af773 | |||
| caaea4de62 | |||
| cada935c17 | |||
| 9e9a6dcc5b | |||
| a702558eac | |||
| 2a180ba05f | |||
|
|
2a5e4b89b2 | ||
| fd31d14881 | |||
|
|
aae9f78a91 | ||
| 3e6f7ebf1b | |||
|
|
23b2b11bc8 | ||
|
|
21d3201c4b | ||
|
|
9a9276fc94 |
@@ -421,7 +421,7 @@ export default {
|
|||||||
couponGoodsList({ voucher_id, page, order }) {
|
couponGoodsList({ voucher_id, page, order }) {
|
||||||
return vm.$u.post('Coupon/couponGoodsList', {
|
return vm.$u.post('Coupon/couponGoodsList', {
|
||||||
page: page,
|
page: page,
|
||||||
voucher_id: voucher_id,
|
vouchertemplate_id: voucher_id,
|
||||||
order: order,
|
order: order,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<view class="text">{{ content.geval_content }}</view>
|
<view class="text">{{ content.geval_content }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="image-container">
|
<view class="image-container">
|
||||||
<image :src="src" v-for="(src, index) in content.geval_image" :key="index"></image>
|
<image :src="src" v-for="(src, index) in content.geval_image" :key="index" @click="previewImage(content.geval_image)"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="reply" v-if="reply && content.geval_explain">
|
<view class="reply" v-if="reply && content.geval_explain">
|
||||||
<view class="title">掌柜回复:</view>
|
<view class="title">掌柜回复:</view>
|
||||||
@@ -39,6 +39,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if(this.content.hasOwnProperty('scores_two')) this.rate = this.content.scores_two;
|
if(this.content.hasOwnProperty('scores_two')) this.rate = this.content.scores_two;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
previewImage(urls) {
|
||||||
|
console.log(urls);
|
||||||
|
// uni.previewImage({
|
||||||
|
// urls: urls,
|
||||||
|
// });
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
|
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
|
||||||
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
|
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
|
||||||
<view class="header_fist" v-else>
|
<view class="header_fist" v-else>
|
||||||
<view class="backes"></view>
|
<view class="backes">
|
||||||
<image class="head" :src="item.article_pic" ></image>
|
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
|
||||||
|
<text>视频</text>
|
||||||
|
</view>
|
||||||
|
<image class="head" :src="item.article_pic"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title" v-if="">{{ item.article_title }}</view>
|
<view class="title" v-if="">{{ item.article_title }}</view>
|
||||||
<view class="jianjie">{{ item.article_content }}</view>
|
<view class="jianjie">{{ item.article_content }}</view>
|
||||||
@@ -172,11 +175,22 @@
|
|||||||
.header_fist{
|
.header_fist{
|
||||||
position: relative;
|
position: relative;
|
||||||
.backes{
|
.backes{
|
||||||
|
z-index: 99;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
display: flex;
|
||||||
width: 100%;
|
align-items: center;
|
||||||
height: 100%;
|
justify-content: space-around;
|
||||||
color: #fff;
|
top: 10rpx;
|
||||||
|
left: 10rpx;
|
||||||
|
width: 80rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
background-color: rgba(0,0,0,0.5);
|
||||||
|
& > text {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 18rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -197,7 +211,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
item(newVal, old) {
|
item(newVal, old) {
|
||||||
// console.log(newVal);
|
console.log(newVal);
|
||||||
this.item = newVal;
|
this.item = newVal;
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="label">
|
<view class="label">
|
||||||
<!-- <u-tabs-swiper ref="group" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="24" :show-bar="false" @change="tabsChange" height="60"></u-tabs-swiper> -->
|
|
||||||
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
||||||
</view>
|
</view>
|
||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<view class="list">
|
<view class="list">
|
||||||
<view class="top">商品推荐</view>
|
<view class="top">商品推荐</view>
|
||||||
<view>
|
<view>
|
||||||
<!-- <u-tabs-swiper ref="uTabs" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="26" :show-bar="false" @change="tabsChange" height="60"></u-tabs-swiper> -->
|
|
||||||
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
<u-tabs :list="classifyList" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
||||||
</view>
|
</view>
|
||||||
<swiper class="swiper-box" :current="swiperCurrent" @animationfinish="animationfinish" :style="{height: swiperHeight}">
|
<swiper class="swiper-box" :current="swiperCurrent" @animationfinish="animationfinish" :style="{height: swiperHeight}">
|
||||||
@@ -49,7 +48,7 @@ export default {
|
|||||||
this.getGoodsClassRecommend();
|
this.getGoodsClassRecommend();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadMore(page) {
|
loadMore() {
|
||||||
if(!this.timer) return false;
|
if(!this.timer) return false;
|
||||||
this.loadStatus = "loading";
|
this.loadStatus = "loading";
|
||||||
this.page++;
|
this.page++;
|
||||||
@@ -85,8 +84,6 @@ export default {
|
|||||||
page: page,
|
page: page,
|
||||||
gc_id: gc_id,
|
gc_id: gc_id,
|
||||||
})
|
})
|
||||||
console.log(res)
|
|
||||||
|
|
||||||
// this.swiperCurrent = this.current;
|
// this.swiperCurrent = this.current;
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.timer = true;
|
this.timer = true;
|
||||||
@@ -100,7 +97,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setSwiperHeight() {
|
setSwiperHeight() {
|
||||||
// height: 480rpx, margin-bottom: 26rpx
|
// height: 480rpx, margin-bottom: 26rpx
|
||||||
const height = Math.ceil(this.goodsList[this.current].length / 2) * (480 + 26);
|
const height = Math.ceil(this.goodsList[this.current].length / 2) * (450 + 26);
|
||||||
this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx';
|
this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx';
|
||||||
// console.log(this.swiperHeight);
|
// console.log(this.swiperHeight);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.item{
|
.item{
|
||||||
width: 330rpx;
|
width: 330rpx;
|
||||||
height: 480rpx;
|
height: 450rpx;
|
||||||
margin-bottom: 26rpx;
|
margin-bottom: 26rpx;
|
||||||
background-color: #f8f8f8;
|
background-color: #f8f8f8;
|
||||||
border-radius: 10rpx 10rpx 0rpx 0rpx;
|
border-radius: 10rpx 10rpx 0rpx 0rpx;
|
||||||
.img{
|
.img{
|
||||||
width: 330rpx;
|
width: 330rpx;
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
background: rgba(245,245,245,1);
|
background: rgb(114, 110, 110);
|
||||||
border-radius: 10rpx 10rpx 0rpx 0rpx;
|
border-radius: 10rpx 10rpx 0rpx 0rpx;
|
||||||
margin-bottom: 24rpx;
|
margin-bottom: 24rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
<view class="connect">
|
<view class="connect">
|
||||||
<view class="user">
|
<view class="user">
|
||||||
<view class="avatar">
|
<view class="avatar">
|
||||||
<image :src="info.member_avatar[0]"></image>
|
<image src="/static/image/common/32.png"></image>
|
||||||
<image :src="info.member_avatar[1]"></image>
|
<image src="/static/image/common/31.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="num">{{ info.pintuan_limit_number }}人团</view>
|
<view class="num">{{ info.pintuan_limit_number }}人团</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -91,7 +91,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.connect{
|
.connect{
|
||||||
padding:10rpx 30rpx 30rpx;
|
padding:10rpx 0 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.user {
|
.user {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="next" @click="viewMore">
|
<view class="next" @click="viewMore">
|
||||||
<text>查看更多</text>
|
<text>查看更多</text>
|
||||||
<u-icon name="arrow-right" color="#999" size="18"></u-icon>
|
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
@@ -82,7 +82,7 @@ export default {
|
|||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
.mah {
|
.mah {
|
||||||
vertical-align: text-top;
|
color: #999999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
<view class="coupon-swiper">
|
<view class="coupon-swiper">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="title">全部优惠券</view>
|
<view class="title">全部优惠券</view>
|
||||||
<view class="view-more" @click="toCouponPage">查看更多></view>
|
<view class="view-more" @click="toCouponPage">
|
||||||
|
<text>查看更多</text>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <u-tabs-swiper ref="coupon" :list="couponGroupList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="couponCurrent" font-size="24" :show-bar="false" @change="couponTabsChange" height="60" ></u-tabs-swiper> -->
|
|
||||||
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="60" font-size="24" inactive-color="#333333"></u-tabs>
|
||||||
<!-- :style="{ height: swiperHeight }" -->
|
|
||||||
<swiper class="box" :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{height: swiperHeight}">
|
<swiper class="box" :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{height: swiperHeight}">
|
||||||
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
|
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
|
||||||
<!-- 最多显示四个 -->
|
<!-- 最多显示四个 -->
|
||||||
@@ -114,6 +115,8 @@ export default {
|
|||||||
.view-more {
|
.view-more {
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
color: rgba(153,153,153,1);
|
color: rgba(153,153,153,1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.box {
|
.box {
|
||||||
|
|||||||
@@ -133,8 +133,8 @@
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
uni.switchTab({
|
uni.navigateTo({
|
||||||
url: '/pages/index/index'
|
url: '/pageA/topick/topick'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|||||||
@@ -237,11 +237,11 @@
|
|||||||
console.log(res.data.member.member_mobilebind);
|
console.log(res.data.member.member_mobilebind);
|
||||||
if(res.data.member.member_mobilebind) {
|
if(res.data.member.member_mobilebind) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: "/pages/index/index"
|
url: "/pages/index/index"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageA/bindinges/bindinges'
|
url: '/pageA/bindinges/bindinges'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -275,11 +275,11 @@
|
|||||||
console.log(res.data.member.member_mobilebind);
|
console.log(res.data.member.member_mobilebind);
|
||||||
if(res.data.member.member_mobilebind) {
|
if(res.data.member.member_mobilebind) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: "/pages/index/index"
|
url: "/pages/index/index"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageA/bindinges/bindinges'
|
url: '/pageA/bindinges/bindinges'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,11 +73,11 @@ export default {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 16upx 0;
|
padding: 16upx 0;
|
||||||
font-size: 26upx;
|
font-size: 30upx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.rict_type {
|
.rict_type {
|
||||||
text-indent: 1rem;
|
text-indent: 1rem;
|
||||||
line-height: 1.2;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default {
|
|||||||
this.evalueList = [];
|
this.evalueList = [];
|
||||||
}
|
}
|
||||||
return res.data.length;
|
return res.data.length;
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="userinfo" @click="stopClick()">
|
<view class="userinfo" @click="stopClick()">
|
||||||
<view class="userhead">
|
<view class="userhead">
|
||||||
<image class="avatar" :src="item.member_avatar" @click="gotoInfo(item.member_id)"></image>
|
<image class="avatar" :src="item.member_avatar" @click="gotoInfo(item.role,item.member_id,item.store_id)"></image>
|
||||||
<!-- <text class="follow" @click="following(item.member_id)">{{ is_follow ? "✓" : "+" }}</text> -->
|
<!-- <text class="follow" @click="following(item.member_id)">{{ is_follow ? "✓" : "+" }}</text> -->
|
||||||
<image class="follow" :src=" !is_follow ? '../../static/image/userinfo/follow.png' : '../../static/image/userinfo/followed.png' " mode="" @click="following(item.member_id)"></image>
|
<image class="follow" :src=" !is_follow ? '../../static/image/userinfo/follow.png' : '../../static/image/userinfo/followed.png' " mode="" @click="following(item.member_id)"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<text class="operat-span">{{ comment_num }}</text>
|
<text class="operat-span">{{ comment_num }}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 购物车 -->
|
<!-- 购物车 -->
|
||||||
<view class="operat gouwu">
|
<view class="operat gouwu" v-if="cart_num">
|
||||||
<image class="operat-img" :src=" is_cart ? '../../static/image/userinfo/gouwuche1.png' : '../../static/image/userinfo/gouwuche.png' "
|
<image class="operat-img" :src=" is_cart ? '../../static/image/userinfo/gouwuche1.png' : '../../static/image/userinfo/gouwuche.png' "
|
||||||
mode="" @click="carting()"></image>
|
mode="" @click="carting()"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -100,18 +100,20 @@
|
|||||||
is_collect: this.list.is_collect || false,
|
is_collect: this.list.is_collect || false,
|
||||||
is_content: false,
|
is_content: false,
|
||||||
is_cart: false,
|
is_cart: false,
|
||||||
|
cart_num: 0,
|
||||||
comment_num: this.list.comment_num || 0,
|
comment_num: this.list.comment_num || 0,
|
||||||
item: this.list || {}
|
item: this.list || {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
list(newValue, old) {
|
list(newValue, old) {
|
||||||
// console.log(newValue);
|
// console.log(newValue.goods.length);
|
||||||
this.item = newValue || {};
|
this.item = newValue || {};
|
||||||
this.is_follow = this.list.is_attention || false;
|
this.is_follow = this.list.is_attention || false;
|
||||||
this.is_like = this.list.is_like || false;
|
this.is_like = this.list.is_like || false;
|
||||||
this.is_collect = this.list.is_collect || false;
|
this.is_collect = this.list.is_collect || false;
|
||||||
this.comment_num = this.list.comment_num || 0;
|
this.comment_num = this.list.comment_num || 0;
|
||||||
|
this.cart_num = newValue.goods.length;
|
||||||
},
|
},
|
||||||
cart(newValue, old) {
|
cart(newValue, old) {
|
||||||
// console.log(newValue);
|
// console.log(newValue);
|
||||||
@@ -238,11 +240,16 @@
|
|||||||
cart: this.is_cart
|
cart: this.is_cart
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
gotoInfo(id) {
|
gotoInfo(type,id,s_id) {
|
||||||
console.log(id);
|
if (type == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pageB/details/index?id=" + id
|
url: "/pageC/merchant/index?id=" + s_id
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pageB/details/index?id=" + id
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 冒泡
|
// 冒泡
|
||||||
stopClick() {
|
stopClick() {
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
<view class="box">
|
<view class="box">
|
||||||
<videoItem v-for="item in listInfo" :key="item.article_id" :item="item"
|
<videoItem v-for="item in listInfo" :key="item.article_id" :item="item"
|
||||||
@getArticlelist="getArticlelist"></videoItem>
|
@getArticlelist="getArticlelist"></videoItem>
|
||||||
<view class="no-data" v-show="!listInfo && page">暂无数据</view>
|
<view class="no-data" v-if="!listInfo && page">暂无数据</view>
|
||||||
<u-loadmore class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
|
<u-loadmore v-else class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@@ -124,16 +124,12 @@ export default {
|
|||||||
if (this.page == 1) {
|
if (this.page == 1) {
|
||||||
this.listInfo = res.data.list;
|
this.listInfo = res.data.list;
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
} else if (res.data.length == 0 && this.page > 1) {
|
} else if (res.data.length == 0) {
|
||||||
this.status = "nomore";
|
this.status = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.listInfo = this.listInfo.concat(res.data.list);
|
this.listInfo = this.listInfo.concat(res.data.list);
|
||||||
console.log(this.listInfo)
|
|
||||||
}
|
|
||||||
if (res.data.length == 0 && this.page > 1) {
|
|
||||||
} else {
|
|
||||||
this.page++;
|
|
||||||
}
|
}
|
||||||
|
this.page++;
|
||||||
} else {
|
} else {
|
||||||
console.log(res.message);
|
console.log(res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,6 +335,7 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.title {
|
.title {
|
||||||
|
line-height: 40rpx;
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
width: 500rpx;
|
width: 500rpx;
|
||||||
@@ -345,6 +346,8 @@
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
|
margin:8rpx 0;
|
||||||
|
line-height:36rpx;
|
||||||
}
|
}
|
||||||
.price {
|
.price {
|
||||||
color: #FF3131;
|
color: #FF3131;
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
<view class="head">
|
<view class="head">
|
||||||
<image class="image" :src="goodsInfo.goods_image"></image>
|
<image class="image" :src="goodsInfo.goods_image"></image>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="u-line-2">{{goodsInfo.goods_name}}</text>
|
<view class="goods-name u-line-2">{{goodsInfo.goods_name}}</view>
|
||||||
<text v-if="type == 1">¥{{ goodsInfo.goods_price }}</text>
|
<text v-if="type == 1">¥{{ goodsInfo.goods_price }}</text>
|
||||||
<text v-else-if="type == 2">¥{{ goodsInfo.pintuan_price }}</text>
|
<text v-else-if="type == 2">¥{{ goodsInfo.pintuan_price }}</text>
|
||||||
<text v-else-if="type == 3">¥{{ groupbuyInfo.groupbuy_price }}</text>
|
<text v-else-if="type == 3">¥{{ groupbuyInfo.groupbuy_price }}</text>
|
||||||
@@ -1206,11 +1206,13 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-left: 27rpx;
|
margin-left: 27rpx;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
>text:first-child{
|
.goods-name {
|
||||||
|
height: 76rpx;
|
||||||
|
line-height: 38rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
>text:last-child{
|
> text:last-child {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #ff3131;
|
color: #ff3131;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,6 +177,9 @@
|
|||||||
onReady() {
|
onReady() {
|
||||||
this.videoBox = uni.createVideoContext("videoId", this);
|
this.videoBox = uni.createVideoContext("videoId", this);
|
||||||
},
|
},
|
||||||
|
onHide() {
|
||||||
|
this.videoBox.pause();
|
||||||
|
},
|
||||||
onBackPress() {
|
onBackPress() {
|
||||||
if (this.cart_type) {
|
if (this.cart_type) {
|
||||||
this.cart_type = !this.cart_type;
|
this.cart_type = !this.cart_type;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="name u-line-2">{{ goods.goods_name }}</view>
|
<view class="name u-line-2">{{ goods.goods_name }}</view>
|
||||||
<view class="cart-info">
|
<view class="cart-info">
|
||||||
<view class="price">¥{{ goods.goods_total }}</view>
|
<view class="price">¥{{ goods.goods_price }}</view>
|
||||||
<view>×{{ goods.goods_num }}</view>
|
<view>×{{ goods.goods_num }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<goodsItem :info="goods"></goodsItem>
|
<goodsItem :info="goods"></goodsItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
|
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-bottom="120" v-if="goodsList.length >= pageSize"></u-loadmore>
|
||||||
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
|
<u-empty mode="list" v-if="!goodsList.length"></u-empty>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setViewHeight() {
|
setViewHeight() {
|
||||||
const res = uni.getSystemInfoSync();
|
const res = uni.getSystemInfoSync();
|
||||||
this.scrollHeiht = res.windowHeight - (73 + 20 + 170) + 'px';
|
this.scrollHeiht = res.windowHeight - res.windowWidth / 750 * (350 + 140 + 20) + 'px';
|
||||||
this.paddingTop = res.windowWidth / 750 * (90 + 50) + 'px';
|
this.paddingTop = res.windowWidth / 750 * (90 + 50) + 'px';
|
||||||
// console.log(this.paddingTop);
|
// console.log(this.paddingTop);
|
||||||
}
|
}
|
||||||
@@ -240,6 +240,7 @@ export default {
|
|||||||
// min-height: 100vh;
|
// min-height: 100vh;
|
||||||
background-color: #ECECEC;
|
background-color: #ECECEC;
|
||||||
padding-top: calc(350rpx - var(--window-top));
|
padding-top: calc(350rpx - var(--window-top));
|
||||||
|
overflow: hidden;
|
||||||
.top {
|
.top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -312,6 +313,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.follow {
|
.follow {
|
||||||
|
height: 140rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
@@ -365,7 +367,8 @@ export default {
|
|||||||
}
|
}
|
||||||
.main{
|
.main{
|
||||||
.video-image {
|
.video-image {
|
||||||
padding-bottom: 98rpx;
|
box-sizing: border-box;
|
||||||
|
padding-bottom: 100rpx;
|
||||||
}
|
}
|
||||||
.container-top {
|
.container-top {
|
||||||
> view {
|
> view {
|
||||||
@@ -381,9 +384,6 @@ export default {
|
|||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// > view {
|
|
||||||
// margin-top: 20rpx;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
.tabbar {
|
.tabbar {
|
||||||
border-top: 1rpx #DBDADA solid;
|
border-top: 1rpx #DBDADA solid;
|
||||||
|
|||||||
@@ -81,10 +81,14 @@ export default {
|
|||||||
// box-sizing: content-box;
|
// box-sizing: content-box;
|
||||||
width: 26rpx;
|
width: 26rpx;
|
||||||
// height: 25rpx;
|
// height: 25rpx;
|
||||||
background-color: #bfbfbf;
|
background-color: #000;
|
||||||
|
color: #ffffff;
|
||||||
margin: 0 10rpx;
|
margin: 0 10rpx;
|
||||||
padding: 2rpx;
|
padding: 2rpx;
|
||||||
}
|
}
|
||||||
|
.mah {
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
}
|
}
|
||||||
#actives{
|
#actives{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
background: #ECECEC;
|
||||||
.time {
|
.time {
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
color: #666;
|
color: #666;
|
||||||
@@ -97,6 +98,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 140rpx;
|
height: 140rpx;
|
||||||
|
line-height: 36rpx;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
background: rgba(241,241,241,1);
|
background: rgba(241,241,241,1);
|
||||||
& > text {
|
& > text {
|
||||||
|
|||||||
@@ -10,33 +10,33 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [],
|
list: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad() {
|
||||||
this.informationList();
|
this.informationList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
titletext(){
|
titletext() {},
|
||||||
},
|
informationList() {
|
||||||
informationList(){
|
this.$u.api.informationList({}).then((res) => {
|
||||||
this.$u.api.informationList({}).then((res)=>{
|
if (res.errCode == 0) {
|
||||||
if (res.errCode == 0) {
|
this.list = res.data;
|
||||||
this.list = res.data;
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components:{
|
components: {
|
||||||
notice,
|
notice,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
background-color: #ECECEC;
|
background-color: #ECECEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sousuo {
|
.sousuo {
|
||||||
height: 113rpx;
|
height: 113rpx;
|
||||||
border: 1px #f00 solid;
|
border: 1px #f00 solid;
|
||||||
|
|||||||
@@ -1,6 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="article-details">
|
<view>
|
||||||
<rich-text :nodes="nodes"></rich-text>
|
<view class="header" v-if="type == 2">
|
||||||
|
<image src="../../pageD/images/file.png" class="tit-img" mode=""></image>
|
||||||
|
<view class="title">德铭阳光</view>
|
||||||
|
<view class="tit-info">版本:{{ version }} for {{ phone_type }}</view>
|
||||||
|
</view>
|
||||||
|
<rich-text :nodes="nodes" v-if="type != 2"></rich-text>
|
||||||
|
<view class="main" v-if="type == 2">
|
||||||
|
<view @click="show = true">
|
||||||
|
<text>产品介绍</text>
|
||||||
|
<u-icon name="arrow-right" color="#999"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>版本更新</text>
|
||||||
|
<text class="tips">已是最新版本</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-popup v-model="show" v-if="type == 2" mode="left" width="100%">
|
||||||
|
<view class="u-content">
|
||||||
|
<rich-text :nodes="nodes"></rich-text>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -8,7 +28,11 @@ import common from '@/static/js/common.js'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
nodes: '',
|
type: 1,
|
||||||
|
nodes: "",
|
||||||
|
version: "",
|
||||||
|
show: false,
|
||||||
|
phone_type: "",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -17,6 +41,20 @@ export default {
|
|||||||
if(option.id) this.getUseHelpInfo(option.id);
|
if(option.id) this.getUseHelpInfo(option.id);
|
||||||
if(option.type == 1) this.certificateInfo();
|
if(option.type == 1) this.certificateInfo();
|
||||||
if(option.type == 2) this.getAboutUsInfo();
|
if(option.type == 2) this.getAboutUsInfo();
|
||||||
|
this.type = option.type;
|
||||||
|
this.getVersion();
|
||||||
|
this.phone_type = this.$u.os();
|
||||||
|
},
|
||||||
|
onBackPress() {
|
||||||
|
if (this.show) {
|
||||||
|
this.show = !this.show;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
onNavigationBarButtonTap(e) {
|
||||||
|
console.log(e);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setTitle(title){
|
setTitle(title){
|
||||||
@@ -50,14 +88,64 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 检查版本号
|
||||||
|
getVersion() {
|
||||||
|
this.$u.post("Specialci/checkVersion",{app_version: 1}).then(res => {
|
||||||
|
console.log(res);
|
||||||
|
this.version = res.data.app_version;
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.article-details {
|
page {
|
||||||
min-height: calc(100vh - var(--window-top));
|
background-color: #f2f2f2;
|
||||||
background: #ECECEC;
|
}
|
||||||
padding: 20rpx 35rpx 0;
|
.header {
|
||||||
line-height: 45rpx;
|
width: 500rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
.tit-img {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
margin: 18rpx 0;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 26rpx;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
|
}
|
||||||
|
.tit-info {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
margin: 20rpx 0;
|
||||||
|
& > view {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
height: 100rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
line-height: 100rpx;
|
||||||
|
color: #333;
|
||||||
|
font-size: 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom: 1px solid #f2f2f2;
|
||||||
|
}
|
||||||
|
.tips {
|
||||||
|
color: #999;
|
||||||
|
font-size: 22rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.u-content {
|
||||||
|
padding: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
text-indent: 1rem;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -117,7 +117,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-left: -20rpx;
|
margin-left: -20rpx;
|
||||||
.daren-item{
|
.daren-item {
|
||||||
width: 215rpx;
|
width: 215rpx;
|
||||||
height: 282rpx;
|
height: 282rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -128,6 +128,7 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(35,24,21,0.12);
|
||||||
.head{
|
.head{
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
|
|||||||
@@ -133,8 +133,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.collection-item {
|
.collection-item {
|
||||||
|
width: 100%;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
.item {
|
.item {
|
||||||
|
width: 750rpx;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
> image {
|
> image {
|
||||||
@@ -145,14 +147,17 @@ export default {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.title-wrap {
|
.title-wrap {
|
||||||
|
overflow: hidden;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
.item-top {
|
.item-top {
|
||||||
|
width: 100%;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
line-height: 44rpx;
|
line-height: 44rpx;
|
||||||
margin-bottom: 54rpx;
|
margin-bottom: 54rpx;
|
||||||
}
|
}
|
||||||
.item-bottom {
|
.item-bottom {
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<view class="suggestions">
|
<view class="suggestions">
|
||||||
<view class="text">{{ item.fb_content }}</view>
|
<view class="text">{{ item.fb_content }}</view>
|
||||||
<view class="image">
|
<view class="image">
|
||||||
<image v-for="(url, index) in item.fb_images" :key="index" :src="url"></image>
|
<image v-for="(url, index) in item.fb_images" :key="index" :src="url" mode="aspectFit" @click="previewImage(item.fb_images)"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="reply" v-if="item.is_reply">
|
<view class="reply" v-if="item.is_reply">
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<view class="reply-content u-line-4">{{ item.reply_content }}</view>
|
<view class="reply-content u-line-4">{{ item.reply_content }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="date">
|
<view class="date">
|
||||||
<image src="../static/mine/26.png"></image>
|
<image src="../static/mine/26.png" mode="aspectFit"></image>
|
||||||
<view>{{ item.fb_time }}</view>
|
<view>{{ item.fb_time }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -45,6 +45,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
previewImage(urls) {
|
||||||
|
// console.log(urls);
|
||||||
|
uni.previewImage({
|
||||||
|
urls: urls,
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
this.$u.route('pageE/useCoupon/index', {
|
this.$u.route('pageE/useCoupon/index', {
|
||||||
cid: coupon.voucher_id,
|
cid: coupon.vouchertemplate_id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
setViewHeight() {
|
setViewHeight() {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delHistory" border-radius="20"></u-action-sheet>
|
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delHistory" border-radius="20"></u-action-sheet>
|
||||||
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
||||||
<u-loadmore :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length > pageSize" @loadmore="reachBottom"></u-loadmore>
|
<u-loadmore class="load-size" :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length > pageSize" @loadmore="reachBottom"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -297,6 +297,7 @@ export default {
|
|||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
submitImage() {
|
submitImage() {
|
||||||
|
console.log(this.debounce);
|
||||||
if(!this.debounce) return;
|
if(!this.debounce) return;
|
||||||
this.debounce = false;
|
this.debounce = false;
|
||||||
this.current == 0 ? this.$refs.platform.upload() : this.$refs.physical.upload();
|
this.current == 0 ? this.$refs.platform.upload() : this.$refs.physical.upload();
|
||||||
@@ -383,11 +384,10 @@ export default {
|
|||||||
}
|
}
|
||||||
// console.log(params);
|
// console.log(params);
|
||||||
this.$u.api.sendLaundrySave(params).then(res => {
|
this.$u.api.sendLaundrySave(params).then(res => {
|
||||||
this.$u.toast(res.message);
|
// this.$u.toast(res.message);
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
type: 'success',
|
|
||||||
back: true,
|
back: true,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ export default {
|
|||||||
})
|
})
|
||||||
this.timer = true;
|
this.timer = true;
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
if(load == 'reload') this.goodsList = res.data.data;
|
if(load == 'reload') this.goodsList = res.data;
|
||||||
else if(load == 'loadmore') this.goodsList.push(...res.data.data);
|
else if(load == 'loadmore') this.goodsList.push(...res.data);
|
||||||
}
|
}
|
||||||
return res.data.data.length;
|
return res.data.length;
|
||||||
},
|
},
|
||||||
loadMore() {
|
loadMore() {
|
||||||
if(this.goodsList.length < this.pageSize) return false;
|
if(this.goodsList.length < this.pageSize) return false;
|
||||||
|
|||||||
13
pages.json
13
pages.json
@@ -370,7 +370,7 @@
|
|||||||
"searchInput": {
|
"searchInput": {
|
||||||
"align": "left",
|
"align": "left",
|
||||||
"borderRadius": "15px",
|
"borderRadius": "15px",
|
||||||
"placeholder": "搜索您需要的商品",
|
"placeholder": "搜索您需要的本店铺商品",
|
||||||
"backgroundColor": "rgb(236,236,236)",
|
"backgroundColor": "rgb(236,236,236)",
|
||||||
"disabled": true
|
"disabled": true
|
||||||
}
|
}
|
||||||
@@ -610,7 +610,16 @@
|
|||||||
"titleSize": "36px",
|
"titleSize": "36px",
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"titleColor": "#333333",
|
"titleColor": "#333333",
|
||||||
"backgroundColor": "#FFFFFF"
|
"backgroundColor": "#FFFFFF",
|
||||||
|
"buttons": [
|
||||||
|
{
|
||||||
|
"width": "0",
|
||||||
|
"type":"none",
|
||||||
|
"text":"关闭",
|
||||||
|
"float":"right",
|
||||||
|
"fontSize":"14"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,6 +253,7 @@
|
|||||||
fansList: [], // 关注的发现列表
|
fansList: [], // 关注的发现列表
|
||||||
status: 'loadmore',
|
status: 'loadmore',
|
||||||
status_1: 'loadmore',
|
status_1: 'loadmore',
|
||||||
|
status_live: 'loadmore',
|
||||||
iconType: 'circle',
|
iconType: 'circle',
|
||||||
loadText: {
|
loadText: {
|
||||||
loadmore: '轻轻上拉',
|
loadmore: '轻轻上拉',
|
||||||
@@ -358,18 +359,18 @@
|
|||||||
})
|
})
|
||||||
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
this.status = "loading";
|
this.status_live = "loading";
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (this.live_page == 1) {
|
if (this.live_page == 1) {
|
||||||
this.tabLiveLists = res.data.data;
|
this.tabLiveLists = res.data.data;
|
||||||
this.status = "loadmore";
|
this.status_live = "loadmore";
|
||||||
if (res.data.data.length < 6) {
|
if (res.data.data.length < 4) {
|
||||||
this.status = "nomore";
|
this.status_live = "nomore";
|
||||||
}
|
}
|
||||||
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
||||||
this.status = "nomore";
|
this.status_live = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
||||||
console.log(this.tabLiveLists)
|
console.log(this.tabLiveLists)
|
||||||
@@ -379,7 +380,7 @@
|
|||||||
this.live_page++;
|
this.live_page++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.status = "nomore"
|
this.status_live = "nomore"
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -444,11 +445,6 @@
|
|||||||
},
|
},
|
||||||
// 发现列表
|
// 发现列表
|
||||||
getArticlelist() {
|
getArticlelist() {
|
||||||
if (this.page > 1) {
|
|
||||||
uni.showLoading({
|
|
||||||
title: "loading..."
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.$u.api.getArticlelist({
|
this.$u.api.getArticlelist({
|
||||||
page: this.page,
|
page: this.page,
|
||||||
is_video_img: 0, // 查询视频1 图文2 都查0
|
is_video_img: 0, // 查询视频1 图文2 都查0
|
||||||
@@ -456,26 +452,17 @@
|
|||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
this.status = "loading";
|
this.status = "loading";
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
uni.hideLoading();
|
|
||||||
console.log(this.page,res.data.list.length);
|
|
||||||
if (this.page == 1) {
|
if (this.page == 1) {
|
||||||
this.articleList = res.data.list;
|
this.articleList = res.data.list;
|
||||||
this.status = "loadmore";
|
if (!res.data.length) {
|
||||||
if (res.data.list.length < 4) {
|
|
||||||
this.status = "nomore";
|
this.status = "nomore";
|
||||||
}
|
}
|
||||||
} else if (res.data.length == 0 && this.page > 1) {
|
} else if (res.data.length == 0) {
|
||||||
this.status = "nomore";
|
this.status = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.articleList = this.articleList.concat(res.data.list);
|
this.articleList = this.articleList.concat(res.data.list);
|
||||||
}
|
}
|
||||||
if (res.data.length == 0 && this.page > 1) {
|
this.page++;
|
||||||
console.log(111);
|
|
||||||
} else {
|
|
||||||
this.page++;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.status = "nomore"
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -257,11 +257,10 @@
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.shop {
|
.shop {
|
||||||
height: calc(100% - var(--window-top));
|
height: calc(100vh - var(--window-top));
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: #F0EDF1;
|
background-color: #F0EDF1;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|||||||
BIN
static/image/common/31.png
Normal file
BIN
static/image/common/31.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
BIN
static/image/common/32.png
Normal file
BIN
static/image/common/32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Reference in New Issue
Block a user