Files
integral-shop/single_uniapp22miao/pages/sub-pages/webview/sign-preview.vue
apple f5e8652539 feat(czc231): 宝应晨召春商贸环境
- 新增 application-czc231.yml(front/admin),指向 8.136.120.231
- 默认 profile=czc231;合同 PDF sign_contract_chenzhaochun,域名 chenzhaochun.com
- uniapp / 后台 Vue / deploy.conf 同步文档域名与目录
- h5/static/configs.js:寄卖与积分 URL(sn_id、appStr 需部署时填写)
- 已在库内 wa_options.system_config 写入标题实体与 deploy 段落(远程库)

Made-with: Cursor
2026-04-05 11:11:01 +08:00

74 lines
1.2 KiB
Vue

<template>
<view class="preview-page">
<web-view class="pdf-view" :src="pdfUrl"></web-view>
<view class="fixed-footer" @click="goToSign">
<text class="footer-text">前往签字</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
pdfUrl: ''
}
},
onLoad(options) {
const url = options && options.url ? decodeURIComponent(options.url) : '/static/sign_contract_chenzhaochun.pdf'
this.pdfUrl = url
},
methods: {
goToSign() {
uni.navigateTo({
url: '/pages/sub-pages/webview/sign'
})
}
}
}
</script>
<style lang="scss" scoped>
.preview-page {
position: relative;
height: 100vh;
background: #f5f5f5;
}
.pdf-view {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 120rpx;
}
.fixed-footer {
position: fixed;
left: 0;
right: 0;
bottom: 0;
height: 120rpx;
background: #ffffff;
border-top: 2rpx solid #eee;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.footer-text {
background: #f30303;
color: #fff;
font-size: 32rpx;
padding: 18rpx 30rpx;
border-radius: 20rpx;
width: 94%;
text-align: center;
box-shadow: 0 8rpx 20rpx rgba(255, 45, 45, 0.25);
}
</style>