shish 4 лет назад
Родитель
Сommit
175719fc37

+ 2 - 2
mallApp/src/components/app-swiper.vue

@@ -62,14 +62,14 @@ export default {
 	computed: {
 		widthFn() {
 			if (this.width.type == 'number') {
-				return uni.upx2upx(this.width.val) + 'px'
+				return uni.upx2px(this.width.val) + 'px'
 			} else {
 				return this.width.val
 			}
 		},
 		heightFn() {
 			if (this.height.type == 'number') {
-				return uni.upx2upx(this.height.val) + 'px'
+				return uni.upx2px(this.height.val) + 'px'
 			} else {
 				return this.height.val
 			}

+ 2 - 2
mallApp/src/components/plugin/tabs.vue

@@ -159,12 +159,12 @@ export default {
 	},
 	computed: {
 		// addTabWidth() {
-		// 	return uni.upx2upx(130)
+		// 	return uni.upx2px(130)
 		// }
 	},
 	methods: {
 		checkCor: function() {
-			let addTabWidth = this.isAdd ? uni.upx2upx(this.addTabWidth + 30) : 0
+			let addTabWidth = this.isAdd ? uni.upx2px(this.addTabWidth + 30) : 0
 			let tabsNum = this.tabs.length
 			let padding = (this.winWidth / 750) * this.padding
 			let width = this.winWidth - padding * 2 - addTabWidth

+ 1 - 1
mallApp/src/pages/chat/index.vue

@@ -75,7 +75,7 @@
 		},
 		computed: {
 			scrollHei() {
-				return uni.upx2upx(1334 - 170) + 'px'
+				return uni.upx2px(1334 - 170) + 'px'
 			}
 		},
 		methods: {

+ 5 - 6
mallApp/src/pages/home/category.vue

@@ -24,7 +24,6 @@
         <block v-else>
           <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
         </block>
-        <!--内容部分 end -->
       </scroll-view>
     </block>
     <tab-bar :current="1"></tab-bar>
@@ -76,17 +75,17 @@ export default {
       }
     },
     async sInit () {
-      this._getClass()
-        .then(res => {
+      this._getClass() .then(res => {
           this._list()
         })
     },
     // 分类
     _getClass () {
       return getClass().then(res => {
-        if (this.$util.isEmpty(res.data)) return false
-        this.form.categoryId = res.data[0].id
-        this.tabbar = res.data
+        if(res.code && res.code == 1){
+          this.form.categoryId = res.data[0].id
+          this.tabbar = res.data
+        }
       })
     },
     // 列表