Compare commits
46 Commits
cmx
...
0b3e2b3e1e
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b3e2b3e1e | |||
|
5801c2f91c
|
|||
| 8e94b1b5f1 | |||
| 3b01c1acca | |||
| 1936105b1b | |||
| 02639fc9e1 | |||
| bb4f971af1 | |||
|
54dd8a6eb0
|
|||
| 2f7651f217 | |||
|
eb886368e9
|
|||
|
e55aa62bcc
|
|||
| f9a2ada1d3 | |||
|
|
6d4d8c5675 | ||
| a6bdc88c61 | |||
| c03fff99e0 | |||
| eb1dce5d6b | |||
| 3b5515d317 | |||
| 529325e203 | |||
|
|
22812469a8 | ||
| a6907f3f69 | |||
| a871e050f6 | |||
| c39d6ba811 | |||
| fb3713093f | |||
|
e8f46674c4
|
|||
| b85ab380ef | |||
| 87185d7d0f | |||
| 22cdf3e415 | |||
|
ab4e50a9ae
|
|||
|
d2c6bcb1bc
|
|||
| 1d48546424 | |||
| d8d3434988 | |||
| 083153929b | |||
| d19771b182 | |||
|
a45db4afbf
|
|||
| 1db45d40a7 | |||
|
|
ef79718190 | ||
| 91ca2fdd19 | |||
|
0e7139bc16
|
|||
| 3acaf94a37 | |||
| 523dadd55d | |||
|
693048f1ab
|
|||
|
f9fa80665b
|
|||
| cb178c1407 | |||
| 9a0dc4c6d1 | |||
| 1ef4db7dc4 | |||
| 37d8ab7a2b |
@@ -202,9 +202,10 @@ export default {
|
|||||||
return vm.$u.post('Spike/recommendedSpike');
|
return vm.$u.post('Spike/recommendedSpike');
|
||||||
},
|
},
|
||||||
// 秒杀详情
|
// 秒杀详情
|
||||||
getSpikeInfo({ groupbuy_id }) {
|
getSpikeInfo({ groupbuy_id, goods_id }) {
|
||||||
return vm.$u.post('Spike/spikeInfo', {
|
return vm.$u.post('Spike/spikeInfo', {
|
||||||
groupbuy_id: groupbuy_id
|
groupbuy_id: groupbuy_id,
|
||||||
|
goods_id: goods_id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 秒杀列表
|
// 秒杀列表
|
||||||
@@ -221,13 +222,23 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 拼团商品详情
|
// 拼团商品详情
|
||||||
getPinTuanDetails({ pintuan_id }) {
|
getPinTuanDetails({ pintuan_id, goods_id }) {
|
||||||
return vm.$u.post('Specialci/pintuanInfo', { pintuan_id: pintuan_id });
|
return vm.$u.post('Specialci/pintuanInfo', {
|
||||||
|
pintuan_id: pintuan_id,
|
||||||
|
goods_id: goods_id,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 推荐拼团
|
// 推荐拼团
|
||||||
getPinTuanPush() {
|
getPinTuanPush() {
|
||||||
return vm.$u.post('Specialci/pintuanPush');
|
return vm.$u.post('Specialci/pintuanPush');
|
||||||
},
|
},
|
||||||
|
// 拼团验证
|
||||||
|
pintuanVerify({ pintuan_id, pintuangroup_headid }) {
|
||||||
|
return vm.$u.post('Specialci/pintuanVerify', {
|
||||||
|
pintuan_id: pintuan_id,
|
||||||
|
pintuangroup_headid: pintuangroup_headid,
|
||||||
|
});
|
||||||
|
},
|
||||||
// 开团/参团
|
// 开团/参团
|
||||||
withImmediate({ pintuan_id, pintuangroup_headid, pintuangroup_id}) {
|
withImmediate({ pintuan_id, pintuangroup_headid, pintuangroup_id}) {
|
||||||
return vm.$u.post('Specialci/withImmediate', {
|
return vm.$u.post('Specialci/withImmediate', {
|
||||||
@@ -265,8 +276,8 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取直播列表
|
// 获取直播列表
|
||||||
tabLiveList(){
|
tabLiveList({page}){
|
||||||
return vm.$u.post('Specialci/tabLiveList')
|
return vm.$u.post('Specialci/tabLiveList',{page})
|
||||||
},
|
},
|
||||||
// 商城-活动广告
|
// 商城-活动广告
|
||||||
getStoreActivity() {
|
getStoreActivity() {
|
||||||
|
|||||||
@@ -304,8 +304,8 @@ export default {
|
|||||||
return vm.$u.post('Message/informationList', { });
|
return vm.$u.post('Message/informationList', { });
|
||||||
},
|
},
|
||||||
// 关注列表
|
// 关注列表
|
||||||
snsfriendList({ }) {
|
snsfriendList({page}) {
|
||||||
return vm.$u.post('message/snsfriendList', { });
|
return vm.$u.post('message/snsfriendList', {page});
|
||||||
},
|
},
|
||||||
// 关注达人
|
// 关注达人
|
||||||
attentionMember({ member_id }) {
|
attentionMember({ member_id }) {
|
||||||
@@ -408,8 +408,8 @@ export default {
|
|||||||
return vm.$u.post('article/articleCollectList');
|
return vm.$u.post('article/articleCollectList');
|
||||||
},
|
},
|
||||||
// 关注用户列表
|
// 关注用户列表
|
||||||
attentionMemberList() {
|
attentionMemberList({ page = 1 } = {}) {
|
||||||
return vm.$u.post('member/attentionMemberList');
|
return vm.$u.post('member/attentionMemberList', { page: page });
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,24 +47,30 @@ const install = (Vue, vm) => {
|
|||||||
// 假设201为token失效,这里跳转登录
|
// 假设201为token失效,这里跳转登录
|
||||||
// vm.$u.toast('您还没有登录哦,请先去登录!');
|
// vm.$u.toast('您还没有登录哦,请先去登录!');
|
||||||
if (res.data.data.action != "memberinfo") {
|
if (res.data.data.action != "memberinfo") {
|
||||||
uni.showModal({
|
setTimeout(() => {
|
||||||
title: "温馨提示",
|
// 此为uView的方法,详见路由相关文档
|
||||||
content: "您还未登录,请立即登录",
|
uni.navigateTo({
|
||||||
cancelText: "以后再说",
|
url: "/pageA/login/login",
|
||||||
confirmText: "立即登录",
|
})
|
||||||
confirmColor: "#FF780F",
|
}, 1000)
|
||||||
success(res) {
|
// uni.showModal({
|
||||||
// console.log(res);
|
// title: "温馨提示",
|
||||||
if (res.confirm) {
|
// content: "您还未登录,请立即登录",
|
||||||
setTimeout(() => {
|
// cancelText: "以后再说",
|
||||||
// 此为uView的方法,详见路由相关文档
|
// confirmText: "立即登录",
|
||||||
vm.$u.route('/pageA/login/login')
|
// confirmColor: "#FF780F",
|
||||||
}, 500)
|
// success(res) {
|
||||||
}
|
// // console.log(res);
|
||||||
if (res.cancel) {
|
// if (res.confirm) {
|
||||||
}
|
// setTimeout(() => {
|
||||||
}
|
// // 此为uView的方法,详见路由相关文档
|
||||||
})
|
// vm.$u.route('/pageA/login/login')
|
||||||
|
// }, 500)
|
||||||
|
// }
|
||||||
|
// if (res.cancel) {
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} else if (res.errCode == 1) {
|
} else if (res.errCode == 1) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view class="comment-item">
|
<view class="comment-item">
|
||||||
<view class="user">
|
<view class="user">
|
||||||
<u-avatar :src="content.member_avatar" class="avatar" size="60"></u-avatar>
|
<u-avatar :src="content.member_avatar" class="avatar" size="60"></u-avatar>
|
||||||
<text class="name">{{ content.geval_frommembername }}</text>
|
<text class="name">{{ content.member_nickname }}</text>
|
||||||
<u-rate v-if="reply" :disabled='true' :count="count" v-model="rate" size="23" active-color="#FF780F" inactive-color="#F0EDF1" gutter="10"></u-rate>
|
<u-rate v-if="reply" :disabled='true' :count="count" v-model="rate" size="23" active-color="#FF780F" inactive-color="#F0EDF1" gutter="10"></u-rate>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<image></image>
|
<image></image>
|
||||||
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="pingbi">
|
<view class="pingbi" @click.stop="articleAddShield">
|
||||||
<image></image>
|
<image src="/static/image/common/7.png"></image>
|
||||||
<text>1屏蔽用户</text>
|
<text>屏蔽用户</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -81,8 +81,20 @@ export default {
|
|||||||
rid:this.rid
|
rid:this.rid
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
articleAddShield() {
|
||||||
|
console.log(this.item)
|
||||||
|
this.$u.api.articleAddShield({
|
||||||
|
member_id: this.item.user_id,
|
||||||
|
}).then(res => {
|
||||||
|
// console.log(res)
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
this.$u.toast(res.message);
|
||||||
|
this.$emit("updateList");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
props:['name','image','url','zid','rid']
|
props:['name','image','url','zid','rid','item']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -80,7 +80,6 @@ export default {
|
|||||||
// 判断是不是编辑页面 调用接口
|
// 判断是不是编辑页面 调用接口
|
||||||
confirmBtn() {
|
confirmBtn() {
|
||||||
if(!this.debounce) return;
|
if(!this.debounce) return;
|
||||||
this.debounce = false;
|
|
||||||
this.info ? this.editAddress() : this.addAddress();
|
this.info ? this.editAddress() : this.addAddress();
|
||||||
},
|
},
|
||||||
// chooseArea() {
|
// chooseArea() {
|
||||||
@@ -119,6 +118,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addAddress() {
|
addAddress() {
|
||||||
if(!this.validateValue()) return false;
|
if(!this.validateValue()) return false;
|
||||||
|
this.debounce = false;
|
||||||
this.$u.api.addressAdd({
|
this.$u.api.addressAdd({
|
||||||
area_id: this.area_id,
|
area_id: this.area_id,
|
||||||
city_id: this.city_id,
|
city_id: this.city_id,
|
||||||
@@ -144,6 +144,7 @@ export default {
|
|||||||
},
|
},
|
||||||
editAddress() {
|
editAddress() {
|
||||||
if(!this.validateValue()) return false;
|
if(!this.validateValue()) return false;
|
||||||
|
this.debounce = false;
|
||||||
this.$u.api.addressEdit({
|
this.$u.api.addressEdit({
|
||||||
address_id: this.info.address_id,
|
address_id: this.info.address_id,
|
||||||
area_id: this.area_id,
|
area_id: this.area_id,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<view class="goods-sku u-line-1" v-if="order.order_state !== 20 && order.order_state !== 40 && goods.goods_spec">
|
<view class="goods-sku u-line-1" v-if="order.order_state !== 20 && order.order_state !== 40 && goods.goods_spec">
|
||||||
<text v-for="(spec, index) in goods.goods_spec" :key="index">{{ spec + ';' }}</text>
|
<text v-for="(spec, index) in goods.goods_spec" :key="index">{{ spec + ';' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods-time u-line-1" v-if="order.view_type == 1">结束时间:{{ order.end_time | date('yyyy-mm-dd hh:MM') }}</view>
|
<!-- <view class="goods-time u-line-1" v-if="order.view_type == 1">结束时间:{{ order.end_time | date('yyyy-mm-dd hh:MM') }}</view> -->
|
||||||
<view class="goods-price u-line-1" v-if="order.order_state == 20 || order.order_state == 40">总价:¥{{ goods.goods_price }},实付款¥{{ goods.goods_pay_price }}</view>
|
<view class="goods-price u-line-1" v-if="order.order_state == 20 || order.order_state == 40">总价:¥{{ goods.goods_price }},实付款¥{{ goods.goods_pay_price }}</view>
|
||||||
<view class="goods-date" v-if="order.order_state == 20 || order.order_state == 40">
|
<view class="goods-date" v-if="order.order_state == 20 || order.order_state == 40">
|
||||||
<image src="@/pageE/static/mine/26.png"></image>
|
<image src="@/pageE/static/mine/26.png"></image>
|
||||||
@@ -79,6 +79,9 @@ export default {
|
|||||||
case 9:
|
case 9:
|
||||||
state = '拼团中';
|
state = '拼团中';
|
||||||
break;
|
break;
|
||||||
|
case 10:
|
||||||
|
state = '已取消';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
<!-- 加载更多 -->
|
<!-- 加载更多 -->
|
||||||
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="loadMore"></u-loadmore>
|
<u-loadmore class="load-size" :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="loadMore"></u-loadmore>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default {
|
|||||||
url: 'pageB/sdetails/index',
|
url: 'pageB/sdetails/index',
|
||||||
params: {
|
params: {
|
||||||
id: this.info.goods_id,
|
id: this.info.goods_id,
|
||||||
type: 1,
|
// type: 1,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1" @click="spikeGoods">{{ item.goods_name }}</view>
|
<view class="name u-line-1" @click="spikeGoods">{{ item.goods_name }}</view>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<view class="groupbuy-price">{{ item.groupbuy_price }}</view>
|
<view class="groupbuy-price">¥{{ item.groupbuy_price }}</view>
|
||||||
<view class="goods-price">{{ item.goods_price }}</view>
|
<view class="goods-price">¥{{ item.goods_price }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="buy">
|
<view class="buy">
|
||||||
<view class="num">剩余{{ item.inventory }}件</view>
|
<view class="num">剩余{{ item.inventory }}件</view>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1" @click="toDetailsPage">{{ item.pintuan_goods_name }}</view>
|
<view class="name u-line-1" @click="toDetailsPage">{{ item.pintuan_goods_name }}</view>
|
||||||
<view class="price group">
|
<view class="price group">
|
||||||
<view class="groupbuy-price">{{ item.pintuan_goods_price }}</view>
|
<view class="groupbuy-price">¥{{ item.pintuan_goods_price }}</view>
|
||||||
<view class="btn" @click="toDetailsPage">立即拼团</view>
|
<view class="btn" @click="toDetailsPage">立即拼团</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
props:['item','title'],
|
props:['item','title'],
|
||||||
watch:{
|
watch:{
|
||||||
select(){
|
select(){
|
||||||
console.log(this.select)
|
// console.log(this.select)
|
||||||
this.$emit("sel", this.select);
|
this.$emit("sel", this.select);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="userinfo">
|
<view class="userinfo" @click="stopClick()">
|
||||||
<view class="userhead">
|
<view class="userhead">
|
||||||
<image class="avatar" :src="item.member_avatar"></image>
|
<image class="avatar" :src="item.member_avatar"></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>
|
||||||
</view>
|
</view>
|
||||||
<!-- 点赞 -->
|
<!-- 点赞 -->
|
||||||
<view class="operat zan">
|
<view class="operat zan">
|
||||||
@@ -62,16 +63,10 @@
|
|||||||
.follow {
|
.follow {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 90rpx;
|
top: 80rpx;
|
||||||
left: 40rpx;
|
left: 30rpx;
|
||||||
width: 36rpx;
|
width: 50rpx;
|
||||||
height: 36rpx;
|
height: 50rpx;
|
||||||
text-align: center;
|
|
||||||
line-height: 36rpx;
|
|
||||||
font-size: 34rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #FF780F;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.operat {
|
.operat {
|
||||||
@@ -80,6 +75,7 @@
|
|||||||
/* #endif */
|
/* #endif */
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 0 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.operat-span {
|
.operat-span {
|
||||||
@@ -110,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
list(newValue, old) {
|
list(newValue, old) {
|
||||||
console.log(newValue);
|
// console.log(newValue);
|
||||||
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;
|
||||||
@@ -152,6 +148,11 @@
|
|||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
|
} else if (res.data.errCode == 401) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您还没有登录,请先登录!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -174,6 +175,11 @@
|
|||||||
// console.log(res);
|
// console.log(res);
|
||||||
this.is_like = !this.is_like;
|
this.is_like = !this.is_like;
|
||||||
this.list.like_num = res.data.data.num;
|
this.list.like_num = res.data.data.num;
|
||||||
|
} else if (res.data.errCode == 401) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您还没有登录,请先登录!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
@@ -200,6 +206,11 @@
|
|||||||
console.log(res.data.num);
|
console.log(res.data.num);
|
||||||
this.is_collect = !this.is_collect;
|
this.is_collect = !this.is_collect;
|
||||||
this.list.collect_num = res.data.data.num;
|
this.list.collect_num = res.data.data.num;
|
||||||
|
} else if (res.data.errCode == 401) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您还没有登录,请先登录!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
@@ -227,6 +238,9 @@
|
|||||||
cart: this.is_cart
|
cart: this.is_cart
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 冒泡
|
||||||
|
stopClick() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -56,17 +56,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.price = option.price;
|
this.price = option.price;
|
||||||
// this.isNewmembervoucher();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 是否显示新人优惠券
|
|
||||||
isNewmembervoucher() {
|
|
||||||
this.$u.api.isNewmembervoucher().then(res => {
|
|
||||||
if(res.errCode == 0) {
|
|
||||||
this.price = res.data.price;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
exchangeCoupon() {
|
exchangeCoupon() {
|
||||||
this.$u.api.getCoupon({ id: 1 }).then(res => {
|
this.$u.api.getCoupon({ id: 1 }).then(res => {
|
||||||
this.$u.toast(res.message);
|
this.$u.toast(res.message);
|
||||||
|
|||||||
89
pageB/coupon/index.vue
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
<template>
|
||||||
|
<u-popup v-model="showCoupon" mode="center" class="u-coupon-popup">
|
||||||
|
<view class="coupon">
|
||||||
|
<view class="price">{{ newMemberCoupon.price }}</view>
|
||||||
|
<image src="/static/image/common/30.png" class="coupon-image" @click="viewCoupon"></image>
|
||||||
|
<image src="/static/image/common/24.png" class="close-image" @click="showCoupon=false"></image>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
showCoupon: true,
|
||||||
|
newMemberCoupon: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
showCoupon(value) {
|
||||||
|
if(!value) {
|
||||||
|
uni.navigateBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.isNewmembervoucher();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
viewCoupon() {
|
||||||
|
this.$u.route('/pageB/coupon/details', {
|
||||||
|
price: this.newMemberCoupon.price
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 是否显示新人优惠券
|
||||||
|
isNewmembervoucher() {
|
||||||
|
this.$u.api.isNewmembervoucher().then(res => {
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
this.newMemberCoupon = res.data;
|
||||||
|
} else {
|
||||||
|
this.showCoupon = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
page{
|
||||||
|
background-color: rgba(0,0,0,0);
|
||||||
|
}
|
||||||
|
.u-coupon-popup {
|
||||||
|
/deep/ .u-mode-center-box {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.coupon {
|
||||||
|
width: 750rpx;
|
||||||
|
height: 583rpx;
|
||||||
|
position: relative;
|
||||||
|
.price {
|
||||||
|
z-index: 3;
|
||||||
|
color: #EBB36E;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 92rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
top: 200rpx;
|
||||||
|
left: 50%;
|
||||||
|
font-family: PingFang SC;
|
||||||
|
transform: translate(-68%, 0);
|
||||||
|
}
|
||||||
|
.coupon-image {
|
||||||
|
width: 568rpx;
|
||||||
|
height: 583rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-60%, 0);
|
||||||
|
}
|
||||||
|
.close-image {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 155rpx;
|
||||||
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<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-show="!listInfo && page">暂无数据</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
userInfo: {}, // 用户信息
|
userInfo: {}, // 用户信息
|
||||||
listInfo: [], // 列表详情
|
listInfo: [], // 列表详情
|
||||||
member_id: 0,
|
member_id: 0,
|
||||||
page: 0,
|
page: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
},
|
},
|
||||||
searchValue() {
|
searchValue() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageB/search/index?type=2'
|
url: '/pageB/search/index?type=2&curent=1'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<!-- 评论box -->
|
<!-- 评论box -->
|
||||||
<u-popup v-model="is_edit" mode="bottom" border-radius="10" height="100rpx">
|
<u-popup v-model="is_edit" mode="bottom" border-radius="10" height="100rpx">
|
||||||
<view class="edit-box">
|
<view class="edit-box">
|
||||||
<input type="text" focus :placeholder="edit_text_other" @focus="focus" v-model="send_value">
|
<input type="text" :focus="is_focus" :placeholder="edit_text_other" @focus="focus" v-model="send_value">
|
||||||
<text @click="sendComment">发送</text>
|
<text @click="sendComment">发送</text>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -81,7 +81,6 @@
|
|||||||
<image :src="item.goods_image" mode="aspectFill"></image>
|
<image :src="item.goods_image" mode="aspectFill"></image>
|
||||||
<view>
|
<view>
|
||||||
<text class="title">{{ item.goods_advword }}</text>
|
<text class="title">{{ item.goods_advword }}</text>
|
||||||
<text class="name">{{ item.goods_name }}</text>
|
|
||||||
<text class="price">{{ item.goods_promotion_price }}</text>
|
<text class="price">{{ item.goods_promotion_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -330,7 +329,7 @@
|
|||||||
& > view {
|
& > view {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-around;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.title {
|
.title {
|
||||||
@@ -420,7 +419,7 @@ export default {
|
|||||||
edit_text: "有爱评论,说点好听的 ~",
|
edit_text: "有爱评论,说点好听的 ~",
|
||||||
edit_text_other: "有爱评论,说点好听的 ~",
|
edit_text_other: "有爱评论,说点好听的 ~",
|
||||||
commentList: [], // 评论
|
commentList: [], // 评论
|
||||||
allList: [], // 全部子评论
|
allList: {}, // 全部子评论
|
||||||
status: 'loadmore',
|
status: 'loadmore',
|
||||||
iconType: 'circle',
|
iconType: 'circle',
|
||||||
loadText: {
|
loadText: {
|
||||||
@@ -434,6 +433,7 @@ export default {
|
|||||||
onLoad(option){
|
onLoad(option){
|
||||||
this.article_id = option.id;
|
this.article_id = option.id;
|
||||||
this.articleInfo(this.article_id);
|
this.articleInfo(this.article_id);
|
||||||
|
this.allList = {};
|
||||||
},
|
},
|
||||||
// 监听返回按钮
|
// 监听返回按钮
|
||||||
onBackPress() {
|
onBackPress() {
|
||||||
@@ -492,18 +492,28 @@ export default {
|
|||||||
this.commentList = this.commentList.concat(res.data);
|
this.commentList = this.commentList.concat(res.data);
|
||||||
}
|
}
|
||||||
this.page++;
|
this.page++;
|
||||||
|
let list = this.commentList;
|
||||||
|
// list.forEach((item,index) => {
|
||||||
|
// console.log(item);
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 打开评论输入
|
// 打开评论输入
|
||||||
openKeyInput(data,index) {
|
openKeyInput(data,index) {
|
||||||
// console.log(data);
|
let me = this;
|
||||||
|
console.log(data);
|
||||||
this.is_edit = true;
|
this.is_edit = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.is_focus = true;
|
this.is_focus = true;
|
||||||
}, 200)
|
}, 200)
|
||||||
|
uni.onKeyboardHeightChange(function(res){
|
||||||
|
if (res.height == 0) {
|
||||||
|
me.is_focus = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
this.comment_id = index;
|
this.comment_id = index;
|
||||||
if (data.id) {
|
if (data.content) {
|
||||||
this.edit_text_other = "回复@" + data.member_nickname;
|
this.edit_text_other = "回复@" + data.member_nickname;
|
||||||
this.pid = data.id;
|
this.pid = data.id;
|
||||||
this.reply_id = data.member_id;
|
this.reply_id = data.member_id;
|
||||||
@@ -526,15 +536,19 @@ export default {
|
|||||||
pid: this.pid,
|
pid: this.pid,
|
||||||
reply_id: this.reply_id,
|
reply_id: this.reply_id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// console.log(res.data.data);
|
// console.log(res.data);
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.send_value = "";
|
this.send_value = "";
|
||||||
this.comment_num = res.data.num;
|
this.comment_num = res.data.num;
|
||||||
// console.log(this.comment_num);
|
// console.log(this.comment_num);
|
||||||
this.is_edit = false;
|
this.is_edit = false;
|
||||||
if (res.data.data.pid) {
|
console.log(res.data.data.reply_id);
|
||||||
|
if (res.data.data.reply_id) {
|
||||||
|
console.log(this.allList);
|
||||||
this.commentList[this.comment_id].reply_count = true;
|
this.commentList[this.comment_id].reply_count = true;
|
||||||
this.allList[this.comment_id].unshift(res.data.data);
|
this.allList[this.comment_id] = [];
|
||||||
|
this.allList[this.comment_id].push(res.data.data);
|
||||||
|
console.log(this.allList);
|
||||||
} else {
|
} else {
|
||||||
this.commentList.unshift(res.data.data);
|
this.commentList.unshift(res.data.data);
|
||||||
}
|
}
|
||||||
@@ -545,14 +559,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 发现回复列表
|
// 发现回复列表
|
||||||
getReplyList(id) {
|
getReplyList(id) {
|
||||||
this.page_[id] = 0;
|
|
||||||
if (!this.page_[id] === 0) {
|
if (!this.page_[id] === 0) {
|
||||||
}
|
}
|
||||||
console.log(this.page_[id]);
|
console.log(this.page_[id]);
|
||||||
this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
|
this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
|
||||||
console.log(this.page_);
|
console.log(res);
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.page_[id]++;
|
this.page_[id]++;
|
||||||
|
console.log(this.page_[id]);
|
||||||
this.allList[id] = res.data;
|
this.allList[id] = res.data;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -584,7 +598,7 @@ export default {
|
|||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
focus() {
|
focus(e) {
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
uni.showSoftKeybord;
|
uni.showSoftKeybord;
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|||||||
@@ -23,14 +23,17 @@
|
|||||||
<text class="goods-name">{{ goodsInfo.goods_name }}</text>
|
<text class="goods-name">{{ goodsInfo.goods_name }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="price-collect">
|
<view class="price-collect">
|
||||||
<view class="pic" v-if="type != 3">
|
<view class="pic" v-if="type == 2">
|
||||||
<text>¥{{ goodsInfo.pintuan_price || '0.00' }}</text>
|
<text>¥{{ goodsInfo.pintuan_price || '0.00' }}</text>
|
||||||
<s>¥{{ goodsInfo.goods_price || '0.00' }}</s>
|
<s>¥{{ goodsInfo.goods_price || '0.00' }}</s>
|
||||||
</view>
|
</view>
|
||||||
<view class="collect" @click="switchCollect(goodsInfo.goods_collect)">
|
<view class="pic" v-else-if="type == 1">
|
||||||
<u-icon name="star" color="#474747" size="28" v-if="!goodsInfo.goods_collect"></u-icon>
|
<text>¥{{ goodsInfo.goods_price || '0.00' }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="collect" @click="switchCollect(goodsInfo.is_collect)">
|
||||||
|
<u-icon name="star" color="#474747" size="28" v-if="goodsInfo.is_collect == 0"></u-icon>
|
||||||
<u-icon name="star-fill" color="#FF7807" size="28" v-else></u-icon>
|
<u-icon name="star-fill" color="#FF7807" size="28" v-else></u-icon>
|
||||||
<text>{{ !goodsInfo.goods_collect ? '收藏' : '已收藏' }}</text>
|
<text>{{ !goodsInfo.is_collect == 1 ? '收藏' : '已收藏' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -100,7 +103,7 @@
|
|||||||
</u-popup>
|
</u-popup>
|
||||||
<u-popup v-model="showInvolvementUser" mode="center" z-index="10078">
|
<u-popup v-model="showInvolvementUser" mode="center" z-index="10078">
|
||||||
<view class="involvement-container" v-if="involvemenGroupInfo.length">
|
<view class="involvement-container" v-if="involvemenGroupInfo.length">
|
||||||
<view class="title u-line-1">参与{{ involvemenGroupInfo[0].member_nickname }}的拼团</view>
|
<view class="title">参与<text class="user-name u-line-1">{{ involvemenGroupInfo[0].member_nickname }}</text>的拼团</view>
|
||||||
<view class="involvement-view">
|
<view class="involvement-view">
|
||||||
<view class="item" v-for="(user, i) in involvemenGroupInfo" :key="i">
|
<view class="item" v-for="(user, i) in involvemenGroupInfo" :key="i">
|
||||||
<image class="avatar" :src="user.member_avatar"></image>
|
<image class="avatar" :src="user.member_avatar"></image>
|
||||||
@@ -139,7 +142,6 @@
|
|||||||
</view>
|
</view>
|
||||||
<view style="height:100rpx"></view>
|
<view style="height:100rpx"></view>
|
||||||
</view>
|
</view>
|
||||||
<u-toast ref="uToast" />
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<!-- 普通商品 tool -->
|
<!-- 普通商品 tool -->
|
||||||
@@ -180,7 +182,7 @@
|
|||||||
<view class="btn" v-else @click="spikeGoods">立即秒杀</view>
|
<view class="btn" v-else @click="spikeGoods">立即秒杀</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <tloos @buy="buy" @xuanze="xuanze" :id="id" :info="goodsInfo" :type="type"></tloos> -->
|
<!-- <tloos @buy="buy" @xuanze="xuanze" :id="id" :info="goodsInfo" :type="type"></tloos> -->
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" :z-index='200000' />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -196,7 +198,7 @@ export default {
|
|||||||
goodsInfo: {}, // 商品信息
|
goodsInfo: {}, // 商品信息
|
||||||
storeInfo: {}, // 店铺信息
|
storeInfo: {}, // 店铺信息
|
||||||
glist: [], // 规格列表
|
glist: [], // 规格列表
|
||||||
id: 0, // 商品id/秒杀id/拼团 id
|
id: 0, // 商品id
|
||||||
type: '', // 商品类型 商品详情 1普通 2拼团 3秒杀 4优惠券
|
type: '', // 商品类型 商品详情 1普通 2拼团 3秒杀 4优惠券
|
||||||
groupUser: [], // 拼团用户
|
groupUser: [], // 拼团用户
|
||||||
user_suc: [], // 拼团成功用户
|
user_suc: [], // 拼团成功用户
|
||||||
@@ -215,7 +217,9 @@ export default {
|
|||||||
sel: "", // 拼接的规格
|
sel: "", // 拼接的规格
|
||||||
quanxuan: false, // 规格是否选择
|
quanxuan: false, // 规格是否选择
|
||||||
debounce: true, // 防止多次提交订单
|
debounce: true, // 防止多次提交订单
|
||||||
storeid:0 // 店铺id
|
storeid:0, // 店铺 id
|
||||||
|
pintuan_id: '', // 拼团 id
|
||||||
|
groupbuy_id: '', // 秒杀 id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -383,10 +387,10 @@ export default {
|
|||||||
this.ordinaryDetails(id);
|
this.ordinaryDetails(id);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
this.pinTuanDetails(id);
|
this.pinTuanDetails();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this.spikeGoodsDetails(id);
|
this.spikeGoodsDetails();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -394,38 +398,40 @@ export default {
|
|||||||
},
|
},
|
||||||
// 普通商品详情
|
// 普通商品详情
|
||||||
ordinaryDetails(id) {
|
ordinaryDetails(id) {
|
||||||
this.$u.api.getGoodsDetails({ id: id }).then((res)=>{
|
this.$u.api.getGoodsDetails({ id: id }).then(res => {
|
||||||
// console.log(res)
|
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.evaluate = res.data.goods_evaluate_info;
|
this.evaluate = res.data.goods_evaluate_info;
|
||||||
this.goodsInfo = res.data.goods;
|
this.goodsInfo = res.data.goods;
|
||||||
this.storeInfo = res.data.store;
|
this.storeInfo = res.data.store;
|
||||||
this.setSwiperList(res.data.goods_image);
|
this.setSwiperList(res.data.goods_image);
|
||||||
this.glist = res.data.spec_list;
|
this.glist = res.data.spec_list;
|
||||||
this.storeid = res.data.store.store_id
|
this.storeid = res.data.store.store_id;
|
||||||
// console.log(this.goodsInfo.mobile_body);
|
|
||||||
this.type = res.data.view_type;
|
this.type = res.data.view_type;
|
||||||
this.setTitle();
|
this.setTitle();
|
||||||
if(this.type == 1) {
|
if(this.type == 1) {
|
||||||
this.id = res.data.goods.goods_id;
|
this.id = res.data.goods.goods_id;
|
||||||
} else if(this.type == 2) {
|
} else if(this.type == 2) {
|
||||||
this.id = res.data.goods.pintuan_id;
|
this.id = res.data.goods.goods_id;
|
||||||
this.getGoodsDetails(this.id);
|
this.pintuan_id = res.data.goods.pintuan_id;
|
||||||
|
this.getGoodsDetails();
|
||||||
} else if(this.type == 3) {
|
} else if(this.type == 3) {
|
||||||
this.id = res.data.groupbuy_id;
|
this.id = res.data.goods.goods_id;
|
||||||
this.getGoodsDetails(this.id);
|
this.groupbuy_id = res.data.groupbuy_id;
|
||||||
|
this.getGoodsDetails();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 拼团详情
|
// 拼团详情
|
||||||
pinTuanDetails(id) {
|
pinTuanDetails() {
|
||||||
this.$u.api.getPinTuanDetails({
|
this.$u.api.getPinTuanDetails({
|
||||||
pintuan_id: id
|
pintuan_id: this.pintuan_id,
|
||||||
|
goods_id: this.id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.evaluate = res.data.data.goods_evaluate_info;
|
this.evaluate = res.data.data.goods_evaluate_info;
|
||||||
this.goodsInfo = res.data.data.goods;
|
this.goodsInfo = res.data.data.goods;
|
||||||
|
this.pintuan_id = res.data.data.pintuan_id;
|
||||||
this.setSwiperList(res.data.data.goods_image);
|
this.setSwiperList(res.data.data.goods_image);
|
||||||
this.glist = res.data.data.spec_list;
|
this.glist = res.data.data.spec_list;
|
||||||
this.user_suc = res.data.data.user_suc;
|
this.user_suc = res.data.data.user_suc;
|
||||||
@@ -435,13 +441,14 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 秒杀详情
|
// 秒杀详情
|
||||||
spikeGoodsDetails(id) {
|
spikeGoodsDetails() {
|
||||||
this.$u.api.getSpikeInfo({
|
this.$u.api.getSpikeInfo({
|
||||||
groupbuy_id: id
|
groupbuy_id: this.groupbuy_id,
|
||||||
|
goods_id: this.id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
// this.id = res.data.groupbuy_id;
|
|
||||||
this.groupbuyInfo = res.data.groupbuyInfo;
|
this.groupbuyInfo = res.data.groupbuyInfo;
|
||||||
|
this.groupbuy_id = res.data.groupbuyInfo.groupbuy_id;
|
||||||
this.evaluate = res.data.goodsInfo.goods_evaluate_info;
|
this.evaluate = res.data.goodsInfo.goods_evaluate_info;
|
||||||
this.goodsInfo = res.data.goodsInfo.goods;
|
this.goodsInfo = res.data.goodsInfo.goods;
|
||||||
this.setSwiperList(res.data.goodsInfo.goods_image);
|
this.setSwiperList(res.data.goodsInfo.goods_image);
|
||||||
@@ -462,13 +469,26 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 验证能否拼团
|
||||||
|
async pintuanVerify({ pintuan_id, pintuangroup_headid }) {
|
||||||
|
const res = await this.$u.api.pintuanVerify({
|
||||||
|
pintuan_id: pintuan_id,
|
||||||
|
pintuangroup_headid: pintuangroup_headid,
|
||||||
|
})
|
||||||
|
if(res.errCode != 0) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return res.errCode;
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
* @description 下单 订单步骤1:展示结算数据
|
* @description 下单 订单步骤1:展示结算数据
|
||||||
* @params {Number} type involvement 拼团或者 默认开团
|
* @params {Number} type involvement 拼团或者 默认开团
|
||||||
* @params {Number} num 数量
|
* @params {Number} num 数量
|
||||||
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
|
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
|
||||||
**/
|
**/
|
||||||
settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
|
async settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
|
||||||
if(type != 'involvement') {
|
if(type != 'involvement') {
|
||||||
if(!this.showSpec) {
|
if(!this.showSpec) {
|
||||||
this.showSpec = true;
|
this.showSpec = true;
|
||||||
@@ -490,26 +510,33 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!this.debounce) return;
|
if(!this.debounce) return;
|
||||||
this.debounce = false;
|
|
||||||
let params = {
|
let params = {
|
||||||
ifcart: ifcart,
|
ifcart: ifcart,
|
||||||
cart_id: [this.goodsInfo.goods_id + '|' + num],
|
cart_id: [this.goodsInfo.goods_id + '|' + num],
|
||||||
}
|
}
|
||||||
if(this.type == 2) {
|
if(this.type == 2) {
|
||||||
if(type == 'involvement') {
|
if(type == 'involvement') {
|
||||||
// const userId = uni.getStorageSync('user_info').member.member_id;
|
// 验证能否拼团
|
||||||
|
const whether = await this.pintuanVerify({
|
||||||
|
pintuan_id: this.pintuan_id,
|
||||||
|
pintuangroup_headid: this.involvemenGroupInfo[0].user_id
|
||||||
|
}).then(status => {
|
||||||
|
if(status != 0) return true;
|
||||||
|
else return false;
|
||||||
|
})
|
||||||
|
if(whether) return false;
|
||||||
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
|
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
|
||||||
// console.log(this.$store.state.pintuangroup_headid);
|
|
||||||
Object.assign(params, {
|
Object.assign(params, {
|
||||||
pintuan_id: this.id,
|
pintuan_id: this.pintuan_id,
|
||||||
pintuangroup_id: this.involvemenGroupInfo[0].pintuangroup_id,
|
pintuangroup_id: this.involvemenGroupInfo[0].pintuangroup_id,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Object.assign(params, {
|
Object.assign(params, {
|
||||||
pintuan_id: this.id,
|
pintuan_id: this.pintuan_id,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.debounce = false;
|
||||||
this.$u.api.settlementOrder(params).then(res => {
|
this.$u.api.settlementOrder(params).then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
// console.log('type' + this.type);
|
// console.log('type' + this.type);
|
||||||
@@ -519,6 +546,7 @@ export default {
|
|||||||
url: '/pageC/cart/ConfirmOrder'
|
url: '/pageC/cart/ConfirmOrder'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.$u.toast(res.message);
|
||||||
this.debounce = true;
|
this.debounce = true;
|
||||||
this.$u.toast(res.message);
|
this.$u.toast(res.message);
|
||||||
}
|
}
|
||||||
@@ -556,8 +584,9 @@ export default {
|
|||||||
// console.log(id)
|
// console.log(id)
|
||||||
// 选择完规格后设商品type = 1
|
// 选择完规格后设商品type = 1
|
||||||
// this.type = 1;
|
// this.type = 1;
|
||||||
this.getGoodsDetails(this.glist[id])
|
// 改变 goods_id
|
||||||
this.id = this.glist[id];
|
this.id = this.glist[id];
|
||||||
|
this.getGoodsDetails();
|
||||||
},
|
},
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
setTitle() {
|
setTitle() {
|
||||||
@@ -603,7 +632,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
switchCollect(status) {
|
switchCollect(status) {
|
||||||
if(status) {
|
if(status == 1) {
|
||||||
this.removeFavorite();
|
this.removeFavorite();
|
||||||
} else {
|
} else {
|
||||||
this.addFavoriteGoods();
|
this.addFavoriteGoods();
|
||||||
@@ -959,6 +988,13 @@ export default {
|
|||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.user-name {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 200rpx;
|
||||||
|
}
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -18,10 +18,13 @@ export default {
|
|||||||
searchwordlist: [],
|
searchwordlist: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// type: 2 商品 1: 其他
|
// type: 1 商品 2: 其他
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.type = option.type;
|
this.type = option.type;
|
||||||
|
this.curent = option.curent || 0
|
||||||
this.getWordList();
|
this.getWordList();
|
||||||
|
if(option.type == 1) this.setNavSearchInput('搜索您需要的商品');
|
||||||
|
else if(option.type == 2) this.setNavSearchInput('请输入搜索内容');
|
||||||
},
|
},
|
||||||
// 点击搜索按钮
|
// 点击搜索按钮
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
@@ -36,6 +39,18 @@ export default {
|
|||||||
this.search(this.keyword);
|
this.search(this.keyword);
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
setNavSearchInput(placeholder) {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
// 修改 placeholder
|
||||||
|
webview.setStyle({
|
||||||
|
'titleNView': {
|
||||||
|
"searchInput": { //修改当前窗口search样式
|
||||||
|
"placeholder": placeholder,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
getWordList() {
|
getWordList() {
|
||||||
this.$u.api.searchwordlist({type:this.type}).then(res => {
|
this.$u.api.searchwordlist({type:this.type}).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
@@ -51,7 +66,8 @@ export default {
|
|||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
value: value,
|
value: value,
|
||||||
type: this.type,
|
type: this.type,
|
||||||
|
curent:this.curent
|
||||||
}
|
}
|
||||||
if(this.type == 2) {
|
if(this.type == 2) {
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
|
|||||||
@@ -78,9 +78,11 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.value = option.value;
|
this.value = option.value;
|
||||||
|
this.current = option.curent
|
||||||
this.setViewHeight();
|
this.setViewHeight();
|
||||||
this.ShopSearch()
|
this.ShopSearch()
|
||||||
this.setNavSearchInput(this.value);
|
this.setNavSearchInput(this.value);
|
||||||
|
|
||||||
},
|
},
|
||||||
onNavigationBarSearchInputConfirmed(value) {
|
onNavigationBarSearchInputConfirmed(value) {
|
||||||
this.value = value.text
|
this.value = value.text
|
||||||
@@ -203,6 +205,7 @@ export default {
|
|||||||
},
|
},
|
||||||
switchCurrent(current) {
|
switchCurrent(current) {
|
||||||
// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
// if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
||||||
|
this.page = 1;
|
||||||
this.current = current;
|
this.current = current;
|
||||||
this.goodsList = []
|
this.goodsList = []
|
||||||
this.ShopSearch()
|
this.ShopSearch()
|
||||||
|
|||||||
@@ -11,12 +11,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" :scroll-top="top">
|
||||||
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
||||||
<image :src="goods.goods_image"></image>
|
<image :src="goods.goods_image"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
||||||
<view class="briefing u-line-2">{{ goods.goods_advword }}</view>
|
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
|
||||||
|
<view class="price">¥{{ goods.goods_price }}</view>
|
||||||
</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-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
|
||||||
@@ -37,7 +38,8 @@ export default {
|
|||||||
scrollHeight: '',
|
scrollHeight: '',
|
||||||
loadStatus: 'loadmore',
|
loadStatus: 'loadmore',
|
||||||
timer: true, // 防止上拉加载短时间内多次调用,
|
timer: true, // 防止上拉加载短时间内多次调用,
|
||||||
value:""
|
value:"",
|
||||||
|
top:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -54,6 +56,8 @@ export default {
|
|||||||
this.value = option.value
|
this.value = option.value
|
||||||
this.setViewHeight();
|
this.setViewHeight();
|
||||||
this.ShopSearch()
|
this.ShopSearch()
|
||||||
|
this.setNavSearchInput(this.value);
|
||||||
|
|
||||||
},
|
},
|
||||||
onNavigationBarSearchInputConfirmed(value) {
|
onNavigationBarSearchInputConfirmed(value) {
|
||||||
this.value = value.text
|
this.value = value.text
|
||||||
@@ -95,7 +99,6 @@ export default {
|
|||||||
// 排序方式 goods_salenum:销量 evaluation_count:评价 goods_price_asc:价格从低到高 goods_price_desc:价格从高到低
|
// 排序方式 goods_salenum:销量 evaluation_count:评价 goods_price_asc:价格从低到高 goods_price_desc:价格从高到低
|
||||||
async ShopSearch({ load = 'reload' } = {}) {
|
async ShopSearch({ load = 'reload' } = {}) {
|
||||||
console.log(this.value);
|
console.log(this.value);
|
||||||
this.setNavSearchInput(this.value);
|
|
||||||
const sort = this.setOrderSort();
|
const sort = this.setOrderSort();
|
||||||
const res = await this.$u.api.ShopSearch({
|
const res = await this.$u.api.ShopSearch({
|
||||||
keyword: this.value,
|
keyword: this.value,
|
||||||
@@ -127,8 +130,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
switchCurrent(current) {
|
switchCurrent(current) {
|
||||||
this.ShopSearch()
|
this.page = 1
|
||||||
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
||||||
|
this.top=0
|
||||||
|
this.ShopSearch()
|
||||||
this.current = current;
|
this.current = current;
|
||||||
},
|
},
|
||||||
setViewHeight() {
|
setViewHeight() {
|
||||||
@@ -197,15 +202,21 @@ export default {
|
|||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
width: 418rpx;
|
width: 418rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
.name {
|
.name {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
}
|
||||||
.briefing {
|
.briefing {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: rgba(102,102,102,1);
|
color: rgba(102,102,102,1);
|
||||||
line-height: 42rpx;
|
}
|
||||||
|
.price {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: rgba(255,49,49,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="container">
|
||||||
<video id="videoId" :style="videoSize" :src="src" autoplay="true" :show-fullscreen-btn="false" @play="playing"
|
<video id="videoId" :style="videoSize" :src="src" autoplay="true" :show-fullscreen-btn="false" @play="playing"
|
||||||
@timeupdate="timeupdate" :show-play-btn="false" controls="false" @click="stoping" :enable-progress-gesture="false"></video>
|
@pause="pausing" @ended="videoEnd" @timeupdate="timeupdate" :show-play-btn="false" controls="false" @click="stoping"
|
||||||
<cover-image class="close" @click="goBack" src="../../static/close.png">
|
:enable-progress-gesture="false" :show-center-play-btn="false"></video>
|
||||||
</cover-image>
|
|
||||||
<cover-image class="pause" @click="stoping" src="../../static/videoPlay.png" v-if="!is_play">
|
|
||||||
</cover-image>
|
|
||||||
<!-- 用户操作 -->
|
<!-- 用户操作 -->
|
||||||
<userinfo class="user-info" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num" @openCart="openPopup"></userinfo>
|
<userinfo class="user-info" :style="{ top: fixTop }" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num"
|
||||||
<cover-view class="info-box" @click="stopClick">>
|
@openCart="openPopup"></userinfo>
|
||||||
|
<!-- 视频信息 -->
|
||||||
|
<cover-view class="info-box" @click="stopClick">
|
||||||
<view class="video-info-box">
|
<view class="video-info-box">
|
||||||
<image class="image-play" src="../../static/videoIcon.png" mode=""></image>
|
<image class="image-play" src="../../static/videoIcon.png" mode=""></image>
|
||||||
<text class="video-slip">视频</text>
|
<text class="video-slip">视频</text>
|
||||||
<text class="time">{{ time_count == 1 ? 0 : time_count }}s</text>
|
<text class="time">{{ time_count }}s</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="name">@{{ list.member_nickname }}</text>
|
<text class="name">@{{ list.member_nickname }}</text>
|
||||||
@@ -29,40 +28,91 @@
|
|||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</cover-view>
|
</cover-view>
|
||||||
<cover-view class="content-box" v-if="is_comment">
|
<!-- 单个商品 -->
|
||||||
<view class="content-title">
|
<cover-view class="good-one" :style="{ bottom: fixTop - 100 }" v-if="cart_len == 1 && cart_type">
|
||||||
<text class="tips">评论</text>
|
<view class="one-list" v-for="(item,index) in list.goods" :key="index" @click="goGoodInfo(item.goods_id)">
|
||||||
<text class="close-down" @click="closeComment">×</text>
|
<image class="one-image" :src="item.goods_image" mode=""></image>
|
||||||
|
<view class="one-box">
|
||||||
|
<text class="title-one">{{ item.goods_advword }}</text>
|
||||||
|
<text class="content-one">{{ item.goods_name }}</text>
|
||||||
|
<text class="good-price">¥{{ item.goods_promotion_price }}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<scroller class="comment-list">
|
</cover-view>
|
||||||
<view class="" v-for="(item,index) in commentList" :key="index">
|
<!-- 遮罩层 -->
|
||||||
<view class="comment-list-box">
|
<cover-view class="mask" @click.stop="stopClick" :style="videoSize" v-if="is_edit || is_comment || cart_type && cart_len >= 2">
|
||||||
<view class="comment-list-header">
|
<!-- 评论 -->
|
||||||
<image class="avatar" :src="item.member_avatar" mode=""></image>
|
<cover-view class="content-box" v-if="is_comment" ref="contentBox">
|
||||||
<view>
|
<view class="content-title">
|
||||||
<text class="comment-title">{{ item.member_nickname }}</text>
|
<text class="tips">评论</text>
|
||||||
<text class="comment-time">{{ item.create_time }}</text>
|
<text class="close-down" @click="closeComment">×</text>
|
||||||
|
</view>
|
||||||
|
<scroller class="comment-list">
|
||||||
|
<view class="" v-for="(item,index) in commentList" :key="index">
|
||||||
|
<view class="comment-list-box">
|
||||||
|
<view class="comment-list-header">
|
||||||
|
<image class="avatar" :src="item.member_avatar" mode=""></image>
|
||||||
|
<view>
|
||||||
|
<text class="comment-title">{{ item.member_nickname }}</text>
|
||||||
|
<text class="comment-time">{{ item.create_time }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<text class="reply" @click="openKeyInput(item,index)">回复</text>
|
||||||
|
</view>
|
||||||
|
<view class="content-main">
|
||||||
|
<text class="content-style">{{ item.content }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="send-box">
|
||||||
|
<input class="send-val" type="text" :placeholder="edit_text" placeholder-class="placeholder-class"
|
||||||
|
disabled="true" @blur="blue" @click="openKeyInput" value="" />
|
||||||
|
<text class="btn-send">发送</text>
|
||||||
|
</view>
|
||||||
|
<loading class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
|
||||||
|
<loading-indicator class="indicator"></loading-indicator>
|
||||||
|
<text class="indicator-text">努力加载中</text>
|
||||||
|
</loading>
|
||||||
|
</scroller>
|
||||||
|
</cover-view>
|
||||||
|
<!-- 评论框 -->
|
||||||
|
<cover-view class="edit-box" :style="videoSize" v-if="is_edit">
|
||||||
|
<view class="input-main" :style="{ bottom: editTop }">
|
||||||
|
<input class="edit-input" type="text" value="" :focus="is_focus" :placeholder=" edit_text_other ? edit_text_other : edit_text"
|
||||||
|
placeholder-class="placeholder-class" v-model="send_value" />
|
||||||
|
<text class="btn-send" @click="sendComment">发送</text>
|
||||||
|
</view>
|
||||||
|
<view></view>
|
||||||
|
</cover-view>
|
||||||
|
<!-- 购物车 -->
|
||||||
|
<cover-view class="cart-box" v-if="cart_type">
|
||||||
|
<view class="cart-title">
|
||||||
|
<text class="tips">全部商品</text>
|
||||||
|
<text class="close-down" @click="cart_type = false">×</text>
|
||||||
|
</view>
|
||||||
|
<scroller class="cart-list">
|
||||||
|
<view class="" v-for="(item,index) in list.goods" :key="index">
|
||||||
|
<view class="cart-list-header" @click="goGoodInfo(item.goods_id)">
|
||||||
|
<image class="goods-img" :src="item.goods_image" mode=""></image>
|
||||||
|
<view class="goods-info">
|
||||||
|
<text class="good-title">{{ item.goods_advword }}</text>
|
||||||
|
<text class="good-price">{{ item.goods_promotion_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<text class="reply">回复</text>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="content-main">
|
<loading v-if="0" class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
|
||||||
<text class="content-style">{{ item.content }}</text>
|
<loading-indicator class="indicator"></loading-indicator>
|
||||||
</view>
|
<text class="indicator-text">努力加载中</text>
|
||||||
</view>
|
</loading>
|
||||||
<view class="send-box">
|
</scroller>
|
||||||
<input class="send-val" type="text" value="" />
|
</cover-view>
|
||||||
<text class="btn-send">发送</text>
|
|
||||||
</view>
|
|
||||||
<loading class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
|
|
||||||
<loading-indicator class="indicator"></loading-indicator>
|
|
||||||
<text class="indicator-text">努力加载中</text>
|
|
||||||
</loading>
|
|
||||||
</scroller>
|
|
||||||
</cover-view>
|
</cover-view>
|
||||||
<list class="cart-box">
|
<!-- 返回按钮 -->
|
||||||
<cell></cell>
|
<cover-image class="close" @click="goBack" src="../../static/close.png">
|
||||||
</list>
|
</cover-image>
|
||||||
|
<!-- 暂停按钮 -->
|
||||||
|
<cover-image class="pause" :style="{ top: fixTop + 100 }" @click="stoping" src="../../static/videoPlay.png"
|
||||||
|
v-if="!is_play">
|
||||||
|
</cover-image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -76,12 +126,23 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
videoSize: {},
|
videoSize: {},
|
||||||
|
fixTop: 0,
|
||||||
|
editTop: 0,
|
||||||
list: {},
|
list: {},
|
||||||
labelLen: [],
|
labelLen: [],
|
||||||
|
cart_len: 0, // 购物车个数
|
||||||
cart_type: false, // 显示购物车
|
cart_type: false, // 显示购物车
|
||||||
is_comment: false, // 显示评论
|
is_comment: false, // 显示评论
|
||||||
|
is_edit: false, // 显示输入
|
||||||
|
is_focus: false, //
|
||||||
comment_num: 0, // 评论数
|
comment_num: 0, // 评论数
|
||||||
|
edit_text: "有爱评论,说点好听的 ~",
|
||||||
|
edit_text_other: "有爱评论,说点好听的 ~",
|
||||||
|
pid: 0, // 主键
|
||||||
|
reply_id: 0, // 回复id
|
||||||
page: 0,
|
page: 0,
|
||||||
|
comment_id: 0,
|
||||||
|
send_value: "", // 评论
|
||||||
commentList: [], // 评论列表
|
commentList: [], // 评论列表
|
||||||
src: "",
|
src: "",
|
||||||
is_play: true,
|
is_play: true,
|
||||||
@@ -98,7 +159,22 @@
|
|||||||
onReady() {
|
onReady() {
|
||||||
this.videoBox = uni.createVideoContext("videoId", this);
|
this.videoBox = uni.createVideoContext("videoId", this);
|
||||||
},
|
},
|
||||||
|
onBackPress() {
|
||||||
|
if (this.cart_type) {
|
||||||
|
this.cart_type = !this.cart_type;
|
||||||
|
} else if (this.is_edit) {
|
||||||
|
this.is_edit = !this.is_edit;
|
||||||
|
} else if (this.is_comment) {
|
||||||
|
this.is_comment = !this.is_comment;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
moveHandle() {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
// 获取信息
|
// 获取信息
|
||||||
getVideoInfo(article_id) {
|
getVideoInfo(article_id) {
|
||||||
uni.request({
|
uni.request({
|
||||||
@@ -113,6 +189,8 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.list = res.data.data.info;
|
this.list = res.data.data.info;
|
||||||
this.src = res.data.data.info.video_path;
|
this.src = res.data.data.info.video_path;
|
||||||
|
this.cart_len = res.data.data.info.goods.length;
|
||||||
|
console.log(this.cart_len);
|
||||||
let item = res.data.data.info.label;
|
let item = res.data.data.info.label;
|
||||||
let arr = [];
|
let arr = [];
|
||||||
item.forEach(data => {
|
item.forEach(data => {
|
||||||
@@ -139,40 +217,56 @@
|
|||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.data.errCode == 0) {
|
if (res.data.errCode == 0) {
|
||||||
console.log(res.data);
|
// console.log(res.data);
|
||||||
this.commentList = res.data.data;
|
this.commentList = res.data.data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 发布评论
|
// 发布评论
|
||||||
sendComment() {
|
sendComment() {
|
||||||
if (this.send_value.length == 0) {
|
if (this.send_value.length == 0) {
|
||||||
this.$u.toast("内容不能为空!");
|
this.$u.toast("内容不能为空!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uni.request({
|
uni.request({
|
||||||
url: temp_url + "article/articleAddComment",
|
url: temp_url + "article/articleAddComment",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
article_id: this.article_id,
|
article_id: this.article_id,
|
||||||
content: this.send_value,
|
content: this.send_value,
|
||||||
pid: this.pid,
|
pid: this.pid,
|
||||||
reply_id: this.reply_id,
|
reply_id: this.reply_id,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
header: {
|
||||||
if (res.data.errCode == 0) {
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
this.send_value = "";
|
},
|
||||||
this.comment_num = res.data.num;
|
success: (res) => {
|
||||||
console.log(res.data);
|
this.is_edit = false;
|
||||||
} else {
|
if (res.data.errCode == 0) {
|
||||||
uni.showToast({
|
this.send_value = "";
|
||||||
title: res.data.message,
|
this.comment_num = res.data.num;
|
||||||
icon: "none"
|
if (res.data.data.data.reply_id) {
|
||||||
})
|
// this.commentList[this.comment_id].reply_count = true;
|
||||||
}
|
// this.allList[this.comment_id].unshift(res.data.data);
|
||||||
}
|
// console.log(this.allList, 111);
|
||||||
})
|
} else {
|
||||||
|
this.commentList.unshift(res.data.data.data);
|
||||||
|
}
|
||||||
|
console.log(this.commentList);
|
||||||
|
} else if (res.data.errCode == 401) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您还没有登录,请先登录!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.message,
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 获取手机信息
|
// 获取手机信息
|
||||||
getInfo() {
|
getInfo() {
|
||||||
@@ -180,8 +274,13 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.videoSize = {
|
this.videoSize = {
|
||||||
width: "750rpx",
|
width: "750rpx",
|
||||||
height: res.screenHeight + "px"
|
height: res.screenHeight + "px",
|
||||||
}
|
}
|
||||||
|
this.fixTop = "400rpx";
|
||||||
|
this.fixTop = res.screenHeight / 3;
|
||||||
|
// #ifdef H5
|
||||||
|
this.fixTop = 400 + 'rpx'
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -190,6 +289,19 @@
|
|||||||
// console.log(e);
|
// console.log(e);
|
||||||
if (e.type == "play") {}
|
if (e.type == "play") {}
|
||||||
},
|
},
|
||||||
|
pausing(e) {
|
||||||
|
if (e.type == "pause") {
|
||||||
|
this.is_play = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 结束
|
||||||
|
videoEnd(e) {
|
||||||
|
// console.log(e);
|
||||||
|
if (e.type == "ended") {
|
||||||
|
this.is_play = false;
|
||||||
|
this.time_count = 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
// 暂停
|
// 暂停
|
||||||
stoping() {
|
stoping() {
|
||||||
this.is_play = !this.is_play;
|
this.is_play = !this.is_play;
|
||||||
@@ -202,8 +314,9 @@
|
|||||||
// 监听视频
|
// 监听视频
|
||||||
timeupdate(e) {
|
timeupdate(e) {
|
||||||
this.time_count = parseInt(e.detail.duration) - parseInt(e.detail.currentTime);
|
this.time_count = parseInt(e.detail.duration) - parseInt(e.detail.currentTime);
|
||||||
|
// console.log(e.detail.currentTime,e.detail.duration);
|
||||||
if (e.detail.duration == e.detail.currentTime) {
|
if (e.detail.duration == e.detail.currentTime) {
|
||||||
this.is_play = false;
|
// this.is_play = false;
|
||||||
}
|
}
|
||||||
// let num = parseInt((e.detail.currentTime/e.detail.duration)*100);
|
// let num = parseInt((e.detail.currentTime/e.detail.duration)*100);
|
||||||
// this.linear = num + "%";
|
// this.linear = num + "%";
|
||||||
@@ -211,17 +324,58 @@
|
|||||||
},
|
},
|
||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
openPopup(data) {
|
openPopup(data) {
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
|
if (this.cart_len >= 2) {
|
||||||
|
|
||||||
|
}
|
||||||
this.cart_type = data.cart;
|
this.cart_type = data.cart;
|
||||||
this.is_comment = data.comment;
|
this.is_comment = data.comment;
|
||||||
if (this.is_comment) {
|
if (this.is_comment) {
|
||||||
this.page = 0;
|
this.page = 0;
|
||||||
this.getComment();
|
this.getComment();
|
||||||
|
// this.is_play = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 打开评论输入
|
||||||
|
openKeyInput(data, index) {
|
||||||
|
let me = this;
|
||||||
|
this.is_focus = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.is_edit = true;
|
||||||
|
}, 500)
|
||||||
|
uni.onKeyboardHeightChange(function(res) {
|
||||||
|
console.log(res);
|
||||||
|
if (res.height == 0) {
|
||||||
|
me.is_focus = false;
|
||||||
|
me.is_edit = false;
|
||||||
|
} else {
|
||||||
|
me.editTop = res.height;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.comment_id = index;
|
||||||
|
if (data.id) {
|
||||||
|
this.edit_text_other = "回复@" + data.member_nickname;
|
||||||
|
this.pid = data.id;
|
||||||
|
this.reply_id = data.member_id;
|
||||||
|
} else {
|
||||||
|
this.edit_text_other = "有爱评论,说点好听的 ~";
|
||||||
|
this.pid = "";
|
||||||
|
this.reply_id = "";
|
||||||
|
}
|
||||||
|
// console.log(this.pid, this.edit_text_other);
|
||||||
|
},
|
||||||
|
blue() {
|
||||||
|
this.is_focus = false;
|
||||||
|
},
|
||||||
// 关闭评论
|
// 关闭评论
|
||||||
closeComment() {
|
closeComment() {
|
||||||
this.is_comment = false;
|
this.is_comment = false;
|
||||||
|
this.is_edit = false;
|
||||||
|
// console.log(this.is_comment,this.is_play);
|
||||||
|
// if (!this.is_comment && this.is_play) {
|
||||||
|
// console.log(1);
|
||||||
|
// this.is_play = false;
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
// 下拉加载
|
// 下拉加载
|
||||||
onloading(e) {
|
onloading(e) {
|
||||||
@@ -231,6 +385,12 @@
|
|||||||
this.loadinging = false;
|
this.loadinging = false;
|
||||||
}, 2000)
|
}, 2000)
|
||||||
},
|
},
|
||||||
|
// 跳转
|
||||||
|
goGoodInfo(id) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
|
||||||
|
})
|
||||||
|
},
|
||||||
// stop
|
// stop
|
||||||
stopClick(event) {
|
stopClick(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
@@ -245,19 +405,23 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
/* 关闭 */
|
/* 关闭 */
|
||||||
.close {
|
.close {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 80rpx;
|
top: 100rpx;
|
||||||
right: 60rpx;
|
right: 70rpx;
|
||||||
width: 30rpx;
|
width: 30rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 暂停 */
|
/* 暂停 */
|
||||||
.pause {
|
.pause {
|
||||||
|
z-index: 99;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 600rpx;
|
|
||||||
left: 330rpx;
|
left: 330rpx;
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
@@ -266,7 +430,6 @@
|
|||||||
/* 用户操作 */
|
/* 用户操作 */
|
||||||
.user-info {
|
.user-info {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 360rpx;
|
|
||||||
right: 30rpx;
|
right: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,6 +453,55 @@
|
|||||||
background-color: rgba(255, 255, 255, .6);
|
background-color: rgba(255, 255, 255, .6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.good-one {
|
||||||
|
position: fixed;
|
||||||
|
right: 160rpx;
|
||||||
|
width: 420rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.one-list {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one-image {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one-box {
|
||||||
|
justify-content: space-around;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-one {
|
||||||
|
width: 200rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
|
lines: 1;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-one {
|
||||||
|
width: 200rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #fff;
|
||||||
|
lines: 2;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mask {
|
||||||
|
z-index: 999999;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
.content-box {
|
.content-box {
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -297,6 +509,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 700rpx;
|
height: 700rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
margin-bottom: 88rpx;
|
margin-bottom: 88rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
@@ -320,19 +533,19 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-main {
|
.content-main {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding-left: 100rpx;
|
padding-left: 100rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-style {
|
.content-style {
|
||||||
width: 600rpx;
|
width: 600rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
lines: 2;
|
lines: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-list-header {
|
.comment-list-header {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
@@ -360,6 +573,7 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-box {
|
.send-box {
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -375,24 +589,111 @@
|
|||||||
border-color: #ececec;
|
border-color: #ececec;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-val {
|
.send-val {
|
||||||
width: 600rpx;
|
width: 600rpx;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-send {
|
.btn-send {
|
||||||
font-size: 30rpx;
|
font-size: 28rpx;
|
||||||
color: #303133;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-down {
|
.close-down {
|
||||||
|
padding: 10rpx;
|
||||||
font-size: 50rpx;
|
font-size: 50rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.edit-box {
|
||||||
|
z-index: 1000;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 750rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-main {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
/* #ifdef H5 */
|
||||||
|
display: flex;
|
||||||
|
/* #endif */
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 750rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-input {
|
||||||
|
width: 600rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-box {
|
||||||
|
z-index: 99;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 750rpx;
|
||||||
|
height: 700rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-title {
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 88rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
border-color: #f2f2f2;
|
||||||
|
border-bottom-width: 1rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-list {}
|
||||||
|
|
||||||
|
.cart-list-header {
|
||||||
|
padding: 20rpx;
|
||||||
|
flex-direction: row;
|
||||||
|
border-bottom-width: 1rpx;
|
||||||
|
border-bottom-color: #ececec;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-img {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-info {
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good-title {
|
||||||
|
width: 500rpx;
|
||||||
|
color: #333;
|
||||||
|
font-size: 30rpx;
|
||||||
|
lines: 2;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good-price {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #FF3131;
|
||||||
|
}
|
||||||
|
|
||||||
.image-play {
|
.image-play {
|
||||||
width: 22rpx;
|
width: 22rpx;
|
||||||
height: 20rpx;
|
height: 20rpx;
|
||||||
@@ -436,7 +737,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
lines: 3;
|
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
padding: 4rpx 10rpx;
|
padding: 4rpx 10rpx;
|
||||||
@@ -444,6 +744,7 @@
|
|||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
line-height: 38rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
background-color: rgba(255, 255, 255, .6);
|
background-color: rgba(255, 255, 255, .6);
|
||||||
@@ -467,4 +768,9 @@
|
|||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.placeholder-class {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export default {
|
|||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.orderType = this.$store.state.orderType;
|
this.orderType = this.$store.state.orderType;
|
||||||
this.orderInfo = this.$store.state.orderInfo;
|
this.orderInfo = this.$store.state.orderInfo;
|
||||||
console.log('orderType' + this.orderType);
|
// console.log('orderType' + this.orderType);
|
||||||
// console.log(this.orderInfo);
|
// console.log(this.orderInfo);
|
||||||
this.getGoodsClass();
|
this.getGoodsClass();
|
||||||
this.setTotalPrice();
|
this.setTotalPrice();
|
||||||
|
|||||||
@@ -326,10 +326,13 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(255,49,49,1);
|
color: rgba(255,49,49,1);
|
||||||
}
|
}
|
||||||
.u-numberbox {
|
/deep/ .u-numberbox {
|
||||||
border: 1rpx solid rgba(217,215,215,1);
|
border: 1rpx solid rgba(217,215,215,1);
|
||||||
border-radius:4px;
|
border-radius:4px;
|
||||||
/deep/ .u-number-input {
|
.u-icon-minus, .u-icon-plus {
|
||||||
|
width: 38rpx;
|
||||||
|
}
|
||||||
|
.u-number-input {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #333 !important;
|
color: #333 !important;
|
||||||
border: 1rpx #D9D7D7 solid {
|
border: 1rpx #D9D7D7 solid {
|
||||||
@@ -338,31 +341,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// .num {
|
|
||||||
// display: flex;
|
|
||||||
// width: 118rpx;
|
|
||||||
// height: 39rpx;
|
|
||||||
// border: 1rpx solid rgba(217,215,215,1);
|
|
||||||
// border-radius:4px;
|
|
||||||
// .reduce, .increase {
|
|
||||||
// flex: 1;
|
|
||||||
// font-size: 11rpx;
|
|
||||||
// color: #FF780F;
|
|
||||||
// line-height: 39rpx;
|
|
||||||
// text-align: center;
|
|
||||||
// }
|
|
||||||
// .value {
|
|
||||||
// flex: 1;
|
|
||||||
// font-size: 22rpx;
|
|
||||||
// color:rgba(51,51,51,1);
|
|
||||||
// line-height: 39rpx;
|
|
||||||
// text-align: center;
|
|
||||||
// border: 1rpx #D9D7D7 solid {
|
|
||||||
// top: 0px;
|
|
||||||
// bottom: 0px;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
<image :src="goods.goods_image"></image>
|
<image :src="goods.goods_image"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
||||||
<view class="briefing u-line-2">{{ goods.goods_advword }}</view>
|
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
|
||||||
|
<view class="price">¥{{ goods.goods_price }}</view>
|
||||||
</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-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
|
||||||
@@ -176,15 +177,21 @@ export default {
|
|||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
width: 418rpx;
|
width: 418rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
.name {
|
.name {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
}
|
||||||
.briefing {
|
.briefing {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: rgba(102,102,102,1);
|
color: rgba(102,102,102,1);
|
||||||
line-height: 42rpx;
|
}
|
||||||
|
.price {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: rgba(255,49,49,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
<view v-if="pinTuanList[index]">
|
<view v-if="pinTuanList[index]">
|
||||||
<SpecialGoods v-for="(item, index) in pinTuanList[index]" :key="index" :item="item" type='group'></SpecialGoods>
|
<SpecialGoods v-for="(item, index) in pinTuanList[index]" :key="index" :item="item" type='group'></SpecialGoods>
|
||||||
</view>
|
</view>
|
||||||
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="!pinTuanList[index] || pinTuanList[index].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
|
<u-empty text="暂无商品" mode="list" color="#000" margin-top="120" v-if="!pinTuanList[index] || !pinTuanList[index].length"></u-empty>
|
||||||
<u-empty text="暂无商品" mode="list" color="#000" v-if="!pinTuanList[index] || !pinTuanList[index].length"></u-empty>
|
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="pinTuanList[index] && pinTuanList[index].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@@ -22,7 +22,7 @@ import SpecialGoods from "../../components/shop/special-shop/index";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pageSize: 12,
|
pageSize: 6,
|
||||||
tabList: [],
|
tabList: [],
|
||||||
current: -1,
|
current: -1,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
||||||
<view class="goods-container">
|
<view class="goods-container">
|
||||||
<view v-for="(goods, index) in goodsList" :key="index" class="goods-view" @click="toDetailsPage(goods.goods_id)">
|
<view v-for="(goods, index) in goodsList" :key="index" class="goods-view">
|
||||||
<goodsItem :info="goods"></goodsItem>
|
<goodsItem :info="goods"></goodsItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -28,7 +28,7 @@ import goodsItem from "@/components/shop/list/item"
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pageSize: 15,
|
pageSize: 5,
|
||||||
cid: '',
|
cid: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
current: 0,
|
current: 0,
|
||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
page: this.page,
|
page: this.page,
|
||||||
order: sort,
|
order: sort,
|
||||||
})
|
})
|
||||||
this.timer = true;
|
// this.timer = true;
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.pageSize = res.data.per_page;
|
this.pageSize = res.data.per_page;
|
||||||
if(load == 'reload') this.goodsList = res.data.data;
|
if(load == 'reload') this.goodsList = res.data.data;
|
||||||
@@ -92,8 +92,8 @@ export default {
|
|||||||
return res.data.data.length;
|
return res.data.data.length;
|
||||||
},
|
},
|
||||||
loadMore() {
|
loadMore() {
|
||||||
if(this.goodsList.length < this.pageSize) return false;
|
// if(this.goodsList.length < this.pageSize) return false;
|
||||||
if(!this.timer) return false;
|
// if(!this.timer) return false;
|
||||||
this.loadStatus = "loading";
|
this.loadStatus = "loading";
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getStoreGoodsList({ load: 'loadmore' }).then(length => {
|
this.getStoreGoodsList({ load: 'loadmore' }).then(length => {
|
||||||
@@ -118,12 +118,6 @@ export default {
|
|||||||
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * otherHeight + 'px';
|
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * otherHeight + 'px';
|
||||||
// console.log(this.scrollHeight);
|
// console.log(this.scrollHeight);
|
||||||
},
|
},
|
||||||
toDetailsPage(id) {
|
|
||||||
this.$u.route('/pageB/sdetails/index', {
|
|
||||||
id: id,
|
|
||||||
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -14,15 +14,18 @@
|
|||||||
<view>我的</view>
|
<view>我的</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="top" :style="{'background-image':'url(' + info.store_banner + ')'}">
|
<view class="top" :style="{'background':'url(' + info.store_banner + ') 100% 100% no-repeat' }">
|
||||||
<image :src="info.store_avatar"></image>
|
<view class="mantle"></view>
|
||||||
<view class="info">
|
<view class="main-container">
|
||||||
<view class="name u-line-1">{{info.store_name}}</view>
|
<image :src="info.store_avatar"></image>
|
||||||
<view class="num">粉丝数:{{info.store_collect}}</view>
|
<view class="info">
|
||||||
</view>
|
<view class="name u-line-1">{{info.store_name}}</view>
|
||||||
<view class="btn" @click="attentionMember">
|
<view class="num">粉丝数:{{info.store_collect}}</view>
|
||||||
<image src="/static/image/shop/8.png"></image>
|
</view>
|
||||||
<view>{{ info.is_attention == 0 ? "关注" : "已关注" }}</view>
|
<view class="btn" @click="attentionMember">
|
||||||
|
<image :src="info.is_attention == 0 ? '/static/image/shop/14.png' : '/static/image/shop/8.png'"></image>
|
||||||
|
<view>{{ info.is_attention == 0 ? "关注" : "已关注" }}</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="follow" v-if="info.attention_member && info.attention_member.length">
|
<view class="follow" v-if="info.attention_member && info.attention_member.length">
|
||||||
@@ -88,7 +91,7 @@ export default {
|
|||||||
indexlist: [],
|
indexlist: [],
|
||||||
indextop: [],
|
indextop: [],
|
||||||
info: {},
|
info: {},
|
||||||
page: 0,
|
page: 1,
|
||||||
scrollHeiht: '',
|
scrollHeiht: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -104,8 +107,8 @@ export default {
|
|||||||
// this.getStoreImgVideoList();
|
// this.getStoreImgVideoList();
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
// console.log(e.index);
|
console.log(e.index);
|
||||||
if(e.index == 1) this.$u.route('/pageC/cart/index');
|
if(e.index == 0) this.$u.route('/pageC/cart/index');
|
||||||
// if(e.index == 0) this.show = true;
|
// if(e.index == 0) this.show = true;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -127,7 +130,7 @@ export default {
|
|||||||
this.time = time;
|
this.time = time;
|
||||||
this.date = date
|
this.date = date
|
||||||
}
|
}
|
||||||
console.log(123)
|
// console.log(123)
|
||||||
this.$u.api.getAtwillUserInfo({
|
this.$u.api.getAtwillUserInfo({
|
||||||
id:this.sid
|
id:this.sid
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
@@ -232,48 +235,66 @@ export default {
|
|||||||
z-index: 9;
|
z-index: 9;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 350rpx;
|
height: 350rpx;
|
||||||
background-color: #999999;
|
// background-color: #999999;
|
||||||
display: flex;
|
.mantle {
|
||||||
align-items: center;
|
width: 750rpx;
|
||||||
padding: 168rpx 60rpx 0 30rpx;
|
height: 350rpx;
|
||||||
> image {
|
position: absolute;
|
||||||
margin-right: 40rpx;
|
top: 0;
|
||||||
width: 140rpx;
|
left: 0;
|
||||||
height: 140rpx;
|
z-index: 10;
|
||||||
border-radius: 50%;
|
background-color: #999999;
|
||||||
background-color: aqua;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
.info {
|
.main-container {
|
||||||
width: 220rpx;
|
|
||||||
color: rgba(255,255,255,1);
|
|
||||||
.name {
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.num {
|
|
||||||
font-size: 24rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn {
|
|
||||||
margin-left: auto;
|
|
||||||
width: 162rpx;
|
|
||||||
height: 60rpx;
|
|
||||||
border: 2rpx solid rgba(255,255,255,1);
|
|
||||||
border-radius: 30rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
padding: 54rpx 60rpx 0 30rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 19;
|
||||||
|
width: 750rpx;
|
||||||
|
height: 350rpx;
|
||||||
> image {
|
> image {
|
||||||
width: 28rpx;
|
margin-right: 40rpx;
|
||||||
height: 28rpx;
|
width: 140rpx;
|
||||||
flex-shrink: 0;
|
height: 140rpx;
|
||||||
margin-right: 14rpx;
|
border-radius: 50%;
|
||||||
|
// background-color: aqua;
|
||||||
}
|
}
|
||||||
> view {
|
.info {
|
||||||
white-space: nowrap;
|
width: 220rpx;
|
||||||
font-size: 26rpx;
|
|
||||||
color: rgba(255,255,255,1);
|
color: rgba(255,255,255,1);
|
||||||
|
.name {
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.num {
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn {
|
||||||
|
margin-left: auto;
|
||||||
|
width: 162rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
border: 2rpx solid rgba(255,255,255,1);
|
||||||
|
border-radius: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
> image {
|
||||||
|
width: 28rpx;
|
||||||
|
height: 28rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 14rpx;
|
||||||
|
}
|
||||||
|
> view {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: rgba(255,255,255,1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -312,7 +333,7 @@ export default {
|
|||||||
margin-right: 35rpx;
|
margin-right: 35rpx;
|
||||||
}
|
}
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 90rpx;
|
width: 96rpx;
|
||||||
> image {
|
> image {
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="attention">
|
<view class="attention">
|
||||||
<view class="attention_box" v-for="(item,index) in attention" :key="index" @click="navto(item.friend_tomid)">
|
<view class="attention_box" v-for="(item,index) in attention" :key="index" @click="navto(item.friend_tomid)">
|
||||||
<view>
|
<view style="position:relative">
|
||||||
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
|
<image :src="item.friend_tomavatar" mode="aspectFill"></image>
|
||||||
|
<view class="tishi" v-if="item.unread_message"></view>
|
||||||
</view>
|
</view>
|
||||||
<view>{{item.friend_tomname}}</view>
|
<view>{{item.friend_tomname}}</view>
|
||||||
<view>{{item.live_status ? '正在直播' : '未直播'}}</view>
|
<view>{{item.live_status ? '正在直播' : '未直播'}}</view>
|
||||||
<view class="cur_two" @click="tapClick(index)" v-if = "item.about == 1">已关注</view>
|
<view class="cur_two" @click="tapClick(index)">已关注</view>
|
||||||
<view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view>
|
<!-- <view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
<u-loadmore :status="status" icon-type="iconType"/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -19,12 +22,27 @@
|
|||||||
return {
|
return {
|
||||||
rSelect:[],
|
rSelect:[],
|
||||||
type : '未关注',
|
type : '未关注',
|
||||||
attention: []
|
attention: [],
|
||||||
|
page:1,
|
||||||
|
status:'loadmore'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onReachBottom(){
|
||||||
|
if(this.status == 'loading' || this.status == 'nomore'){
|
||||||
|
return ;
|
||||||
|
}else{
|
||||||
|
this.status = "loading"
|
||||||
|
this.page++
|
||||||
|
this.snsfriendList()
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.snsfriendList()
|
this.snsfriendList()
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
this.page = 1;
|
||||||
|
this.snsfriendList();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击切换颜色
|
// 点击切换颜色
|
||||||
tapClick(index) {
|
tapClick(index) {
|
||||||
@@ -37,8 +55,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
snsfriendList(){
|
snsfriendList(){
|
||||||
this.$u.api.snsfriendList({}).then((res)=>{
|
this.$u.api.snsfriendList({page:this.page}).then((res)=>{
|
||||||
this.attention = res.data;
|
console.log(res)
|
||||||
|
if(this.page > 1){
|
||||||
|
this.attention.push(...res.data.data)
|
||||||
|
}else{
|
||||||
|
this.attention = res.data.data;
|
||||||
|
}
|
||||||
|
this.status = "loadmore"
|
||||||
|
if(res.data.data.length < 15){
|
||||||
|
this.status = "nomore"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
navto(id){
|
navto(id){
|
||||||
@@ -58,6 +85,15 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.tishi{
|
||||||
|
position: absolute;
|
||||||
|
top: 5rpx;
|
||||||
|
left: 80rpx;
|
||||||
|
background-color: #ff5d00;
|
||||||
|
width: 12rpx;
|
||||||
|
height: 12rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
.attention {
|
.attention {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
@@ -40,11 +40,12 @@
|
|||||||
padding: 6rpx 10rpx;
|
padding: 6rpx 10rpx;
|
||||||
height: 72rpx;
|
height: 72rpx;
|
||||||
line-height: 72rpx;
|
line-height: 72rpx;
|
||||||
background: #D02129;
|
background: #FF780F;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
border-radius: 14rpx;
|
border-radius: 14rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
.audio-facade-bg{
|
.audio-facade-bg{
|
||||||
background: url("./images/voice.png") no-repeat center;
|
background: url("./images/voice.png") no-repeat center;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 8.0 KiB |
@@ -312,7 +312,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.chatInterface .top{
|
.chatInterface .top{
|
||||||
font-size: 24rpx;
|
font-size: 20rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
.chatInterface .top .description{
|
.chatInterface .top .description{
|
||||||
text-decoration: underline;
|
/* text-decoration: underline; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatInterface .message-item{
|
.chatInterface .message-item{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="item-box" v-for="(item, index) in articleList" :key="index" @click="toDetailsPage(item.article_id)">
|
<view class="item-box" v-for="(item, index) in articleList" :key="index" @click="toDetailsPage(item.article_id)">
|
||||||
<view class="video-item" v-if="item">
|
<view class="video-item" v-if="item">
|
||||||
<image class="head" :src="item.article_pic" mode="scaleToFill" v-if="item.type == 1"></image>
|
<image class="head" :src="item.article_pic" mode="aspectFill" 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"></view>
|
||||||
<image class="head" :src="item.article_pic"></image>
|
<image class="head" :src="item.article_pic"></image>
|
||||||
@@ -219,7 +219,7 @@ export default {
|
|||||||
.backes{
|
.backes{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
background: rgba(0,0,0,0.6);
|
// background: rgba(0,0,0,0.6);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<view class="concerns-container">
|
<view class="concerns-container">
|
||||||
<view v-for="(info, index) in list" :key="index">
|
<view v-for="(info, index) in list" :key="index">
|
||||||
<view class="daren-item">
|
<view class="daren-item">
|
||||||
<image class="head" :src="info.friend_tomavatar" @click="viewDetails(info.friend_tomid)"></image>
|
<image class="head" :src="info.friend_tomavatar" @click="viewDetails({ id: info.friend_tomid, type: info.role })"></image>
|
||||||
<text class="name" @click="viewDetails(info.friend_tomid)">{{ info.friend_tomname || '' }}</text>
|
<text class="name" @click="viewDetails({ id: info.friend_tomid, type: info.role })">{{ info.friend_tomname || '' }}</text>
|
||||||
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
|
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -31,14 +31,15 @@ export default {
|
|||||||
this.$u.api.attentionMemberList().then(res => {
|
this.$u.api.attentionMemberList().then(res => {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.list = res.data;
|
this.list = res.data.data;
|
||||||
} else {
|
} else {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
viewDetails(id) {
|
viewDetails({ id, type }) {
|
||||||
this.$u.route('pageB/details/index', {
|
let src = type == 3 ? 'pageB/details/index' : 'pageC/merchant/index';
|
||||||
|
this.$u.route(src, {
|
||||||
id: id
|
id: id
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,14 +8,15 @@
|
|||||||
<view class="order-rate">
|
<view class="order-rate">
|
||||||
<view class="rate">
|
<view class="rate">
|
||||||
<view class="title">物流评分</view>
|
<view class="title">物流评分</view>
|
||||||
<u-rate :count="5" active-color="#FF780F" inactive-color="#CCCCCC" v-model="logistics" gutter="20" size="32"></u-rate>
|
<u-rate :count="5" min-count="1" active-color="#FF780F" inactive-color="#CCCCCC" v-model="logistics" gutter="20" size="32"></u-rate>
|
||||||
</view>
|
</view>
|
||||||
<view class="rate">
|
<view class="rate">
|
||||||
<view class="title">服务态度</view>
|
<view class="title">服务态度</view>
|
||||||
<u-rate :count="5" v-model="service" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
|
<u-rate :count="5" min-count="1" v-model="service" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="write-btn" @click="submitComment">发表意见</view>
|
<view class="write-btn" @click="submitComment">发表意见</view>
|
||||||
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -26,13 +27,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
orderId: '',
|
orderId: '',
|
||||||
count: 3, // 最大图片数量
|
count: 3, // 最大图片数量
|
||||||
logistics: 0, // 物流服务
|
logistics: 1, // 物流服务
|
||||||
service: 0, // 服务态度
|
service: 1, // 服务态度
|
||||||
describe: [],
|
describe: [],
|
||||||
content: [],
|
content: [],
|
||||||
imageList: [], // 本地图片路径
|
imageList: [], // 本地图片路径
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
uploadImageList: [], // 线上图片名字
|
uploadImageList: [], // 线上图片名字
|
||||||
|
debounce: true, // 防止多次提交
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -76,7 +78,7 @@ export default {
|
|||||||
setModelKey(data) {
|
setModelKey(data) {
|
||||||
data.forEach(() => {
|
data.forEach(() => {
|
||||||
this.content.push('');
|
this.content.push('');
|
||||||
this.describe.push(0);
|
this.describe.push(1);
|
||||||
this.imageList.push([]);
|
this.imageList.push([]);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -123,29 +125,28 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
verifyParams() {
|
verifyParams() {
|
||||||
|
let status = true;
|
||||||
this.goodsList.forEach((_, index) => {
|
this.goodsList.forEach((_, index) => {
|
||||||
if(this.$u.test.isEmpty(this.content[index])) {
|
if(this.$u.test.isEmpty(this.content[index])) {
|
||||||
this.$u.toast('内容不可为空');
|
this.$u.toast('内容不可为空');
|
||||||
return false;
|
status = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return true;
|
return status;
|
||||||
},
|
},
|
||||||
submitComment() {
|
submitComment() {
|
||||||
// console.log(this.content);
|
// console.log(this.content);
|
||||||
// console.log(this.describe);
|
// console.log(this.describe);
|
||||||
// console.log(this.imageList);
|
// console.log(this.imageList);
|
||||||
this.uploadImage();
|
this.uploadImage();
|
||||||
// this.goodsList.forEach((_, index) => {
|
|
||||||
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
addOrderEvaluate() {
|
addOrderEvaluate() {
|
||||||
if(!this.verifyParams()) return false;
|
if(!this.verifyParams()) return false;
|
||||||
|
if(!this.debounce) return false;
|
||||||
let files = [];
|
let files = [];
|
||||||
// console.log(this.uploadImageList);
|
// console.log(this.uploadImageList);
|
||||||
this.uploadImageList.forEach((item, index) => {
|
this.uploadImageList.forEach((item, index) => {
|
||||||
files[index] = '';
|
// files[index] = '';
|
||||||
// console.log(item);
|
// console.log(item);
|
||||||
item.forEach((img, idx) => {
|
item.forEach((img, idx) => {
|
||||||
if(idx < item.length-1) {
|
if(idx < item.length-1) {
|
||||||
@@ -161,11 +162,21 @@ export default {
|
|||||||
scores_one: this.logistics,
|
scores_one: this.logistics,
|
||||||
scores_two: this.service,
|
scores_two: this.service,
|
||||||
scores_three: this.describe,
|
scores_three: this.describe,
|
||||||
file: files,
|
|
||||||
};
|
};
|
||||||
console.log(params);
|
if(files.length) {
|
||||||
|
Object.assign(params, { file: files })
|
||||||
|
}
|
||||||
|
// console.log(params);
|
||||||
this.$u.api.updateOrderEvaluate(params).then(res => {
|
this.$u.api.updateOrderEvaluate(params).then(res => {
|
||||||
this.$u.toast(res.message);
|
if(res.errCode == 0) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.message,
|
||||||
|
back: true,
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$u.toast(res.message);
|
||||||
|
this.debounce = true;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="info-goods">
|
<view class="info-goods">
|
||||||
<view class="goods-store">
|
<view class="goods-store">
|
||||||
<view class="stoer-title">
|
<view class="stoer-title" @click="viewStoreDetails(orderInfo.extend_store.store_id)">
|
||||||
<image :src="orderInfo.extend_store.store_avatar" class="store-image"></image>
|
<image :src="orderInfo.extend_store.store_avatar" class="store-image"></image>
|
||||||
<view class="store-name">{{ orderInfo.extend_store.store_name }}</view>
|
<view class="store-name">{{ orderInfo.extend_store.store_name }}</view>
|
||||||
<image src="../static/mine/21.png" class="right-icon"></image>
|
<image src="../static/mine/21.png" class="right-icon"></image>
|
||||||
</view>
|
</view>
|
||||||
<view v-for="goods in orderInfo.extend_order_goods" :key="goods.goods_id">
|
<view v-for="goods in orderInfo.extend_order_goods" :key="goods.goods_id" @click="viewGoodsDetails(goods.goods_id)">
|
||||||
<view class="store-goods">
|
<view class="store-goods">
|
||||||
<image :src="goods.goods_image"></image>
|
<image :src="goods.goods_image"></image>
|
||||||
<view class="goods-info">
|
<view class="goods-info">
|
||||||
@@ -67,8 +67,10 @@
|
|||||||
<view>创建时间:{{ orderInfo.add_time | date}}</view>
|
<view>创建时间:{{ orderInfo.add_time | date}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" v-if="['1', '2', '4', '6', '8'].indexOf(orderstate) >= 0">
|
<!-- '4', -->
|
||||||
<view class="cancel" v-if="(orderstate == '4' || orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
|
<view class="btn" v-if="['1', '2', '6', '8'].indexOf(orderstate) >= 0">
|
||||||
|
<!-- orderstate == '4' || -->
|
||||||
|
<view class="cancel" v-if="(orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
|
||||||
<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
|
<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
|
||||||
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
|
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
|
||||||
<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
|
<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
|
||||||
@@ -118,11 +120,15 @@ export default {
|
|||||||
text: '拼团中',
|
text: '拼团中',
|
||||||
image: '../static/mine/37.png',
|
image: '../static/mine/37.png',
|
||||||
},
|
},
|
||||||
|
'9': {
|
||||||
|
text: '已取消',
|
||||||
|
image: '../static/mine/33.png',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
orderInfo: {},
|
orderInfo: {},
|
||||||
oid: '',
|
oid: '',
|
||||||
timer: '',
|
timer: '',
|
||||||
countdown: '', // 倒计时
|
countdown: '00:00:00', // 倒计时
|
||||||
isSpike: false, // 倒计时是否结束
|
isSpike: false, // 倒计时是否结束
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -166,11 +172,27 @@ export default {
|
|||||||
case 9:
|
case 9:
|
||||||
state = '8';
|
state = '8';
|
||||||
break;
|
break;
|
||||||
|
case 10:
|
||||||
|
state = '9';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.orderstate = state;
|
this.orderstate = state;
|
||||||
},
|
},
|
||||||
|
viewStoreDetails(id) {
|
||||||
|
this.$u.route('pageC/merchant/index', {
|
||||||
|
id: id
|
||||||
|
});
|
||||||
|
},
|
||||||
|
viewGoodsDetails(id) {
|
||||||
|
this.$u.route({
|
||||||
|
url: 'pageB/sdetails/index',
|
||||||
|
params: {
|
||||||
|
id: id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
setSpikeTime(time) {
|
setSpikeTime(time) {
|
||||||
// console.log(time);
|
// console.log(time);
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
|
|||||||
@@ -38,15 +38,15 @@ export default {
|
|||||||
name: '试穿试送'
|
name: '试穿试送'
|
||||||
},{
|
},{
|
||||||
name: '拼团中'
|
name: '拼团中'
|
||||||
}, {
|
|
||||||
name: '售后'
|
|
||||||
}, {
|
}, {
|
||||||
name: '待评价'
|
name: '待评价'
|
||||||
|
}, {
|
||||||
|
name: '售后'
|
||||||
}],
|
}],
|
||||||
orderList: [],
|
orderList: [],
|
||||||
loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'],
|
loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'],
|
||||||
page: 0,
|
page: 0,
|
||||||
current: Number,
|
current: 0,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
swiperHeight: '',
|
swiperHeight: '',
|
||||||
timer: true,
|
timer: true,
|
||||||
@@ -101,10 +101,10 @@ export default {
|
|||||||
type = 9; // 拼团中
|
type = 9; // 拼团中
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
type = 8; // 售后
|
type = 4; // 待评价
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
type = 4; // 待评价
|
type = 8; // 售后
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
type = -1;
|
type = -1;
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getOrderLogistics(id) {
|
getOrderLogistics(id) {
|
||||||
this.$u.api.orderLogistics({ id: id }).then(res => {
|
this.$u.api.orderLogistics({ id: id }).then(res => {
|
||||||
this.$u.toast(res.message);
|
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.expressInfo = res.data.express_info;
|
this.expressInfo = res.data.express_info;
|
||||||
this.list = res.data.express_list;
|
this.list = res.data.express_list;
|
||||||
} else {
|
} else {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
|
this.$u.toast(res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export default {
|
|||||||
})
|
})
|
||||||
// console.log(goodsList);
|
// console.log(goodsList);
|
||||||
this.goods = goodsList[0];
|
this.goods = goodsList[0];
|
||||||
|
this.num = this.goods.goods_num;
|
||||||
console.log(this.goods);
|
console.log(this.goods);
|
||||||
},
|
},
|
||||||
getOrderInfo(id) {
|
getOrderInfo(id) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="rate">
|
<view class="rate">
|
||||||
<view class="title">描述相符</view>
|
<view class="title">描述相符</view>
|
||||||
<u-rate :count="5" v-model="describe" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
|
<u-rate :count="5" min-count="1" v-model="describe" active-color="#FF780F" inactive-color="#CCCCCC" gutter="20" size="32"></u-rate>
|
||||||
</view>
|
</view>
|
||||||
<u-input v-model="content" type="textarea" height="100" :auto-height="true" placeholder="发表你的评价吧,收货时心情如何?" />
|
<u-input v-model="content" type="textarea" height="100" :auto-height="true" placeholder="发表你的评价吧,收货时心情如何?" />
|
||||||
<u-upload
|
<u-upload
|
||||||
@@ -45,7 +45,7 @@ export default {
|
|||||||
name: 'common', // 其他图片
|
name: 'common', // 其他图片
|
||||||
},
|
},
|
||||||
content: '',
|
content: '',
|
||||||
describe: '',
|
describe: 1,
|
||||||
imageList: [],
|
imageList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
lists.forEach(item => {
|
lists.forEach(item => {
|
||||||
this.imageList.push(item.url);
|
this.imageList.push(item.url);
|
||||||
})
|
})
|
||||||
console.log(this.imageList);
|
// console.log(this.imageList);
|
||||||
this.$emit('setLocalImage', { list: this.imageList, index: this.index });
|
this.$emit('setLocalImage', { list: this.imageList, index: this.index });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,12 +6,16 @@
|
|||||||
<view v-for="(item, index) in historyList.slice(0, 50)" :key="index" class="history-item">
|
<view v-for="(item, index) in historyList.slice(0, 50)" :key="index" class="history-item">
|
||||||
<view class="item-title" @click="viewStoreDetails(item.store_id)">
|
<view class="item-title" @click="viewStoreDetails(item.store_id)">
|
||||||
<image :src="item.store_avatar"></image>
|
<image :src="item.store_avatar"></image>
|
||||||
<view class="u-line-2">{{ item.store_name }}</view>
|
<view class="u-line-1">{{ item.store_name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<image :src="item.goods_image" class="item-image" @click="viewGoodsDetails(item.goods_id)"></image>
|
<image :src="item.goods_image" class="item-image" @click="viewGoodsDetails(item.goods_id)"></image>
|
||||||
<view class="item-info" @click="viewGoodsDetails(item.goods_id)">
|
<view class="item-info" @click="viewGoodsDetails(item.goods_id)">
|
||||||
<view class="info-name u-line-1">{{ item.goods_name }}</view>
|
<view class="info-name u-line-1">{{ item.goods_name }}</view>
|
||||||
|
<u-icon name="trash" color="#666" size="32"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view @click.stop="delArticle(item.article_id)">
|
||||||
|
|
||||||
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<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>
|
||||||
@@ -52,7 +56,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async getBrowseList () {
|
async getBrowseList () {
|
||||||
const res = await this.$u.api.getBrowseList({ page: this.page });
|
const res = await this.$u.api.getBrowseList({ page: this.page });
|
||||||
this.timer = false;
|
this.timer = true;
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.historyList.push(...res.data.storeInfo);
|
this.historyList.push(...res.data.storeInfo);
|
||||||
}
|
}
|
||||||
@@ -60,14 +64,15 @@ export default {
|
|||||||
},
|
},
|
||||||
reachBottom() {
|
reachBottom() {
|
||||||
if(!this.timer) return false;
|
if(!this.timer) return false;
|
||||||
|
this.timer = false;
|
||||||
this.loadStatus = "loading";
|
this.loadStatus = "loading";
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getBrowseList({page: this.page}).then(length => {
|
this.getBrowseList().then(length => {
|
||||||
if(length == 0) {
|
if(length == 0) {
|
||||||
this.page--;
|
this.page--;
|
||||||
this.status = 'nomore';
|
this.loadStatus = 'nomore';
|
||||||
} else {
|
} else {
|
||||||
this.status = 'loading';
|
this.loadStatus = 'loading';
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadStatus = "nomore";
|
this.loadStatus = "nomore";
|
||||||
@@ -125,10 +130,10 @@ export default {
|
|||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
}
|
}
|
||||||
> image {
|
// > image {
|
||||||
width: 37rpx;
|
// width: 37rpx;
|
||||||
height: 8rpx;
|
// height: 8rpx;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<view class="order-status">{{ item.order_status | viewStatus }}</view>
|
<view class="order-status">{{ item.order_status | viewStatus }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-info">
|
<view class="order-info">
|
||||||
<image :src="item.goods_image"></image>
|
<image :src="type == 1 ? item.goods_image : item.images[0]"></image>
|
||||||
<view v-if="item.deliver_goods_type == 2 && item.order_status == 20">
|
<view v-if="item.deliver_goods_type == 2 && item.order_status == 20">
|
||||||
<view>骑手名字:{{ item.takeawayer_name || '' }}</view>
|
<view>骑手名字:{{ item.takeawayer_name || '' }}</view>
|
||||||
<view>联系方式:{{ item.takeawayer_mobile || '' }}</view>
|
<view>联系方式:{{ item.takeawayer_mobile || '' }}</view>
|
||||||
@@ -40,13 +40,9 @@
|
|||||||
<view>商家在正路途中,请耐心等待</view>
|
<view>商家在正路途中,请耐心等待</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="send-btn" v-if="item.order_status == 20 || item.order_status == 50">
|
<view class="send-btn" v-if="item.order_status == 20 || (item.order_status == 50&& !item.comment)">
|
||||||
<view class="btn" v-if="item.order_status == 20" @click="sendLaundryOrderConfirm(item.laundry_id)">
|
<view class="btn" v-if="item.order_status == 20" @click="sendLaundryOrderConfirm(item.laundry_id)">确认完成</view>
|
||||||
确认完成
|
<view class="btn" v-if="item.order_status == 50 && !item.comment" @click="toComment(item.laundry_id)">去评价</view>
|
||||||
</view>
|
|
||||||
<view class="btn" v-if="item.order_status == 50 && !item.comment" @click="toComment(item.laundry_id)">
|
|
||||||
去评价
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
@@ -87,6 +83,7 @@ export default {
|
|||||||
timer: true,
|
timer: true,
|
||||||
commentList: [],
|
commentList: [],
|
||||||
swiperHeight: '',
|
swiperHeight: '',
|
||||||
|
type: 1, // 1 平台 2 实体店
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -139,9 +136,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async sendLaundryOrderList({ load = 'reload' } = {}) {
|
async sendLaundryOrderList({ load = 'reload' } = {}) {
|
||||||
let type = this.list[0].name == '平台历史订单' ? 1 : 2;
|
// let type = this.list[0].name == '平台历史订单' ? 1 : 2;
|
||||||
const res = await this.$u.api.sendLaundryOrderList({
|
const res = await this.$u.api.sendLaundryOrderList({
|
||||||
type: type,
|
type: this.type,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
})
|
})
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
@@ -214,8 +211,10 @@ export default {
|
|||||||
},
|
},
|
||||||
replaces(e){
|
replaces(e){
|
||||||
if(e == 1){
|
if(e == 1){
|
||||||
|
this.type = 2;
|
||||||
this.$set(this.list,0,{name: '实体店历史订单'} )
|
this.$set(this.list,0,{name: '实体店历史订单'} )
|
||||||
} else {
|
} else {
|
||||||
|
this.type = 1;
|
||||||
this.$set(this.list,0,{name: '平台历史订单'} )
|
this.$set(this.list,0,{name: '平台历史订单'} )
|
||||||
}
|
}
|
||||||
this.sendLaundryOrderList();
|
this.sendLaundryOrderList();
|
||||||
@@ -322,17 +321,21 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
.btn{
|
.btn {
|
||||||
|
box-sizing: border-box;
|
||||||
width: 154rpx;
|
width: 154rpx;
|
||||||
height: 54rpx;
|
height: 54rpx;
|
||||||
border-radius: 49rpx;
|
border-radius: 49rpx;
|
||||||
transform: translate(-50%, 0);
|
// transform: translate(-50%, 0);
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
border: 1rpx solid rgba(255,120,15,1);
|
border: 1rpx solid rgba(255,120,15,1);
|
||||||
color:rgba(255,120,15,1);
|
color:rgba(255,120,15,1);
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
line-height: 54rpx;
|
// line-height: 54rpx;
|
||||||
margin-right: -80rpx;
|
// margin-right: -80rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
25
pages.json
@@ -57,8 +57,7 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
"titleNView": false,
|
"titleNView": false
|
||||||
"animationType": "slide-in-bottom"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -105,7 +104,10 @@
|
|||||||
{
|
{
|
||||||
"path" : "video/video",
|
"path" : "video/video",
|
||||||
"style" : {
|
"style" : {
|
||||||
"navigationStyle":"custom"
|
"navigationStyle":"custom",
|
||||||
|
"app-plus": {
|
||||||
|
"softinputMode": "adjustResize"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -178,7 +180,7 @@
|
|||||||
"searchInput": {
|
"searchInput": {
|
||||||
"align": "left",
|
"align": "left",
|
||||||
"borderRadius": "15px",
|
"borderRadius": "15px",
|
||||||
"placeholder": "搜索您需要的商品",
|
"placeholder": "请输入搜索内容",
|
||||||
"backgroundColor": "rgb(236,236,236)",
|
"backgroundColor": "rgb(236,236,236)",
|
||||||
"placeholderColor": "#999999",
|
"placeholderColor": "#999999",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
@@ -198,7 +200,7 @@
|
|||||||
"searchInput": {
|
"searchInput": {
|
||||||
"align": "left",
|
"align": "left",
|
||||||
"borderRadius": "15px",
|
"borderRadius": "15px",
|
||||||
"placeholder": "搜索您需要的商品",
|
"placeholder": "请输入搜索内容",
|
||||||
"backgroundColor": "rgb(236,236,236)",
|
"backgroundColor": "rgb(236,236,236)",
|
||||||
"placeholderColor": "#999999",
|
"placeholderColor": "#999999",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
@@ -238,6 +240,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "coupon/index",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"app-plus": {
|
||||||
|
"animationType": "fade-in",
|
||||||
|
"background": "transparent",
|
||||||
|
"backgroundColor": "rgba(0,0,0.5)",
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "coupon/details",
|
"path": "coupon/details",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -836,6 +850,7 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "勋章介绍",
|
"navigationBarTitleText": "勋章介绍",
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
|
"type": "transparent",
|
||||||
"titleSize": "36px",
|
"titleSize": "36px",
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"backgroundColor": "rgba(255,255,255,0)",
|
"backgroundColor": "rgba(255,255,255,0)",
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="sosuo"></view>
|
<view class="sosuo"></view>
|
||||||
</view>
|
</view>
|
||||||
<swiper class="card" @change="dianji" :current="num">
|
<swiper class="card" @change="dianji" :current="num" @touchmove.stop.prevent="moveHandle">
|
||||||
<swiper-item>
|
<swiper-item>
|
||||||
<scroll-view style="width:100%;height:100%" scroll-y="true" lower-threshold="200" @scrolltolower="swiperBottom">
|
<scroll-view style="width:100%;height:100%" scroll-y="true" lower-threshold="200" upper-threshold="100" @scrolltolower="swiperBottom" @scrolltoupper="swiperTop">
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<!-- <indexad style="width:690rpx"></indexad> -->
|
<!-- <indexad style="width:690rpx"></indexad> -->
|
||||||
<u-swiper mode="dot" :list="indexImageSwiper" name="adv_code" @click="clickFImage"></u-swiper>
|
<u-swiper mode="dot" :list="indexImageSwiper" name="adv_code" @click="clickFImage"></u-swiper>
|
||||||
@@ -41,17 +41,18 @@
|
|||||||
<swiper-item>
|
<swiper-item>
|
||||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code" @click="clickSImage($event, 2)"></u-swiper>
|
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code" @scrolltolower="swiperBottom" @click="clickSImage($event, 2)"></u-swiper>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view>
|
<view>
|
||||||
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
|
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
|
||||||
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
|
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-left:20rpx">
|
<view style="margin-left:20rpx">
|
||||||
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
|
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
|
||||||
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
|
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-loadmore 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>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
@@ -79,7 +80,7 @@
|
|||||||
<videoItem isguanzhu="true" v-for="(item,id) in fansList" :key="id" :item="item"></videoItem>
|
<videoItem isguanzhu="true" v-for="(item,id) in fansList" :key="id" :item="item"></videoItem>
|
||||||
</view>
|
</view>
|
||||||
<view class="no-data" v-if="!fansList.length">您还没有关注哦,赶紧去点点关注!</view>
|
<view class="no-data" v-if="!fansList.length">您还没有关注哦,赶紧去点点关注!</view>
|
||||||
<u-loadmore class="load-size" v-else :status="status_1" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
|
<u-loadmore class="load-size" v-else :status="status_1" icon-type="iconType" margin-top="50" :load-text="loadText" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -87,28 +88,23 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="showCoupon" mode="center" class="u-coupon-popup">
|
|
||||||
<view class="coupon">
|
|
||||||
<view class="price">{{ newMemberCoupon.price }}</view>
|
|
||||||
<image src="/static/image/common/30.png" class="coupon-image" @click="viewCoupon"></image>
|
|
||||||
<image src="/static/image/common/24.png" class="close-image" @click="showCoupon=false"></image>
|
|
||||||
</view>
|
|
||||||
</u-popup>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
page {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
.index {
|
.index {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
|
||||||
/* #ifdef APP-PLUS */
|
|
||||||
padding-bottom: 100rpx;
|
|
||||||
/* #endif */
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
|
z-index: 10000;
|
||||||
|
position: fixed;
|
||||||
|
top: var(--status-bar-height);
|
||||||
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -116,6 +112,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
.sosuo {
|
.sosuo {
|
||||||
width: 32rpx;
|
width: 32rpx;
|
||||||
@@ -133,27 +130,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// pointer-events: none;
|
height: calc(100vh - 150rpx);
|
||||||
|
margin-top: 100rpx;
|
||||||
|
// padding-top: 100rpx;
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx 0;
|
||||||
|
// margin-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
// height: 100vh;
|
||||||
|
// padding-bottom: 100rpx;
|
||||||
|
// margin-bottom: 50rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tuijian {
|
.tuijian {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
padding: 30rpx;
|
||||||
margin-left: -30rpx;
|
margin-left: -30rpx;
|
||||||
height: 400rpx;
|
height: 400rpx;
|
||||||
background-color: #ececec;
|
background-color: #ececec;
|
||||||
padding: 30rpx;
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -211,41 +213,6 @@
|
|||||||
margin: 200rpx auto 0;
|
margin: 200rpx auto 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.u-coupon-popup {
|
|
||||||
/deep/ .u-mode-center-box {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
.coupon {
|
|
||||||
width: 750rpx;
|
|
||||||
height: 583rpx;
|
|
||||||
position: relative;
|
|
||||||
.price {
|
|
||||||
z-index: 3;
|
|
||||||
color: #EBB36E;
|
|
||||||
position: absolute;
|
|
||||||
font-size: 108rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
top: 200rpx;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-68%, 0);
|
|
||||||
}
|
|
||||||
.coupon-image {
|
|
||||||
width: 568rpx;
|
|
||||||
height: 583rpx;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-60%, 0);
|
|
||||||
}
|
|
||||||
.close-image {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 155rpx;
|
|
||||||
width: 60rpx;
|
|
||||||
height: 60rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -271,7 +238,7 @@
|
|||||||
name: '关注'
|
name: '关注'
|
||||||
}],
|
}],
|
||||||
num: 0,
|
num: 0,
|
||||||
page: 0, // 0即第一页
|
page: 1, // 0即第一页
|
||||||
follow_page: 0, //
|
follow_page: 0, //
|
||||||
articleList: [],
|
articleList: [],
|
||||||
recommendList: [], // 推荐达人
|
recommendList: [], // 推荐达人
|
||||||
@@ -287,8 +254,6 @@
|
|||||||
loading: '努力加载中',
|
loading: '努力加载中',
|
||||||
nomore: '实在没有了'
|
nomore: '实在没有了'
|
||||||
},
|
},
|
||||||
showCoupon: false,
|
|
||||||
newMemberCoupon: {},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -298,39 +263,66 @@
|
|||||||
darenItem
|
darenItem
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.articleList = [];
|
this.page = 1;
|
||||||
this.page = 0;
|
if (this.page != 1) {
|
||||||
this.getArticlelist();
|
this.articleList = [];
|
||||||
this.getSwiper();
|
}
|
||||||
|
this.getArticlelist();
|
||||||
|
// if (this.hasLogin) {
|
||||||
|
// this.isNewmembervoucher();
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
|
this.getSwiper();
|
||||||
|
// 优惠券
|
||||||
if(this.$store.state.hasLogin){
|
if(this.$store.state.hasLogin){
|
||||||
this.isNewmembervoucher();
|
this.isNewmembervoucher();
|
||||||
const user = uni.getStorageSync('user_info');
|
const user = uni.getStorageSync('user_info');
|
||||||
console.log(user)
|
// console.log(user)
|
||||||
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
|
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
|
||||||
this.imService.connectIM()
|
this.imService.connectIM()
|
||||||
let that = this
|
let that = this
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
that.imService.disconnect()
|
that.imService.disconnect()
|
||||||
console.log("guanbi")
|
// console.log("guanbi")
|
||||||
},1000)
|
},1000)
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
console.log("lianjie")
|
// console.log("lianjie")
|
||||||
that.imService.connectIM()
|
that.imService.connectIM()
|
||||||
},2000)
|
},2000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
// this.getManicureList({ load: 'reload' });
|
// this.getManicureList({ load: 'reload' });
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
moveHandle() {
|
||||||
|
return;
|
||||||
|
},
|
||||||
// 直播列表
|
// 直播列表
|
||||||
tabLiveList() {
|
tabLiveList() {
|
||||||
this.$u.api.tabLiveList().then((res) => {
|
this.$u.api.tabLiveList({page:this.page}).then((res) => {
|
||||||
console.log(res)
|
// uni.stopPullDownRefresh();
|
||||||
this.tabLiveLists = res.data;
|
this.status = "loading";
|
||||||
|
if (res.errCode == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (this.page == 1) {
|
||||||
|
this.tabLiveLists = res.data.data;
|
||||||
|
this.status = "loadmore";
|
||||||
|
} else if (res.data.length == 0 && this.page > 1) {
|
||||||
|
this.status = "nomore";
|
||||||
|
} else {
|
||||||
|
this.tabLiveLists = this.tabLiveLists.push(...res.data.data);
|
||||||
|
}
|
||||||
|
if (res.data.length == 0 && this.page > 1) {
|
||||||
|
} else {
|
||||||
|
this.page++;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.status = "nomore"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 轮播图
|
// 轮播图
|
||||||
@@ -343,7 +335,7 @@
|
|||||||
},
|
},
|
||||||
// 关注
|
// 关注
|
||||||
changeType(member_id) {
|
changeType(member_id) {
|
||||||
console.log(member_id);
|
// console.log(member_id);
|
||||||
// this.$emit("pChangeType");
|
// this.$emit("pChangeType");
|
||||||
this.$u.api.attentionMember({
|
this.$u.api.attentionMember({
|
||||||
member_id: member_id
|
member_id: member_id
|
||||||
@@ -372,11 +364,13 @@
|
|||||||
// 状态请求
|
// 状态请求
|
||||||
if (a.type == "change") { // 强制请求一次
|
if (a.type == "change") { // 强制请求一次
|
||||||
if (this.num == 0) {
|
if (this.num == 0) {
|
||||||
this.page = 0;
|
this.page = 1;
|
||||||
|
this.articleList = [];
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
this.getSwiper();
|
this.getSwiper();
|
||||||
} else if (this.num == 1) {
|
} else if (this.num == 1) {
|
||||||
|
this.page = 1;
|
||||||
this.getZhiBoSwiper(); // 直播轮播
|
this.getZhiBoSwiper(); // 直播轮播
|
||||||
this.tabLiveList();
|
this.tabLiveList();
|
||||||
} else if (this.num == 2) {
|
} else if (this.num == 2) {
|
||||||
@@ -391,23 +385,29 @@
|
|||||||
},
|
},
|
||||||
// 发现别表
|
// 发现别表
|
||||||
getArticlelist() {
|
getArticlelist() {
|
||||||
|
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
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
// uni.stopPullDownRefresh();
|
||||||
this.status = "loading";
|
this.status = "loading";
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
// uni.stopPullDownRefresh();
|
uni.hideLoading();
|
||||||
// console.log('37647744ghj', res)
|
if (this.page == 1) {
|
||||||
if (this.page == 0) {
|
|
||||||
this.articleList = res.data.list;
|
this.articleList = res.data.list;
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
} else if (res.data.length == 0 && this.page > 0) {
|
} else if (res.data.length == 0 && this.page > 1) {
|
||||||
this.status = "nomore";
|
this.status = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.articleList = this.articleList.concat(res.data.list);
|
this.articleList = this.articleList.concat(res.data.list);
|
||||||
}
|
}
|
||||||
this.page++;
|
if (res.data.length == 0 && this.page > 1) {
|
||||||
|
} else {
|
||||||
|
this.page++;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.status = "nomore"
|
this.status = "nomore"
|
||||||
}
|
}
|
||||||
@@ -415,15 +415,24 @@
|
|||||||
},
|
},
|
||||||
// 屏蔽更新列表
|
// 屏蔽更新列表
|
||||||
updateList() {
|
updateList() {
|
||||||
console.log(111);
|
this.page = 1;
|
||||||
this.page = 0;
|
this.getArticlelist();
|
||||||
this.getArticlelist();
|
this.tabLiveList()
|
||||||
},
|
},
|
||||||
// 发现下拉加载
|
// 发现下拉加载
|
||||||
swiperBottom(e) {
|
swiperBottom(e) {
|
||||||
this.getArticlelist();
|
if(this.num == 0 ){
|
||||||
|
this.getArticlelist();
|
||||||
|
|
||||||
|
}else if(this.num == 1){
|
||||||
|
this.tabLiveList()
|
||||||
|
}
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
},
|
},
|
||||||
|
swiperTop() {
|
||||||
|
// uni.startPullDownRefresh();
|
||||||
|
},
|
||||||
|
// 关注下拉
|
||||||
followBotton(e) {
|
followBotton(e) {
|
||||||
this.getFollowList();
|
this.getFollowList();
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
@@ -507,24 +516,17 @@
|
|||||||
goSearch() {
|
goSearch() {
|
||||||
this.$u.route("/pageB/search/index", {
|
this.$u.route("/pageB/search/index", {
|
||||||
type: 2,
|
type: 2,
|
||||||
|
curent:2
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 是否显示新人优惠券
|
// 是否显示新人优惠券
|
||||||
isNewmembervoucher() {
|
isNewmembervoucher() {
|
||||||
this.$u.api.isNewmembervoucher().then(res => {
|
this.$u.api.isNewmembervoucher().then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.newMemberCoupon = res.data;
|
this.$u.route('/pageB/coupon/index');
|
||||||
this.showCoupon = true;
|
|
||||||
} else {
|
|
||||||
this.showCoupon = false;
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
viewCoupon() {
|
|
||||||
this.$u.route('/pageB/coupon/details', {
|
|
||||||
price: this.newMemberCoupon.price
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<view class="title-text">我的订单</view>
|
<view class="title-text">我的订单</view>
|
||||||
<view class="more" @click="toOtherPage('/order/Index')">
|
<view class="more" @click="toOtherPage('/order/Index')">
|
||||||
<view class="title-text-more">查看全部订单</view>
|
<view class="title-text-more">查看全部订单</view>
|
||||||
<image src="/static/image/mine/21.png"></image>
|
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@@ -71,11 +71,11 @@
|
|||||||
<image src="/static/image/mine/37.png"></image>
|
<image src="/static/image/mine/37.png"></image>
|
||||||
<view>拼团中</view>
|
<view>拼团中</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toOtherPage('/order/Index?current=7')">
|
<view @click="toOtherPage('/order/Index?current=6')">
|
||||||
<image src="/static/image/mine/3.png"></image>
|
<image src="/static/image/mine/3.png"></image>
|
||||||
<view>待评价</view>
|
<view>待评价</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toOtherPage('/order/Index?current=6')">
|
<view @click="toOtherPage('/order/Index?current=7')">
|
||||||
<image src="/static/image/mine/9.png"></image>
|
<image src="/static/image/mine/9.png"></image>
|
||||||
<view>售后</view>
|
<view>售后</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -180,7 +180,7 @@ export default {
|
|||||||
.mine-top {
|
.mine-top {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
height: 272rpx;
|
height: 272rpx;
|
||||||
background: #FF780F;
|
background-color: #FF7807;
|
||||||
.top {
|
.top {
|
||||||
padding: 40rpx 0 0 30rpx;
|
padding: 40rpx 0 0 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -242,13 +242,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
.bottom {
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 0 30rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
// justify-content: space-between;
|
justify-content: space-around;
|
||||||
justify-content: flex-start;
|
padding: 0 10rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
> view {
|
> view {
|
||||||
margin-right: 80rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -268,35 +266,35 @@ export default {
|
|||||||
}
|
}
|
||||||
@mixin common-mine($content-padding-top, $content-padding-bottom, $image-width, $image-height) {
|
@mixin common-mine($content-padding-top, $content-padding-bottom, $image-width, $image-height) {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 690rpx;
|
width: 750rpx;
|
||||||
background: rgba(255,255,255,1);
|
background: rgba(255,255,255,1);
|
||||||
border-radius: 10rpx;
|
// border-radius: 10rpx;
|
||||||
margin: 30rpx auto 0;
|
margin: 20rpx auto 0;
|
||||||
padding: 0 20rpx;
|
|
||||||
.title {
|
.title {
|
||||||
height: 76rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #666;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
&::after {
|
height: 76rpx;
|
||||||
content: "";
|
padding: 0 20rpx;
|
||||||
position: absolute;
|
font-size: 28rpx;
|
||||||
width: 650rpx;
|
color: #666;
|
||||||
height: 1rpx;
|
border-bottom: 1px solid #ececec;
|
||||||
background: rgba(234,234,234,1);
|
// &::after {
|
||||||
bottom: 0;
|
// content: "";
|
||||||
left: 50%;
|
// position: absolute;
|
||||||
transform: translate(-50%,0);
|
// width: 650rpx;
|
||||||
}
|
// height: 1rpx;
|
||||||
|
// background: rgba(234,234,234,1);
|
||||||
|
// bottom: 0;
|
||||||
|
// left: 50%;
|
||||||
|
// transform: translate(-50%,0);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
.title-text-more {
|
.title-text-more {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: $content-padding-top 0 $content-padding-bottom;
|
padding: $content-padding-top 20rpx $content-padding-bottom;
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<image src="../../static/danmu.png" class="danmubianji"></image>
|
<image src="../../static/danmu.png" class="danmubianji"></image>
|
||||||
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{ $store.state.hasLogin ? '想说点什么' : '请先登录'}}</text>
|
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{ $store.state.hasLogin ? '想说点什么' : '请先登录'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<image class="liketap" src="../../static/like.png" @click="">
|
<!-- <image class="liketap" src="../../static/like.png" @click=""> -->
|
||||||
|
|
||||||
<view class="danmuinputbox" v-if="danmu">
|
<view class="danmuinputbox" v-if="danmu">
|
||||||
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" v-model="danmutext">
|
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" v-model="danmutext">
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
.shopimg{
|
.shopimg{
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
background-color: #0f0;
|
// background-color: #0f0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -158,7 +158,9 @@
|
|||||||
height: 46rpx;
|
height: 46rpx;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 36rpx;
|
bottom: 36rpx;
|
||||||
right: 154rpx;
|
// right: 154rpx;
|
||||||
|
right: 54rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
.hottext{
|
.hottext{
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
@@ -275,7 +277,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 308rpx;
|
width: 308rpx;
|
||||||
height: 58rpx;
|
height: 58rpx;
|
||||||
background-color: #0f0;
|
background-color: #000;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
border-radius: 29rpx;
|
border-radius: 29rpx;
|
||||||
}
|
}
|
||||||
@@ -391,7 +393,7 @@ export default {
|
|||||||
that.$forceUpdate();
|
that.$forceUpdate();
|
||||||
console.log(that.room)
|
console.log(that.room)
|
||||||
|
|
||||||
},60 * 1000)
|
},10 * 1000)
|
||||||
uni.request({
|
uni.request({
|
||||||
url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo",
|
url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo",
|
||||||
data:{
|
data:{
|
||||||
@@ -460,7 +462,8 @@ export default {
|
|||||||
content : content
|
content : content
|
||||||
}
|
}
|
||||||
this.chatRoomService.sendMessages(this.room.id, message);
|
this.chatRoomService.sendMessages(this.room.id, message);
|
||||||
this.danmutext = ""
|
this.danmutext = ""
|
||||||
|
this.danmu = false
|
||||||
},
|
},
|
||||||
whenNewMessage (message) {//新消息监听
|
whenNewMessage (message) {//新消息监听
|
||||||
// if(message.type == this.room.MessageType.PROP){
|
// if(message.type == this.room.MessageType.PROP){
|
||||||
@@ -507,7 +510,11 @@ export default {
|
|||||||
},
|
},
|
||||||
success(res){
|
success(res){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.info = res.data.data
|
that.info = res.data.data;
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.message,
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
// that.list= res.data.data
|
// that.list= res.data.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
BIN
static/image/shop/14.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
static/image/userinfo/follow.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
static/image/userinfo/followed.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |