From 32f48493e3cef7748b86a2742082dbb6487fd111 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期六, 22 六月 2024 19:24:12 +0800
Subject: [PATCH] 修改页面跳转方式

---
 policy/scodePage/scodePage.vue |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/policy/scodePage/scodePage.vue b/policy/scodePage/scodePage.vue
index 4c861d8..c71c691 100644
--- a/policy/scodePage/scodePage.vue
+++ b/policy/scodePage/scodePage.vue
@@ -11,18 +11,24 @@
 		<image src="/static/policy/back.png" mode="widthFix" class="back-image"></image>
 		<view class="page-box">
 			<view class="code-hint">
-				<view>
-					<image src="/static/policy/success.png" mode="widthFix"></image>
-					<!-- <image src="/static/policy/error.png" mode="widthFix"></image> -->
-					<text>鎴愬姛-缁跨爜</text>
-					<!-- <text>澶辫触-绾㈢爜</text> -->
-				</view>
-				<view class="hint">
-					鍙姝や紒涓氳繘琛屾牳鏌�
-				</view>
-				<view class="hint">
-					璇锋牳鏌ヤ紒涓氫俊鎭�
-				</view>
+				<template v-if="color == 'green'">
+					<view>
+						<image src="/static/policy/success.png" mode="widthFix"></image>
+						<text>鎴愬姛-缁跨爜</text>
+					</view>
+					<view class="hint">
+						鍙姝や紒涓氳繘琛屾牳鏌�
+					</view>
+				</template>
+				<template  v-if="color == 'red'">
+					<view >
+						<image src="/static/policy/error.png" mode="widthFix"></image>
+						<text>澶辫触-绾㈢爜</text>
+					</view>
+					<view class="hint">
+						璇锋牳鏌ヤ紒涓氫俊鎭�
+					</view>
+				</template>
 			</view>
 			<!-- 浜岀淮鐮� -->
 			<view class="qrcode">

--
Gitblit v1.9.1