|
@@ -3,13 +3,12 @@
|
|
|
<view class="phone-navBar-box">
|
|
<view class="phone-navBar-box">
|
|
|
<view @click="goUpPage" class="nav-bar-icon"></view>
|
|
<view @click="goUpPage" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">合同</text>
|
|
<text class="nav-bar-title">合同</text>
|
|
|
- <uni-icons class="nav-bar-right-icon bar-ml10" type="list" @click="handleGoLishi"
|
|
|
|
|
- size="30"></uni-icons>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <uni-icons class="nav-bar-right-icon bar-ml10" type="list" @click="handleGoLishi" size="30"></uni-icons>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
<template v-if="info.id">
|
|
<template v-if="info.id">
|
|
|
<view class="pdf-box">
|
|
<view class="pdf-box">
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
<!-- <web-view class="dljt-pdf-view" :src="pdfUrl1" v-if="show"
|
|
<!-- <web-view class="dljt-pdf-view" :src="pdfUrl1" v-if="show"
|
|
@@ -19,7 +18,8 @@
|
|
|
<view class="no-hetong-box">暂无合同</view>
|
|
<view class="no-hetong-box">暂无合同</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <button v-if="info.id && info.status == 0" type="default" class="phone-green-btn ht-btn" @click="handleQianming">我已阅读</button>
|
|
|
|
|
|
|
+ <button v-if="info.id && info.status == 0" type="default" class="phone-green-btn ht-btn"
|
|
|
|
|
+ @click="handleQianming">我已阅读</button>
|
|
|
|
|
|
|
|
<uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
<uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
|
<view class="ht-qm-popup">
|
|
<view class="ht-qm-popup">
|
|
@@ -61,7 +61,7 @@
|
|
|
info.value = res.data;
|
|
info.value = res.data;
|
|
|
pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
|
// let pdfUrl2 = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
|
|
// let pdfUrl2 = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
|
|
|
-
|
|
|
|
|
|
|
+ console.log('info', info.value)
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
console.log('xianshi')
|
|
console.log('xianshi')
|
|
|
show.value = true;
|
|
show.value = true;
|
|
@@ -87,17 +87,16 @@
|
|
|
})
|
|
})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
httpApi.getHetongQianming({
|
|
httpApi.getHetongQianming({
|
|
|
- id: info.id,
|
|
|
|
|
- fuzeren: img.replace(/^data:image\/\w+;base64,/,'')
|
|
|
|
|
|
|
+ id: info.value.id,
|
|
|
|
|
+ fuzeren: img.replace(/^data:image\/\w+;base64,/, '')
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.data) {
|
|
if (res.data) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: "签名成功",
|
|
title: "签名成功",
|
|
|
duration: 2000,
|
|
duration: 2000,
|
|
|
success() {
|
|
success() {
|
|
|
- goUpPage()
|
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|