fixing bug 8.12
This commit is contained in:
parent
eb1dce5d6b
commit
c03fff99e0
@ -408,8 +408,8 @@ export default {
|
|||||||
return vm.$u.post('article/articleCollectList');
|
return vm.$u.post('article/articleCollectList');
|
||||||
},
|
},
|
||||||
// 关注用户列表
|
// 关注用户列表
|
||||||
attentionMemberList() {
|
attentionMemberList({ page = 1 } = {}) {
|
||||||
return vm.$u.post('member/attentionMemberList');
|
return vm.$u.post('member/attentionMemberList', { page: page });
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="comment-item">
|
<view class="comment-item">
|
||||||
<view class="user">
|
<view class="user">
|
||||||
<u-avatar :src="content.member_avatar" class="avatar" size="60"></u-avatar>
|
<u-avatar :src="content.member_avatar" class="avatar" size="60"></u-avatar>
|
||||||
<text class="name">{{ content.geval_frommembername }}</text>
|
<text class="name">{{ content.member_nickname }}</text>
|
||||||
<u-rate v-if="reply" :disabled='true' :count="count" v-model="rate" size="23" active-color="#FF780F" inactive-color="#F0EDF1" gutter="10"></u-rate>
|
<u-rate v-if="reply" :disabled='true' :count="count" v-model="rate" size="23" active-color="#FF780F" inactive-color="#F0EDF1" gutter="10"></u-rate>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
@ -34,7 +34,7 @@ export default {
|
|||||||
url: 'pageB/sdetails/index',
|
url: 'pageB/sdetails/index',
|
||||||
params: {
|
params: {
|
||||||
id: this.info.goods_id,
|
id: this.info.goods_id,
|
||||||
type: 1,
|
// type: 1,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -488,7 +488,7 @@ export default {
|
|||||||
* @params {Number} num 数量
|
* @params {Number} num 数量
|
||||||
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
|
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
|
||||||
**/
|
**/
|
||||||
settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
|
async settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
|
||||||
if(type != 'involvement') {
|
if(type != 'involvement') {
|
||||||
if(!this.showSpec) {
|
if(!this.showSpec) {
|
||||||
this.showSpec = true;
|
this.showSpec = true;
|
||||||
@ -517,14 +517,14 @@ export default {
|
|||||||
if(this.type == 2) {
|
if(this.type == 2) {
|
||||||
if(type == 'involvement') {
|
if(type == 'involvement') {
|
||||||
// 验证能否拼团
|
// 验证能否拼团
|
||||||
let status = this.pintuanVerify({
|
const whether = await this.pintuanVerify({
|
||||||
pintuan_id: this.pintuan_id,
|
pintuan_id: this.pintuan_id,
|
||||||
pintuangroup_headid: this.involvemenGroupInfo[0].user_id
|
pintuangroup_headid: this.involvemenGroupInfo[0].user_id
|
||||||
}).then(status => {
|
}).then(status => {
|
||||||
if(status != 0) return true;
|
if(status != 0) return true;
|
||||||
|
else return false;
|
||||||
})
|
})
|
||||||
// console.log(status);
|
if(whether) return false;
|
||||||
if(status) return false;
|
|
||||||
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
|
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
|
||||||
Object.assign(params, {
|
Object.assign(params, {
|
||||||
pintuan_id: this.pintuan_id,
|
pintuan_id: this.pintuan_id,
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
<view class="concerns-container">
|
<view class="concerns-container">
|
||||||
<view v-for="(info, index) in list" :key="index">
|
<view v-for="(info, index) in list" :key="index">
|
||||||
<view class="daren-item">
|
<view class="daren-item">
|
||||||
<image class="head" :src="info.friend_tomavatar" @click="viewDetails(info.friend_tomid)"></image>
|
<image class="head" :src="info.friend_tomavatar" @click="viewDetails({ id: info.friend_tomid, type: info.role })"></image>
|
||||||
<text class="name" @click="viewDetails(info.friend_tomid)">{{ info.friend_tomname || '' }}</text>
|
<text class="name" @click="viewDetails({ id: info.friend_tomid, type: info.role })">{{ info.friend_tomname || '' }}</text>
|
||||||
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
|
<view class="guanzhu" @click="changeType(info.friend_tomid)" v-if="info.friend_followstate == 1">取消关注</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -31,14 +31,15 @@ export default {
|
|||||||
this.$u.api.attentionMemberList().then(res => {
|
this.$u.api.attentionMemberList().then(res => {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.list = res.data;
|
this.list = res.data.data;
|
||||||
} else {
|
} else {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
viewDetails(id) {
|
viewDetails({ id, type }) {
|
||||||
this.$u.route('pageB/details/index', {
|
let src = type == 3 ? 'pageB/details/index' : 'pageC/merchant/index';
|
||||||
|
this.$u.route(src, {
|
||||||
id: id
|
id: id
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -67,8 +67,10 @@
|
|||||||
<view>创建时间:{{ orderInfo.add_time | date}}</view>
|
<view>创建时间:{{ orderInfo.add_time | date}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" v-if="['1', '2', '4', '6', '8'].indexOf(orderstate) >= 0">
|
<!-- '4', -->
|
||||||
<view class="cancel" v-if="(orderstate == '4' || orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
|
<view class="btn" v-if="['1', '2', '6', '8'].indexOf(orderstate) >= 0">
|
||||||
|
<!-- orderstate == '4' || -->
|
||||||
|
<view class="cancel" v-if="(orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
|
||||||
<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
|
<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
|
||||||
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
|
<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
|
||||||
<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
|
<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
|
||||||
|
@ -75,6 +75,7 @@ export default {
|
|||||||
})
|
})
|
||||||
// console.log(goodsList);
|
// console.log(goodsList);
|
||||||
this.goods = goodsList[0];
|
this.goods = goodsList[0];
|
||||||
|
this.num = this.goods.goods_num;
|
||||||
console.log(this.goods);
|
console.log(this.goods);
|
||||||
},
|
},
|
||||||
getOrderInfo(id) {
|
getOrderInfo(id) {
|
||||||
|
@ -6,12 +6,16 @@
|
|||||||
<view v-for="(item, index) in historyList.slice(0, 50)" :key="index" class="history-item">
|
<view v-for="(item, index) in historyList.slice(0, 50)" :key="index" class="history-item">
|
||||||
<view class="item-title" @click="viewStoreDetails(item.store_id)">
|
<view class="item-title" @click="viewStoreDetails(item.store_id)">
|
||||||
<image :src="item.store_avatar"></image>
|
<image :src="item.store_avatar"></image>
|
||||||
<view class="u-line-2">{{ item.store_name }}</view>
|
<view class="u-line-1">{{ item.store_name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<image :src="item.goods_image" class="item-image" @click="viewGoodsDetails(item.goods_id)"></image>
|
<image :src="item.goods_image" class="item-image" @click="viewGoodsDetails(item.goods_id)"></image>
|
||||||
<view class="item-info" @click="viewGoodsDetails(item.goods_id)">
|
<view class="item-info" @click="viewGoodsDetails(item.goods_id)">
|
||||||
<view class="info-name u-line-1">{{ item.goods_name }}</view>
|
<view class="info-name u-line-1">{{ item.goods_name }}</view>
|
||||||
|
<u-icon name="trash" color="#666" size="32"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view @click.stop="delArticle(item.article_id)">
|
||||||
|
|
||||||
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
||||||
@ -126,10 +130,10 @@ export default {
|
|||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
}
|
}
|
||||||
> image {
|
// > image {
|
||||||
width: 37rpx;
|
// width: 37rpx;
|
||||||
height: 8rpx;
|
// height: 8rpx;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<view class="order-status">{{ item.order_status | viewStatus }}</view>
|
<view class="order-status">{{ item.order_status | viewStatus }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-info">
|
<view class="order-info">
|
||||||
<image :src="item.goods_image"></image>
|
<image :src="type == 1 ? item.goods_image : item.images[0]"></image>
|
||||||
<view v-if="item.deliver_goods_type == 2 && item.order_status == 20">
|
<view v-if="item.deliver_goods_type == 2 && item.order_status == 20">
|
||||||
<view>骑手名字:{{ item.takeawayer_name || '' }}</view>
|
<view>骑手名字:{{ item.takeawayer_name || '' }}</view>
|
||||||
<view>联系方式:{{ item.takeawayer_mobile || '' }}</view>
|
<view>联系方式:{{ item.takeawayer_mobile || '' }}</view>
|
||||||
@ -40,13 +40,9 @@
|
|||||||
<view>商家在正路途中,请耐心等待</view>
|
<view>商家在正路途中,请耐心等待</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="send-btn" v-if="item.order_status == 20 || item.order_status == 50">
|
<view class="send-btn" v-if="item.order_status == 20 || (item.order_status == 50&& !item.comment)">
|
||||||
<view class="btn" v-if="item.order_status == 20" @click="sendLaundryOrderConfirm(item.laundry_id)">
|
<view class="btn" v-if="item.order_status == 20" @click="sendLaundryOrderConfirm(item.laundry_id)">确认完成</view>
|
||||||
确认完成
|
<view class="btn" v-if="item.order_status == 50 && !item.comment" @click="toComment(item.laundry_id)">去评价</view>
|
||||||
</view>
|
|
||||||
<view class="btn" v-if="item.order_status == 50 && !item.comment" @click="toComment(item.laundry_id)">
|
|
||||||
去评价
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
@ -87,6 +83,7 @@ export default {
|
|||||||
timer: true,
|
timer: true,
|
||||||
commentList: [],
|
commentList: [],
|
||||||
swiperHeight: '',
|
swiperHeight: '',
|
||||||
|
type: 1, // 1 平台 2 实体店
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -139,9 +136,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async sendLaundryOrderList({ load = 'reload' } = {}) {
|
async sendLaundryOrderList({ load = 'reload' } = {}) {
|
||||||
let type = this.list[0].name == '平台历史订单' ? 1 : 2;
|
// let type = this.list[0].name == '平台历史订单' ? 1 : 2;
|
||||||
const res = await this.$u.api.sendLaundryOrderList({
|
const res = await this.$u.api.sendLaundryOrderList({
|
||||||
type: type,
|
type: this.type,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
})
|
})
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
@ -214,8 +211,10 @@ export default {
|
|||||||
},
|
},
|
||||||
replaces(e){
|
replaces(e){
|
||||||
if(e == 1){
|
if(e == 1){
|
||||||
|
this.type = 2;
|
||||||
this.$set(this.list,0,{name: '实体店历史订单'} )
|
this.$set(this.list,0,{name: '实体店历史订单'} )
|
||||||
} else {
|
} else {
|
||||||
|
this.type = 1;
|
||||||
this.$set(this.list,0,{name: '平台历史订单'} )
|
this.$set(this.list,0,{name: '平台历史订单'} )
|
||||||
}
|
}
|
||||||
this.sendLaundryOrderList();
|
this.sendLaundryOrderList();
|
||||||
@ -322,17 +321,21 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
.btn{
|
.btn {
|
||||||
|
box-sizing: border-box;
|
||||||
width: 154rpx;
|
width: 154rpx;
|
||||||
height: 54rpx;
|
height: 54rpx;
|
||||||
border-radius: 49rpx;
|
border-radius: 49rpx;
|
||||||
transform: translate(-50%, 0);
|
// transform: translate(-50%, 0);
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
border: 1rpx solid rgba(255,120,15,1);
|
border: 1rpx solid rgba(255,120,15,1);
|
||||||
color:rgba(255,120,15,1);
|
color:rgba(255,120,15,1);
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
line-height: 54rpx;
|
// line-height: 54rpx;
|
||||||
margin-right: -80rpx;
|
// margin-right: -80rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user