xiaohaizhao 8 месяцев назад
Родитель
Сommit
01768ccc36

+ 1 - 0
packageA/market/detail.scss

@@ -169,6 +169,7 @@ swiper {
         box-sizing: border-box;
         height: 28rpx;
         line-height: 28rpx;
+        max-width: 104rpx;
       }
     }
 

+ 2 - 2
packageA/market/detail.wxml

@@ -47,7 +47,7 @@
                     <block wx:if="{{it.isonlydisplay == 1}}">
                         <navigator wx:if="{{item.flag}}" url="#" class="product {{content[it.value] === item.parm ? 'active' :''}}" bindtap="changeItemno" data-valuename="{{it.value}}" data-value="{{item}}">
                             {{item.parm=='custom'?'自定义':item.parm}}
-                            <view wx:if="{{item.delistingstatus}}" class="tag">
+                            <view wx:if="{{item.delistingstatus}}" class="tag line-1">
                                 {{item.delistingstatus}}
                             </view>
                         </navigator>
@@ -55,7 +55,7 @@
                     <block wx:else>
                         <navigator url="#" class="product {{content[it.value] === item.parm ? 'active' :''}} {{item.flag ? '' : 'disabled'}}" bindtap="changeItemno" data-valuename="{{it.value}}" data-value="{{item}}">
                             {{item.parm=='custom'?'自定义':item.parm}}
-                            <view wx:if="{{item.delistingstatus}}" class="tag">
+                            <view wx:if="{{item.delistingstatus}}" class="tag line-1">
                                 {{item.delistingstatus}}
                             </view>
                         </navigator>

+ 1 - 1
pages/index/annunciate/index.js

@@ -155,7 +155,7 @@ Component({
       wx.createSelectorQuery().in(this).select('#editor').context(function (res) {
         editor = res.context;
       }).exec()
-      this.getList()
+      // this.getList()
     }
   }
 })

+ 2 - 0
pages/index/index.js

@@ -74,6 +74,7 @@ Page({
 		})
 	},
 	onShow() {
+		this.selectComponent('#Annunciate').getList();
 		// if (wx.getAccountInfoSync().miniProgram.envVersion !== 'release') this.refreshData();
 	},
 	/**
@@ -336,6 +337,7 @@ Page({
 	 */
 	async NavChange(e) {
 		let cur = e.currentTarget.dataset.cur;
+		if (cur == 'Home') this.selectComponent('#Annunciate').getList();
 		if (this.data.PageCur == cur) return;
 		if (cur == 'Market' || cur == 'Collect') {
 			let app = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ["E-订单"], ["商品档案"])[0].apps

+ 1 - 1
pages/index/index.wxml

@@ -17,7 +17,7 @@
 <view hidden="{{PageCur!='UserCenter'}}">
 	<UserCenter id='UserCenter' />
 </view>
-<Annunciate />
+<Annunciate id="Annunciate" />
 
 <view class="cu-bar tabbar bg-white foot">
 	<view class="action {{PageCur=='Home'?'text-blue':'text-gray'}}" bindtap="NavChange" data-cur="Home">