feat: 签合同流程改变
This commit is contained in:
@@ -189,10 +189,9 @@
|
|||||||
|
|
||||||
<!-- 腾讯电子签H5 → 集成到UniApp -->
|
<!-- 腾讯电子签H5 → 集成到UniApp -->
|
||||||
<web-view v-if="signUrl" :src="signUrl" @message="handleMessage"></web-view>
|
<web-view v-if="signUrl" :src="signUrl" @message="handleMessage"></web-view>
|
||||||
<u-modal :show="tipsShow" :showCancelButton="true" confirmText="去认证"
|
<u-modal :show="tipsShow" :showCancelButton="true" confirmText="去认证" @cancel="onTipsCancel" @confirm="onConfirm"
|
||||||
@cancel="onTipsCancel" @confirm="onConfirm" confirmColor="#7934F6"
|
confirmColor="#7934F6" title="提示" content='签署合同需要进行实名认证,请先完成实名认证'></u-modal>
|
||||||
title="提示" content='签署合同需要进行实名认证,请先完成实名认证'></u-modal>
|
<DownPopup :show="downShow" @ok="onSignContract" @cancel="onCancel" />
|
||||||
<DownPopup :show="downShow" @ok="onSignContract" @cancel="onCancel" />
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -204,7 +203,7 @@ import DownPopup from '@/components/common/down-popup.vue'
|
|||||||
import { getOrderList, confirmReceipt, getSignUrl, signContract, isSignContract, getMiniProgramSignUrl } from '@/api/order.js';
|
import { getOrderList, confirmReceipt, getSignUrl, signContract, isSignContract, getMiniProgramSignUrl } from '@/api/order.js';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { formatDate1, copyData } from '@/utils/index.js'
|
import { formatDate1, copyData } from '@/utils/index.js'
|
||||||
import {getUserInfo} from '@/api/auth.js'
|
import { getUserInfo } from '@/api/auth.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { DownPopup },
|
components: { DownPopup },
|
||||||
@@ -285,7 +284,7 @@ export default {
|
|||||||
signUrl: null,
|
signUrl: null,
|
||||||
downShow: false,
|
downShow: false,
|
||||||
selectItem: null,
|
selectItem: null,
|
||||||
userInfo:null
|
userInfo: null
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -304,24 +303,24 @@ export default {
|
|||||||
getValue,
|
getValue,
|
||||||
formatDate1,
|
formatDate1,
|
||||||
copyData,
|
copyData,
|
||||||
onTipsCancel(){
|
onTipsCancel() {
|
||||||
this.tipsShow =false;
|
this.tipsShow = false;
|
||||||
},
|
},
|
||||||
userinfo(){
|
userinfo() {
|
||||||
getUserInfo().then(res=>{
|
getUserInfo().then(res => {
|
||||||
if(res.bizcode == 100){
|
if (res.bizcode == 100) {
|
||||||
this.userInfo = res.data;
|
this.userInfo = res.data;
|
||||||
}
|
}
|
||||||
console.log('res',res)
|
console.log('res', res)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onCancel(){
|
onCancel() {
|
||||||
this.downShow = false;
|
this.downShow = false;
|
||||||
},
|
},
|
||||||
onConfirm(){
|
onConfirm() {
|
||||||
this.onTipsCancel();
|
this.onTipsCancel();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/mine_package/mine_authentication/mine_authentication'
|
url: '/pages/mine_package/mine_authentication/mine_authentication'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
copyMobile(mobile) {
|
copyMobile(mobile) {
|
||||||
@@ -439,13 +438,6 @@ export default {
|
|||||||
*/
|
*/
|
||||||
confirmReceiptOk(item) {
|
confirmReceiptOk(item) {
|
||||||
const then = this;
|
const then = this;
|
||||||
|
|
||||||
if (!this.isCheckSigne) {
|
|
||||||
|
|
||||||
this.selectItem = item;
|
|
||||||
this.downShow = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '是否确认收货?',
|
content: '是否确认收货?',
|
||||||
@@ -465,6 +457,12 @@ export default {
|
|||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
this.form.page = 1;
|
this.form.page = 1;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
if (!this.isCheckSigne) {
|
||||||
|
|
||||||
|
this.selectItem = item;
|
||||||
|
this.downShow = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -478,11 +476,11 @@ export default {
|
|||||||
|
|
||||||
// 发起合同签章
|
// 发起合同签章
|
||||||
async onSignContract() {
|
async onSignContract() {
|
||||||
if(this.userInfo.certStatus == 0){
|
if (this.userInfo.certStatus == 0) {
|
||||||
this.downShow = false;
|
this.downShow = false;
|
||||||
this.tipsShow = true;
|
this.tipsShow = true;
|
||||||
return;
|
return;
|
||||||
}else if(this.userInfo.certStatus == 1){
|
} else if (this.userInfo.certStatus == 1) {
|
||||||
this.downShow = false;
|
this.downShow = false;
|
||||||
this.$refs.uToastRef.show({
|
this.$refs.uToastRef.show({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
|||||||
Reference in New Issue
Block a user