js_ryl 1.0.30 → 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
 
@@ -185,13 +186,26 @@
185
186
  #14.下载excel表格
186
187
 
187
188
  #方法:
188
- downExcel()
189
+ # 第二、三个参数 选填
190
+ # data 是数组 key是名称 值是内容
191
+ #const data = [
192
+ # { name: '张三', age: 28, },
193
+ # { name: '李四', age: 34}
194
+ #];
195
+ downExcel(data,'这是excel名称','这是里面的分区名称');
189
196
 
190
- # const head = ["订单编号","金额(元)"];
191
- # const body = ["client_order_number","amount"];
192
- # let list = [{client_order_number: '354615',amount: 23},{client_order_number: '9735',amount: 230}]
193
- # downExcel(head,body,list);
197
+ #15 这个方法是把内容中的base64的图片,替换成 接口返回 的图片链接
194
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
+ # );
195
209
 
196
210
  # serve with hot reload at localhost:8080
197
211
  # npm run dev
@@ -215,7 +229,8 @@
215
229
  #1.0.25: 新增了emoji,highLight方法
216
230
  #1.0.28: 商品飞入购物车效果
217
231
  #1.0.29: 拷贝方法优化
218
- #1.0.30: 新增下载excel方法
232
+ #1.0.31: 新增下载excel方法
233
+ #1.0.32: 新增base64Img
219
234
  ```
220
235
 
221
236
  For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).