瀏覽代碼

修改链接

unknown 2 年之前
父節點
當前提交
551c35f5b1

+ 5 - 1
project/src/components/customOperate/friendsCircle/QWdetial.vue

@@ -40,7 +40,11 @@
40 40
                 <video v-if="item.msgtype == 'video'" :key="item.media_id" :src="item[item.msgtype].pic_url" controls="controls" style="width: 200px;height: 200px;"></video>
41 41
                 <div class="flex-align-center" v-if="item.msgtype == 'link'">
42 42
                   <img :src="item.link.pic_url" alt="" style="width: 20px;height:100%;margin-right: 6px">
43
-                  <span>{{item.link.title?item.link.title:'-'}}</span>
43
+                  <span>
44
+                    <a :href="item.link.url" target="_blank">
45
+                       {{item.link.title?item.link.title:'-'}}
46
+                    </a>
47
+                  </span>
44 48
                 </div>
45 49
               </template>
46 50
             </div>

+ 6 - 2
project/src/components/customOperate/friendsCircle/QWfc.vue

@@ -47,7 +47,9 @@
47 47
                 </el-tooltip>
48 48
                 <div class="flex-align-center">
49 49
                   <img :src="scope.row.attachments[0].link.pic_url" alt="" style="width: 30px;height: 30px;margin-right: 6px">
50
-                  <span style="line-height: 16px;margin-top: 5px;color: #888">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</span>
50
+                  <span style="line-height: 16px;margin-top: 5px;color: #4F7EFF;cursor: pointer;">
51
+                    <a :href="scope.row.attachments[0].link.url" target="_blank">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</a>
52
+                  </span>
51 53
                 </div>
52 54
               </template>
53 55
               <template v-else>-</template>
@@ -65,7 +67,9 @@
65 67
               <template v-else-if="scope.row.attachments[0].msgtype == 'link'">
66 68
                 <div class="flex-align-center">
67 69
                   <img :src="scope.row.attachments[0].link.pic_url" alt="" style="width: 30px;height:30px;margin-right: 6px">
68
-                  <span style="line-height: 16px;margin-top: 5px;color: #888">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</span>
70
+                  <span style="line-height: 16px;margin-top: 5px;color: #4F7EFF;cursor: pointer;">
71
+                    <a :href="scope.row.attachments[0].link.url" target="_blank">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</a>
72
+                  </span>
69 73
                 </div>
70 74
               </template>
71 75
               <template v-else>-</template>

+ 10 - 2
project/src/components/customOperate/friendsCircle/fcList.vue

@@ -42,7 +42,11 @@
42 42
                 </el-tooltip>
43 43
                 <div class="flex-align-center">
44 44
                   <img :src="scope.row.attachments[0].link.pic_url" alt="" style="width: 30px;height: 30px;margin-right: 6px">
45
-                  <span style="line-height: 16px;margin-top: 5px;color: #888">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</span>
45
+                  <span style="line-height: 16px;margin-top: 5px;color: #4F7EFF;cursor: pointer;">
46
+                    <a :href="scope.row.attachments[0].link.url" target="_blank">
47
+                      {{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}
48
+                    </a>
49
+                  </span>
46 50
                 </div>
47 51
               </template>
48 52
               <template v-else>-</template>
@@ -59,7 +63,11 @@
59 63
             <template v-if="scope.row.attachments[0].msgtype == 'link'">
60 64
               <div class="flex-align-center">
61 65
                 <img :src="scope.row.attachments[0].link.pic_url" alt="" style="width: 30px;height:30px;margin-right: 6px">
62
-                <span style="line-height: 16px;margin-top: 5px;color: #888">{{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}</span>
66
+                <span style="line-height: 16px;margin-top: 5px;color: #4F7EFF;cursor: pointer;">
67
+                  <a :href="scope.row.attachments[0].link.url" target="_blank">
68
+                      {{scope.row.attachments[0].link.title?scope.row.attachments[0].link.title:'-'}}
69
+                  </a>
70
+                </span>
63 71
               </div>
64 72
             </template>
65 73
           </template>

+ 5 - 1
project/src/components/customOperate/friendsCircle/fcListdetial.vue

@@ -21,7 +21,11 @@
21 21
             <video v-if="item.msgtype == 'video'" :key="item.media_id" :src="item[item.msgtype].pic_url" controls="controls" style="width: 200px;height: 200px;"></video>
22 22
             <div class="flex-align-center" v-if="item.msgtype == 'link'">
23 23
               <img :src="item.link.pic_url" alt="" style="width: 30px;margin-right: 6px;margin-top:0">
24
-              <span class="f14 line18">{{item.link.title?item.link.title:'-'}}</span>
24
+              <span class="f14 line18">
25
+                  <a :href="item.link.url" target="_blank">
26
+                     {{item.link.title?item.link.title:'-'}}
27
+                  </a>
28
+              </span>
25 29
             </div>
26 30
           </template>
27 31
         </div>