🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

wapx-lib

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wapx-lib - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+7
-1
index.js

@@ -27,3 +27,9 @@ import Vue from 'vue'

wx_test,
utils
utils,
postJson,
postImage,
postFile,
postData,
postForm,
get,
}

@@ -30,0 +36,0 @@

+1
-1
{
"name": "wapx-lib",
"version": "0.1.2",
"version": "0.1.3",
"private": false,

@@ -5,0 +5,0 @@ "scripts": {

@@ -13,2 +13,3 @@ # wapx-lib

## 常用方法
vue文件中使用
```

@@ -21,2 +22,8 @@ this.$get(url,res=>{ ... })

let value = this.$utils.getUrlKey(name)
```
js文件中使用
```
import lib from 'wapx-lib'
lib.utils.getUrlKey('code');
```

@@ -5,3 +5,3 @@ <template>

<div>
{{res}}
{{ res }}
</div>

@@ -12,15 +12,16 @@ </div>

export default {
name:"wx_test",
data(){
return{
res:{}
name: "wx_test",
data() {
return {
res: {}
}
},
created() {
this.testUrl()
},
methods:{
testUrl(){
let url="https://api.wapg.cn/jd_union/recommend/rate_recommend?rate_start=10&rate_end=50&filter=true&page=1&size=20"
this.$get(url,res=>{
this.res=res;
methods: {
testUrl() {
let url = "https://api.wapg.cn/jd_union/recommend/rate_recommend?rate_start=10&rate_end=50&filter=true&page=1&size=20"
this.$get(url, res => {
this.res = res;
})

@@ -27,0 +28,0 @@ }