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