|
@@ -47,7 +47,9 @@
|
|
<button class="action-btn recom" v-if="item.have_paid == 0" @click.stop="button('pay',item)">立即支付</button>
|
|
<button class="action-btn recom" v-if="item.have_paid == 0" @click.stop="button('pay',item)">立即支付</button>
|
|
<!-- <button class="action-btn" v-if="item.have_paid != 0 && item.have_delivered == 0">提醒发货</button> -->
|
|
<!-- <button class="action-btn" v-if="item.have_paid != 0 && item.have_delivered == 0">提醒发货</button> -->
|
|
<button class="action-btn" v-if="item.have_paid != 0 && item.extend.express_number != ''" @click.stop="button('delivery',item)">查看物流</button>
|
|
<button class="action-btn" v-if="item.have_paid != 0 && item.extend.express_number != ''" @click.stop="button('delivery',item)">查看物流</button>
|
|
- <button class="action-btn" v-if="item.have_paid != 0 && item.have_received == 0" @click.stop="button('recerved',item)">确认收货</button>
|
|
|
|
|
|
+
|
|
|
|
+ <button class="action-btn" @click.stop="writeOff(item)" v-if="item.status == 2 && item.have_paid != 0 && item.have_received == 0">核销</button>
|
|
|
|
+ <button class="action-btn" v-if="item.status == 1 && item.have_paid != 0 && item.have_received == 0" @click.stop="button('recerved',item)">确认收货</button>
|
|
<!-- <button class="action-btn" v-if="item.have_received != 0 && item.have_commented != 0">追加评价</button> -->
|
|
<!-- <button class="action-btn" v-if="item.have_received != 0 && item.have_commented != 0">追加评价</button> -->
|
|
<!--<button class="action-btn" v-if="item.have_paid != 0" @click.stop="button('refund', item)">申请售后</button>-->
|
|
<!--<button class="action-btn" v-if="item.have_paid != 0" @click.stop="button('refund', item)">申请售后</button>-->
|
|
</view>
|
|
</view>
|
|
@@ -59,6 +61,10 @@
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
|
|
+ <view class="write_off_image_panel" v-if="isShowWriteOffImage" @click="hideWriteOffImage">
|
|
|
|
+ <image :src="writeOffImage"></image>
|
|
|
|
+ <button>关闭</button>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -73,6 +79,8 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
tabCurrentIndex: 0,
|
|
tabCurrentIndex: 0,
|
|
|
|
+ isShowWriteOffImage: false,
|
|
|
|
+ writeOffImage: '',
|
|
navList: [{
|
|
navList: [{
|
|
state: 0,
|
|
state: 0,
|
|
text: '全部',
|
|
text: '全部',
|
|
@@ -200,6 +208,17 @@
|
|
tabClick(index) {
|
|
tabClick(index) {
|
|
this.tabCurrentIndex = index;
|
|
this.tabCurrentIndex = index;
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ async writeOff(item){
|
|
|
|
+ const order_id = item.order_id;
|
|
|
|
+ let access_token = uni.getStorageSync('access_token');
|
|
|
|
+ let result = await this.$api.request('/order/writeOff', 'POST', {order_id: order_id, access_token: access_token})
|
|
|
|
+ if(result) {
|
|
|
|
+ this.isShowWriteOffImage = true;
|
|
|
|
+ this.writeOffImage = result.base64;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
//删除订单
|
|
//删除订单
|
|
async deleteOrder(index) {
|
|
async deleteOrder(index) {
|
|
let [error, res] = await uni.showModal({
|
|
let [error, res] = await uni.showModal({
|
|
@@ -408,6 +427,9 @@
|
|
}
|
|
}
|
|
];
|
|
];
|
|
this.loadData();
|
|
this.loadData();
|
|
|
|
+ },
|
|
|
|
+ hideWriteOffImage () {
|
|
|
|
+ this.isShowWriteOffImage = false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -790,4 +812,38 @@
|
|
opacity: .2
|
|
opacity: .2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .write_off_image_panel {
|
|
|
|
+ position: fixed;
|
|
|
|
+ left: 0px;
|
|
|
|
+ top: 0px;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ background: #00000080;
|
|
|
|
+
|
|
|
|
+ image {
|
|
|
|
+ width: 16em;
|
|
|
|
+ height: 16em;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ margin-left: -8em;
|
|
|
|
+ margin-top: -10em;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ button {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ margin-left: -8em;
|
|
|
|
+ margin-top: 8em;
|
|
|
|
+ width: 16em;
|
|
|
|
+ height: 3em;
|
|
|
|
+ line-height: 3em;
|
|
|
|
+ background: #fffff;
|
|
|
|
+ text-align: center;
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|