From ca1ce1acc217be0b510e7ee44fcdd3ee85558fde Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 29 六月 2025 20:00:25 +0800
Subject: [PATCH] 视频发布、编辑页面优化、绿满筐名字更换

---
 pages/video/video-edit.vue   |   32 +++++++++------
 pages/tabbar/video/video.vue |   22 +++++++----
 manifest.json                |    4 +-
 components/dropdown-menu.vue |    2 
 config/config.js             |    2 
 pages/promotion/lives.vue    |    2 
 6 files changed, 38 insertions(+), 26 deletions(-)

diff --git a/components/dropdown-menu.vue b/components/dropdown-menu.vue
index 24b7d60..b9bc7f3 100644
--- a/components/dropdown-menu.vue
+++ b/components/dropdown-menu.vue
@@ -124,7 +124,7 @@
   height: 70rpx;
   line-height: 70rpx;
   border-radius: 8rpx;
-  background-color: #fff;
+  // background-color: #fff;
   box-sizing: border-box;
   cursor: pointer;
   
diff --git a/config/config.js b/config/config.js
index c2f21c2..2f941be 100644
--- a/config/config.js
+++ b/config/config.js
@@ -1,4 +1,4 @@
-const name = "lilishop"; //鍏ㄥ眬鍟嗗煄name
+const name = "缁挎弧绛�"; //鍏ㄥ眬鍟嗗煄name
 const schemeName = "lilishop"; //鍞ら啋app闇�瑕佺殑schemeName
 export default {
   name: name,
diff --git a/manifest.json b/manifest.json
index f28fd02..ecd7434 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,5 @@
 {
-    "name" : "lilishop",
+    "name" : "缁挎弧绛�",
     "appid" : "__UNI__818CC42",
     "description" : "",
     "versionName" : "4.5.3",
@@ -232,7 +232,7 @@
                 "enable" : true
             }
         },
-        "title" : "lilishop",
+        "title" : "缁挎弧绛�",
         "template" : ""
     }
 }
diff --git a/pages/promotion/lives.vue b/pages/promotion/lives.vue
index 0bf3540..8fc54e1 100644
--- a/pages/promotion/lives.vue
+++ b/pages/promotion/lives.vue
@@ -29,7 +29,7 @@
             {{item.name}}
           </div>
           <div class="live-store">
-            <span class="wes">lilishop</span>
+            <span class="wes">缁挎弧绛�</span>
           </div>
           <div class="live-goods-list">
             <div class="live-goods-item">
diff --git a/pages/tabbar/video/video.vue b/pages/tabbar/video/video.vue
index 0bdff1e..c70a040 100644
--- a/pages/tabbar/video/video.vue
+++ b/pages/tabbar/video/video.vue
@@ -1,5 +1,5 @@
 <template>
-  <view class="publish-container">
+  <view class="publish-container" :style="{height: windowHeight - marginBottom - 50 + 'px'}">
 	<u-popup v-model="fileTypeShow" mode="bottom"  round="20" height="35%">
 		<view style="width: 100%;height:100%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
 			<view>璇烽�夋嫨瑕佸彂甯冪殑绫诲瀷</view>
@@ -75,7 +75,7 @@
               @input="searchTags"
             ></u-input>
             <!-- 宸查�夎瘽棰樺睍绀� -->
-            <view class="tags-display" v-if="formData.tags.length > 0">
+            <view class="tags-display" v-show="formData.tags.length > 0">
               <my-tag
                 v-for="(tag, index) in formData.tags"
                 :key="index"
@@ -85,12 +85,12 @@
                 @close="removeTag(index)"
               />
             </view>
-            <text class="tags-count" v-if="formData.tags.length > 0">
+            <text class="tags-count" v-show="formData.tags.length > 0">
               宸查�� {{ formData.tags.length }}/5
             </text>
           </view>
 		  <!-- 璇濋鎺ㄨ崘 -->
