Ver Fonte

首页UI调整

xiansin há 4 anos atrás
pai
commit
a0319b471a

+ 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 = {