|
12 | 12 | <!-- 类型 1:文本 -->
|
13 | 13 | <el-tab-pane name="text">
|
14 | 14 | <template #label>
|
15 |
| - <el-row align="middle"> |
16 |
| - <icon icon="ep:document" /> |
17 |
| - 文本 |
18 |
| - </el-row> |
| 15 | + <el-row align="middle"><Icon icon="ep:document" /> 文本</el-row> |
19 | 16 | </template>
|
20 | 17 | <el-input
|
21 | 18 | type="textarea"
|
|
28 | 25 | <!-- 类型 2:图片 -->
|
29 | 26 | <el-tab-pane name="image">
|
30 | 27 | <template #label>
|
31 |
| - <el-row align="middle"> |
32 |
| - <icon icon="ep:picture" class="mr-5px" /> |
33 |
| - 图片 |
34 |
| - </el-row> |
| 28 | + <el-row align="middle"><Icon icon="ep:picture" class="mr-5px" /> 图片</el-row> |
35 | 29 | </template>
|
36 | 30 | <!-- 情况一:已经选择好素材、或者上传好图片 -->
|
37 | 31 | <div class="select-item" v-if="objDataRef.url">
|
38 | 32 | <img class="material-img" :src="objDataRef.url" />
|
39 | 33 | <p class="item-name" v-if="objDataRef.name">{{ objDataRef.name }}</p>
|
40 | 34 | <el-row class="ope-row" justify="center">
|
41 | 35 | <el-button type="danger" circle @click="deleteObj">
|
42 |
| - <icon icon="ep:delete" /> |
| 36 | + <Icon icon="ep:delete" /> |
43 | 37 | </el-button>
|
44 | 38 | </el-row>
|
45 | 39 | </div>
|
|
48 | 42 | <!-- 选择素材 -->
|
49 | 43 | <el-col :span="12" class="col-select">
|
50 | 44 | <el-button type="success" @click="openMaterial">
|
51 |
| - 素材库选择 |
52 |
| - <icon icon="ep:circle-check" /> |
| 45 | + 素材库选择 <Icon icon="ep:circle-check" /> |
53 | 46 | </el-button>
|
54 | 47 | <el-dialog title="选择图片" v-model="dialogImageVisible" width="90%" append-to-body>
|
55 | 48 | <WxMaterialSelect :obj-data="objDataRef" @select-material="selectMaterial" />
|
|
70 | 63 | <el-button type="primary">上传图片</el-button>
|
71 | 64 | <template #tip>
|
72 | 65 | <span>
|
73 |
| - <div class="el-upload__tip" |
74 |
| - >支持 bmp/png/jpeg/jpg/gif 格式,大小不超过 2M</div |
75 |
| - ></span |
76 |
| - > |
| 66 | + <div class="el-upload__tip">支持 bmp/png/jpeg/jpg/gif 格式,大小不超过 2M</div> |
| 67 | + </span> |
77 | 68 | </template>
|
78 | 69 | </el-upload>
|
79 | 70 | </el-col>
|
|
82 | 73 | <!-- 类型 3:语音 -->
|
83 | 74 | <el-tab-pane name="voice">
|
84 | 75 | <template #label>
|
85 |
| - <el-row align="middle"> |
86 |
| - <icon icon="ep:phone" /> |
87 |
| - 语音 |
88 |
| - </el-row> |
| 76 | + <el-row align="middle"><Icon icon="ep:phone" /> 语音</el-row> |
89 | 77 | </template>
|
90 |
| - |
91 | 78 | <div class="select-item2" v-if="objDataRef.url">
|
92 | 79 | <p class="item-name">{{ objDataRef.name }}</p>
|
93 | 80 | <div class="item-infos">
|
|
121 | 108 | >
|
122 | 109 | <el-button type="primary">点击上传</el-button>
|
123 | 110 | <template #tip>
|
124 |
| - <div class="el-upload__tip" |
125 |
| - >格式支持 mp3/wma/wav/amr,文件大小不超过 2M,播放长度不超过 60s |
| 111 | + <div class="el-upload__tip"> |
| 112 | + 格式支持 mp3/wma/wav/amr,文件大小不超过 2M,播放长度不超过 60s |
126 | 113 | </div>
|
127 | 114 | </template>
|
128 | 115 | </el-upload>
|
|
132 | 119 | <!-- 类型 4:视频 -->
|
133 | 120 | <el-tab-pane name="video">
|
134 | 121 | <template #label>
|
135 |
| - <el-row align="middle"> |
136 |
| - <icon icon="ep:share" /> |
137 |
| - 视频 |
138 |
| - </el-row> |
| 122 | + <el-row align="middle"><Icon icon="ep:share" /> 视频</el-row> |
139 | 123 | </template>
|
140 | 124 | <el-row>
|
141 | 125 | <el-input
|
|
158 | 142 | <!-- 选择素材 -->
|
159 | 143 | <el-col :span="12">
|
160 | 144 | <el-button type="success" @click="openMaterial">
|
161 |
| - 素材库选择 |
162 |
| - <icon icon="ep:circle-check" /> |
| 145 | + 素材库选择 <Icon icon="ep:circle-check" /> |
163 | 146 | </el-button>
|
164 | 147 | <el-dialog title="选择视频" v-model="dialogVideoVisible" width="90%" append-to-body>
|
165 | 148 | <WxMaterialSelect :objData="objDataRef" @select-material="selectMaterial" />
|
|
177 | 160 | :before-upload="beforeVideoUpload"
|
178 | 161 | :on-success="handleUploadSuccess"
|
179 | 162 | >
|
180 |
| - <el-button type="primary" |
181 |
| - >新建视频 |
182 |
| - <icon icon="ep:upload" /> |
183 |
| - </el-button> |
| 163 | + <el-button type="primary">新建视频 <Icon icon="ep:upload" /></el-button> |
184 | 164 | </el-upload>
|
185 | 165 | </el-col>
|
186 | 166 | </el-row>
|
|
190 | 170 | <!-- 类型 5:图文 -->
|
191 | 171 | <el-tab-pane name="news">
|
192 | 172 | <template #label>
|
193 |
| - <el-row align="middle"> |
194 |
| - <icon icon="ep:reading" /> |
195 |
| - 图文 |
196 |
| - </el-row> |
| 173 | + <el-row align="middle"><Icon icon="ep:reading" /> 图文</el-row> |
197 | 174 | </template>
|
198 | 175 | <el-row>
|
199 | 176 | <div class="select-item" v-if="objDataRef.articles?.length > 0">
|
200 | 177 | <WxNews :articles="objDataRef.articles" />
|
201 | 178 | <el-col class="ope-row">
|
202 | 179 | <el-button type="danger" circle @click="deleteObj">
|
203 |
| - <icon icon="ep:delete" /> |
| 180 | + <Icon icon="ep:delete" /> |
204 | 181 | </el-button>
|
205 | 182 | </el-col>
|
206 | 183 | </div>
|
207 | 184 | <!-- 选择素材 -->
|
208 | 185 | <el-col :span="24" v-if="!objDataRef.content">
|
209 | 186 | <el-row style="text-align: center" align="middle">
|
210 | 187 | <el-col :span="24">
|
211 |
| - <el-button type="success" @click="openMaterial" |
212 |
| - >{{ newsType === '1' ? '选择已发布图文' : '选择草稿箱图文' }} |
| 188 | + <el-button type="success" @click="openMaterial"> |
| 189 | + {{ newsType === '1' ? '选择已发布图文' : '选择草稿箱图文' }} |
213 | 190 | <icon icon="ep:circle-check" />
|
214 | 191 | </el-button>
|
215 | 192 | </el-col>
|
|
227 | 204 | <!-- 类型 6:音乐 -->
|
228 | 205 | <el-tab-pane name="music">
|
229 | 206 | <template #label>
|
230 |
| - <el-row align="middle"> |
231 |
| - <icon icon="ep:service" /> |
232 |
| - 音乐 |
233 |
| - </el-row> |
| 207 | + <el-row align="middle"><Icon icon="ep:service" />音乐</el-row> |
234 | 208 | </template>
|
235 | 209 | <el-row align="middle" justify="center">
|
236 | 210 | <el-col :span="6">
|
|
259 | 233 | <template #trigger>
|
260 | 234 | <el-button type="text">本地上传</el-button>
|
261 | 235 | </template>
|
262 |
| - <el-button type="text" @click="openMaterial" style="margin-left: 5px" |
263 |
| - >素材库选择 |
| 236 | + <el-button type="text" @click="openMaterial" style="margin-left: 5px"> |
| 237 | + 素材库选择 |
264 | 238 | </el-button>
|
265 | 239 | </el-upload>
|
266 | 240 | </div>
|
|
295 | 269 | </el-tab-pane>
|
296 | 270 | </el-tabs>
|
297 | 271 | </template>
|
298 |
| - |
299 | 272 | <script lang="ts" name="WxReplySelect">
|
300 | 273 | import WxNews from '@/views/mp/components/wx-news/main.vue'
|
301 | 274 | import WxMaterialSelect from '@/views/mp/components/wx-material-select/main.vue'
|
|
0 commit comments