修改租赁页面跳转到签订合同

This commit is contained in:
WindowBird 2025-09-12 10:07:09 +08:00
parent 3db05d2007
commit 394b03a994
4 changed files with 47 additions and 37 deletions

View File

@ -2,7 +2,7 @@
export const DEV_CONFIG = {
// 临时token用于开发测试
TEMP_TOKEN:
'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjViMTMzOTU5LWRkOGYtNDUwZS1hNDNmLTQyNTZmNzljNjU4YyJ9.vEal-nq4biYni9F3YhBr6pt6mEepOYFQzlSeERQ-Ft_YejklpzmjhvIF9nO3PkjS7F5ns4unIUt8Ov0JEWnY2Q',
'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjAxYzAwNGY4LTY0NWItNGI5OS04NGY1LTVhOTlhMzkyNDc4YyJ9.vT8doYVLUY4faLPTD3QTTURumMeMEPkutA4RHkbDokRGQanM1hMnF01AHhP1fmqD1sfeOb-i_UCMqt0dXeKi_g',
// 是否使用临时token
USE_TEMP_TOKEN: true,

View File

@ -132,7 +132,7 @@
{
"path": "pages/signature/signature",
"style": {
"navigationBarTitleText": "签名"
"navigationBarTitleText": "请横屏签名"
}
}
],

View File

@ -46,7 +46,7 @@
</uv-button>
<uv-button
customStyle="margin-top: 10px"
text="确认协议并提交"
text="确认协议并去签名"
type="primary"
@click="submit"
>

View File

@ -100,11 +100,11 @@
</button>
<view class="agreement">
<view :class="{ checked: hasAgreed }" class="checkbox" @click="hasAgreed = !hasAgreed">
<view :class="{ checked: hasAgreed }" class="checkbox">
<text v-if="hasAgreed"></text>
</view>
<text class="text">我已阅读并同意</text>
<text class="link" @click="$refs.popup.open()">安装协议</text>
<!-- <text class="text">去签署</text>-->
<text class="link" @click="goToInstallationProtocol">去签署安装协议</text>
</view>
<view class="payment-details">
@ -140,36 +140,36 @@
</view>
</view>
</view>
<uv-popup ref="popup" :close-on-click-overlay="false" bg-color="#fff" mode="center" round="16">
<view class="protocol-popup">
<view class="popup-header">
<text class="title">安装协议</text>
</view>
<!-- <uv-popup ref="popup" :close-on-click-overlay="false" bg-color="#fff" mode="center" round="16">-->
<!-- <view class="protocol-popup">-->
<!-- <view class="popup-header">-->
<!-- <text class="title">安装协议</text>-->
<!-- </view>-->
<scroll-view class="popup-content" scroll-y>
<text class="content-text">
本协议由出租方与承租方共同订立双方就灶台设备租赁安装事宜达成如下约定 第一条
设备交付
出租方应于约定日期将灶台设备运送至指定安装位置并负责专业安装调试确保设备正常运行
第二条 安装标准
安装过程需符合安全规范燃气接口必须密封完好电路连接符合国家标准排烟管道畅通无阻
第三条 使用培训
出租方需提供设备操作培训指导承租方正确使用及日常维护方法确保使用安全 第四条
维护责任
租赁期内正常使用出现的故障由出租方负责免费维修人为损坏需承租方承担维修费用
第五条 安全承诺
承租方应按照操作规程使用设备定期检查安全隐患如发现异常应立即停用并通知出租方
第六条 协议终止 租赁期满后出租方负责设备拆卸回收如需续租应提前15日重新签订协议
本协议一式两份双方各执一份自签字之日起生效 出租方签字__________
承租方签字__________ 日期年月日
</text>
</scroll-view>
<!-- <scroll-view class="popup-content" scroll-y>-->
<!-- <text class="content-text">-->
<!-- 本协议由出租方与承租方共同订立双方就灶台设备租赁安装事宜达成如下约定 第一条-->
<!-- 设备交付-->
<!-- 出租方应于约定日期将灶台设备运送至指定安装位置并负责专业安装调试确保设备正常运行-->
<!-- 第二条 安装标准-->
<!-- 安装过程需符合安全规范燃气接口必须密封完好电路连接符合国家标准排烟管道畅通无阻-->
<!-- 第三条 使用培训-->
<!-- 出租方需提供设备操作培训指导承租方正确使用及日常维护方法确保使用安全 第四条-->
<!-- 维护责任-->
<!-- 租赁期内正常使用出现的故障由出租方负责免费维修人为损坏需承租方承担维修费用-->
<!-- 第五条 安全承诺-->
<!-- 承租方应按照操作规程使用设备定期检查安全隐患如发现异常应立即停用并通知出租方-->
<!-- 第六条 协议终止 租赁期满后出租方负责设备拆卸回收如需续租应提前15日重新签订协议-->
<!-- 本协议一式两份双方各执一份自签字之日起生效 出租方签字__________-->
<!-- 承租方签字__________ 日期年月日-->
<!-- </text>-->
<!-- </scroll-view>-->
<view class="popup-footer">
<button class="agree-btn" hover-class="btn-hover" @click="close">同意并继续</button>
</view>
</view>
</uv-popup>
<!-- <view class="popup-footer">-->
<!-- <button class="agree-btn" hover-class="btn-hover" @click="close">同意并继续</button>-->
<!-- </view>-->
<!-- </view>-->
<!-- </uv-popup>-->
</view>
</template>
@ -198,11 +198,14 @@ export default {
},
},
onShow() {
if (!this.hasAgreed) {
;(this.$refs.popup.open(), (this.hasAgreed = true))
}
// if (!this.hasAgreed) {
// uni.navigateTo({
// url: '/pages/InstallationAgreement/InstallationAgreement',
// })
// }
},
onLoad() {
this.goToInstallationProtocol()
uni.authorize({
scope: 'scope.userLocation',
success: function () {
@ -238,6 +241,13 @@ export default {
}
},
methods: {
goToInstallationProtocol() {
if (!this.hasAgreed) {
uni.navigateTo({
url: '/pages/InstallationAgreement/InstallationAgreement',
})
}
},
close() {
this.$refs.popup.close()
},