소스 검색

首页UI调整

xiansin 4 년 전
부모
커밋
a0319b471a
2개의 변경된 파일16개의 추가작업 그리고 6개의 파일을 삭제
  1. 14 4
      components/page-component/app-my-app/app-my-share.vue
  2. 2 2
      pages/index/index.vue

+ 14 - 4
components/page-component/app-my-app/app-my-share.vue

xqd xqd xqd
@@ -32,6 +32,13 @@
             <view class="save-btn" @click="saveImg">保存二维码</view>
         </view>
     </view>
+    <view class="app-my-share" v-else
+          :class="fixed?'fixed':''"
+          :style="{backgroundColor: newData.background}">
+        <view class="share-info">
+            <text class="nickname" :style="{color:newData.color}">{{mall.name}}</text>
+        </view>
+    </view>
 </template>
 <script>
     import {mapState, mapGetters} from 'vuex';
@@ -66,6 +73,12 @@
                     return {};
                 }
             },
+            mall: {
+                type: Object,
+                default() {
+                    return {};
+                }
+            },
         },
         data(){
             return {
@@ -100,10 +113,7 @@
                         }
                     }
                 });
-            }
-        },
-        onLoad(){
-
+            },
         },
         computed: {
             ...mapState('mallConfig', {

+ 2 - 2
pages/index/index.vue

xqd xqd
@@ -3,6 +3,7 @@
         <app-my-share
                 :shareInfo="shareInfo"
                 :tabBarNavs="tabBarNavs"
+                :mall="mall"
                 :fixed="shareFixed"></app-my-share>
         <app-my-app v-if="config.is_add_app == 1"></app-my-app>
         <template v-if="type === 'mall'">
@@ -285,8 +286,7 @@
                         _this.shareInfo = response.data.identity
                     }
                 })
-            }
-
+            },
         },
         onShareAppMessage() {
             let args = {