|
@@ -6,18 +6,15 @@
|
|
|
<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="tId">
|
|
|
|
|
|
|
+ <template>
|
|
|
<view class="pdf-box">
|
|
<view class="pdf-box">
|
|
|
<image v-for="item in imgList" mode="aspectFit" :src="`data:image/png;base64,${item}`" @click="previewBase64Image(`data:image/png;base64,${item}`)"></image>
|
|
<image v-for="item in imgList" mode="aspectFit" :src="`data:image/png;base64,${item}`" @click="previewBase64Image(`data:image/png;base64,${item}`)"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-else>
|
|
|
|
|
- <view class="no-hetong-box">暂无合同</view>
|
|
|
|
|
- </template>
|
|
|
|
|
- <view class="hetong-tip-box" v-if="tId && info.status == 0">
|
|
|
|
|
|
|
+ <view class="hetong-tip-box" v-if="info.status == 0">
|
|
|
请务必仔细阅读上述内容,确认已完全理解所有条款后,点击【我已阅读】按钮完成签字确认。
|
|
请务必仔细阅读上述内容,确认已完全理解所有条款后,点击【我已阅读】按钮完成签字确认。
|
|
|
</view>
|
|
</view>
|
|
|
- <button v-if="tId && info.status == 0" type="default" class="phone-green-btn ht-btn"
|
|
|
|
|
|
|
+ <button v-if="info.status == 0" type="default" class="phone-green-btn ht-btn"
|
|
|
@click="handleQianming">我已阅读</button>
|
|
@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">
|
|
@@ -63,20 +60,19 @@
|
|
|
timer1.value = null;
|
|
timer1.value = null;
|
|
|
}
|
|
}
|
|
|
onLoad(({id}) => {
|
|
onLoad(({id}) => {
|
|
|
- tId.value = id;
|
|
|
|
|
- init()
|
|
|
|
|
|
|
+ tId.value = id;
|
|
|
|
|
+ init(id)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- function init() {
|
|
|
|
|
-
|
|
|
|
|
- if (!tId.value) {
|
|
|
|
|
|
|
+ function init(id) {
|
|
|
|
|
+ if (!id) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '数据异常,请确认路径是否完整'
|
|
title: '数据异常,请确认路径是否完整'
|
|
|
})
|
|
})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- httpApi.getHetongInfo({id:tId.value}).then(res => {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ httpApi.getHetongInfo({id}).then(res => {
|
|
|
info.value = res.data;
|
|
info.value = res.data;
|
|
|
imgList.value = res.data.base64List;
|
|
imgList.value = res.data.base64List;
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
@@ -121,7 +117,7 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
httpApi.getHetongQianming({
|
|
httpApi.getHetongQianming({
|
|
|
- id: info.value.id,
|
|
|
|
|
|
|
+ id: tId.value,
|
|
|
yifangBase64: img.replace(/^data:image\/\w+;base64,/, ''), // 当前接口,只有唯一yifangBase64 + id
|
|
yifangBase64: img.replace(/^data:image\/\w+;base64,/, ''), // 当前接口,只有唯一yifangBase64 + id
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.data) {
|
|
if (res.data) {
|