shish hace 1 mes
padre
commit
ae5ded152d

+ 1 - 1
ghsApp/src/admin/home/workbench.vue

@@ -1096,7 +1096,7 @@ export default {
 
 // 警告横幅样式
 .warning-banner {
-	background-color: #ff6b6b;
+	background-color: red;
 	border-radius: 8upx;
 	margin: 20upx 16upx 20upx 16upx;
 	padding: 20upx 24upx;

+ 8 - 3
hdApp/src/admin/home/components/purchase-ghs-panel.vue

@@ -41,7 +41,7 @@
             </view>
           </view>
 
-          <view v-if="!$util.isEmpty(data.warning)" class="warning-banner">{{ data.warning }}</view>
+          <view v-if="!$util.isEmpty(data.warning)" @click.stop="goWarning(data)" class="warning-banner">{{ data.warning }}</view>
 
           <template v-if="!$util.isEmpty(ad)">
             <block v-for="(adInfo, adIndex) in ad" :key="adIndex">
@@ -337,6 +337,11 @@ export default {
     goBack() {
       uni.navigateBack({ delta: 1 });
     },
+		goWarning(info){
+			if(!this.$util.isEmpty(info.warningUrl)){
+				this.$util.pageTo({ url:info.warningUrl})
+			}
+		},
     handlePageLoad() {},
     handlePageUnload() {},
     handlePageShow() {
@@ -811,7 +816,7 @@ export default {
   }
 }
 .warning-banner {
-  background-color: #ff6b6b;
+  background-color: red;
   border-radius: 8upx;
   margin: 0upx 10upx 20upx 10upx;
   padding: 20upx 24upx;
@@ -1054,7 +1059,7 @@ export default {
   margin: 22upx 24upx 0;
   padding: 22upx 28upx;
   border-radius: 20upx;
-  background: linear-gradient(90deg, #ff393f 0%, #ff4d4f 100%);
+  background: red;
   box-shadow: 0 10upx 22upx rgba(255, 57, 63, 0.18);
   color: #fff;
   font-size: 30upx;

+ 69 - 0
hdApp/src/admin/notice/warning.vue

@@ -0,0 +1,69 @@
+<template>
+	<view>
+		<view class="warning-page">
+			<view class="video-wrap">
+				<video
+					id="myVideo"
+					show-mute-btn="true"
+					:src="videoUrl"
+					object-fit="contain"
+					class="warning-video"
+				></video>
+			</view>
+			<view class="btn-wrap">
+				<button class="admin-button-com big blue back-btn" @click="goBack">返回</button>
+			</view>
+		</view>
+	</view>
+</template>
+<script>
+/**
+ * 花店端警示说明视频页;续费成功等场景跳转播放平台通知视频。
+ */
+import { APIHOST } from '@/config'
+
+export default {
+	name: 'noticeWarning',
+	data() {
+		return {
+			videoUrl: ''
+		}
+	},
+	methods: {
+		// globalMixins onLoad 会调用 init,此处加载并自动播放警示视频
+		init() {
+			this.videoUrl = APIHOST + '/jc/warning.mp4'
+			this.videoContext = uni.createVideoContext('myVideo', this)
+			this.videoContext.play()
+		},
+		goBack() {
+			uni.navigateBack()
+		}
+	}
+}
+</script>
+<style lang="scss" scoped>
+.warning-page {
+	padding: 40upx 20upx;
+	width: 95vw;
+	font-size: 36upx;
+}
+
+.video-wrap {
+	margin-top: 20upx;
+}
+
+.warning-video {
+	width: 700upx;
+	height: 1100upx;
+}
+
+.btn-wrap {
+	margin-top: 40upx;
+	text-align: center;
+}
+
+.back-btn {
+	width: 200upx;
+}
+</style>

+ 6 - 0
hdApp/src/pages.json

@@ -53,6 +53,12 @@
 				{"path": "calculator","style": {"navigationBarTitleText": "计算器","enablePullDownRefresh": false}}
 			]
 		},
+		{
+			"root": "admin/notice",
+			"pages": [
+				{"path": "warning","style": {"navigationBarTitleText": "详情"}}
+			]
+		},
 		{
 			"root": "admin/ptItem",
 			"pages": [