|
@@ -526,29 +526,43 @@ export default class Detail extends Component {
|
526
|
526
|
const { userInfo: { miniApp: { tpls } } } = this.props
|
527
|
527
|
const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_GROUP && x.isSubscribe == true))[0].tplId
|
528
|
528
|
const that = this
|
529
|
|
- wx.requestSubscribeMessage({
|
530
|
|
- tmplIds: [tplId],
|
531
|
|
- success(res) {
|
532
|
|
-
|
533
|
|
- },
|
534
|
|
- fail(res) {
|
535
|
|
-
|
536
|
|
- },
|
537
|
|
- complete() {
|
538
|
|
- // 必须授权头像
|
539
|
|
- if (that.toggleGrantAvatar()) {
|
540
|
|
- const recordDetail = that.state.recordDetail
|
541
|
|
- if (!recordDetail.recordId) {
|
542
|
|
- // 如果是未发起的拼团, 先以当前人身份发起
|
543
|
|
- that.startMine(() => {
|
544
|
|
- that.toggleActionVisible()
|
545
|
|
- })
|
546
|
|
- } else {
|
547
|
|
- that.toggleActionVisible()
|
548
|
|
- }
|
549
|
|
- }
|
|
529
|
+
|
|
530
|
+ // 必须授权头像
|
|
531
|
+ if (that.toggleGrantAvatar()) {
|
|
532
|
+ const recordDetail = that.state.recordDetail
|
|
533
|
+ if (!recordDetail.recordId) {
|
|
534
|
+ // 如果是未发起的拼团, 先以当前人身份发起
|
|
535
|
+ that.startMine(() => {
|
|
536
|
+ that.toggleActionVisible()
|
|
537
|
+ })
|
|
538
|
+ } else {
|
|
539
|
+ that.toggleActionVisible()
|
550
|
540
|
}
|
551
|
|
- })
|
|
541
|
+ }
|
|
542
|
+
|
|
543
|
+ // wx.requestSubscribeMessage({
|
|
544
|
+ // tmplIds: [tplId],
|
|
545
|
+ // success(res) {
|
|
546
|
+
|
|
547
|
+ // },
|
|
548
|
+ // fail(res) {
|
|
549
|
+
|
|
550
|
+ // },
|
|
551
|
+ // complete() {
|
|
552
|
+ // // 必须授权头像
|
|
553
|
+ // if (that.toggleGrantAvatar()) {
|
|
554
|
+ // const recordDetail = that.state.recordDetail
|
|
555
|
+ // if (!recordDetail.recordId) {
|
|
556
|
+ // // 如果是未发起的拼团, 先以当前人身份发起
|
|
557
|
+ // that.startMine(() => {
|
|
558
|
+ // that.toggleActionVisible()
|
|
559
|
+ // })
|
|
560
|
+ // } else {
|
|
561
|
+ // that.toggleActionVisible()
|
|
562
|
+ // }
|
|
563
|
+ // }
|
|
564
|
+ // }
|
|
565
|
+ // })
|
552
|
566
|
|
553
|
567
|
}
|
554
|
568
|
|