修改售后管理页面 样式以及小程序中不显示问题,新增订单判断 修改直播部分判断
parent
884d3e8c34
commit
8e66c24ff9
|
@ -2,8 +2,8 @@
|
||||||
"name" : "lili商城",
|
"name" : "lili商城",
|
||||||
"appid" : "__UNI__C100675",
|
"appid" : "__UNI__C100675",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "4.2.4.1",
|
"versionName" : "4.2.5",
|
||||||
"versionCode" : 4000241,
|
"versionCode" : 4000250,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
@clear="submitSearchOrderList(current)"
|
@clear="submitSearchOrderList(current)"
|
||||||
@custom="submitSearchOrderList(current)"
|
@custom="submitSearchOrderList(current)"
|
||||||
v-model="orderSn"
|
v-model="orderSn"
|
||||||
></u-search>
|
>
|
||||||
|
</u-search>
|
||||||
</div>
|
</div>
|
||||||
<scroll-view class="body-view" scroll-y @scrolltolower="renderDate">
|
<scroll-view class="body-view" scroll-y @scrolltolower="renderDate">
|
||||||
<view
|
<view
|
||||||
|
@ -60,79 +61,78 @@
|
||||||
<view>x{{ sku.num }}</view>
|
<view>x{{ sku.num }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-view u-flex u-row-between">
|
|
||||||
<view class="description">
|
<view class="description">
|
||||||
<!-- 售后申请 -->
|
<!-- 售后申请 -->
|
||||||
|
<view v-if="current === 0 && order.groupAfterSaleStatus">
|
||||||
<view
|
<view
|
||||||
v-if="
|
v-if="order.groupAfterSaleStatus.includes('ALREADY_APPLIED')"
|
||||||
current === 0 &&
|
class="cannot_apply not_center"
|
||||||
order.groupAfterSaleStatus &&
|
|
||||||
order.groupAfterSaleStatus.includes('ALREADY_APPLIED')
|
|
||||||
"
|
|
||||||
class="cannot_apply"
|
|
||||||
>
|
>
|
||||||
<u-icon class="icon" name="info-circle-fill"></u-icon>
|
<u-icon class="icon" name="info-circle-fill"></u-icon>
|
||||||
该商品已申请售后服务
|
该商品已申请售后服务
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-if="current === 0 && order.groupAfterSaleStatus">
|
||||||
<view
|
<view
|
||||||
class="cannot_apply"
|
v-if="order.groupAfterSaleStatus.includes('EXPIRED')"
|
||||||
v-if="
|
class="cannot_apply not_center"
|
||||||
current === 0 &&
|
|
||||||
order.groupAfterSaleStatus &&
|
|
||||||
order.groupAfterSaleStatus.includes('EXPIRED')
|
|
||||||
"
|
|
||||||
@click="tipsShow = true"
|
@click="tipsShow = true"
|
||||||
>
|
>
|
||||||
<u-icon class="icon" name="info-circle-fill"></u-icon>
|
<u-icon class="icon" name="info-circle-fill"></u-icon>
|
||||||
该商品无法申请售后
|
该商品无法申请售后
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<div v-if="current === 1 || current === 2">
|
<div v-if="current === 1 || current === 2">
|
||||||
<!-- 申请中 -->
|
<!-- 申请中 -->
|
||||||
<view
|
<view
|
||||||
class="cannot_apply"
|
class="cannot_apply not_center"
|
||||||
v-if="order.serviceType == 'RETURN_GOODS'"
|
v-if="order.serviceType == 'RETURN_GOODS'"
|
||||||
>
|
>
|
||||||
退货处理-{{ order.serviceStatus | serviceStatusList }}</view
|
退货处理-{{ order.serviceStatus | serviceStatusList }}</view
|
||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
class="cannot_apply"
|
class="cannot_apply not_center"
|
||||||
v-if="order.serviceType == 'SUPPLY_AGAIN_GOODS'"
|
v-if="order.serviceType == 'SUPPLY_AGAIN_GOODS'"
|
||||||
>
|
>
|
||||||
补发商品-{{ order.serviceStatus | serviceStatusList }}</view
|
补发商品-{{ order.serviceStatus | serviceStatusList }}</view
|
||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
class="cannot_apply"
|
class="cannot_apply not_center"
|
||||||
v-if="order.serviceType == 'RETURN_MONEY'"
|
v-if="order.serviceType == 'RETURN_MONEY'"
|
||||||
>
|
>
|
||||||
退款-{{ order.serviceStatus | serviceStatusList }}</view
|
退款-{{ order.serviceStatus | serviceStatusList }}</view
|
||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
class="cannot_apply"
|
class="cannot_apply not_center"
|
||||||
v-if="order.serviceType == 'EXCHANGE_GOODS'"
|
v-if="order.serviceType == 'EXCHANGE_GOODS'"
|
||||||
>
|
>
|
||||||
换货-{{ order.serviceStatus | serviceStatusList }}</view
|
换货-{{ order.serviceStatus | serviceStatusList }}</view
|
||||||
>
|
>
|
||||||
<view class="cannot_apply" v-if="order.serviceType == 'CANCEL'">
|
<view
|
||||||
|
class="cannot_apply not_center"
|
||||||
|
v-if="order.serviceType == 'CANCEL'"
|
||||||
|
>
|
||||||
取消订单-{{ order.serviceStatus | serviceStatusList }}</view
|
取消订单-{{ order.serviceStatus | serviceStatusList }}</view
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 申请记录 -->
|
<!-- 申请记录 -->
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn-view u-flex u-row-right">
|
||||||
<!-- 售后申请 -->
|
<!-- 售后申请 -->
|
||||||
|
|
||||||
|
<div class="sale" v-if="current === 0 && sku.afterSaleStatus">
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
current === 0 &&
|
sku.afterSaleStatus.includes('NOT_APPLIED') ||
|
||||||
sku.afterSaleStatus &&
|
sku.afterSaleStatus.includes('PART_AFTER_SALE')
|
||||||
(sku.afterSaleStatus.includes('NOT_APPLIED') ||
|
|
||||||
sku.afterSaleStatus.includes('PART_AFTER_SALE'))
|
|
||||||
"
|
"
|
||||||
@click="applyService(sku.sn, order, sku)"
|
@click="applyService(sku.sn, order, sku)"
|
||||||
class="sale"
|
|
||||||
>
|
>
|
||||||
<view class="default-btn border"> 申请售后 </view>
|
<view class="default-btn border"> 申请售后 </view>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<view class="after-line">
|
<view class="after-line">
|
||||||
<!-- 申请中 -->
|
<!-- 申请中 -->
|
||||||
<view
|
<view
|
||||||
|
@ -229,7 +229,7 @@ export default {
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
sort: "createTime",
|
sort: "createTime",
|
||||||
flowPrice: 1,
|
flowPrice: 0,
|
||||||
order: "desc",
|
order: "desc",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -404,6 +404,10 @@ export default {
|
||||||
*/
|
*/
|
||||||
onExpress(order, sku) {
|
onExpress(order, sku) {
|
||||||
sku.storeName = order.storeName;
|
sku.storeName = order.storeName;
|
||||||
|
let data = {
|
||||||
|
...order,
|
||||||
|
...sku,
|
||||||
|
};
|
||||||
|
|
||||||
storage.setAfterSaleData(data);
|
storage.setAfterSaleData(data);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -458,31 +462,38 @@ page,
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
height: calc(100vh - 44px - 80rpx - 104rpx);
|
height: calc(100vh - 44px - 80rpx - 104rpx);
|
||||||
}
|
}
|
||||||
|
|
||||||
.u-tabs-search {
|
.u-tabs-search {
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.countMoney {
|
.countMoney {
|
||||||
margin-left: 7rpx;
|
margin-left: 7rpx;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.seller-view {
|
.seller-view {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 20rpx 0rpx;
|
margin: 20rpx 0rpx;
|
||||||
padding: 0rpx 20rpx;
|
padding: 0rpx 20rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
|
||||||
.seller-info {
|
.seller-info {
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
|
|
||||||
.seller-name {
|
.seller-name {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
margin-left: 15rpx;
|
margin-left: 15rpx;
|
||||||
margin-top: -2rpx;
|
margin-top: -2rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-sn {
|
.order-sn {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #909399;
|
color: #909399;
|
||||||
|
@ -526,6 +537,7 @@ page,
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-view {
|
.btn-view {
|
||||||
padding: 16rpx 0;
|
padding: 16rpx 0;
|
||||||
|
|
||||||
|
@ -535,10 +547,12 @@ page,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
color: #909399;
|
color: #909399;
|
||||||
size: 25rpx;
|
size: 25rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cannot_apply {
|
.cannot_apply {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
|
@ -547,6 +561,10 @@ page,
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
}
|
}
|
||||||
|
.not_center {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
@ -556,6 +574,7 @@ page,
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.default-btn {
|
.default-btn {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
margin-left: 15rpx;
|
margin-left: 15rpx;
|
||||||
|
@ -566,9 +585,11 @@ page,
|
||||||
padding: 0 24rpx;
|
padding: 0 24rpx;
|
||||||
border-radius: 200px;
|
border-radius: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
color: $light-color;
|
color: $light-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
.border {
|
||||||
border: 2rpx solid $light-color;
|
border: 2rpx solid $light-color;
|
||||||
color: $light-color;
|
color: $light-color;
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
shape="circle"
|
shape="circle"
|
||||||
class="cancel-btn"
|
class="cancel-btn"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-if="order.groupAfterSaleStatus.includes('NOT_APPLIED')"
|
v-if="order.groupAfterSaleStatus && order.groupAfterSaleStatus.includes('NOT_APPLIED')"
|
||||||
@click="applyService(order)"
|
@click="applyService(order)"
|
||||||
>
|
>
|
||||||
退款/售后
|
退款/售后
|
||||||
|
|
|
@ -159,7 +159,7 @@ export default {
|
||||||
let recommendLives = await getLiveList(this.recommendParams);
|
let recommendLives = await getLiveList(this.recommendParams);
|
||||||
if (recommendLives.data.success) {
|
if (recommendLives.data.success) {
|
||||||
// 推荐直播间
|
// 推荐直播间
|
||||||
if (recommendLives.data.result.records.length != 0) {
|
if (recommendLives.data.result.records.length ) {
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
this.recommendLives = recommendLives.data.result.records;
|
this.recommendLives = recommendLives.data.result.records;
|
||||||
} else {
|
} else {
|
||||||
|
@ -172,7 +172,7 @@ export default {
|
||||||
* 2.如果没有直播间设置一个默认图片
|
* 2.如果没有直播间设置一个默认图片
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (this.recommendLives.length == 0) {
|
if (!this.recommendLives.length) {
|
||||||
if (this.liveList[0].shareImg) {
|
if (this.liveList[0].shareImg) {
|
||||||
this.$set(this, "swiperImg", [
|
this.$set(this, "swiperImg", [
|
||||||
{
|
{
|
||||||
|
@ -199,7 +199,7 @@ export default {
|
||||||
let res = await getLiveList(this.params[this.current]);
|
let res = await getLiveList(this.params[this.current]);
|
||||||
// 直播间
|
// 直播间
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
if (res.data.result.records.length != 0) {
|
if (res.data.result.records.length ) {
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
this.liveList.push(...res.data.result.records);
|
this.liveList.push(...res.data.result.records);
|
||||||
} else {
|
} else {
|
||||||
|
@ -211,7 +211,7 @@ export default {
|
||||||
? (this.status = "loadmore")
|
? (this.status = "loadmore")
|
||||||
: (this.status = "noMore");
|
: (this.status = "noMore");
|
||||||
|
|
||||||
console.log(this.status);
|
|
||||||
this.liveList.forEach((item) => {
|
this.liveList.forEach((item) => {
|
||||||
if (item.roomGoodsList) {
|
if (item.roomGoodsList) {
|
||||||
item.roomGoodsList = JSON.parse(item.roomGoodsList);
|
item.roomGoodsList = JSON.parse(item.roomGoodsList);
|
||||||
|
|
Loading…
Reference in New Issue