许静 5 年 前
コミット
d91439ff2d
共有4 個のファイルを変更した7 個の追加4 個の削除を含む
  1. 4
    2
      src/pages/activity/detail/assemble.js
  2. 1
    1
      src/pages/activity/detail/assistance.js
  3. 1
    1
      src/pages/activity/item/index.js
  4. 1
    0
      src/pages/shop/index.scss

+ 4
- 2
src/pages/activity/detail/assemble.js ファイルの表示

@@ -38,10 +38,12 @@ const GroupFailure = 2;
38 38
 
39 39
 @connect(state => state.user)
40 40
 export default class Detail extends Component {
41
+
41 42
   config = {
42 43
     navigationBarTitleText: '拼团详情'
43 44
   }
44 45
 
46
+
45 47
   state = {
46 48
     id: null, // 活动ID
47 49
     recordId: undefined,  // 发起拼团ID
@@ -81,7 +83,7 @@ export default class Detail extends Component {
81 83
     if (!this.state.detail.groupActivityId) {
82 84
       let id = this.$router.params.id
83 85
       let recordId = this.$router.params.recordId
84
-     
86
+
85 87
       if (!id) {
86 88
         const router = Taro.getStorageSync('router')
87 89
         id = router.query.id
@@ -205,7 +207,7 @@ export default class Detail extends Component {
205 207
         this.updateLeftTime(res.taShareActivity.startTime, res.taShareActivity.endTime)
206 208
       }
207 209
 
208
-      Taro.setNavigationBarTitle({ title: res.taShareActivity.activityName })
210
+      // Taro.setNavigationBarTitle({ title: res.taShareActivity.activityName })
209 211
 
210 212
       // WxParse.wxParse('article', 'html', res.desc, this.$scope, 0)
211 213
 

+ 1
- 1
src/pages/activity/detail/assistance.js ファイルの表示

@@ -207,7 +207,7 @@ export default class Detail extends Component {
207 207
         this.updateLeftTime(res.helpActivity.startDate, res.helpActivity.endDate)
208 208
       }
209 209
 
210
-      Taro.setNavigationBarTitle({ title: res.helpActivity.title })
210
+      // Taro.setNavigationBarTitle({ title: res.helpActivity.title })
211 211
 
212 212
       // WxParse.wxParse('article', 'html', res.desc, this.$scope, 0)
213 213
 

+ 1
- 1
src/pages/activity/item/index.js ファイルの表示

@@ -26,7 +26,7 @@ export default class Item extends Component {
26 26
             <View className={data.type == 'help' ? 'type' : 'type2'}>{data.type == 'help' ? '助力' : '拼团'}</View>
27 27
 
28 28
           }
29
-          {(data.type == 'help' || data.type == 'group') &&
29
+          {(data.type == 'help' || data.type == 'group') && data.successNum > 0 &&
30 30
             <View className="success-num">
31 31
               <View className="triangle"></View>
32 32
               <View className="text">已成功 {data.successNum}</View>

+ 1
- 0
src/pages/shop/index.scss ファイルの表示

@@ -38,6 +38,7 @@
38 38
     left:0;
39 39
     width: 100%;
40 40
     height: 100%;
41
+    border-radius: 12px;
41 42
 
42 43
   }
43 44