From c8cef398fbf1f9b63dbf23637ef520b421515dc9 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 20 十一月 2025 10:13:08 +0800
Subject: [PATCH] 领劵中心修改显示,售后修改银行信息非必填
---
pages/cusbar/video/video.vue | 42 +++++++++++++++++++++++++++++++++++++++---
1 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/pages/cusbar/video/video.vue b/pages/cusbar/video/video.vue
index 0995917..e5d6cdd 100644
--- a/pages/cusbar/video/video.vue
+++ b/pages/cusbar/video/video.vue
@@ -213,6 +213,7 @@
import { getRecommendTag3 } from "@/api/video-tag.js";
import { getFileKey } from "@/utils/file.js";
import { getVideoGoodsList } from "@/api/goods.js";
+import { getSessionId, userAction } from "@/api/userAction.js";
export default {
components: {MyTag},
@@ -267,13 +268,25 @@
screenWidth: 375,
gap: 10, // 鍥剧墖闂磋窛
windowHeight: 0,
- marginBottom: 0
+ marginBottom: 0,
+ pageSessionNo:"",
+ actionParam:{
+ sessionId:'',
+ actionType:"PAGE",
+ joinType:"SELF",
+ pageCode:"PUBLISH_VIDEO",
+ pageParams:"{}",
+ pageStatus:"JOIN",
+ pageType:"LIST"
+ }
};
},
computed: {
canPublish() {
if(this.formData.videoContentType === 'video') {
- return this.formData.videoFileKey && this.formData.title && this.formData.cover;
+ //鍙栨秷闄愬埗灏侀潰蹇呬紶
+ return this.formData.videoFileKey && this.formData.title;
+ // return this.formData.videoFileKey && this.formData.title && this.formData.cover;
} else if(this.formData.videoContentType === 'img') {
return this.formData.videoImgs.length > 0 && this.formData.title;
}
@@ -286,7 +299,22 @@
return (this.screenWidth - (this.gap * 4) - 20) / 3
}
},
- onLoad() {
+ onUnload() {
+ let param = Object.assign({}, this.actionParam);
+ if (this.sendOnShow)return
+ param.pageStatus = "LEAVE"
+ userAction(param)
+ },
+ onHide() {
+ this.startHidenTime = Date.now()
+ let param = Object.assign({}, this.actionParam);
+ this.sendOnShow = true;
+ param.pageStatus = "LEAVE"
+ userAction(param)
+ },
+ onLoad(options) {
+ this.actionParam.pageParams = JSON.stringify(options)
+
// 鑾峰彇灞忓箷瀹藉害
const systemInfo = uni.getSystemInfoSync()
this.screenWidth = systemInfo.windowWidth
@@ -297,6 +325,14 @@
this.getVideoGoodsByEs()
},
onShow() {
+ getSessionId().then(res=>{
+ this.pageSessionNo = res.data.data
+ this.actionParam.sessionId = this.pageSessionNo
+ if(this.pageSessionNo){
+ let param = Object.assign({}, this.actionParam);
+ userAction(param)
+ }
+ })
this.initCOS()
// 鍒濆鍖栨帹鑽愭爣绛�
this.getRecommendTags()
--
Gitblit v1.8.0