Przeglądaj źródła

Merge branch 'dev_v3_lqw' into dev_v3

ext.liuqiwen3 2 tygodni temu
rodzic
commit
8533efb361

+ 1 - 1
pages/merchantCenters/productCate/productCate.vue

@@ -56,7 +56,7 @@
 				</view>
 				<view class="pop-ipt">
 					<textarea class="item-textarea" @confirm="ensureAttrHandle" maxlength="100" :focus="iptFocus"
-						v-model="cipt" cursorSpacing="100" :placeholder="ciptPlaceholder" />
+						v-model="cipt" cursorSpacing="200" :placeholder="ciptPlaceholder" :show-confirm-bar="false" />
 				</view>
 				<view class="action-btn" @click="ensureAttrHandle"> 确定 </view>
 			</view>

+ 17 - 2
pages/merchantCenters/releaseProduct.vue

@@ -266,7 +266,7 @@
 		</view>
 
 		<!-- 发布按钮 -->
-		<view class="btn-view">
+		<view class="btn-view" :style="btnViewStyle">
 			<button class="submit" @click="submitForm">立即发布</button>
 		</view>
 
@@ -515,8 +515,23 @@
 		}
 	});
 
+  // 键盘高度监听
+  const keyboardHeight = ref(0);
+
+  // 计算按钮容器的样式
+  const btnViewStyle = computed(() => {
+    return {
+      position: keyboardHeight.value > 0 ? `relative` : 'fixted',
+    };
+  });
+
 	// 页面生命周期
-	onShow(() => {})
+	onShow(() => {
+    uni.onKeyboardHeightChange((res) => {
+      console.log('键盘高度变化:', res.height);
+      keyboardHeight.value = res.height;
+    });
+  })
 
 	onLoad(async (options) => {
 		appStore.SET_CPATTR([])