Compare commits
46 Commits
fd1801de3d
...
zmr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78169d8cde | ||
|
|
7f0d1063f0 | ||
|
|
c81ee7e961 | ||
| 6864f22576 | |||
| a91fa4708b | |||
| bfffb44fe2 | |||
| 16c2c1fa71 | |||
| 4c8e2ba4b6 | |||
| 96d7ad439a | |||
| 390bda7c0e | |||
| 0ae19c2ddf | |||
|
26cb84748a
|
|||
| c6cd88dc48 | |||
|
a34880e6a6
|
|||
|
3d840a0546
|
|||
| 30539ddf64 | |||
| 51823edb12 | |||
|
e58f571de4
|
|||
| c4821f888f | |||
|
|
69760e6377 | ||
| 080f0c6d86 | |||
| 4e842b127c | |||
| 627cfc4aa0 | |||
| 1e94eb864f | |||
| 64597b26fa | |||
| 05b334fdcb | |||
| dc636e30b7 | |||
| f9950c4a14 | |||
| 5dff8c8d96 | |||
| 35da48a87b | |||
| 5dd4023f97 | |||
| 10957c96d6 | |||
| 86d765d6ba | |||
| bea615253c | |||
| 48f50dbc89 | |||
|
|
891f1b4194 | ||
| fb16e774b8 | |||
|
|
97c95c2024 | ||
|
|
9d8d54cf02 | ||
| 417ec2106e | |||
| 2b1b1f1395 | |||
| 18dd96dec7 | |||
| 6dd010fd42 | |||
|
|
41cda556ce | ||
| 6b4bfee380 | |||
| cb0a6fafa3 |
@@ -271,12 +271,13 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 我的优惠券(已有的)
|
// 我的优惠券(已有的)
|
||||||
getMemberCouponList({ store_id, gc_id, type, status }) {
|
getMemberCouponList({ store_id, gc_id, type, status, page }) {
|
||||||
return vm.$u.post('Coupon/getMemberCouponList', {
|
return vm.$u.post('Coupon/getMemberCouponList', {
|
||||||
store_id: store_id,
|
store_id: store_id,
|
||||||
gc_id: gc_id,
|
gc_id: gc_id,
|
||||||
type: type,
|
type: type,
|
||||||
status: status,
|
status: status,
|
||||||
|
page: page,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取直播列表
|
// 获取直播列表
|
||||||
|
|||||||
@@ -242,6 +242,10 @@ export default {
|
|||||||
if(type > 0) Object.assign(params, {type: type});
|
if(type > 0) Object.assign(params, {type: type});
|
||||||
return vm.$u.post('Order/orderList', params);
|
return vm.$u.post('Order/orderList', params);
|
||||||
},
|
},
|
||||||
|
// 各种订单数量
|
||||||
|
getOrderNumber() {
|
||||||
|
return vm.$u.post('order/orderNumber');
|
||||||
|
},
|
||||||
// 售后列表
|
// 售后列表
|
||||||
// getAfterSaleList({ page }) {
|
// getAfterSaleList({ page }) {
|
||||||
// return vm.$u.post('order/afterSaleList', { page: page });
|
// return vm.$u.post('order/afterSaleList', { page: page });
|
||||||
@@ -353,6 +357,12 @@ export default {
|
|||||||
code: code,
|
code: code,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 获取可送洗商品
|
||||||
|
getSendOrderList({ page }) {
|
||||||
|
return vm.$u.post('member/getSendOrderList', {
|
||||||
|
page: page,
|
||||||
|
});
|
||||||
|
},
|
||||||
// 送洗列表-平台订单 实体店订单
|
// 送洗列表-平台订单 实体店订单
|
||||||
sendLaundryOrderList({ type, page }) {
|
sendLaundryOrderList({ type, page }) {
|
||||||
return vm.$u.post('member/sendLaundryOrderList', {
|
return vm.$u.post('member/sendLaundryOrderList', {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ const store = new Vuex.Store({
|
|||||||
token: "", // 储存token
|
token: "", // 储存token
|
||||||
showLoginModel: false, // 登录框
|
showLoginModel: false, // 登录框
|
||||||
question: {}, // 帮助与反馈
|
question: {}, // 帮助与反馈
|
||||||
|
showCoupons: true, // 是否显示新人领取优惠券
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getOrderAddress(state) {
|
getOrderAddress(state) {
|
||||||
@@ -79,6 +80,9 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
setQuestion(state, question) {
|
setQuestion(state, question) {
|
||||||
state.question = question;
|
state.question = question;
|
||||||
|
},
|
||||||
|
updateShowCoupons(state, status) {
|
||||||
|
state.showCoupons = status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
|
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
|
||||||
<text>视频</text>
|
<text>视频</text>
|
||||||
</view>
|
</view>
|
||||||
<image class="head" :src="item.article_pic"></image>
|
<image class="head" :src="item.article_pic" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title" v-if="">{{ item.article_title }}</view>
|
<view class="title" v-if="">{{ item.article_title }}</view>
|
||||||
<view class="jianjie">{{ item.article_content }}</view>
|
<view class="jianjie">{{ item.article_content }}</view>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<image :src="item.member_avatar"></image>
|
<image :src="item.member_avatar"></image>
|
||||||
<text>{{ item.member_nickname }}</text>
|
<text>{{ item.member_nickname }}</text>
|
||||||
</view>
|
</view>
|
||||||
<image src="/static/image/common/4.png" @click.stop="showAction"></image>
|
<image class="img-imp" src="/static/image/common/4.png" @click.stop="showAction"></image>
|
||||||
<view class="action" v-if="show == item.article_id">
|
<view class="action" v-if="show == item.article_id">
|
||||||
<view class="bubble">
|
<view class="bubble">
|
||||||
<view @click.stop="articleLike">
|
<view @click.stop="articleLike">
|
||||||
@@ -103,8 +103,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
>image{
|
>image{
|
||||||
width: 37rpx;
|
width: 35rpx;
|
||||||
height: 8rpx;
|
height: 8rpx;
|
||||||
|
padding: 20rpx;
|
||||||
}
|
}
|
||||||
.action {
|
.action {
|
||||||
z-index: 19;
|
z-index: 19;
|
||||||
@@ -211,7 +212,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
item(newVal, old) {
|
item(newVal, old) {
|
||||||
console.log(newVal);
|
// console.log(newVal);
|
||||||
this.item = newVal;
|
this.item = newVal;
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="notice">
|
<view class="notice" :style="{height : height + 'px'}">
|
||||||
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
|
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
|
||||||
<view class="time_notice">{{ item.addtime }}</view>
|
<view class="time_notice">{{ item.addtime }}</view>
|
||||||
<view class="notice_view">
|
<view class="notice_view">
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
}
|
}
|
||||||
.notice_view > view:nth-child(3){
|
.notice_view > view:nth-child(3){
|
||||||
height: 84rpx;
|
height: 84rpx;
|
||||||
@@ -77,7 +78,8 @@
|
|||||||
props: ['list'],
|
props: ['list'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
notice : []
|
notice : [],
|
||||||
|
height : ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -86,6 +88,8 @@
|
|||||||
this.notice = newVal;
|
this.notice = newVal;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gotoInfo(index) {
|
gotoInfo(index) {
|
||||||
console.log(index);
|
console.log(index);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" style="height: 340rpx;">
|
||||||
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
|
<swiper-item class="swiper-item list" v-for="(_, i) in classifyList" :key="i">
|
||||||
<!-- 最多显示3个 -->
|
<!-- 最多显示3个 -->
|
||||||
<view v-if="groupList[i]">
|
<view v-if="groupList[i]" class="group-container">
|
||||||
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
|
<sitem :info="info" v-for="(info, index) in groupList[i].slice(0, 3)" :key="index"></sitem>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
|
<u-empty text="暂无拼团商品" mode="list" color="#000" v-if="!groupList[i] || !groupList[i].length" style="margin: 0 auto;"></u-empty>
|
||||||
@@ -61,7 +61,7 @@ export default {
|
|||||||
gc_id: id,
|
gc_id: id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.groupList[this.current] = res.data;
|
this.groupList[this.current] = res.data;
|
||||||
// console.log(this.groupList);
|
console.log(this.groupList);
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -105,6 +105,7 @@ export default {
|
|||||||
.list {
|
.list {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
|
.group-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
> view {
|
> view {
|
||||||
&:not(:nth-child(3n)) {
|
&:not(:nth-child(3n)) {
|
||||||
@@ -113,4 +114,5 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
<image class="head" :src="info.pintuan_image" mode="widthFix"></image>
|
<image class="head" :src="info.pintuan_image" mode="widthFix"></image>
|
||||||
<text class="title u-line-1">{{ info.pintuan_goods_name }}</text>
|
<text class="title u-line-1">{{ info.pintuan_goods_name }}</text>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<view>¥{{ info.pintuan_goods_price }}</view>
|
<view class="value">¥{{ info.pintuan_goods_price }}</view>
|
||||||
<view>立即拼团</view>
|
<view class="btn">立即拼团</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -65,18 +65,18 @@ export default {
|
|||||||
// align-items: center;
|
// align-items: center;
|
||||||
// align-content: flex-end;
|
// align-content: flex-end;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 10rpx;
|
margin-top: 16rpx;
|
||||||
> view:first-child{
|
.value {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #FF3131;
|
color: #FF3131;
|
||||||
margin-bottom: 12rpx;
|
// margin-bottom: 12rpx;
|
||||||
}
|
}
|
||||||
> view:last-child{
|
.btn {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
height: 22rpx;
|
height: 22rpx;
|
||||||
color: #FDD360;
|
color: #FDD360;
|
||||||
text-align: end;
|
text-align: end;
|
||||||
margin-top:8rpx;
|
// margin-top:8rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="special">
|
<view class="special">
|
||||||
<view v-if="type == 'spike'">
|
<view v-if="type == 'spike'" @click="spikeGoods">
|
||||||
<image :src="item.groupbuy_image1" @click="spikeGoods"></image>
|
<image :src="item.groupbuy_image1" mode="aspectFill"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1" @click="spikeGoods">{{ item.goods_name }}</view>
|
<view class="name u-line-1">{{ 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>
|
||||||
<view class="btn" @click="spikeGoods">立即购买</view>
|
<view class="btn">立即购买</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="type == 'group'">
|
<view v-if="type == 'group'" @click="toDetailsPage">
|
||||||
<image :src="item.pintuan_image" @click="toDetailsPage"></image>
|
<image :src="item.pintuan_image"></image>
|
||||||
<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">{{ 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">立即拼团</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -75,13 +75,14 @@
|
|||||||
/* #endif */
|
/* #endif */
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 30rpx;
|
// padding: 0 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.operat-span {
|
.operat-span {
|
||||||
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 {
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
<view>我们有万能穿搭公式</view>
|
<view>我们有万能穿搭公式</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -60,8 +61,14 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
exchangeCoupon() {
|
exchangeCoupon() {
|
||||||
this.$u.api.getCoupon({ id: 1 }).then(res => {
|
this.$u.api.getCoupon({ id: 1 }).then(res => {
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.message,
|
||||||
|
url: '/pageE/tool/MineCoupon'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
this.$u.toast(res.message);
|
this.$u.toast(res.message);
|
||||||
if(res.errCode == 0) {}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,17 +158,21 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
.label {
|
.label {
|
||||||
padding: 6rpx 10rpx;
|
height: 40rpx;
|
||||||
margin: 0 10rpx 10rpx 0;
|
padding: 4rpx 14rpx;
|
||||||
font-size: 24rpx;
|
margin-right: 10rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 38rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 6rpx;
|
border-radius: 10rpx;
|
||||||
background-color: #000000;
|
background-color: rgba(0, 0, 0, .6);
|
||||||
opacity: 0.5;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.userinfo{
|
.userinfo{
|
||||||
|
z-index: 9999;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 30rpx;
|
right: 30rpx;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<view class="comment-list-box">
|
<view class="comment-list-box">
|
||||||
<view class="comment-list-header">
|
<view class="comment-list-header">
|
||||||
<image class="avatar" :src="item.member_avatar" mode=""></image>
|
<image class="avatar" :src="item.member_avatar" mode=""></image>
|
||||||
<view>
|
<view class="comment-title-info">
|
||||||
<text class="comment-title">{{ item.member_nickname }}</text>
|
<text class="comment-title">{{ item.member_nickname }}</text>
|
||||||
<text class="comment-time">{{ item.create_time }}</text>
|
<text class="comment-time">{{ item.create_time }}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -631,6 +631,7 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
lines: 2;
|
lines: 2;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-content-box {
|
.more-content-box {
|
||||||
@@ -680,6 +681,10 @@
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comment-title-info {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-title {
|
.comment-title {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
@@ -855,6 +860,7 @@
|
|||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
lines: 1;
|
lines: 1;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.centent {
|
.centent {
|
||||||
|
|||||||
@@ -309,32 +309,47 @@ export default {
|
|||||||
},
|
},
|
||||||
setTotalPrice() {
|
setTotalPrice() {
|
||||||
const goods = this.orderInfo.store_goods_total;
|
const goods = this.orderInfo.store_goods_total;
|
||||||
// console.log(this.freight);
|
let [freight, price, minPrice] = [0, 0, 0];
|
||||||
const freight = this.freight;
|
// 运费
|
||||||
let price = 0;
|
for (const key in this.freight) {
|
||||||
// 商品价格加上运费
|
if (this.freight.hasOwnProperty(key)) {
|
||||||
[goods, freight].forEach(object => {
|
const element = this.freight[key];
|
||||||
for (const key in object) {
|
freight += Number(element);
|
||||||
if (object.hasOwnProperty(key)) {
|
}
|
||||||
const element = object[key];
|
}
|
||||||
price += Number(element);
|
// 商品价格减去优惠券
|
||||||
|
// 店铺
|
||||||
|
for (const gid in goods) {
|
||||||
|
if (goods.hasOwnProperty(gid)) {
|
||||||
|
// 计算最小价格
|
||||||
|
minPrice += 0.01;
|
||||||
|
// 每个店铺所有商品的价格
|
||||||
|
let sprice = Number(goods[gid]);
|
||||||
|
if(JSON.stringify(this.storeCoupon) != '{}') {
|
||||||
|
for (const cid in this.storeCoupon) {
|
||||||
|
if (this.storeCoupon.hasOwnProperty(cid)) {
|
||||||
|
const cprice = this.storeCoupon[cid];
|
||||||
|
// 商品减去优惠券价格
|
||||||
|
if(gid == cid) {
|
||||||
|
sprice -= cprice.voucher_price;
|
||||||
|
// 每个店铺最低付款 0.01
|
||||||
|
if(sprice <= 0) sprice = 0.01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 所有商品总价
|
||||||
|
price += sprice;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
// 减去优惠券
|
|
||||||
// 平台
|
// 平台
|
||||||
if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price);
|
if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price);
|
||||||
// 店铺
|
// 每个店铺最低付款 0.01
|
||||||
if(JSON.stringify(this.storeCoupon) != '{}') {
|
if(price <= minPrice) price = minPrice;
|
||||||
for (const key in this.storeCoupon) {
|
// console.log("minPrice" + minPrice);
|
||||||
if (this.storeCoupon.hasOwnProperty(key)) {
|
// console.log("freight:" + freight);
|
||||||
const element = this.storeCoupon[key];
|
// console.log("price:" + price);
|
||||||
price -= element.voucher_price;
|
this.totalPrice = (price + freight).toFixed(2);
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// console.log(price);
|
|
||||||
this.totalPrice = price.toFixed(2);
|
|
||||||
},
|
},
|
||||||
setDelivery(index) {
|
setDelivery(index) {
|
||||||
if(index == 1) {
|
if(index == 1) {
|
||||||
|
|||||||
@@ -17,7 +17,11 @@
|
|||||||
<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-1">{{ goods.goods_advword }}</view>
|
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
|
||||||
<view class="price">¥{{ goods.goods_price }}</view>
|
<!-- <view class="price">¥{{ goods.goods_price }}</view> -->
|
||||||
|
<view class="price">
|
||||||
|
<view class="present">¥{{ goods.goods_price }}</view>
|
||||||
|
<view class="origin">¥{{ goods.goods_marketprice }}</view>
|
||||||
|
</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>
|
||||||
@@ -189,9 +193,23 @@ export default {
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: rgba(102,102,102,1);
|
color: rgba(102,102,102,1);
|
||||||
}
|
}
|
||||||
|
// .price {
|
||||||
|
// font-size: 26rpx;
|
||||||
|
// color: rgba(255,49,49,1);
|
||||||
|
// }
|
||||||
.price {
|
.price {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.present {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: rgba(255,49,49,1);
|
color: rgba(255,49,49,1);
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
.origin {
|
||||||
|
text-decoration: line-through;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import SpecialGoods from "../../components/shop/special-shop/index"
|
import SpecialGoods from "@/components/shop/special-shop/index"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view id="actives">
|
<view id="actives" :style="{height : height + 'px'}">
|
||||||
<!-- 活动消息推送 -->
|
<!-- 活动消息推送 -->
|
||||||
<block v-for="(item, index) in actives" :key="index">
|
<block v-for="(item, index) in actives" :key="index">
|
||||||
<view class="time">{{ item.addtime }}</view>
|
<view class="time">{{ item.addtime }}</view>
|
||||||
@@ -22,13 +22,21 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
height:'600',
|
||||||
actives: [
|
actives: [
|
||||||
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.messageactivityList()
|
var _that = this
|
||||||
|
_that.messageactivityList();
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.windowHeight);
|
||||||
|
_that.height = res.windowHeight
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
titletext(){
|
titletext(){
|
||||||
@@ -55,7 +63,6 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
#actives{
|
#actives{
|
||||||
height: 100%;
|
|
||||||
background: #ECECEC;
|
background: #ECECEC;
|
||||||
.time {
|
.time {
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
@@ -74,7 +81,7 @@
|
|||||||
padding: 39rpx 0 30rpx;
|
padding: 39rpx 0 30rpx;
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
width:630rpx;
|
width:94%;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
background:rgba(255,255,255,1);
|
background:rgba(255,255,255,1);
|
||||||
border-radius:20rpx;
|
border-radius:20rpx;
|
||||||
|
|||||||
@@ -2,18 +2,18 @@
|
|||||||
<view id="actives">
|
<view id="actives">
|
||||||
<!-- 活动消息推送 -->
|
<!-- 活动消息推送 -->
|
||||||
<view class="activity" v-for="(item, index) in actives" :key="index">
|
<view class="activity" v-for="(item, index) in actives" :key="index">
|
||||||
<view class="times">{{item.type}}</view>
|
<view class="times">{{item.kd_time}}</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="store_name">
|
<view class="store_name">
|
||||||
<image src="../../pageE/static/mine/1.png"></image>
|
<image :src="item.store_avatar"></image>
|
||||||
<view>小时代</view>
|
<view>{{item.store_name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiantiao"></view>
|
<view class="xiantiao"></view>
|
||||||
<view class="title">{{item.name}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="images_about">
|
<view class="images_about">
|
||||||
<image :src="item.url"></image>
|
<image :src="item.picture"></image>
|
||||||
<view>
|
<view>
|
||||||
<text>{{item.about}}</text>
|
<text>{{item.summary}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -35,8 +35,9 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getCartList() {
|
getCartList() {
|
||||||
this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => {
|
this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => {
|
||||||
|
console.log(res.data.data)
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
this.actives == res.data;
|
this.actives = res.data.data;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" >
|
||||||
|
page{
|
||||||
|
background-color: #ECECEC;
|
||||||
|
}
|
||||||
#actives{
|
#actives{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view id="viewes" :style="{height : height + 'px'}">
|
||||||
<!-- 公告咨询 -->
|
<!-- 公告咨询 -->
|
||||||
<notice :list="list"></notice>
|
<notice :list="list"></notice>
|
||||||
</view>
|
</view>
|
||||||
@@ -15,6 +15,13 @@
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.informationList();
|
this.informationList();
|
||||||
|
var _that = this
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.windowHeight);
|
||||||
|
_that.height = res.windowHeight
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
titletext() {},
|
titletext() {},
|
||||||
@@ -36,7 +43,9 @@
|
|||||||
page {
|
page {
|
||||||
background-color: #ECECEC;
|
background-color: #ECECEC;
|
||||||
}
|
}
|
||||||
|
#viewes{
|
||||||
|
background: #ECECEC;
|
||||||
|
}
|
||||||
.sousuo {
|
.sousuo {
|
||||||
height: 113rpx;
|
height: 113rpx;
|
||||||
border: 1px #f00 solid;
|
border: 1px #f00 solid;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
|
<div :class="[audio.visible ? 'record-icon record-open':'record-icon']" @click="switchAudioKeyboard"></div>
|
||||||
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
|
<div class="record-input" @longpress="onRecordStart" @touchend="onRecordEnd" v-if="audio.visible" >{{audio.recording ? '松开发送' : '按住录音'}}</div>
|
||||||
<div class="message-input" v-else>
|
<div class="message-input" v-else>
|
||||||
<input type="text" placeholder="发送消息" v-model="content">
|
<input type="text" placeholder="发送消息" v-model="content" @click="bindtapInput">
|
||||||
</div>
|
</div>
|
||||||
<div class="file-icon img-video" @click="sendImage"></div>
|
<div class="file-icon img-video" @click="sendImage"></div>
|
||||||
<div class="file-icon" @click="sendVideo"></div>
|
<div class="file-icon" @click="sendVideo"></div>
|
||||||
@@ -84,6 +84,7 @@
|
|||||||
return {
|
return {
|
||||||
//聊天文本框
|
//聊天文本框
|
||||||
content: '',
|
content: '',
|
||||||
|
bottom : '',
|
||||||
friend: null,
|
friend: null,
|
||||||
currentUser: null,
|
currentUser: null,
|
||||||
//已经接收到的消息
|
//已经接收到的消息
|
||||||
@@ -154,6 +155,11 @@
|
|||||||
this.imService.resetFriendUnReadMessage(this.friend);
|
this.imService.resetFriendUnReadMessage(this.friend);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
bindtapInput(){
|
||||||
|
console.log("222")
|
||||||
|
var _that = this;
|
||||||
|
_that.bottom = 14
|
||||||
|
},
|
||||||
initialListeners () {
|
initialListeners () {
|
||||||
//传入监听器,收到一条私聊消息总是滚到到页面底部
|
//传入监听器,收到一条私聊消息总是滚到到页面底部
|
||||||
this.imService.onNewPrivateMessageReceive = (friendId, message)=> {
|
this.imService.onNewPrivateMessageReceive = (friendId, message)=> {
|
||||||
|
|||||||
@@ -1,38 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="article-details">
|
||||||
<view class="header" v-if="type == 2">
|
|
||||||
<image src="../../pageD/images/file.png" class="tit-img" mode=""></image>
|
|
||||||
<view class="title">德铭阳光</view>
|
|
||||||
<view class="tit-info">版本:{{ version }} for {{ phone_type }}</view>
|
|
||||||
</view>
|
|
||||||
<rich-text :nodes="nodes" v-if="type != 2"></rich-text>
|
|
||||||
<view class="main" v-if="type == 2">
|
|
||||||
<view @click="show = true">
|
|
||||||
<text>产品介绍</text>
|
|
||||||
<u-icon name="arrow-right" color="#999"></u-icon>
|
|
||||||
</view>
|
|
||||||
<view>
|
|
||||||
<text>版本更新</text>
|
|
||||||
<text class="tips">已是最新版本</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<u-popup v-model="show" v-if="type == 2" mode="left" width="100%">
|
|
||||||
<view class="u-content">
|
|
||||||
<rich-text :nodes="nodes"></rich-text>
|
<rich-text :nodes="nodes"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import common from '@/static/js/common.js'
|
import common from '@/static/js/common.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
type: 1,
|
|
||||||
nodes: "",
|
nodes: "",
|
||||||
version: "",
|
|
||||||
show: false,
|
|
||||||
phone_type: "",
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@@ -41,17 +17,6 @@ export default {
|
|||||||
if(option.id) this.getUseHelpInfo(option.id);
|
if(option.id) this.getUseHelpInfo(option.id);
|
||||||
if(option.type == 1) this.certificateInfo();
|
if(option.type == 1) this.certificateInfo();
|
||||||
if(option.type == 2) this.getAboutUsInfo();
|
if(option.type == 2) this.getAboutUsInfo();
|
||||||
this.type = option.type;
|
|
||||||
this.getVersion();
|
|
||||||
this.phone_type = this.$u.os();
|
|
||||||
},
|
|
||||||
onBackPress() {
|
|
||||||
if (this.show) {
|
|
||||||
this.show = !this.show;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap(e) {
|
onNavigationBarButtonTap(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
@@ -88,64 +53,16 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 检查版本号
|
|
||||||
getVersion() {
|
|
||||||
this.$u.post("Specialci/checkVersion",{app_version: 1}).then(res => {
|
|
||||||
console.log(res);
|
|
||||||
this.version = res.data.app_version;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
// page {
|
||||||
background-color: #f2f2f2;
|
// background-color: #ECECEC;
|
||||||
}
|
// }
|
||||||
.header {
|
.article-details {
|
||||||
width: 500rpx;
|
min-height: calc(100vh - var(--window-top));
|
||||||
margin: 0 auto;
|
background: #ECECEC;
|
||||||
padding: 30rpx;
|
padding: 20rpx 35rpx 0;
|
||||||
text-align: center;
|
|
||||||
.tit-img {
|
|
||||||
width: 200rpx;
|
|
||||||
height: 200rpx;
|
|
||||||
}
|
|
||||||
.title {
|
|
||||||
margin: 18rpx 0;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 26rpx;
|
|
||||||
letter-spacing: 2rpx;
|
|
||||||
}
|
|
||||||
.tit-info {
|
|
||||||
font-size: 22rpx;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.main {
|
|
||||||
margin: 20rpx 0;
|
|
||||||
& > view {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
width: 100%;
|
|
||||||
height: 100rpx;
|
|
||||||
padding: 0 20rpx;
|
|
||||||
line-height: 100rpx;
|
|
||||||
color: #333;
|
|
||||||
font-size: 30rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
border-bottom: 1px solid #f2f2f2;
|
|
||||||
}
|
|
||||||
.tips {
|
|
||||||
color: #999;
|
|
||||||
font-size: 22rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.u-content {
|
|
||||||
padding: 20rpx;
|
|
||||||
font-size: 30rpx;
|
|
||||||
text-indent: 1rem;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
<view class="info u-line-2">{{ item.content }}</view>
|
<view class="info u-line-2">{{ 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>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -64,7 +64,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '关于我们',
|
title: '关于我们',
|
||||||
link: '../mine/ArticleDetails?type=2'
|
// link: '../mine/ArticleDetails?type=2'
|
||||||
|
link: '/pageE/setting/version'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '帮助与反馈',
|
title: '帮助与反馈',
|
||||||
@@ -90,6 +91,8 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async loginOut() {
|
async loginOut() {
|
||||||
|
// 显示新人领取优惠券
|
||||||
|
this.$store.commit('updateShowCoupons', true);
|
||||||
let im = this.imService
|
let im = this.imService
|
||||||
this.logout();
|
this.logout();
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<view class="feedback-box">
|
<view class="feedback-box">
|
||||||
<view class="feedback-title">人工服务</view>
|
<view class="feedback-title">人工服务</view>
|
||||||
<view class="feedback-itme">
|
<view class="feedback-itme">
|
||||||
<view class="manual">
|
<view class="manual" @click="makePhone">
|
||||||
<view class="service-phone">拨打官方客服电话:400-100-100</view>
|
<view class="service-phone">拨打官方客服电话:{{ tel400 }}</view>
|
||||||
<view class="manual-time">{{ wkTime }}</view>
|
<view class="manual-time">{{ wkTime }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="suggestions" @click="writeComments">意见反馈</view>
|
<view class="suggestions" @click="writeComments">意见反馈</view>
|
||||||
@@ -31,6 +31,11 @@ export default {
|
|||||||
this.getHelpList();
|
this.getHelpList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
makePhone() {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: this.tel400,
|
||||||
|
});
|
||||||
|
},
|
||||||
viewAnswer(item) {
|
viewAnswer(item) {
|
||||||
this.$store.commit('setQuestion', item);
|
this.$store.commit('setQuestion', item);
|
||||||
this.$u.route('pageE/setting/question');
|
this.$u.route('pageE/setting/question');
|
||||||
|
|||||||
58
pageE/setting/updateVersion.vue
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<template>
|
||||||
|
<u-modal v-model="show" :show-cancel-button="true" confirm-text="升级" title="发现新版本" @cancel="cancel" @confirm="confirm">
|
||||||
|
<view class="u-update-content">
|
||||||
|
<rich-text :nodes="content"></rich-text>
|
||||||
|
</view>
|
||||||
|
</u-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show: true,
|
||||||
|
// 传递给uni-app"rich-text"组件的内容,可以使用"<br>"进行换行
|
||||||
|
content: `
|
||||||
|
1. 新增几个bug<br>
|
||||||
|
2. 新增Modal模态框组件<br>
|
||||||
|
3. 新增压窗屏组件,可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br>
|
||||||
|
`,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onReady() {
|
||||||
|
this.show = true;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
cancel() {
|
||||||
|
this.closeModal();
|
||||||
|
},
|
||||||
|
confirm() {
|
||||||
|
this.closeModal();
|
||||||
|
},
|
||||||
|
closeModal() {
|
||||||
|
uni.navigateBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
page {
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
/deep/ .u-mode-center-box {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
// .u-full-content {
|
||||||
|
// background-color: #00C777;
|
||||||
|
// }
|
||||||
|
.u-update-content {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: $u-content-color;
|
||||||
|
line-height: 1.7;
|
||||||
|
padding: 30rpx;
|
||||||
|
}
|
||||||
|
::v-deep.u-mode-center-box {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
108
pageE/setting/version.vue
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<template>
|
||||||
|
<view class="version">
|
||||||
|
<view class="header">
|
||||||
|
<image src="../../pageD/images/file.png" class="tit-img" mode=""></image>
|
||||||
|
<view class="title">德铭阳光</view>
|
||||||
|
<view class="tit-info">版本:{{ version }} for {{ phone_type }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="main">
|
||||||
|
<view @click="viewAboutUs">
|
||||||
|
<text class="title">产品介绍</text>
|
||||||
|
<u-icon name="arrow-right" color="#999"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view class="version-view">
|
||||||
|
<text class="title">版本更新</text>
|
||||||
|
<text class="tips" v-if="1">已是最新版本</text>
|
||||||
|
<text class="tips" v-else @click="updateVersion">发现新版本</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
version: "",
|
||||||
|
phone_type: "",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.getVersion();
|
||||||
|
this.phone_type = this.$u.os();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 检查版本号
|
||||||
|
getVersion() {
|
||||||
|
this.$u.post("Specialci/checkVersion",{ app_version: 1 }).then(res => {
|
||||||
|
// console.log(res);
|
||||||
|
this.version = res.data.app_version;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
viewAboutUs() {
|
||||||
|
this.$u.route('/pageE/mine/ArticleDetails', {
|
||||||
|
type: 2
|
||||||
|
});
|
||||||
|
},
|
||||||
|
updateVersion() {
|
||||||
|
this.$u.route('/pageE/setting/updateVersion');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.header {
|
||||||
|
width: 500rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
.tit-img {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
margin: 18rpx 0;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 26rpx;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
|
}
|
||||||
|
.tit-info {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
margin: 20rpx 0;
|
||||||
|
& > view {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
height: 100rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
line-height: 100rpx;
|
||||||
|
color: #333;
|
||||||
|
font-size: 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom: 1px solid #f2f2f2;
|
||||||
|
.title {
|
||||||
|
width: 200rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tips {
|
||||||
|
color: #999;
|
||||||
|
font-size: 22rpx;
|
||||||
|
}
|
||||||
|
.version-view {
|
||||||
|
.tips {
|
||||||
|
flex: 1;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.u-content {
|
||||||
|
padding: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
text-indent: 1rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -3,13 +3,14 @@
|
|||||||
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#FF780F" :current="current" font-size="32" :show-bar="false" @change="tabsChange" height="88" ></u-tabs-swiper>
|
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#FF780F" :current="current" font-size="32" :show-bar="false" @change="tabsChange" height="88" ></u-tabs-swiper>
|
||||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
|
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
|
||||||
<swiper-item class="swiper-item" v-for="(_, index) in list" :key="index">
|
<swiper-item class="swiper-item" v-for="(_, index) in list" :key="index">
|
||||||
<scroll-view scroll-y class="scroll-coupon">
|
<scroll-view scroll-y class="scroll-coupon" @scrolltolower="onreachBottom">
|
||||||
<view v-if="couponList[index]">
|
<view v-if="couponList[index]">
|
||||||
<view class="coupon-item" v-for="(coupon, c_index) in couponList[index]" :key="c_index">
|
<view class="coupon-item" v-for="(coupon, c_index) in couponList[index]" :key="c_index">
|
||||||
<Coupon :couponInfo="coupon" :status='index' @use="useCoupon($event)" :goodsClass="goodsClass"></Coupon>
|
<Coupon :couponInfo="coupon" :status='index' @use="useCoupon($event)" :goodsClass="goodsClass"></Coupon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无优惠券" mode="coupon" v-if="!couponList[index] || !couponList[index].length"></u-empty>
|
<u-empty text="暂无优惠券" mode="coupon" v-if="!couponList[index] || !couponList[index].length"></u-empty>
|
||||||
|
<u-loadmore :status="loadStatus[current]" bgColor="#FFFFFF" font-size="14" margin-top="20" margin-bottom="20" @loadmore="onreachBottom" v-if="!couponList[index] || couponList[index].length>=pageSize"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@@ -32,6 +33,10 @@ export default {
|
|||||||
swiperHeight: '',
|
swiperHeight: '',
|
||||||
couponList: [],
|
couponList: [],
|
||||||
goodsClass: [],
|
goodsClass: [],
|
||||||
|
pageSize: 6,
|
||||||
|
page: 0,
|
||||||
|
timer: true,
|
||||||
|
loadStatus: ['loadmore', 'loadmore', 'loadmore'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -46,8 +51,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
current(value) {
|
current(value) {
|
||||||
let status = value + 1;
|
this.getMemberCouponList(value);
|
||||||
this.getMemberCouponList(status);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -56,20 +60,35 @@ export default {
|
|||||||
this.goodsClass = res.data;
|
this.goodsClass = res.data;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMemberCouponList(current) {
|
async getMemberCouponList({ load = 'reload' }) {
|
||||||
this.$u.api.getMemberCouponList({
|
if(load == 'reload') this.page = 0;
|
||||||
status: current
|
const res = await this.$u.api.getMemberCouponList({
|
||||||
}).then(res => {
|
status: this.current + 1, // 代金券状态 1:未用 2:已用 3:过期 4:收回
|
||||||
if(res.errCode == 0) {
|
page: this.page,
|
||||||
this.couponList[this.current] = res.data;
|
})
|
||||||
} else {
|
this.timer = true;
|
||||||
this.couponList[this.current] = [];
|
if(load == 'reload') this.couponList[this.current] = res.data;
|
||||||
}
|
else if(load == 'loadmore') this.couponList[this.current].push(...res.data);
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
// console.log(this.couponList);
|
||||||
|
return res.data.length;
|
||||||
|
},
|
||||||
|
onreachBottom() {
|
||||||
|
if(!this.timer) return false;
|
||||||
|
this.timer = false;
|
||||||
|
this.loadStatus.splice(this.current, 1, "loading");
|
||||||
|
this.page++;
|
||||||
|
this.getMemberCouponList({ load: 'loadmore' }).then(length => {
|
||||||
|
this.loadStatus.splice(this.current, 1, "nomore");
|
||||||
|
if(length == 0) this.page--;
|
||||||
|
}).catch(() => {
|
||||||
|
this.loadStatus.splice(this.current, 1, "nomore");
|
||||||
|
console.log(this.loadStatus[this.current]);
|
||||||
|
this.page--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
useCoupon(coupon) {
|
useCoupon(coupon) {
|
||||||
console.log(coupon);
|
// console.log(coupon);
|
||||||
// if(coupon.type == 1) {
|
// if(coupon.type == 1) {
|
||||||
// this.$u.route({
|
// this.$u.route({
|
||||||
// type: 'switchTab',
|
// type: 'switchTab',
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delHistory" border-radius="20"></u-action-sheet>
|
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delHistory" border-radius="20"></u-action-sheet>
|
||||||
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
||||||
<u-loadmore class="load-size" :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length > pageSize" @loadmore="reachBottom"></u-loadmore>
|
<u-loadmore class="load-size" :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length >= pageSize" @loadmore="reachBottom"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
<text>选择订单</text>
|
<text>选择订单</text>
|
||||||
<u-icon name="close" color="#A29FA3" size="32" @click="showPopup=false"></u-icon>
|
<u-icon name="close" color="#A29FA3" size="32" @click="showPopup=false"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="order-list">
|
<scroll-view scroll-y class="order-list" @scrolltolower="onreachBottom">
|
||||||
<u-radio-group v-model="value" @change="radioChange">
|
<u-radio-group v-model="value" @change="radioChange">
|
||||||
<view v-for="(items, index) in orderList" :key="index" class="order-item">
|
<view v-for="(items, index) in orderList" :key="index" class="order-item">
|
||||||
<view class="store">
|
<view class="store">
|
||||||
@@ -195,6 +195,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
|
<u-loadmore :status="loadStatu" bgColor="#FFFFFF" font-size="14" margin-top="20" margin-bottom="20"></u-loadmore>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="order-btn" @click="confirm">确认</view>
|
<view class="order-btn" @click="confirm">确认</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -222,7 +223,7 @@ export default {
|
|||||||
}],
|
}],
|
||||||
typeList: [], // 商品类型列表
|
typeList: [], // 商品类型列表
|
||||||
orderList: [], // 商品列表
|
orderList: [], // 商品列表
|
||||||
page: 0,
|
page: 1,
|
||||||
current: 0,
|
current: 0,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
areaList: [], // 地址列表
|
areaList: [], // 地址列表
|
||||||
@@ -244,6 +245,8 @@ export default {
|
|||||||
name: 'common', // 其他图片
|
name: 'common', // 其他图片
|
||||||
},
|
},
|
||||||
debounce: true,
|
debounce: true,
|
||||||
|
timer: true,
|
||||||
|
loadStatu: 'loadmore'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -284,17 +287,33 @@ export default {
|
|||||||
// console.log(e);
|
// console.log(e);
|
||||||
this.type = e[0];
|
this.type = e[0];
|
||||||
},
|
},
|
||||||
|
onreachBottom() {
|
||||||
|
if(!this.timer) return false;
|
||||||
|
this.timer = false;
|
||||||
|
this.loadStatu = "loading";
|
||||||
|
this.page++;
|
||||||
|
this.getOrderList({ load: 'loadmore' }).then(length => {
|
||||||
|
if(length == 0) {
|
||||||
|
this.page--;
|
||||||
|
this.loadStatu = "nomore";
|
||||||
|
} else {
|
||||||
|
this.loadStatu = "loadmore";
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loadStatu = "nomore";
|
||||||
|
this.page--;
|
||||||
|
})
|
||||||
|
},
|
||||||
async getOrderList({ load = 'reload' } = {}) {
|
async getOrderList({ load = 'reload' } = {}) {
|
||||||
const res = await this.$u.api.getOrderList({
|
const res = await this.$u.api.getSendOrderList({
|
||||||
page: this.page,
|
page: this.page,
|
||||||
// type: '40',
|
|
||||||
})
|
})
|
||||||
this.timer = true;
|
this.timer = true;
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
if(load == 'reload') this.orderList = res.data;
|
if(load == 'reload') this.orderList = res.data;
|
||||||
else this.orderList.push(...res.data);
|
else this.orderList.push(...res.data);
|
||||||
}
|
}
|
||||||
return res;
|
return res.data.length;
|
||||||
},
|
},
|
||||||
submitImage() {
|
submitImage() {
|
||||||
// console.log(222);
|
// console.log(222);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setViewHeight() {
|
setViewHeight() {
|
||||||
const res = uni.getSystemInfoSync();
|
const res = uni.getSystemInfoSync();
|
||||||
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * 90 + 'px';
|
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * (90 + 30) + 'px';
|
||||||
},
|
},
|
||||||
toDetailsPage(id) {
|
toDetailsPage(id) {
|
||||||
this.$u.route('/pageB/sdetails/index', {
|
this.$u.route('/pageB/sdetails/index', {
|
||||||
|
|||||||
36
pages.json
@@ -610,16 +610,7 @@
|
|||||||
"titleSize": "36px",
|
"titleSize": "36px",
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"titleColor": "#333333",
|
"titleColor": "#333333",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF"
|
||||||
"buttons": [
|
|
||||||
{
|
|
||||||
"width": "0",
|
|
||||||
"type":"none",
|
|
||||||
"text":"关闭",
|
|
||||||
"float":"right",
|
|
||||||
"fontSize":"14"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1002,6 +993,31 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "setting/version",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "关于我们",
|
||||||
|
"app-plus": {
|
||||||
|
"titleSize": "36px",
|
||||||
|
"titleNView": {
|
||||||
|
"titleColor": "#333333",
|
||||||
|
"backgroundColor": "#FFFFFF"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "setting/updateVersion",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom", // 取消本页面的导航栏
|
||||||
|
"app-plus": {
|
||||||
|
"animationType": "fade-in", // 设置fade-in淡入动画,为最合理的动画类型
|
||||||
|
"background": "transparent", // 背景透明
|
||||||
|
"backgroundColor": "rgba(0,0,0,0)", // 背景透明
|
||||||
|
"popGesture": "none" // 关闭IOS屏幕左边滑动关闭当前页面的功能
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "order/Index",
|
"path": "order/Index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -39,7 +39,8 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
<swiper-item>
|
<swiper-item>
|
||||||
<scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottom">
|
<scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottomLive(e)" :refresher-enabled="true" @refresherrefresh="dianji(1)" :refresher-triggered="refresher" @refresherpulling="onPulling"
|
||||||
|
@refresherrestore="onRestore" @refresherabort="onAbort">
|
||||||
<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" @click="clickSImage($event, 2)"></u-swiper>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
@@ -221,6 +222,7 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
import common from '@/static/js/common.js';
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import videoItem from "@/components/index/video-item/index"
|
import videoItem from "@/components/index/video-item/index"
|
||||||
import zhiboItem from "@/components/index/zhibo-item/index"
|
import zhiboItem from "@/components/index/zhibo-item/index"
|
||||||
@@ -260,6 +262,7 @@
|
|||||||
loading: '努力加载中',
|
loading: '努力加载中',
|
||||||
nomore: '实在没有了'
|
nomore: '实在没有了'
|
||||||
},
|
},
|
||||||
|
refresher:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -269,9 +272,6 @@
|
|||||||
darenItem
|
darenItem
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.page = 1;
|
|
||||||
if (this.page != 1) {
|
|
||||||
}
|
|
||||||
console.log(this.imService.status)
|
console.log(this.imService.status)
|
||||||
if(!this.imService.status && this.$store.state.hasLogin){
|
if(!this.imService.status && this.$store.state.hasLogin){
|
||||||
const user = uni.getStorageSync('user_info');
|
const user = uni.getStorageSync('user_info');
|
||||||
@@ -303,17 +303,15 @@
|
|||||||
// that.imService.connectIM()
|
// that.imService.connectIM()
|
||||||
// },2000)
|
// },2000)
|
||||||
// }
|
// }
|
||||||
|
// 新人优惠券
|
||||||
// if (this.hasLogin) {
|
if (this.$store.state.showCoupons) {
|
||||||
// this.isNewmembervoucher();
|
this.isNewmembervoucher();
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
async onLoad(){
|
async onLoad(){
|
||||||
this.articleList = [];
|
this.articleList = [];
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
this.getSwiper();
|
this.getSwiper();
|
||||||
this.isNewmembervoucher();
|
|
||||||
|
|
||||||
// 优惠券
|
// 优惠券
|
||||||
// if(this.$store.state.hasLogin){
|
// if(this.$store.state.hasLogin){
|
||||||
// const user = uni.getStorageSync('user_info');
|
// const user = uni.getStorageSync('user_info');
|
||||||
@@ -360,6 +358,7 @@
|
|||||||
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
this.status_live = "loading";
|
this.status_live = "loading";
|
||||||
|
this.refresher = false;
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@@ -414,28 +413,31 @@
|
|||||||
},
|
},
|
||||||
// 切换导航
|
// 切换导航
|
||||||
dianji(a) {
|
dianji(a) {
|
||||||
// console.log(a);
|
console.log(a);
|
||||||
|
|
||||||
if (a.type == "change") {
|
if (a.type == "change") {
|
||||||
this.num = a.detail.current
|
this.num = a.detail.current;
|
||||||
} else {
|
} else {
|
||||||
this.num = a;
|
this.num = a;
|
||||||
}
|
}
|
||||||
// console.log(this.num);
|
// console.log(this.num);
|
||||||
// 状态请求
|
// 状态请求
|
||||||
if (a.type == "change") { // 强制请求一次
|
if (a.type == "change" || this.num == 1) { // 强制请求一次
|
||||||
if (this.num == 0) {
|
if (this.num == 0) {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.articleList = [];
|
this.articleList = [];
|
||||||
this.status = "loadmore";
|
this.status = "nomore";
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
this.getSwiper();
|
this.getSwiper();
|
||||||
} else if (this.num == 1) {
|
} else if (this.num == 1) {
|
||||||
this.live_page = 1;
|
this.live_page = 1;
|
||||||
|
this.status_live = "nomore";
|
||||||
this.getZhiBoSwiper(); // 直播轮播
|
this.getZhiBoSwiper(); // 直播轮播
|
||||||
this.tabLiveList();
|
this.tabLiveList();
|
||||||
} else if (this.num == 2) {
|
} else if (this.num == 2) {
|
||||||
this.follow_page = 0;
|
this.follow_page = 0;
|
||||||
this.fansList = [];
|
this.fansList = [];
|
||||||
|
this.status_1 = "nomore";
|
||||||
if (this.hasLogin) {
|
if (this.hasLogin) {
|
||||||
this.getFollowList(); // 关注列表
|
this.getFollowList(); // 关注列表
|
||||||
}
|
}
|
||||||
@@ -462,9 +464,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.articleList = this.articleList.concat(res.data.list);
|
this.articleList = this.articleList.concat(res.data.list);
|
||||||
}
|
}
|
||||||
this.page++;
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log(this.page);
|
||||||
},
|
},
|
||||||
// 屏蔽更新列表
|
// 屏蔽更新列表
|
||||||
updateList() {
|
updateList() {
|
||||||
@@ -475,12 +477,11 @@
|
|||||||
},
|
},
|
||||||
// 发现下拉加载
|
// 发现下拉加载
|
||||||
swiperBottom(e) {
|
swiperBottom(e) {
|
||||||
if(this.num == 0){
|
this.page++;
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
}else if(this.num == 1){
|
},
|
||||||
|
swiperBottomLive() {
|
||||||
this.tabLiveList();
|
this.tabLiveList();
|
||||||
}
|
|
||||||
// console.log(e);
|
|
||||||
},
|
},
|
||||||
swiperTop() {
|
swiperTop() {
|
||||||
// uni.startPullDownRefresh();
|
// uni.startPullDownRefresh();
|
||||||
@@ -532,40 +533,20 @@
|
|||||||
},
|
},
|
||||||
clickFImage(index) {
|
clickFImage(index) {
|
||||||
const item = this.indexImageSwiper[index];
|
const item = this.indexImageSwiper[index];
|
||||||
console.log(item);
|
// console.log(item);
|
||||||
this.activityLink({
|
this.jumpPage({
|
||||||
type: item.url_type,
|
type: item.url_type,
|
||||||
id: item.info_id
|
id: item.info_id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
clickSImage(index) {
|
clickSImage(index) {
|
||||||
const item = this.zhiboImageSwiper[index];
|
const item = this.zhiboImageSwiper[index];
|
||||||
console.log(item);
|
// console.log(item);
|
||||||
this.activityLink({
|
this.jumpPage({
|
||||||
type: item.url_type,
|
type: item.url_type,
|
||||||
id: item.info_id
|
id: item.info_id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
activityLink({
|
|
||||||
type,
|
|
||||||
id
|
|
||||||
}) {
|
|
||||||
console.log(type,id);
|
|
||||||
if (type == 0) return false;
|
|
||||||
// type 1 商品详情页, 2 店铺详情页
|
|
||||||
const url = type == 1 ? 'pageB/sdetails/index' : 'pageC/merchant/index';
|
|
||||||
let params = {
|
|
||||||
id: id
|
|
||||||
};
|
|
||||||
// type: 1 // 商品详情 1普通 2拼团 3秒杀 4优惠券
|
|
||||||
if (type == 1) Object.assign(params, {
|
|
||||||
type: 1
|
|
||||||
});
|
|
||||||
this.$u.route({
|
|
||||||
url: url,
|
|
||||||
params: params
|
|
||||||
})
|
|
||||||
},
|
|
||||||
goSearch() {
|
goSearch() {
|
||||||
this.$u.route("/pageB/search/index", {
|
this.$u.route("/pageB/search/index", {
|
||||||
type: 2,
|
type: 2,
|
||||||
@@ -574,12 +555,27 @@
|
|||||||
},
|
},
|
||||||
// 是否显示新人优惠券
|
// 是否显示新人优惠券
|
||||||
isNewmembervoucher() {
|
isNewmembervoucher() {
|
||||||
|
this.$store.commit('updateShowCoupons', false);
|
||||||
this.$u.api.isNewmembervoucher().then(res => {
|
this.$u.api.isNewmembervoucher().then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.$u.route('/pageB/coupon/index');
|
this.$u.route('/pageB/coupon/index');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onPulling(e) {
|
||||||
|
console.log("onpulling", e);
|
||||||
|
},
|
||||||
|
onRestore() {
|
||||||
|
this.refresher = 'restore'; // 需要重置
|
||||||
|
console.log("onRestore");
|
||||||
|
},
|
||||||
|
onAbort() {
|
||||||
|
console.log("onAbort");
|
||||||
|
},
|
||||||
|
jumpPage(uri) {
|
||||||
|
// console.log(uri);
|
||||||
|
common.jumpPage({ type: uri.type, id: uri.id });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -4,17 +4,6 @@
|
|||||||
<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 + '?' + new Date().getTime()" :size="110"></u-avatar>
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<!-- <view class="info-left">
|
|
||||||
<view class="user-nickname u-line-1">{{ userInfo.member_nickname }}</view>
|
|
||||||
<view class="user-medal" @click="toOtherPage('/mine/MedalIntroduction')">
|
|
||||||
<image src="/static/image/mine/13.png"></image>
|
|
||||||
<view class="rank-title">{{ userInfo.member_grade_name }}</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="info-right">
|
|
||||||
<view class="info-phone">{{ userInfo.member_mobile | phoneFormat }}</view>
|
|
||||||
<view class="user-rank">等级:{{ userInfo.member_level || 0 }}级</view>
|
|
||||||
</view> -->
|
|
||||||
<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>
|
||||||
<view class="info-phone">{{ userInfo.member_mobile | phoneFormat }}</view>
|
<view class="info-phone">{{ userInfo.member_mobile | phoneFormat }}</view>
|
||||||
@@ -62,9 +51,17 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view @click="toOtherPage('/order/Index?current=1')">
|
<view v-for="(item, index) in orderList" :key="index" @click="toOtherPage(item.link)">
|
||||||
|
<image :src="item.img"></image>
|
||||||
|
<view>{{ item.title }}</view>
|
||||||
|
<view class="order-num" v-if="item.number">
|
||||||
|
<text>{{ item.number }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view @click="toOtherPage('/order/Index?current=1')">
|
||||||
<image src="/static/image/mine/6.png"></image>
|
<image src="/static/image/mine/6.png"></image>
|
||||||
<view>待支付</view>
|
<view>待支付</view>
|
||||||
|
<view class="order-num">{{ 99 }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="toOtherPage('/order/Index?current=2')">
|
<view @click="toOtherPage('/order/Index?current=2')">
|
||||||
<image src="/static/image/mine/35.png"></image>
|
<image src="/static/image/mine/35.png"></image>
|
||||||
@@ -89,7 +86,7 @@
|
|||||||
<view @click="toOtherPage('/order/Index?current=7')">
|
<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> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tool">
|
<view class="tool">
|
||||||
@@ -111,6 +108,10 @@
|
|||||||
<image src="/static/image/mine/25.png"></image>
|
<image src="/static/image/mine/25.png"></image>
|
||||||
<view>优惠券</view>
|
<view>优惠券</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view @click="toOtherPage('/order/Index?current=4')">
|
||||||
|
<image src="/static/image/mine/39.png"></image>
|
||||||
|
<view>试穿试送</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="more-tool">
|
<view class="more-tool">
|
||||||
@@ -132,6 +133,7 @@
|
|||||||
<image src="/static/image/mine/15.png"></image>
|
<image src="/static/image/mine/15.png"></image>
|
||||||
<view>投诉意见</view>
|
<view>投诉意见</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view></view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -147,6 +149,50 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
|
orderList: [
|
||||||
|
{
|
||||||
|
name: 'wait_pay',
|
||||||
|
title: '待支付',
|
||||||
|
img: '/static/image/mine/6.png',
|
||||||
|
link: '/order/Index?current=1',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'already_pay',
|
||||||
|
title: '待发货',
|
||||||
|
img: '/static/image/mine/35.png',
|
||||||
|
link: '/order/Index?current=2',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'wait_receipt',
|
||||||
|
title: '待收货',
|
||||||
|
img: '/static/image/mine/2.png',
|
||||||
|
link: '/order/Index?current=3',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'pintuan',
|
||||||
|
title: '拼团中',
|
||||||
|
img: '/static/image/mine/37.png',
|
||||||
|
link: '/order/Index?current=5',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'wait_evaluation',
|
||||||
|
title: '待评价',
|
||||||
|
img: '/static/image/mine/3.png',
|
||||||
|
link: '/order/Index?current=6',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'refund',
|
||||||
|
title: '售后',
|
||||||
|
img: '/static/image/mine/9.png',
|
||||||
|
link: '/order/Index?current=7',
|
||||||
|
number: '',
|
||||||
|
},
|
||||||
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
@@ -162,9 +208,11 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
this.getOrderNumber();
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap(e) {
|
||||||
this.toOtherPage("/setting/Index");
|
// console.log(e);
|
||||||
|
if(e.index == 0) this.$u.route('/pageE/setting/Index');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
@@ -176,7 +224,22 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getOrderNumber() {
|
||||||
|
this.$u.api.getOrderNumber().then(res => {
|
||||||
|
const object = res.data;
|
||||||
|
for (const key in object) {
|
||||||
|
if (object.hasOwnProperty(key)) {
|
||||||
|
let element = object[key];
|
||||||
|
const order = this.orderList.filter(item => item.name == key);
|
||||||
|
if(element > 99) element = "99+";
|
||||||
|
this.$set(order[0], 'number', element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// console.log(this.orderList);
|
||||||
|
})
|
||||||
|
},
|
||||||
toOtherPage(url) {
|
toOtherPage(url) {
|
||||||
|
// console.log(url);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageE' + url
|
url: '/pageE' + url
|
||||||
});
|
});
|
||||||
@@ -200,45 +263,6 @@ export default {
|
|||||||
.user-info {
|
.user-info {
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
.info-left {
|
|
||||||
margin-right: 15rpx;
|
|
||||||
.user-nickname {
|
|
||||||
max-width: 200rpx;
|
|
||||||
font-size: 30rpx;
|
|
||||||
color: rgba(51,51,51,1);
|
|
||||||
margin-bottom: 19rpx;
|
|
||||||
}
|
|
||||||
.user-medal {
|
|
||||||
display: flex;
|
|
||||||
width: 110rpx;
|
|
||||||
// height: 25rpx;
|
|
||||||
background: linear-gradient(269deg,rgba(175,175,175,1) 0%,rgba(224,224,224,1) 100%);
|
|
||||||
border-radius: 13rpx;
|
|
||||||
align-items: center;
|
|
||||||
padding: 0 17rpx 0 10rpx;
|
|
||||||
> image {
|
|
||||||
margin-right: 9rpx;
|
|
||||||
width: 20rpx;
|
|
||||||
height: 22rpx;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
.rank-title {
|
|
||||||
font-size: 16rpx;
|
|
||||||
color: rgba(51,51,51,1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.info-right {
|
|
||||||
.info-phone {
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: rgba(51,51,51,1);
|
|
||||||
margin-bottom: 26rpx;
|
|
||||||
}
|
|
||||||
.user-rank {
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: rgba(51,51,51,1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.info-top {
|
.info-top {
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -336,16 +360,6 @@ export default {
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
border-bottom: 1px solid #ececec;
|
border-bottom: 1px solid #ececec;
|
||||||
// &::after {
|
|
||||||
// content: "";
|
|
||||||
// position: absolute;
|
|
||||||
// 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;
|
||||||
@@ -397,24 +411,46 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
.order-num{
|
||||||
|
position: absolute;
|
||||||
|
top: -12rpx;
|
||||||
|
right: -38rpx;
|
||||||
|
width: 50rpx;
|
||||||
|
}
|
||||||
|
.order-num > text {
|
||||||
|
z-index: 9;
|
||||||
|
float: left;
|
||||||
|
border: 1rpx solid #FF7807;
|
||||||
|
height: 24rpx;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 6rpx 8rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #FF7807;
|
||||||
|
background-color: #ffffff;
|
||||||
|
font-size: 18rpx;
|
||||||
|
color:rgba(255,120,15,1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
> view:nth-child(1){
|
> view:nth-child(1){
|
||||||
@include image-size($image-width: 36rpx, $image-height: 34rpx);
|
@include image-size($image-width: 33rpx, $image-height: 36rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(2){
|
> view:nth-child(2){
|
||||||
@include image-size($image-width: 38rpx, $image-height: 36rpx);
|
@include image-size($image-width: 38rpx, $image-height: 32rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(3){
|
> view:nth-child(3){
|
||||||
@include image-size($image-width: 40rpx, $image-height: 36rpx);
|
@include image-size($image-width: 41rpx, $image-height: 33rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(4){
|
> view:nth-child(4){
|
||||||
@include image-size($image-width: 38rpx, $image-height: 38rpx);
|
@include image-size($image-width: 35rpx, $image-height: 35rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(5){
|
> view:nth-child(5){
|
||||||
@include image-size($image-width: 36rpx, $image-height: 40rpx);
|
@include image-size($image-width: 37rpx, $image-height: 37rpx);
|
||||||
}
|
}
|
||||||
> view:nth-child(6){
|
> view:nth-child(6){
|
||||||
@include image-size($image-width: 36rpx, $image-height: 40rpx);
|
@include image-size($image-width: 33rpx, $image-height: 35rpx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -426,8 +462,11 @@ export default {
|
|||||||
$image-width: 71rpx
|
$image-width: 71rpx
|
||||||
);
|
);
|
||||||
.content {
|
.content {
|
||||||
|
> view {
|
||||||
|
width: 100rpx;
|
||||||
|
}
|
||||||
> view:not(:last-child) {
|
> view:not(:last-child) {
|
||||||
margin-right: 58rpx;
|
margin-right: 36rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -439,8 +478,11 @@ export default {
|
|||||||
$image-width: 71rpx
|
$image-width: 71rpx
|
||||||
);
|
);
|
||||||
.content {
|
.content {
|
||||||
|
> view {
|
||||||
|
width: 100rpx;
|
||||||
|
}
|
||||||
> view:not(:last-child) {
|
> view:not(:last-child) {
|
||||||
margin-right: 46rpx;
|
margin-right: 36rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<!-- 拼团列表 -->
|
<!-- 拼团列表 -->
|
||||||
<group></group>
|
<group></group>
|
||||||
<view class="activity-view">
|
<view class="activity-view">
|
||||||
<image class="lingquan" :src="activityInfo.adv_code" @click="activityLink({ type: activityInfo.url_type, id: activityInfo.info_id })"></image>
|
<image class="lingquan" :src="activityInfo.adv_code" @click="jumpPage({ type: activityInfo.url_type, id: activityInfo.info_id })"></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- 优惠券 -->
|
<!-- 优惠券 -->
|
||||||
<youhq></youhq>
|
<youhq></youhq>
|
||||||
@@ -61,6 +61,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import common from '@/static/js/common.js';
|
||||||
import shopitem from "@/components/shop/shop-item/index";
|
import shopitem from "@/components/shop/shop-item/index";
|
||||||
import recommend from "@/components/shop/recommend/index";
|
import recommend from "@/components/shop/recommend/index";
|
||||||
import pintuan from "@/components/shop/recommend/pintuan";
|
import pintuan from "@/components/shop/recommend/pintuan";
|
||||||
@@ -190,31 +191,11 @@
|
|||||||
clickImage(index) {
|
clickImage(index) {
|
||||||
// console.log(this.list[index]);
|
// console.log(this.list[index]);
|
||||||
let item = this.list[index];
|
let item = this.list[index];
|
||||||
this.activityLink({
|
this.jumpPage({
|
||||||
type: item.url_type,
|
type: item.url_type,
|
||||||
id: item.info_id,
|
id: item.info_id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
activityLink({
|
|
||||||
type,
|
|
||||||
id
|
|
||||||
}) {
|
|
||||||
console.log(type,id);
|
|
||||||
if (type == 0) return false;
|
|
||||||
// type 1 商品详情页, 2 店铺详情页
|
|
||||||
const url = type == 1 ? 'pageB/sdetails/index' : 'pageC/merchant/index';
|
|
||||||
let params = {
|
|
||||||
id: id
|
|
||||||
};
|
|
||||||
// type: 1 // 商品详情 1普通 2拼团 3秒杀 4优惠券
|
|
||||||
if (type == 1) Object.assign(params, {
|
|
||||||
type: 1
|
|
||||||
});
|
|
||||||
this.$u.route({
|
|
||||||
url: url,
|
|
||||||
params: params
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 下拉加载更多推荐商品
|
// 下拉加载更多推荐商品
|
||||||
onreachBottom() {
|
onreachBottom() {
|
||||||
this.$refs.recommendGoods.loadMore();
|
this.$refs.recommendGoods.loadMore();
|
||||||
@@ -240,18 +221,10 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
activityLink({ type, id }) {
|
jumpPage(uri) {
|
||||||
if(type == 0 || type == 2) return false;
|
// console.log(uri);
|
||||||
// type 1 商品详情页, 2 店铺详情页
|
common.jumpPage({ type: uri.type, id: uri.id });
|
||||||
const url = type == 1 ? 'pageB/sdetails/index' : '';
|
}
|
||||||
let params = { id: id };
|
|
||||||
// type: 1 // 商品详情 1普通 2拼团 3秒杀 4优惠券
|
|
||||||
if(type == 1) Object.assign(params, { type: 1 });
|
|
||||||
this.$u.route({
|
|
||||||
url: url,
|
|
||||||
params: params
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
BIN
static/image/mine/39.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 22 KiB |
@@ -67,5 +67,29 @@ const common = {
|
|||||||
else result = hours + ':' + minutes + ':' + seconds;
|
else result = hours + ':' + minutes + ':' + seconds;
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 广告位跳转
|
||||||
|
* @param { String } type 跳转类型
|
||||||
|
* @param { String | Number } id 跳转id 商品id/商家id...
|
||||||
|
* @return { undefined } undefined
|
||||||
|
*/
|
||||||
|
jumpPage({ type, id }) {
|
||||||
|
let url;
|
||||||
|
switch (type) {
|
||||||
|
case 1:
|
||||||
|
url = '/pageB/sdetails/index?id=' + id;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
url = '/pageC/merchant/index?id=' + id;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
url = '/pageE/mine/MemberServe?current=1'
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
export default common
|
// console.log(url);
|
||||||
|
uni.navigateTo({ url: url });
|
||||||
|
},
|
||||||
|
}
|
||||||
|
export default common;
|
||||||