-		  <view class="hot-topics" v-if="showTopicRecommendations">
+		  <view class="hot-topics" v-show="showTopicRecommendations">
 		    <text class="section-title">{{ tagInput ? '鎺ㄨ崘璇濋' : '鐑棬璇濋' }}</text>
 		    <view class="topic-list">
 		      <my-tag
@@ -125,7 +125,7 @@
               ></u-icon>
             </u-input>
             <view class="goods-preview" @click="chooseGoods" v-for="goods in selectedGoodsList" :key="goods.id">
-              <image :src="goods.thumbnail" class="goods-image"></image>
+              <image :src="endpoint + '/' + goods.thumbnail" class="goods-image"></image>
               <view class="goods-info">
                 <text class="goods-name">{{ goods.goodsName }}</text>
 				<view style="display: flex;">
@@ -183,7 +183,7 @@
             :key="goods.id"
             @click="selectGoods(goods, index)"
           >
-            <image :src="goods.thumbnail" class="goods-image"></image>
+            <image :src="endpoint + '/' + goods.thumbnail" class="goods-image"></image>
             <view class="goods-info">
               <text class="goods-name">{{ goods.goodsName }}</text>
               <text class="goods-price">楼{{ goods.price }}</text>
@@ -265,7 +265,9 @@
         ]
       },
 	  screenWidth: 375,
