Skip to content

Commit 6261e15

Browse files
committed
merge jg
2 parents 4b4da30 + 52c0f39 commit 6261e15

File tree

190 files changed

+3799
-146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+3799
-146
lines changed

JVerification_Hbuilder_Demo/manifest.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
"sdkConfigs" : {}
5353
},
5454
"nativePlugins" : {
55-
"JIGUANG-JVerification" : {
56-
"JPUSH_APPKEY_ANDROID" : "",
57-
"JPUSH_CHANNEL_IOS" : "",
55+
"JG-JVerification" : {
5856
"JPUSH_APPKEY_IOS" : "",
59-
"JPUSH_CHANNEL_ANDROID" : "",
57+
"JPUSH_CHANNEL_ANDROID" : "3bc7fe126f892557a954aa07",
58+
"JPUSH_APPKEY_ANDROID" : "3bc7fe126f892557a954aa07",
59+
"JPUSH_CHANNEL_IOS" : "",
6060
"__plugin_info__" : {
61-
"name" : "JIGUANG-JVerification",
61+
"name" : "JG-JVerification",
6262
"description" : "极光认证Hbuilder插件",
6363
"platforms" : "Android,iOS",
6464
"url" : "",
@@ -68,16 +68,6 @@
6868
"bought" : -1,
6969
"pid" : "",
7070
"parameters" : {
71-
"JPUSH_APPKEY_ANDROID" : {
72-
"des" : "[Android]极光 portal 配置应用信息时分配的 AppKey",
73-
"key" : "JPUSH_APPKEY",
74-
"value" : ""
75-
},
76-
"JPUSH_CHANNEL_IOS" : {
77-
"des" : "[iOS]用于统计分发渠道,不需要可填默认值 developer-default",
78-
"key" : "JVerification:CHANNEL",
79-
"value" : ""
80-
},
8171
"JPUSH_APPKEY_IOS" : {
8272
"des" : "[iOS]极光 portal 配置应用信息时分配的 AppKey",
8373
"key" : "JVerification:APP_KEY",
@@ -87,6 +77,16 @@
8777
"des" : "[Android]用于统计分发渠道,不需要可填默认值 developer-default",
8878
"key" : "JPUSH_CHANNEL",
8979
"value" : ""
80+
},
81+
"JPUSH_APPKEY_ANDROID" : {
82+
"des" : "[Android]极光 portal 配置应用信息时分配的 AppKey",
83+
"key" : "JPUSH_APPKEY",
84+
"value" : ""
85+
},
86+
"JPUSH_CHANNEL_IOS" : {
87+
"des" : "[iOS]用于统计分发渠道,不需要可填默认值 developer-default",
88+
"key" : "JVerification:CHANNEL",
89+
"value" : ""
9090
}
9191
}
9292
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>files</key>
6+
<dict>
7+
<key>Headers/JVerificationModule.h</key>
8+
<data>
9+
C7CBfnA7xVmtoEwoxT2ZYUikKAA=
10+
</data>
11+
<key>Info.plist</key>
12+
<data>
13+
EaQs9GvG+ji+9SX0zTBwEfSdgtA=
14+
</data>
15+
</dict>
16+
<key>files2</key>
17+
<dict>
18+
<key>Headers/JVerificationModule.h</key>
19+
<dict>
20+
<key>hash</key>
21+
<data>
22+
C7CBfnA7xVmtoEwoxT2ZYUikKAA=
23+
</data>
24+
<key>hash2</key>
25+
<data>
26+
hPa2AkGyC8u/NmUo7wJ3QulS73C8W44clRoRK9A5IzA=
27+
</data>
28+
</dict>
29+
</dict>
30+
<key>rules</key>
31+
<dict>
32+
<key>^.*</key>
33+
<true/>
34+
<key>^.*\.lproj/</key>
35+
<dict>
36+
<key>optional</key>
37+
<true/>
38+
<key>weight</key>
39+
<real>1000</real>
40+
</dict>
41+
<key>^.*\.lproj/locversion.plist$</key>
42+
<dict>
43+
<key>omit</key>
44+
<true/>
45+
<key>weight</key>
46+
<real>1100</real>
47+
</dict>
48+
<key>^Base\.lproj/</key>
49+
<dict>
50+
<key>weight</key>
51+
<real>1010</real>
52+
</dict>
53+
<key>^version.plist$</key>
54+
<true/>
55+
</dict>
56+
<key>rules2</key>
57+
<dict>
58+
<key>.*\.dSYM($|/)</key>
59+
<dict>
60+
<key>weight</key>
61+
<real>11</real>
62+
</dict>
63+
<key>^(.*/)?\.DS_Store$</key>
64+
<dict>
65+
<key>omit</key>
66+
<true/>
67+
<key>weight</key>
68+
<real>2000</real>
69+
</dict>
70+
<key>^.*</key>
71+
<true/>
72+
<key>^.*\.lproj/</key>
73+
<dict>
74+
<key>optional</key>
75+
<true/>
76+
<key>weight</key>
77+
<real>1000</real>
78+
</dict>
79+
<key>^.*\.lproj/locversion.plist$</key>
80+
<dict>
81+
<key>omit</key>
82+
<true/>
83+
<key>weight</key>
84+
<real>1100</real>
85+
</dict>
86+
<key>^Base\.lproj/</key>
87+
<dict>
88+
<key>weight</key>
89+
<real>1010</real>
90+
</dict>
91+
<key>^Info\.plist$</key>
92+
<dict>
93+
<key>omit</key>
94+
<true/>
95+
<key>weight</key>
96+
<real>20</real>
97+
</dict>
98+
<key>^PkgInfo$</key>
99+
<dict>
100+
<key>omit</key>
101+
<true/>
102+
<key>weight</key>
103+
<real>20</real>
104+
</dict>
105+
<key>^embedded\.provisionprofile$</key>
106+
<dict>
107+
<key>weight</key>
108+
<real>20</real>
109+
</dict>
110+
<key>^version\.plist$</key>
111+
<dict>
112+
<key>weight</key>
113+
<real>20</real>
114+
</dict>
115+
</dict>
116+
</dict>
117+
</plist>

nativeplugins/JIGUANG-JVerification/package.json JVerification_Hbuilder_Demo/nativeplugins/JG-JVerification/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "JIGUANG-JVerification",
3-
"id": "JIGUANG-JVerification",
4-
"version": "1.0.0",
2+
"name": "JG-JVerification",
3+
"id": "JG-JVerification",
4+
"version": "1.0.1",
55
"description": "极光认证Hbuilder插件",
66
"_dp_type":"nativeplugin",
77
"_dp_nativeplugin":{
88
"ios": {
99
"plugins": [{
1010
"type": "module",
11-
"name": "JIGUANG-JVerification",
11+
"name": "JG-JVerification",
1212
"class": "JVerificationModule"
1313
}],
1414
"integrateType": "framework",
@@ -46,7 +46,7 @@
4646
"plugins": [
4747
{
4848
"type": "module",
49-
"name": "JIGUANG-JVerification",
49+
"name": "JG-JVerification",
5050
"class": "cn.jiguang.uniplugin_jverification.JVerificationWXModule"
5151
}
5252
],

JVerification_Hbuilder_Demo/pages.json

+10
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@
1212
"navigationBarTitleText": "uni-app",
1313
"navigationBarBackgroundColor": "#F8F8F8",
1414
"backgroundColor": "#F8F8F8"
15+
},
16+
"condition" : { //模式配置,仅开发期间生效
17+
"current": 0, //当前激活的模式(list 的索引项)
18+
"list": [
19+
{
20+
"name": "", //模式名称
21+
"path": "", //启动页面,必选
22+
"query": "" //启动参数,在页面的onLoad函数里面得到
23+
}
24+
]
1525
}
1626
}

JVerification_Hbuilder_Demo/pages/index/index.vue

+107-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
<button type="primary" @click="clearPreLoginCache()">清除预取号缓存</button>
1010
<button type="primary" @click="loginAuth()">请求授权一键登录</button>
1111
<button type="primary" @click="setCustomUIWithConfig()">自定义授权页面样式</button>
12+
<button type="primary" @click="setCustomDialog()">自定义弹窗授权页</button>
1213
<view class="msg-box" >
1314
<text class="msg">{{msg}}</text>
1415
</view>
1516
</view>
1617
</template>
1718

1819
<script>
19-
const jv = uni.requireNativePlugin('JIGUANG-JVerification')
20+
const jv = uni.requireNativePlugin('JG-JVerification')
2021
export default {
2122
data() {
2223
return {
@@ -88,19 +89,121 @@
8889
},
8990
// 自定义授权页面 UI 样式
9091
setCustomUIWithConfig:function(){
92+
let self = this;
93+
this.jv.addCustomViewsClickCallback(id=>{
94+
self.showModal('customViewclick',"id:"+id);
95+
});
96+
9197
if(uni.getSystemInfoSync().platform == "ios"){
9298
this.jv.setCustomUIWithConfigiOS({
9399
navColor:0xff000000,
94-
logBtnText:" 极光认证测试 ",
100+
logBtnText:"极光认证测试",
95101
privacyState:true,
96-
appPrivacyColor:[0xff000000,0xff000000]
102+
appPrivacyColor:[0xff000200,0xff000000],
103+
addCustomViews:[{
104+
type:"label",
105+
width:120,
106+
height:20,
107+
top:320,
108+
left:100,
109+
backgroundColor:0xff7b68ee,
110+
text:"自定义label",
111+
textFont:20,
112+
textAlignment:15,
113+
numberOfLines:2,
114+
cornerRadius:10,
115+
textColor:0xff000000
116+
},
117+
{
118+
type:"button",
119+
id: "buttonTest",
120+
width:80,
121+
height:44,
122+
textColor:0xFFC0CB,
123+
cornerRadius:22,
124+
left:50,
125+
bottom: -100,
126+
title:"点击测试",
127+
},
128+
{
129+
type:"imageView",
130+
width:50,
131+
height:50,
132+
cornerRadius:25,
133+
right:-100,
134+
bottom: -100,
135+
imagePath:"static/qq.png"
136+
}]
137+
})
138+
}else{
139+
this.jv.addCustomViewsClickCallback(id=>{
140+
self.showModal('customViewclick',"id:"+id);
141+
});
142+
this.jv.setCustomUIWithConfigAndroid({
143+
setNavColor:0xff000000,
144+
setLogBtnText:" 极光认证测试 ",
145+
setPrivacyState:false,
146+
setAppPrivacyColor:[0xff00f000,0xff000000],
147+
addCustomViews:[{
148+
type:"text",
149+
finishFlag:false,
150+
id:"id1",
151+
width:100,
152+
height:50,
153+
text:"自定义tv",
154+
textSize:20,
155+
align:15,
156+
margins:[0,100,0,0],
157+
bgColor:0xff7b68ee
158+
},
159+
{
160+
type:"image",
161+
finishFlag:true,
162+
id:"id2",
163+
width:50,
164+
height:50,
165+
align:13,
166+
margins:[0,0,0,0],
167+
bgImgPath:"static/qq.png"
168+
}]
169+
})
170+
}
171+
172+
},
173+
setCustomDialog:function(){
174+
if(uni.getSystemInfoSync().platform == "ios"){
175+
this.jv.setCustomUIWithConfigiOS({
176+
navCustom:true,
177+
autoLayout:true,
178+
showWindow:true,
179+
windowConstraints:[0,0,300,300],
180+
windowBackgroundAlpha: 0.3,
181+
//logo
182+
logoImg:"static/logo.png",
183+
logoConstraints:[0,-100,60,60],
184+
//number
185+
numberConstraints:[0,-42,200,14],
186+
//slogn
187+
sloganConstraints:[0,-20,200,14],
188+
//登录按钮
189+
logBtnConstraints:[0,20,220,40],
190+
logBtnText:"一键登录",
191+
logBtnTextColor:0x0000FF,
192+
windowCornerRadius:10,
193+
privacyConstraints:[0,100,200,40],
194+
checkViewConstraints:[-108,100,10,10],
195+
windowCloseBtnConstraints:[-135,-135,20,20],
196+
loadingConstraints:[0,0,20,20],
197+
windowCloseBtnImgs:["static/windowClose","static/windowClose"],
198+
windowBackgroundImage:"static/bg.jpeg"
97199
})
98200
}else{
99201
this.jv.setCustomUIWithConfigAndroid({
100202
setNavColor:0xff000000,
101203
setLogBtnText:" 极光认证测试 ",
102204
setPrivacyState:false,
103-
setAppPrivacyColor:[0xff00f000,0xff000000]
205+
setAppPrivacyColor:[0xff00f000,0xff000000],
206+
setDialogTheme:[300, 400, 0, 0, false]
104207
})
105208
}
106209
34.5 KB
1.55 KB
2.14 KB

0 commit comments

Comments
 (0)