Преглед на файлове

始宁农业小程序:样式

panyong преди 1 година
родител
ревизия
f5890888b5

+ 0 - 1
htmldev/shiningManage/src/views/productManage/products/index.vue

@@ -171,7 +171,6 @@ export default {
       this.detailsDialog.exData = row
       this.detailsDialog.show = true
     },
-    // todo 推荐接口报错
     del(row) {
       this.$confirm('确定要推荐吗', '确认', {
         type: 'warning'

+ 1 - 1
htmldev/shiningWxMini/app.wxss

@@ -40,7 +40,7 @@ view.footer-fixed-bottom {
   bottom: 0;
   z-index: 10;
   background: rgba(255, 255, 255, 1);
-  box-shadow: 0 -16px 15px 0 rgba(237, 237, 237, 0.25);
+  box-shadow: 0 -16rpx 15rpx 0 rgba(237, 237, 237, 0.25);
 }
 
 view.footer-fixed-bottom > view {

+ 6 - 1
htmldev/shiningWxMini/pages/mediaDetail/mediaDetail.js

@@ -16,7 +16,8 @@ Page({
     form: {
       comment: ''
     },
-    booLock: false
+    booLock: false,
+    inputPosition: 'fixed'
   },
   ...pages.methods,
   /**
@@ -95,6 +96,10 @@ Page({
       imageUrl: video_cover_url
     }
   },
+  handleFocus() {
+    const sys = wx.getSystemInfoSync()
+  },
+  handleBlur() {},
   setComment(event) {
     const { value } = event.detail
 

+ 6 - 0
htmldev/shiningWxMini/pages/mediaDetail/mediaDetail.scss

@@ -1,3 +1,9 @@
+page {
+  position: relative;
+  left: 0;
+  top: 0;
+}
+
 .wrapper {
   width: 100%;
   padding-bottom: 100rpx;

+ 3 - 1
htmldev/shiningWxMini/pages/mediaDetail/mediaDetail.wxml

@@ -50,7 +50,7 @@
 
 <view
   class="footer-fixed-bottom"
-  style="box-shadow: none;">
+  style="box-shadow: none;position: {{inputPosition}}">
   <view>
     <view class="form-item">
       <image
@@ -61,6 +61,8 @@
         value="{{form.comment}}"
         placeholder="说点什么吧..."
         :cursor-spacing="{{60}}"
+        bind:focus="handleFocus"
+        bind:blur="handleBlur"
         bind:input="setComment"></input>
       <button
         class="btn-send"