feat: 签署问题
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ import request from '@/utils/request.js'; // 引入封装的方法
|
|||||||
|
|
||||||
|
|
||||||
// 是否已签
|
// 是否已签
|
||||||
export function signContract() {
|
export function isSignContract() {
|
||||||
// return request.post('/common/getSmsCode',qs.stringify(params));
|
// return request.post('/common/getSmsCode',qs.stringify(params));
|
||||||
return request({
|
return request({
|
||||||
url: "/signature/isSignContract",
|
url: "/signature/isSignContract",
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ import Header from '@/components/common/header.vue';
|
|||||||
import TopSafe from '@/components/common/top-safe.nvue'
|
import TopSafe from '@/components/common/top-safe.nvue'
|
||||||
import ContractItem from './components/contract-item.vue'
|
import ContractItem from './components/contract-item.vue'
|
||||||
import DownPopup from '@/components/common/down-popup.vue';
|
import DownPopup from '@/components/common/down-popup.vue';
|
||||||
import { getContractList, signContract } from '@/api/contract.js'
|
import { getContractList, isSignContract, } from '@/api/contract.js'
|
||||||
import { getSignUrl, getMiniProgramSignUrl } from '@/api/order.js';
|
import { getSignUrl, getMiniProgramSignUrl, signContract } from '@/api/order.js';
|
||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
this.downShow = false;
|
this.downShow = false;
|
||||||
},
|
},
|
||||||
isSignContract() {
|
isSignContract() {
|
||||||
signContract().then(res => {
|
isSignContract().then(res => {
|
||||||
if (res.bizcode == 100) {
|
if (res.bizcode == 100) {
|
||||||
this.type = res.data;
|
this.type = res.data;
|
||||||
if (this.type) {
|
if (this.type) {
|
||||||
|
|||||||
@@ -490,11 +490,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
|
||||||
// 需要的参数
|
const { bizcode, data } = await signContract();
|
||||||
orderId: this.selectItem.id,
|
|
||||||
}
|
|
||||||
const { bizcode, data } = await signContract(params);
|
|
||||||
if (bizcode === 100) {
|
if (bizcode === 100) {
|
||||||
this.flowId = data.flowId;
|
this.flowId = data.flowId;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user