js_ryl 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,6 +22,7 @@
22
22
  12.根据输入内容,高亮匹配对应的字符串 -- highLight
23
23
  13.商品飞入购物车效果 -- flyToCart
24
24
  14.下载excel表格 -- downExcel
25
+ 15.处理字符串中的base64格式的图片为普通连接 -- base64Img
25
26
 
26
27
  # 使用方法:
27
28
 
@@ -186,8 +187,25 @@
186
187
 
187
188
  #方法:
188
189
  # 第二、三个参数 选填
190
+ # data 是数组 key是名称 值是内容
191
+ #const data = [
192
+ # { name: '张三', age: 28, },
193
+ # { name: '李四', age: 34}
194
+ #];
189
195
  downExcel(data,'这是excel名称','这是里面的分区名称');
190
196
 
197
+ #15 这个方法是把内容中的base64的图片,替换成 接口返回 的图片链接
198
+
199
+ # content (需要检查的文案) apiUrl (上传的接口地址) token (需要的token) data (额外参数,可不传)
200
+ # base64Img(content, apiUrl, token , data)
201
+
202
+ # 使用方法
203
+
204
+ # let content = await this.base64Img(
205
+ # content,
206
+ # process.env.VUE_APP_BASE_URL_SAAS + "/user/common/uploadBase64",
207
+ # this.$cookieGet("TOKEN")
208
+ # );
191
209
 
192
210
  # serve with hot reload at localhost:8080
193
211
  # npm run dev
@@ -212,6 +230,7 @@
212
230
  #1.0.28: 商品飞入购物车效果
213
231
  #1.0.29: 拷贝方法优化
214
232
  #1.0.31: 新增下载excel方法
233
+ #1.0.32: 新增base64Img
215
234
  ```
216
235
 
217
236
  For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).