Compare commits
42 Commits
zmr
...
52e6489a2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
52e6489a2c
|
|||
|
92771d8174
|
|||
|
60a619fa7b
|
|||
| 6f344dc550 | |||
|
03c6779b96
|
|||
| 8518677f05 | |||
|
|
e0aafebcdc | ||
| e43003e0cd | |||
| 7f30cf8020 | |||
| 62d610b025 | |||
| 5806077877 | |||
| 50fb33d8e4 | |||
| 164dff3db5 | |||
| 5b287c7049 | |||
| fc44bb5fd6 | |||
| ecea27ccff | |||
| 3d2e0a9525 | |||
| 4b0cbcf814 | |||
|
|
ecb5f19fc0 | ||
| f54b94f0c6 | |||
| abda1f39f5 | |||
| 9e6c36b65a | |||
|
|
71fb73b61a | ||
|
|
83b06e2ab5 | ||
| b575501bb7 | |||
| d69486d1ab | |||
| d3c68b8c93 | |||
| 40e4d10bd7 | |||
| 7790481afb | |||
|
|
7c0720fab2 | ||
| 1f966b261e | |||
| 421112db2e | |||
| 920976dedd | |||
| 91a655e224 | |||
| 4e3665acc7 | |||
|
|
1643bf51b2 | ||
| d234176f22 | |||
|
b75e885e70
|
|||
| 9eaf84d496 | |||
| dbbd64269f | |||
|
677890a06d
|
|||
| dd3d3c17c4 |
@@ -251,8 +251,8 @@ export default {
|
|||||||
// return vm.$u.post('order/afterSaleList', { page: page });
|
// return vm.$u.post('order/afterSaleList', { page: page });
|
||||||
// },
|
// },
|
||||||
// 试穿列表
|
// 试穿列表
|
||||||
goodsTryOrderList() {
|
goodsTryOrderList({ page }) {
|
||||||
return vm.$u.post('order/goodsTryOrderList');
|
return vm.$u.post('order/goodsTryOrderList', { page });
|
||||||
},
|
},
|
||||||
// 试穿订单确认完成
|
// 试穿订单确认完成
|
||||||
goodsTryConfirm({ id }) {
|
goodsTryConfirm({ id }) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
|
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
|
||||||
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
|
<image class="head" :src="item.article_pic" v-if="item.type == 1"></image>
|
||||||
<view class="header_fist" v-else>
|
<view class="header_fist" v-else>
|
||||||
<view class="backes">
|
<view class="backes">
|
||||||
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
|
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
|
||||||
@@ -64,6 +64,7 @@
|
|||||||
display:-webkit-box;
|
display:-webkit-box;
|
||||||
-webkit-box-orient:vertical;
|
-webkit-box-orient:vertical;
|
||||||
-webkit-line-clamp:2;
|
-webkit-line-clamp:2;
|
||||||
|
height: 80rpx;
|
||||||
}
|
}
|
||||||
.jianjie{
|
.jianjie{
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="c-coupon" v-if="goodsClass.length">
|
<view class="c-coupon" v-if="goodsClass.length" @click="use">
|
||||||
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'">
|
<view :class="couponInfo.voucher_state != 1 ? 'coupon-unable' : 'coupon-usable'" :style="{'width': type ? '650rpx' : '' }">
|
||||||
<view class="info-type" :style="{ backgroundImage: 'url(' + (couponInfo.voucher_state == 1 ? '/static/image/mine/30.png' : '/static/image/mine/31.png') + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
|
<view class="info-type" :style="{ backgroundImage: 'url(' + (couponInfo.voucher_state == 1 ? '/static/image/mine/30.png' : '/static/image/mine/31.png') + ')', backgroundSize:'contain', backgroundRepeat: 'no-repeat' }">
|
||||||
<div class="wrap_left_top"></div>
|
<div class="wrap_left_top"></div>
|
||||||
{{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
|
{{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
|
||||||
@@ -14,12 +14,13 @@
|
|||||||
<view class="info-integral">兑换积分:{{ couponInfo.voucher_points }}积分</view>
|
<view class="info-integral">兑换积分:{{ couponInfo.voucher_points }}积分</view>
|
||||||
<view class="info-date">有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}</view>
|
<view class="info-date">有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-btn">
|
<view class="coupon-btn" :style="{'right': type ? '110rpx' : '' }">
|
||||||
<text v-if="couponInfo.voucher_state == 1" @click="use">立即使用</text>
|
<text v-if="couponInfo.voucher_state == 1">立即使用</text>
|
||||||
<image v-if="couponInfo.voucher_state == 2" src="/static/image/mine/28.png"></image>
|
<image v-if="couponInfo.voucher_state == 2" src="/static/image/mine/28.png"></image>
|
||||||
<image v-if="couponInfo.voucher_state == 3" src="/static/image/mine/29.png"></image>
|
<image v-if="couponInfo.voucher_state == 3" src="/static/image/mine/29.png"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<image v-if="type" style="width:35rpx;height:35rpx;margin-left:14rpx;" :src="'/static/image/mine/' + (sel ? '41.png' : '42.png') "></image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -37,6 +38,8 @@ export default {
|
|||||||
status: Number,
|
status: Number,
|
||||||
couponInfo: Object,
|
couponInfo: Object,
|
||||||
goodsClass: Array,
|
goodsClass: Array,
|
||||||
|
type:Boolean,
|
||||||
|
sel:Boolean
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// console.log(this.goodsClass);
|
// console.log(this.goodsClass);
|
||||||
@@ -53,6 +56,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
use() {
|
use() {
|
||||||
|
if(this.couponInfo.voucher_state != 1) return;
|
||||||
this.$emit('use', this.couponInfo);
|
this.$emit('use', this.couponInfo);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -63,6 +67,8 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
@mixin coupon-image($url) {
|
@mixin coupon-image($url) {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 194rpx;
|
height: 194rpx;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.price{
|
.price{
|
||||||
display: flex;
|
display: flex;
|
||||||
// align-items: center;
|
align-items: center;
|
||||||
// align-content: flex-end;
|
// align-content: flex-end;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
|
|||||||
@@ -112,22 +112,22 @@
|
|||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
"hdpi" : "static/app/icon/72x72.png",
|
"hdpi" : "E:/Source-code/appleidmore/安卓png/72x72psd.PNG",
|
||||||
"xhdpi" : "static/app/icon/96x96.png",
|
"xhdpi" : "E:/Source-code/appleidmore/安卓png/96x96psd.PNG",
|
||||||
"xxhdpi" : "static/app/icon/144x144.png",
|
"xxhdpi" : "E:/Source-code/appleidmore/安卓png/144x144.PNG",
|
||||||
"xxxhdpi" : "static/app/icon/192x192.png"
|
"xxxhdpi" : "E:/Source-code/appleidmore/安卓png/192x192.PNG"
|
||||||
},
|
},
|
||||||
"ios" : {
|
"ios" : {
|
||||||
"appstore" : "unpackage/res/icons/1024x1024.png",
|
"appstore" : "E:/Source-code/appleidmore/苹果png/appstore 1024X1024.PNG",
|
||||||
"iphone" : {
|
"iphone" : {
|
||||||
"app@2x" : "unpackage/res/icons/120x120.png",
|
"app@2x" : "E:/Source-code/appleidmore/苹果png/120x120.PNG",
|
||||||
"app@3x" : "unpackage/res/icons/180x180.png",
|
"app@3x" : "E:/Source-code/appleidmore/苹果png/180x180.PNG",
|
||||||
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
"spotlight@2x" : "E:/Source-code/appleidmore/苹果png/80x80.PNG",
|
||||||
"spotlight@3x" : "unpackage/res/icons/120x120.png",
|
"spotlight@3x" : "E:/Source-code/appleidmore/苹果png/120x120.PNG",
|
||||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
"settings@2x" : "E:/Source-code/appleidmore/苹果png/58x58psd.PNG",
|
||||||
"settings@3x" : "unpackage/res/icons/87x87.png",
|
"settings@3x" : "E:/Source-code/appleidmore/苹果png/87X87.PNG",
|
||||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
"notification@2x" : "E:/Source-code/appleidmore/苹果png/40X40.PNG",
|
||||||
"notification@3x" : "unpackage/res/icons/60x60.png"
|
"notification@3x" : "E:/Source-code/appleidmore/苹果png/60X60.PNG"
|
||||||
},
|
},
|
||||||
"ipad" : {
|
"ipad" : {
|
||||||
"app" : "unpackage/res/icons/76x76.png",
|
"app" : "unpackage/res/icons/76x76.png",
|
||||||
|
|||||||
@@ -31,12 +31,16 @@
|
|||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
background-color: #ececec;
|
background-color: #ececec;
|
||||||
color: #999;
|
color: #999;
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
line-height: 60rpx;
|
// line-height: 60rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
margin-right: 26rpx;
|
margin-right: 26rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
border: #ececec 1rpx solid;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.xuanzhong{
|
.xuanzhong{
|
||||||
border: #ff780f 1rpx solid;
|
border: #ff780f 1rpx solid;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 80rpx;
|
top: 80rpx;
|
||||||
left: 30rpx;
|
left: 34rpx;
|
||||||
width: 50rpx;
|
width: 50rpx;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,6 @@
|
|||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0px 0px 4rpx #999999;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.operat-img {
|
.operat-img {
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
<!-- 用户操作 -->
|
<!-- 用户操作 -->
|
||||||
<userinfo class="userinfo" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num" @openCart="openPopup"></userinfo>
|
<userinfo class="userinfo" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num" @openCart="openPopup"></userinfo>
|
||||||
<!-- 评论 -->
|
<!-- 评论 -->
|
||||||
<u-popup v-model="is_comment" class="pl" mode="bottom" border-radius="10" height="700rpx">
|
<u-popup v-model="is_comment" class="pl" mode="bottom" border-radius="10" @touchmove.stop.prevent="moveHandle">
|
||||||
<view class="top">
|
<view class="comment-top">
|
||||||
<text>评论</text>
|
<text>评论</text>
|
||||||
<u-icon name="close" color="#333" size="28" @click="is_comment=false"></u-icon>
|
<u-icon name="close" color="#333" size="28" @click="is_comment=false"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
@@ -52,7 +52,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="child_content">{{ child.content }}</view>
|
<view class="child_content">{{ child.content }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="more-reply" v-if="item.reply_count" @click="getReplyList(item.id)">展开更多回复<u-icon name="arrow-down"></u-icon></view>
|
<view class="more-reply" v-if="item.reply_count" @click="getReplyList(item.id)">
|
||||||
|
{{ child_end[item.id] ? "暂无更多回复" : "展开更多回复" }}
|
||||||
|
<u-icon name="arrow-down" v-if="!child_end[item.id]"></u-icon>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<view class="no-data" v-if="!commentList.length">还没有评论,快来评论吧!</view>
|
<view class="no-data" v-if="!commentList.length">还没有评论,快来评论吧!</view>
|
||||||
@@ -80,7 +83,8 @@
|
|||||||
<view v-for="(item,index) in list.goods" :key="index" class="item" @click="gotoInfo(item.goods_id)">
|
<view v-for="(item,index) in list.goods" :key="index" class="item" @click="gotoInfo(item.goods_id)">
|
||||||
<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="cart-title u-line-1">{{ item.goods_advword }}</text>
|
||||||
|
<text class="cart-info u-line-2">{{ item.goods_name }}</text>
|
||||||
<text class="price">{{ item.goods_promotion_price }}</text>
|
<text class="price">{{ item.goods_promotion_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -179,10 +183,11 @@
|
|||||||
transform: translateY(-285rpx);
|
transform: translateY(-285rpx);
|
||||||
}
|
}
|
||||||
.pl {
|
.pl {
|
||||||
.top {
|
.comment-top {
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -200,7 +205,7 @@
|
|||||||
.scroll-box {
|
.scroll-box {
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
margin: 88rpx 0 100rpx 0;
|
margin: 88rpx 0 100rpx 0;
|
||||||
height: 100%;
|
height: 600rpx;
|
||||||
.box {
|
.box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -220,6 +225,7 @@
|
|||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
pointer-events: none;
|
||||||
.time {
|
.time {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
@@ -232,10 +238,13 @@
|
|||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 0 20rpx 10rpx 90rpx;
|
padding: 0 20rpx 10rpx 90rpx;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.child-content {
|
.child-content {
|
||||||
margin: 6rpx 90rpx 6rpx;
|
margin: 6rpx 90rpx 6rpx;
|
||||||
|
// pointer-events: none;
|
||||||
.child-box {
|
.child-box {
|
||||||
|
pointer-events: none;
|
||||||
.info {
|
.info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -336,10 +345,16 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
color: #333;
|
width: 500rpx;
|
||||||
|
color: #343434;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.title {
|
.cart-title {
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
|
font-size: 29rpx;
|
||||||
|
}
|
||||||
|
.cart-info {
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
width: 500rpx;
|
width: 500rpx;
|
||||||
@@ -430,6 +445,7 @@ export default {
|
|||||||
edit_text_other: "有爱评论,说点好听的 ~",
|
edit_text_other: "有爱评论,说点好听的 ~",
|
||||||
commentList: [], // 评论
|
commentList: [], // 评论
|
||||||
allList: {}, // 全部子评论
|
allList: {}, // 全部子评论
|
||||||
|
child_end: {},
|
||||||
status: 'loadmore',
|
status: 'loadmore',
|
||||||
iconType: 'circle',
|
iconType: 'circle',
|
||||||
loadText: {
|
loadText: {
|
||||||
@@ -507,6 +523,8 @@ export default {
|
|||||||
// console.log(item);
|
// console.log(item);
|
||||||
item.page = 0;
|
item.page = 0;
|
||||||
item.commentList = [];
|
item.commentList = [];
|
||||||
|
this.page_[item.id] = 0;
|
||||||
|
this.child_end[item.id] = false;
|
||||||
})
|
})
|
||||||
this.commentList = list;
|
this.commentList = list;
|
||||||
}
|
}
|
||||||
@@ -560,14 +578,14 @@ export default {
|
|||||||
// console.log(p_id);
|
// console.log(p_id);
|
||||||
if (res.data.data.pid) {
|
if (res.data.data.pid) {
|
||||||
this.commentList[this.comment_id].reply_count = true;
|
this.commentList[this.comment_id].reply_count = true;
|
||||||
console.log(this.allList[p_id]);
|
// console.log(this.allList[p_id]);
|
||||||
if (this.allList[p_id]) {
|
if (this.allList[p_id]) {
|
||||||
this.allList[p_id].push(res.data.data);
|
this.allList[p_id].push(res.data.data);
|
||||||
} else {
|
} else {
|
||||||
this.allList[p_id] = [];
|
this.allList[p_id] = [];
|
||||||
this.allList[p_id].push(res.data.data);
|
this.allList[p_id].push(res.data.data);
|
||||||
}
|
}
|
||||||
console.log(this.allList);
|
// console.log(this.allList);
|
||||||
} else {
|
} else {
|
||||||
this.commentList.unshift(res.data.data);
|
this.commentList.unshift(res.data.data);
|
||||||
}
|
}
|
||||||
@@ -581,18 +599,20 @@ export default {
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "loading..."
|
title: "loading..."
|
||||||
})
|
})
|
||||||
if (!this.page_[id] === 0) {
|
|
||||||
}
|
|
||||||
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 => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
// if (res.data.length < 10) {
|
if (this.page_[id] == 0) {
|
||||||
// this.is_more = false;
|
|
||||||
// }
|
|
||||||
this.page_[id]++;
|
|
||||||
this.allList[id] = res.data;
|
this.allList[id] = res.data;
|
||||||
|
} else {
|
||||||
|
this.allList[id] = this.allList[id].concat(res.data);
|
||||||
|
}
|
||||||
|
this.page_[id]++;
|
||||||
|
this.$forceUpdate();
|
||||||
|
// console.log(this.allList);
|
||||||
|
} else if (res.errCode == 1) {
|
||||||
|
this.child_end[id] = true;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
console.log(this.allList);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -609,6 +629,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 评论滚动到底部
|
// 评论滚动到底部
|
||||||
scrollBottom(e) {
|
scrollBottom(e) {
|
||||||
|
console.log(1);
|
||||||
this.getComment();
|
this.getComment();
|
||||||
},
|
},
|
||||||
// 跳转到商品
|
// 跳转到商品
|
||||||
@@ -618,6 +639,11 @@ export default {
|
|||||||
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
|
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 禁止滚动
|
||||||
|
moveHandle(e) {
|
||||||
|
console.log(e);
|
||||||
|
return;
|
||||||
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
|
|||||||
@@ -72,7 +72,9 @@
|
|||||||
<text class="child_content">{{ child.content }}</text>
|
<text class="child_content">{{ child.content }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="more-comment" @click="getReplyList(item.id)" v-if="item.reply_count">展开更多回复</text>
|
<text class="more-comment" @click="getReplyList(item.id)" v-if="item.reply_count">
|
||||||
|
{{ child_end[item.id] ? "暂无更多回复" : "展开更多回复" }}
|
||||||
|
</text>
|
||||||
<text></text>
|
<text></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -109,6 +111,7 @@
|
|||||||
<image class="goods-img" :src="item.goods_image" mode=""></image>
|
<image class="goods-img" :src="item.goods_image" mode=""></image>
|
||||||
<view class="goods-info">
|
<view class="goods-info">
|
||||||
<text class="good-title">{{ item.goods_advword }}</text>
|
<text class="good-title">{{ item.goods_advword }}</text>
|
||||||
|
<text class="good-name">{{ item.goods_name }}</text>
|
||||||
<text class="good-price">{{ item.goods_promotion_price }}</text>
|
<text class="good-price">{{ item.goods_promotion_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -166,6 +169,7 @@
|
|||||||
time_count: 0,
|
time_count: 0,
|
||||||
linear: null,
|
linear: null,
|
||||||
loadinging: false,
|
loadinging: false,
|
||||||
|
child_end: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -178,7 +182,11 @@
|
|||||||
this.videoBox = uni.createVideoContext("videoId", this);
|
this.videoBox = uni.createVideoContext("videoId", this);
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
|
if (uni.getSystemInfoSync().platform == "ios") {
|
||||||
|
console.log("ios");
|
||||||
|
} else if (uni.getSystemInfoSync().platform == "android") {
|
||||||
this.videoBox.pause();
|
this.videoBox.pause();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onBackPress() {
|
onBackPress() {
|
||||||
if (this.cart_type) {
|
if (this.cart_type) {
|
||||||
@@ -241,6 +249,16 @@
|
|||||||
// console.log(res.data);
|
// console.log(res.data);
|
||||||
this.commentList = res.data.data;
|
this.commentList = res.data.data;
|
||||||
}
|
}
|
||||||
|
let list = this.commentList;
|
||||||
|
list.forEach((item,index) => {
|
||||||
|
console.log(item);
|
||||||
|
item.page = 0;
|
||||||
|
item.commentList = [];
|
||||||
|
this.page_[item.id] = 0;
|
||||||
|
this.child_end[item.id] = false;
|
||||||
|
})
|
||||||
|
console.log(list);
|
||||||
|
this.commentList = list;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -312,8 +330,6 @@
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "loading..."
|
title: "loading..."
|
||||||
})
|
})
|
||||||
if (!this.page_[id] === 0) {}
|
|
||||||
console.log(id);
|
|
||||||
uni.request({
|
uni.request({
|
||||||
url: temp_url + "article/articleReplyList",
|
url: temp_url + "article/articleReplyList",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@@ -326,16 +342,20 @@
|
|||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
console.log(this.page_);
|
||||||
if (res.data.errCode == 0) {
|
if (res.data.errCode == 0) {
|
||||||
if (res.data.data.length < 10) {
|
if (this.page_[id] == 0) {
|
||||||
this.is_more = false;
|
this.allList[id] = res.data.data;
|
||||||
|
} else {
|
||||||
|
this.allList[id] = this.allList[id].concat(res.data.data);
|
||||||
}
|
}
|
||||||
this.page_[id]++;
|
this.page_[id]++;
|
||||||
this.allList[id] = res.data.data;
|
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
// console.log(this.page_[id]);
|
} else if (res.data.errCode == 1) {
|
||||||
// console.log(this.allList);
|
this.child_end[id] = true;
|
||||||
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
|
console.log(this.allList);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -631,7 +651,6 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
lines: 2;
|
lines: 2;
|
||||||
letter-spacing: 2rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-content-box {
|
.more-content-box {
|
||||||
@@ -725,6 +744,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-send {
|
.btn-send {
|
||||||
|
padding: 0 20rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
@@ -821,6 +841,14 @@
|
|||||||
width: 500rpx;
|
width: 500rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
lines: 1;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.good-name {
|
||||||
|
width: 500rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 30rpx;
|
||||||
lines: 2;
|
lines: 2;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
@@ -856,15 +884,14 @@
|
|||||||
.title {
|
.title {
|
||||||
width: 700rpx;
|
width: 700rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
lines: 1;
|
lines: 1;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
letter-spacing: 2rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.centent {
|
.centent {
|
||||||
width: 600rpx;
|
width: 700rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
|||||||
@@ -67,17 +67,17 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="couponStatus" mode="bottom">
|
<u-popup v-model="couponStatus" mode="bottom">
|
||||||
<scroll-view class="coupon-choose" scroll-y style="height: 800rpx;" v-if="this.couponType.type == 1">
|
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 1">
|
||||||
<view class="title">优惠券详情</view>
|
<view class="title">优惠券详情</view>
|
||||||
<view class="text">平台优惠券</view>
|
<view class="text">平台优惠券</view>
|
||||||
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index"></Coupon>
|
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_all_list" :key="index" :type="true" :sel="coupon.sel"></Coupon>
|
||||||
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length"></u-empty>
|
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_all_list.length" style="height: 200rpx"></u-empty>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<scroll-view class="coupon-choose" scroll-y style="height: 800rpx;" v-if="this.couponType.type == 2">
|
<scroll-view class="coupon-choose" scroll-y style="height: 50vh;" v-if="this.couponType.type == 2">
|
||||||
<view class="title">优惠券详情</view>
|
<view class="title">优惠券详情</view>
|
||||||
<view class="text">店铺优惠券</view>
|
<view class="text">店铺优惠券</view>
|
||||||
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index"></Coupon>
|
<Coupon :couponInfo="coupon" @use="useCoupon($event)" :goodsClass="goodsClass" v-for="(coupon, index) in orderInfo.store_voucher_list[this.couponType.store_id]" :key="index" :type="true" :sel="coupon.sel"></Coupon>
|
||||||
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length"></u-empty>
|
<u-empty text="无可用优惠券" mode="coupon" v-if="!orderInfo.store_voucher_list[this.couponType.store_id].length" style="height: 200rpx"></u-empty>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
@@ -142,7 +142,7 @@ export default {
|
|||||||
return num;
|
return num;
|
||||||
},
|
},
|
||||||
setFreight(freight, index) {
|
setFreight(freight, index) {
|
||||||
return freight[index];
|
return freight[index] || '0.00';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -282,15 +282,42 @@ export default {
|
|||||||
this.couponStatus = true;
|
this.couponStatus = true;
|
||||||
},
|
},
|
||||||
useCoupon(coupon) {
|
useCoupon(coupon) {
|
||||||
if(this.couponType.type == 1) this.choiceCoupon = coupon;
|
console.log(coupon)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(this.couponType.type == 1){
|
||||||
|
|
||||||
|
this.choiceCoupon = {}
|
||||||
|
for(let i in this.orderInfo.store_voucher_all_list){
|
||||||
|
if(this.orderInfo.store_voucher_all_list[i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_all_list[i].sel){
|
||||||
|
this.orderInfo.store_voucher_all_list[i].sel = true
|
||||||
|
this.choiceCoupon = coupon;
|
||||||
|
}else{
|
||||||
|
this.orderInfo.store_voucher_all_list[i].sel = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$forceUpdate()
|
||||||
|
}
|
||||||
if(this.couponType.type == 2) {
|
if(this.couponType.type == 2) {
|
||||||
|
this.storeCoupon = {}
|
||||||
|
for(let i in this.orderInfo.store_voucher_list[this.couponType.store_id]){
|
||||||
|
console.log(this.orderInfo.store_voucher_list[this.couponType.store_id][i])
|
||||||
|
if(this.orderInfo.store_voucher_list[this.couponType.store_id][i].voucher_id == coupon.voucher_id && !this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel){
|
||||||
|
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = true
|
||||||
Object.assign(this.storeCoupon, {
|
Object.assign(this.storeCoupon, {
|
||||||
[this.couponType.store_id]: coupon
|
[this.couponType.store_id]: coupon
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.orderInfo.store_voucher_list[this.couponType.store_id][i].sel = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
// console.log(this.choiceCoupon);
|
// console.log(this.choiceCoupon);
|
||||||
// console.log(this.storeCoupon);
|
// console.log(this.storeCoupon);
|
||||||
this.couponStatus = false;
|
// this.couponStatus = false;
|
||||||
this.setTotalPrice(); // 计算总价
|
this.setTotalPrice(); // 计算总价
|
||||||
},
|
},
|
||||||
getFreight() {
|
getFreight() {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="listItem">
|
<view class="listItem">
|
||||||
<!-- <video :src="url" :show-fullscreen-btn="true"></video> -->
|
|
||||||
<view v-if="type == '2'" class="video-container">
|
<view v-if="type == '2'" class="video-container">
|
||||||
<image :src="url" mode="aspectFill" class="video"></image>
|
<image :src="url" mode="aspectFill" class="video"></image>
|
||||||
|
<view class="backs"></view>
|
||||||
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
|
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
|
||||||
</view>
|
</view>
|
||||||
<image v-else :src="url" mode="aspectFill"></image>
|
<image v-else :src="url" mode="aspectFill"></image>
|
||||||
@@ -27,6 +27,15 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.backs {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: rgba($color: #000000, $alpha: 0.35);
|
||||||
|
z-index: 9;
|
||||||
|
}
|
||||||
.play-video {
|
.play-video {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
@@ -47,6 +56,6 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:['url','type']
|
props:['url','type'],
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="videoTop">
|
<view class="videoTop">
|
||||||
<image :src="url" mode="aspectFill" class="video"></image>
|
<image :src="url" mode="aspectFill" class="video"></image>
|
||||||
|
<view class="backs"></view>
|
||||||
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
|
<image src="/static/videoPlay.png" mode="aspectFill" class="play-video"></image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -15,6 +16,15 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
|
}
|
||||||
|
.backs {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.35);
|
||||||
|
z-index: 9;
|
||||||
}
|
}
|
||||||
.play-video {
|
.play-video {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<imageTop v-else :url="item.article_pic" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></imageTop>
|
<imageTop v-else :url="item.article_pic" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></imageTop>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="indexlist.length" class="container-bottom">
|
<view v-if="indexlist.length" class="container-bottom">
|
||||||
<listitem v-for="item in indexlist" :key="item.id" :type="item.type" :url="item.article_pic" class="bottom-item" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></listitem>
|
<listitem v-for="item in indexlist" :key="item.article_id" :type="item.type" :url="item.article_pic" class="bottom-item" @click.native="toDetailsPage({ id: item.article_id, type: item.type })"></listitem>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="item" v-if="cur==1">
|
<view class="item" v-if="cur==1">
|
||||||
@@ -355,7 +355,7 @@ export default {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
background-color: aqua;
|
// background-color: aqua;
|
||||||
}
|
}
|
||||||
.nickname {
|
.nickname {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="xiantiao"></view>
|
<view class="xiantiao"></view>
|
||||||
<view class="title">{{item.title}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="images_about">
|
<view class="images_about" @click="viewLogistics(item)">
|
||||||
<image :src="item.picture"></image>
|
<image :src="item.picture"></image>
|
||||||
<view>
|
<view>
|
||||||
<text>{{item.summary}}</text>
|
<text>{{item.summary}}</text>
|
||||||
@@ -40,6 +40,17 @@
|
|||||||
this.actives = res.data.data;
|
this.actives = res.data.data;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
viewLogistics(item) {
|
||||||
|
let url;
|
||||||
|
if(item.takeawayer_phone) {
|
||||||
|
url = '/pageE/order/Details';
|
||||||
|
} else {
|
||||||
|
url = '/pageE/order/Logistics';
|
||||||
|
}
|
||||||
|
this.$u.route(url, {
|
||||||
|
oid: item.order_id,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components:{
|
components:{
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss">
|
||||||
page {
|
page {
|
||||||
background-color: #ECECEC;
|
background-color: #ECECEC;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export default {
|
|||||||
sizeType: ['original', 'compressed'],
|
sizeType: ['original', 'compressed'],
|
||||||
sourceType: ['album'],
|
sourceType: ['album'],
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.avatar = res.tempFilePaths[0];
|
// this.avatar = res.tempFilePaths[0];
|
||||||
common.uploadFile({
|
common.uploadFile({
|
||||||
url: url,
|
url: url,
|
||||||
name: 'avatar',
|
name: 'avatar',
|
||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
}).then(result => {
|
}).then(result => {
|
||||||
// console.log(result);
|
// console.log(result);
|
||||||
// this.$set(this, 'avatar', result.file_path);
|
// this.$set(this, 'avatar', result.file_path);
|
||||||
// this.avatar = result.file_path;
|
this.avatar = result.file_path + "?" + new Date().getTime();
|
||||||
this.uploadPath = result.file_name;
|
this.uploadPath = result.file_name;
|
||||||
}, error => {
|
}, error => {
|
||||||
this.$u.toast(error);
|
this.$u.toast(error);
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="coupon-swiper">
|
<view class="coupon-swiper">
|
||||||
<!-- <scroll-view scroll-x="true" class="classify-coupon">
|
|
||||||
<view v-for="(classify, index) in couponGroupList" :key="index" class="classify-item" :class="{ 'active': couponCurrent == index }" @click="couponTabsChange(index)">{{ classify.gc_name }}</view>
|
|
||||||
</scroll-view> -->
|
|
||||||
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="24" inactive-color="#333333"></u-tabs>
|
<u-tabs :list="couponGroupList" name="gc_name" :is-scroll="true" :current="couponCurrent" @change="couponTabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="24" inactive-color="#333333"></u-tabs>
|
||||||
<swiper :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{ height: swiperHeight }">
|
<swiper :current="swiperCouponCurrent" @animationfinish="couponAnimationFinish" :style="{ height: swiperHeight }">
|
||||||
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
|
<swiper-item class="swiper-coupon-item" v-for="(_, i) in couponGroupList" :key="i">
|
||||||
@@ -11,17 +8,10 @@
|
|||||||
<Coupon :couponInfo="coupon" :status='0' :type="0" @exchange="exchangeCoupon($event)"></Coupon>
|
<Coupon :couponInfo="coupon" :status='0' :type="0" @exchange="exchangeCoupon($event)"></Coupon>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无优惠券" mode="coupon" color="#000" v-if="!couponList[i] || !couponList[i].length"></u-empty>
|
<u-empty text="暂无优惠券" mode="coupon" color="#000" v-if="!couponList[i] || !couponList[i].length"></u-empty>
|
||||||
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-bottom="60" v-if="!couponList[i] || couponList[i].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
|
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-bottom="60" v-if="couponList[i] && couponList[i].length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
<!-- <scroll-view scroll-y style="height: 100%;" @scrolltolower="onreachBottom" class="coupon-scroll" :style="{ height: swiperHeight }">
|
|
||||||
<view v-for="(coupon, index) in couponList" :key="index" class="coupon-item">
|
|
||||||
<Coupon :couponInfo="coupon" :status='0' :type="0" @exchange="exchangeCoupon($event)"></Coupon>
|
|
||||||
</view>
|
|
||||||
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" v-if="couponList.length>=pageSize" @loadmore="onreachBottom"></u-loadmore>
|
|
||||||
<u-empty text="暂无优惠券" mode="coupon" color="#000" v-if="!couponList.length"></u-empty>
|
|
||||||
</scroll-view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -49,7 +39,6 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
couponCurrent(index) {
|
couponCurrent(index) {
|
||||||
// this.couponList = [];
|
|
||||||
const id = this.couponGroupList[index].gc_id;
|
const id = this.couponGroupList[index].gc_id;
|
||||||
this.getCouponList({ gc_id: id, load: 'reload' });
|
this.getCouponList({ gc_id: id, load: 'reload' });
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="information">
|
<view class="information">
|
||||||
<view class="info-avatar">
|
<view class="info-avatar">
|
||||||
<u-avatar :src="userInfo.member_avatar + '?' + new Date().getTime()" :size="120"></u-avatar>
|
<u-avatar :src="userInfo.member_avatar" :size="120"></u-avatar>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="title">昵称</view>
|
<view class="title">昵称</view>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<view class="suggestions">
|
<view class="suggestions">
|
||||||
<view class="text">{{ item.fb_content }}</view>
|
<view class="text">{{ item.fb_content }}</view>
|
||||||
<view class="image">
|
<view class="image">
|
||||||
<image v-for="(url, index) in item.fb_images" :key="index" :src="url" mode="aspectFit" @click="previewImage(item.fb_images)"></image>
|
<image v-for="(url, index) in item.fb_images" :key="index" :src="url" mode="aspectFit" @click="previewImage(item.fb_images, index)"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="reply" v-if="item.is_reply">
|
<view class="reply" v-if="item.is_reply">
|
||||||
@@ -45,10 +45,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
previewImage(urls) {
|
previewImage(urls, index) {
|
||||||
// console.log(urls);
|
// console.log(urls);
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: urls,
|
urls: urls,
|
||||||
|
current: urls[index]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<view class="cancel" v-if="orderstate == '6'" @click="cancelOrder">取消支付</view>
|
<view class="cancel" v-if="orderstate == '6'" @click="cancelOrder">取消支付</view>
|
||||||
<!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> -->
|
<!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> -->
|
||||||
<view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code" @click="toOtherPage('Logistics')">查看物流</view>
|
<view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code" @click="toOtherPage('Logistics')">查看物流</view>
|
||||||
<view class="phone" v-if="orderstate == '1' && orderInfo.takeawayer_phone" @click="makePhone(order.takeawayer_phone)">
|
<view class="phone" v-if="orderstate == '1' && orderInfo.takeawayer_mobile" @click="makePhone(orderInfo.takeawayer_mobile)">
|
||||||
<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
|
<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
|
||||||
<text>联系骑手</text>
|
<text>联系骑手</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -153,7 +153,6 @@ export default {
|
|||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
viewStoreDetails(id) {
|
viewStoreDetails(id) {
|
||||||
this.$u.route('pageC/merchant/index', {
|
this.$u.route('pageC/merchant/index', {
|
||||||
id: id
|
id: id
|
||||||
@@ -201,7 +200,7 @@ export default {
|
|||||||
this.$u.api.getOrderInfo({
|
this.$u.api.getOrderInfo({
|
||||||
order_id: id,
|
order_id: id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.orderInfo = res.data;
|
this.orderInfo = res.data;
|
||||||
this.setTitle(this.orderInfo.view_type);
|
this.setTitle(this.orderInfo.view_type);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="order">
|
<view class="order">
|
||||||
<view>
|
<view>
|
||||||
<!-- <u-tabs-swiper ref="tabs" :list="list" active-color="#FF780F" :current="current" font-size="26" @change="tabsChange" height="88" :gutter="30"></u-tabs-swiper> -->
|
|
||||||
<u-tabs :list="list" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="26" :gutter="20" inactive-color="#333333"></u-tabs>
|
<u-tabs :list="list" name="gc_name" :is-scroll="true" :current="current" @change="tabsChange" active-color="#FF780F" :show-bar="false" height="88" font-size="26" :gutter="20" inactive-color="#333333"></u-tabs>
|
||||||
</view>
|
</view>
|
||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
|
||||||
@@ -14,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无订单" mode="order" color="#000000" v-if="!orderList[index] || !orderList[index].length"></u-empty>
|
<u-empty text="暂无订单" mode="order" color="#000000" v-if="!orderList[index] || !orderList[index].length"></u-empty>
|
||||||
<u-loadmore :status="loadStatus[index]" bgColor="#ECECEC" font-size="14" margin-bottom="20" v-if="current != 4 && (!orderList[index] || orderList[index].length>3)" class="order-loadmore"></u-loadmore>
|
<u-loadmore :status="loadStatus[index]" bgColor="#ECECEC" font-size="14" margin-bottom="20" v-if="current != 4 && (orderList[index] && orderList[index].length>3)" class="order-loadmore"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@@ -175,8 +174,8 @@ export default {
|
|||||||
let promise;
|
let promise;
|
||||||
// if(this.current == 6) promise = this.getAfterSaleList();
|
// if(this.current == 6) promise = this.getAfterSaleList();
|
||||||
// else
|
// else
|
||||||
// if(this.current == 4) promise = this.goodsTryOrderList();
|
if(this.current == 4) promise = this.goodsTryOrderList();
|
||||||
promise = this.getOrderList();
|
else promise = this.getOrderList();
|
||||||
promise.then(length => {
|
promise.then(length => {
|
||||||
this.loadStatus.splice(this.current, 1, "nomore");
|
this.loadStatus.splice(this.current, 1, "nomore");
|
||||||
if(length == 0) this.page--;
|
if(length == 0) this.page--;
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
<view class="title">物流跟踪</view>
|
<view class="title">物流跟踪</view>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view v-for="(item, index) in list" :key="index" class="logistics-item">
|
<view v-for="(item, index) in list" :key="index" class="logistics-item">
|
||||||
<view class="info u-line-2">{{ item.content }}</view>
|
<view class="info">{{ item.content }}</view>
|
||||||
<view class="date">{{ item.kd_time }}</view>
|
<view class="date">{{ item.kd_time }}</view>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无物流信息" mode="data" icon-size="88" margin-top="60"></u-empty>
|
<u-empty text="暂无物流信息" mode="data" icon-size="88" margin-top="60" v-if="!list.length"></u-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
BIN
pageE/static/mine/38.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@@ -400,7 +400,12 @@
|
|||||||
member_id: member_id
|
member_id: member_id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.follow_page = 0;
|
this.follow_page = 0;
|
||||||
this.getRecommendList(); // 关注列表
|
// this.getRecommendList(); // 关注列表
|
||||||
|
for(let i in this.recommendList){
|
||||||
|
if(this.recommendList[i].member_id == member_id){
|
||||||
|
this.recommendList[i].is_attention == 1 ? this.recommendList[i].is_attention = 0 : this.recommendList[i].is_attention = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
this.getFollowList(); // 刷新发现的列表
|
this.getFollowList(); // 刷新发现的列表
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view class="mine">
|
<view class="mine">
|
||||||
<view class="mine-top">
|
<view class="mine-top">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<u-avatar @click="toOtherPage('/mine/MineInfo')" :src="userInfo.member_avatar + '?' + new Date().getTime()" :size="110"></u-avatar>
|
<u-avatar @click="toOtherPage('/mine/MineInfo')" :src="userInfo.member_avatar" :size="110"></u-avatar>
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<view class="info-top">
|
<view class="info-top">
|
||||||
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
|
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
|
||||||
@@ -58,35 +58,6 @@
|
|||||||
<text>{{ item.number }}</text>
|
<text>{{ item.number }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view @click="toOtherPage('/order/Index?current=1')">
|
|
||||||
<image src="/static/image/mine/6.png"></image>
|
|
||||||
<view>待支付</view>
|
|
||||||
<view class="order-num">{{ 99 }}</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=2')">
|
|
||||||
<image src="/static/image/mine/35.png"></image>
|
|
||||||
<view>待发货</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=3')">
|
|
||||||
<image src="/static/image/mine/2.png"></image>
|
|
||||||
<view>待收货</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=4')">
|
|
||||||
<image src="/static/image/mine/1.png"></image>
|
|
||||||
<view>试穿试送</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=5')">
|
|
||||||
<image src="/static/image/mine/37.png"></image>
|
|
||||||
<view>拼团中</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=6')">
|
|
||||||
<image src="/static/image/mine/3.png"></image>
|
|
||||||
<view>待评价</view>
|
|
||||||
</view>
|
|
||||||
<view @click="toOtherPage('/order/Index?current=7')">
|
|
||||||
<image src="/static/image/mine/9.png"></image>
|
|
||||||
<view>售后</view>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tool">
|
<view class="tool">
|
||||||
@@ -206,9 +177,10 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "../../pageA/login/login"
|
url: "../../pageA/login/login"
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.getOrderNumber();
|
||||||
}
|
}
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getOrderNumber();
|
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
@@ -346,7 +318,7 @@ export default {
|
|||||||
height: $image-height !important;
|
height: $image-height !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@mixin common-mine($content-padding-top, $content-padding-bottom, $image-width, $image-height) {
|
@mixin common-mine($content-padding-top, $content-padding-row, $content-padding-bottom, $image-width, $image-height) {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 710rpx;
|
width: 710rpx;
|
||||||
background: rgba(255,255,255,1);
|
background: rgba(255,255,255,1);
|
||||||
@@ -366,7 +338,7 @@ export default {
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: $content-padding-top 20rpx $content-padding-bottom;
|
padding: $content-padding-top $content-padding-row $content-padding-bottom;
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -386,6 +358,7 @@ export default {
|
|||||||
.order {
|
.order {
|
||||||
@include common-mine(
|
@include common-mine(
|
||||||
$content-padding-top: 22rpx,
|
$content-padding-top: 22rpx,
|
||||||
|
$content-padding-row: 30rpx,
|
||||||
$content-padding-bottom: 30rpx,
|
$content-padding-bottom: 30rpx,
|
||||||
$image-height: 36rpx,
|
$image-height: 36rpx,
|
||||||
$image-width: 36rpx
|
$image-width: 36rpx
|
||||||
@@ -412,11 +385,9 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
position: relative;
|
position: relative;
|
||||||
.order-num{
|
.order-num {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -12rpx;
|
top: -14rpx;
|
||||||
right: -38rpx;
|
|
||||||
width: 50rpx;
|
|
||||||
}
|
}
|
||||||
.order-num > text {
|
.order-num > text {
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
@@ -434,6 +405,11 @@ export default {
|
|||||||
color:rgba(255,120,15,1);
|
color:rgba(255,120,15,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
> view:not(:nth-child(6)) {
|
||||||
|
.order-num {
|
||||||
|
left: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
> view:nth-child(1){
|
> view:nth-child(1){
|
||||||
@include image-size($image-width: 33rpx, $image-height: 36rpx);
|
@include image-size($image-width: 33rpx, $image-height: 36rpx);
|
||||||
}
|
}
|
||||||
@@ -447,16 +423,20 @@ export default {
|
|||||||
@include image-size($image-width: 35rpx, $image-height: 35rpx);
|
@include image-size($image-width: 35rpx, $image-height: 35rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(5){
|
> view:nth-child(5){
|
||||||
@include image-size($image-width: 37rpx, $image-height: 37rpx);
|
@include image-size($image-width: 35rpx, $image-height: 35rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(6){
|
> view:nth-child(6){
|
||||||
@include image-size($image-width: 33rpx, $image-height: 35rpx);
|
@include image-size($image-width: 33rpx, $image-height: 35rpx);
|
||||||
|
.order-num {
|
||||||
|
left: 24rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tool {
|
.tool {
|
||||||
@include common-mine(
|
@include common-mine(
|
||||||
$content-padding-top: 24rpx,
|
$content-padding-top: 24rpx,
|
||||||
|
$content-padding-row: 20rpx,
|
||||||
$content-padding-bottom: 25rpx,
|
$content-padding-bottom: 25rpx,
|
||||||
$image-height: 71rpx,
|
$image-height: 71rpx,
|
||||||
$image-width: 71rpx
|
$image-width: 71rpx
|
||||||
@@ -473,6 +453,7 @@ export default {
|
|||||||
.more-tool {
|
.more-tool {
|
||||||
@include common-mine(
|
@include common-mine(
|
||||||
$content-padding-top: 24rpx,
|
$content-padding-top: 24rpx,
|
||||||
|
$content-padding-row: 20rpx,
|
||||||
$content-padding-bottom: 48rpx,
|
$content-padding-bottom: 48rpx,
|
||||||
$image-height: 71rpx,
|
$image-height: 71rpx,
|
||||||
$image-width: 71rpx
|
$image-width: 71rpx
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 1.4 KiB |
BIN
static/image/mine/40.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
static/image/mine/41.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
static/image/mine/42.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |