feat:解决打包问题
This commit is contained in:
@@ -74,16 +74,12 @@
|
||||
@click="jumpOrderInfo(item)">去付款</view>
|
||||
<!-- <view class="operate_comm operate_but_1" v-if="item.status === ORDER_TYPE.COMPLETED">申请退款</view> -->
|
||||
|
||||
<view class="operate_comm operate_but_2" v-if="!isCheckSigne && item.status === ORDER_TYPE.NOT_RECEIVE"
|
||||
@click="onSignContract(item)">去签署
|
||||
</view>
|
||||
<view class="operate_comm operate_but_2" v-if="isCheckSigne && item.status === ORDER_TYPE.NOT_RECEIVE"
|
||||
<view class="operate_comm operate_but_2" v-if="item.status === ORDER_TYPE.NOT_RECEIVE"
|
||||
@click="confirmReceiptOk(item)">确认收货
|
||||
</view>
|
||||
<!-- <view class="operate_comm operate_but_3" v-if="item.status === ORDER_TYPE.UNSHIPPED">提醒发货</view> -->
|
||||
<view class="operate_comm operate_but_1"
|
||||
v-if="[ORDER_TYPE.NOT_RECEIVE, ORDER_TYPE.UNSHIPPED].includes(item.status) && isCheckSigne"
|
||||
@click="afterShow = true;">
|
||||
v-if="[ORDER_TYPE.NOT_RECEIVE, ORDER_TYPE.UNSHIPPED].includes(item.status)" @click="afterShow = true;">
|
||||
申请售后
|
||||
</view>
|
||||
<!-- <view class="operate_comm operate_but_1" v-if="item.status === ORDER_TYPE.AFTER_SALE">查看售后</view> -->
|
||||
@@ -193,17 +189,20 @@
|
||||
|
||||
<!-- 腾讯电子签H5 → 集成到UniApp -->
|
||||
<web-view v-if="signUrl" :src="signUrl" @message="handleMessage"></web-view>
|
||||
<down-popup :show="downShow" @ok="onSignContract" @click="downShow = false" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { MINE_ORDER_TYPE, ORDER_TYPE, ORDER_STATUS, getValue } from '@/utils/enumUtils.js';
|
||||
import { ORDER_STATUS_CSS } from '@/utils/enumCssUtils.js';
|
||||
import downPopup from '@/components/common/down-popup.vue'
|
||||
import { getOrderList, confirmReceipt, getSignUrl, signContract, isSignContract, getMiniProgramSignUrl } from '@/api/order.js';
|
||||
import dayjs from 'dayjs';
|
||||
import { formatDate1, copyData } from '@/utils/index.js'
|
||||
|
||||
export default {
|
||||
components: { downPopup },
|
||||
computed: {
|
||||
MINE_ORDER_TYPE() {
|
||||
return MINE_ORDER_TYPE;
|
||||
@@ -278,7 +277,10 @@ export default {
|
||||
afterShow: false,// 售后申请
|
||||
isCheckSigne: false,
|
||||
flowId: null,
|
||||
signUrl: null
|
||||
signUrl: null,
|
||||
downShow: false,
|
||||
selectItem: null,
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -410,6 +412,11 @@ export default {
|
||||
*/
|
||||
confirmReceiptOk(item) {
|
||||
const then = this;
|
||||
if (!isCheckSigne.value) {
|
||||
this.selectItem = item;
|
||||
this.downShow = true;
|
||||
return;
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '是否确认收货?',
|
||||
@@ -441,10 +448,10 @@ export default {
|
||||
},
|
||||
|
||||
// 发起合同签章
|
||||
async onSignContract(item) {
|
||||
async onSignContract() {
|
||||
const params = {
|
||||
// 需要的参数
|
||||
orderId: item.id,
|
||||
orderId: this.selectItem.id,
|
||||
}
|
||||
const { bizcode, data } = await signContract(params);
|
||||
if (bizcode === 100) {
|
||||
|
||||
Reference in New Issue
Block a user