Browse Source

feat: 素材管理

zhengxy 11 months ago
parent
commit
75fd96e112
1 changed files with 13 additions and 0 deletions
  1. 13 0
      project/src/components/welcomeGroup/detail.vue

+ 13 - 0
project/src/components/welcomeGroup/detail.vue

@@ -115,6 +115,19 @@ export default {
115 115
                 msgtype: 'link'
116 116
               }
117 117
             ]
118
+          } else if (res.rst.attachments['miniprogram']) {
119
+            this.attachments = [
120
+              {
121
+                miniprogram: {
122
+                  title: res.rst.attachments['miniprogram'].title,
123
+                  appid: res.rst.attachments['miniprogram'].appid,
124
+                  page: res.rst.attachments['miniprogram'].page,
125
+                  pic_media_id: res.rst.attachments['miniprogram'].pic_media_id,
126
+                  pic_url: res.rst.attachments['miniprogram'].pic_media_url,
127
+                },
128
+                msgtype: 'miniprogram'
129
+              }
130
+            ]
118 131
           }
119 132
 
120 133
           console.log('this.attachments => ', this.attachments)