Browse Source

解决供货商小程序的横向滚动条的问题

wangn 5 years ago
parent
commit
561ac1c047
1 changed files with 18 additions and 15 deletions
  1. 18 15
      ghsApp/src/admin/home/me.vue

+ 18 - 15
ghsApp/src/admin/home/me.vue

@@ -22,7 +22,10 @@
         <view class="me-shop_content content_box">
         <view class="me-shop_content content_box">
           <view class="me-shop_top">
           <view class="me-shop_top">
             <view class="shop-top_left">
             <view class="shop-top_left">
-              <app-avatar-module :src="infoData.shopImg" :width="100" />
+              <app-avatar-module
+                :src="infoData.shopImg"
+                :width="100"
+              />
               <view class="top-info_box">
               <view class="top-info_box">
                 <view>
                 <view>
                   {{ infoData.sjName }}
                   {{ infoData.sjName }}
@@ -64,8 +67,7 @@
                 v-if="infoData.txBalance > 0"
                 v-if="infoData.txBalance > 0"
                 @click="checkToApplyCash"
                 @click="checkToApplyCash"
                 class="to-cash"
                 class="to-cash"
-                >提现</text
-              >
+              >提现</text>
             </view>
             </view>
           </view>
           </view>
           <button
           <button
@@ -155,32 +157,32 @@ export default {
   computed: {
   computed: {
     ...mapGetters(["getLoginInfo"]),
     ...mapGetters(["getLoginInfo"]),
   },
   },
-  data() {
+  data () {
     return {
     return {
       constant: this.$constant,
       constant: this.$constant,
       infoData: {},
       infoData: {},
     };
     };
   },
   },
-  onPullDownRefresh() {
-					this.init()
+  onPullDownRefresh () {
+    this.init()
   },
   },
-  onShow(){
+  onShow () {
     // this.init()
     // this.init()
   },
   },
   methods: {
   methods: {
-    shopShow() {
+    shopShow () {
       this.shopId = this.getLoginInfo.shopId;
       this.shopId = this.getLoginInfo.shopId;
       this.$refs.dorpdownSelect.dropdownShow = true;
       this.$refs.dorpdownSelect.dropdownShow = true;
     },
     },
-    async init() {
+    async init () {
       try {
       try {
         const { data } = await mainMy();
         const { data } = await mainMy();
         this.infoData = data;
         this.infoData = data;
-							uni.stopPullDownRefresh();
+        uni.stopPullDownRefresh();
       } finally {
       } finally {
       }
       }
     },
     },
-    async selectSussess() {
+    async selectSussess () {
       uni.showLoading({
       uni.showLoading({
         title: "加载中",
         title: "加载中",
       });
       });
@@ -197,7 +199,7 @@ export default {
         uni.hideLoading();
         uni.hideLoading();
       }
       }
     },
     },
-    checkToApplyCash() {
+    checkToApplyCash () {
       let self = this;
       let self = this;
       //没有设置提现帐号则提示
       //没有设置提现帐号则提示
       if (self.infoData.cashAccount == "") {
       if (self.infoData.cashAccount == "") {
@@ -215,10 +217,10 @@ export default {
         self.applyCash();
         self.applyCash();
       }
       }
     },
     },
-    async applyCash() {
-        const { data } = await applyCash({});
+    async applyCash () {
+      const { data } = await applyCash({});
     },
     },
-    _list() {},
+    _list () { },
   },
   },
 };
 };
 </script>
 </script>
@@ -226,6 +228,7 @@ export default {
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .me-content_box {
 .me-content_box {
   position: relative;
   position: relative;
+  overflow-x: hidden;
   .content_box {
   .content_box {
     background-color: #ffffff;
     background-color: #ffffff;
     box-shadow: 0px 1px 0px 0px #eeeeee;
     box-shadow: 0px 1px 0px 0px #eeeeee;