-	  gap: 10 // 鍥剧墖闂磋窛
+	  gap: 10, // 鍥剧墖闂磋窛
+	  windowHeight: 0,
+	  marginBottom: 0
     };
   },
   computed: {
@@ -288,6 +290,8 @@
     // 鑾峰彇灞忓箷瀹藉害
 	const systemInfo = uni.getSystemInfoSync()
 	this.screenWidth = systemInfo.windowWidth
+	this.windowHeight = systemInfo.windowHeight
+	this.marginBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
 	this.goodsQuery.pageNumber = 0
 	this.goodsQuery.pageSize = 10
 	this.getVideoGoodsByEs()
@@ -696,7 +700,7 @@
 <style scoped>
 .publish-container {
   padding: 10px;
-  padding-bottom: 120rpx;
+  overflow-y: scroll;
 }
 
 .upload-section {
@@ -812,6 +816,7 @@
   flex-wrap: wrap;
   margin-top: 15rpx;
   line-height: 22px;
+  height: 80rpx;
 }
 
 .hot-topics {
@@ -819,6 +824,7 @@
 	flex-direction: column;
 	margin-top: 15rpx;
 	margin-bottom: 15rpx;
+	height: 46rpx;
 }
 
 .section-title {
diff --git a/pages/video/video-edit.vue b/pages/video/video-edit.vue
index bfa119a..66fcb5d 100644
--- a/pages/video/video-edit.vue
+++ b/pages/video/video-edit.vue
@@ -1,5 +1,5 @@
 <template>
-  <view class="publish-container">
+  <view class="publish-container" :style="{height: windowHeight - marginBottom - 50 + 'px'}">
 	<u-popup v-model="fileTypeShow" mode="bottom"  round="20" height="35%">
 		<view style="width: 100%;height:100%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
 			<view>璇烽�夋嫨瑕佸彂甯冪殑绫诲瀷</view>
@@ -75,7 +75,7 @@
               @input="searchTags"
             ></u-input>
             <!-- 宸查�夎瘽棰樺睍绀� -->
-            <view class="tags-display" v-if="formData.tags.length > 0">
+            <view class="tags-display" v-show="formData.tags.length > 0">
               <my-tag
                 v-for="(tag, index) in formData.tags"
                 :key="index"
@@ -85,12 +85,12 @@
                 @close="removeTag(index)"
               />
             </view>
-            <text class="tags-count" v-if="formData.tags.length > 0">
+            <text class="tags-count" v-show="formData.tags.length > 0">
               宸查�� {{ formData.tags.length }}/5
             </text>
           </view>
 		  <!-- 璇濋鎺ㄨ崘 -->
-		  <view class="hot-topics" v-if="showTopicRecommendations">
+		  <view class="hot-topics" v-show="showTopicRecommendations">
 		    <text class="section-title">{{ tagInput ? '鎺ㄨ崘璇濋' : '鐑棬璇濋' }}</text>
 		    <view class="topic-list">
 		      <my-tag
@@ -125,7 +125,7 @@
               ></u-icon>
             </u-input>
             <view class="goods-preview" @click="chooseGoods" v-for="goods in selectedGoodsList" :key="goods.id">
-              <image :src="goods.thumbnail" class="goods-image"></image>
+              <image :src="endpoint + '/' + goods.thumbnail" class="goods-image"></image>
               <view class="goods-info">
                 <text class="goods-name">{{ goods.goodsName }}</text>
 				<view style="display: flex;">
@@ -183,7 +183,7 @@
             :key="goods.id"
             @click="selectGoods(goods, index)"
           >
-            <image :src="goods.thumbnail" class="goods-image"></image>
+            <image :src="endpoint + '/' + goods.thumbnail" class="goods-image"></image>
             <view class="goods-info">
               <text class="goods-name">{{ goods.goodsName }}</text>
               <text class="goods-price">楼{{ goods.price }}</text>
@@ -240,7 +240,7 @@
 	  goodsQuery: {
 		keyword: '',
 		searchFromSelfStore: false, // 鏄惁鏄煡璇㈣嚜瀹跺簵閾哄晢鍝�
-		pageNumber: 1,
+		pageNumber: 0,
 		pageSize: 5
 	  },
       formData: {
@@ -266,7 +266,9 @@
         ]
       },
 	  screenWidth: 375,
-	  gap: 10 // 鍥剧墖闂磋窛
+	  gap: 10, // 鍥剧墖闂磋窛
+	  windowHeight: 0,
+	  marginBottom: 0
     };
   },
   computed: {
@@ -290,7 +292,9 @@
     // 鑾峰彇灞忓箷瀹藉害
 	const systemInfo = uni.getSystemInfoSync()
 	this.screenWidth = systemInfo.windowWidth
-	this.goodsQuery.pageNumber = 1
+	this.windowHeight = systemInfo.windowHeight
+	this.marginBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
+	this.goodsQuery.pageNumber = 0
 	this.goodsQuery.pageSize = 10
 	this.getVideoGoodsByEs()
 	
@@ -333,7 +337,7 @@
 	  },
 	  // 澶勭悊鍟嗗搧鎼滅储鍊�
 	  handlerGoodsSearch() {
-		  this.goodsQuery.pageNumber = 1
+		  this.goodsQuery.pageNumber = 0
 		  this.goodsQuery.pageSize = 10
 		  this.getVideoGoodsByEs()
 	  },
@@ -341,7 +345,7 @@
 	  async getVideoGoodsByEs() {
 		getVideoGoodsList(this.goodsQuery).then(res => {
 			
-			if(this.goodsQuery.pageNumber === 1) {
+			if(this.goodsQuery.pageNumber === 0) {
 				this.goodsList = res.data.data
 			} else {
 				this.goodsList = [
@@ -721,7 +725,7 @@
 <style scoped>
 .publish-container {
   padding: 10px;
-  padding-bottom: 120rpx;
+  overflow-y: scroll;
 }
 
 .upload-section {
@@ -837,6 +841,7 @@
   flex-wrap: wrap;
   margin-top: 15rpx;
   line-height: 22px;
+  height: 80rpx;
 }
 
 .hot-topics {
@@ -844,8 +849,8 @@
 	flex-direction: column;
 	margin-top: 15rpx;
 	margin-bottom: 15rpx;
+	height: 46rpx;
 }
-
 .section-title {
   font-size: 12px;
   color: #999;
@@ -868,6 +873,7 @@
   left: 20rpx;
   right: 20rpx; */
   margin-top: 40rpx;
+  margin-bottom: 150rpx;
 }
 
 .goods-picker {

--
Gitblit v1.8.0