|
|
@ -14,9 +14,9 @@ |
|
|
|
<view v-for="(item, index) in tabItem.orderList" :key="index" class="order-item"> |
|
|
|
<view class="i-top b-b"> |
|
|
|
<text class="time" @click="navToDetailPage(item)">{{ item.createTime }}</text> |
|
|
|
<text class="state" :style="{ color: item.stateTipColor }" @click="navToDetailPage(item)">{{ item.id }}--</text> |
|
|
|
<!-- <text class="state" :style="{ color: item.stateTipColor }" @click="navToDetailPage(item)">{{ item.id }}</text> --> |
|
|
|
<text class="state" :style="{ color: item.stateTipColor }" @click="navToDetailPage(item)">{{ item.stateTip }}</text> |
|
|
|
<!-- <text v-if="item.status === 12" class="del-btn yticon icon-iconfontshanchu1" @click="deleteOrder(index)"></text> --> |
|
|
|
<text v-if="item.status === 12" class="del-btn yticon icon-iconfontshanchu1" @click="deleteOrder(index)"></text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<scroll-view v-if="item.orderItemList.length > 1" class="goods-box" scroll-y> |
|
|
@ -30,8 +30,8 @@ |
|
|
|
<text class="title clamp">{{ goodsItem.productName }}</text> |
|
|
|
<text class="attr-box">{{ goodsItem.productAttr }} x {{ goodsItem.productQuantity }}</text> |
|
|
|
<text class="price">{{ goodsItem.productPrice }}</text><br/> |
|
|
|
<text class="title clamp" v-if="item.status === 5">{{ item.deliveryCompany }}:{{ item.deliverySn }}</text> |
|
|
|
<text class="title clamp" v-if="item.status === 3">{{ item.deliveryCompany }}:{{ item.deliverySn }}</text> |
|
|
|
<!-- <text class="title clamp" v-if="item.status === 5">{{ item.deliveryCompany }}:{{ item.deliverySn }}</text> |
|
|
|
<text class="title clamp" v-if="item.status === 3">{{ item.deliveryCompany }}:{{ item.deliverySn }}</text> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -49,10 +49,10 @@ |
|
|
|
<text class="state" :style="{ color: item.stateTipColor }" v-else-if="item.orderType == 5">积分订单</text> |
|
|
|
<button v-if="item.status == 12" class="action-btn" @click="cancelOrder(item)">取消订单</button> |
|
|
|
<button v-if="item.status == 12" class="action-btn recom" @click="payOrder(item)">立即支付</button> |
|
|
|
<button v-if="item.status > 2 && item.status < 10" class="action-btn recom" @click="lookLogistics(item.id)">物流追踪</button> |
|
|
|
<!-- <button v-if="item.status > 2 && item.status < 10" class="action-btn recom" @click="lookLogistics(item.id)">物流追踪</button> --> |
|
|
|
<button v-if="item.status < 5" class="action-btn recom" @click="applyRefund(item.id)">申请售后</button> |
|
|
|
<button v-if="item.status == 3" class="action-btn recom" @click="confimDelivery(item)">确认收货</button> |
|
|
|
<button class="action-btn recom" hover-class="btn-hover" v-if="item.status === 4" @click="toEvaluate(item.id)">立即评价</button> |
|
|
|
<!-- <button class="action-btn recom" hover-class="btn-hover" v-if="item.status === 4" @click="toEvaluate(item.id)">立即评价</button> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<uni-load-more :status="loadingType"></uni-load-more> |
|
|
@ -168,7 +168,7 @@ export default { |
|
|
|
|
|
|
|
let params = { pageNum: this.pageNum, status: status }; |
|
|
|
let data = await Api.apiCall('get', Api.order.orderList, params); |
|
|
|
console.log("data:------"+JSON.stringify(data)) |
|
|
|
console.log("data:------"+data) |
|
|
|
let goodsList = data.records; |
|
|
|
let goodsListJson = JSON.stringify(goodsList) |
|
|
|
console.log("goodsList:"+goodsListJson) |
|
|
@ -201,7 +201,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
navItem.orderList = []; |
|
|
|
console.log(JSON.stringify(orderList)) |
|
|
|
console.log(orderList) |
|
|
|
orderList.forEach(item => { |
|
|
|
console.log("item-----:"+item) |
|
|
|
navItem.orderList.push(item); |
|
|
|