xyvcard-wechat-auth 0.0.33 → 0.0.35
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.
|
@@ -37,6 +37,11 @@ Component({
|
|
|
37
37
|
isShowModel: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
value: false
|
|
40
|
+
},
|
|
41
|
+
// 是否显示隐私协议和政策
|
|
42
|
+
showPrivacyPolicy: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
value: true
|
|
40
45
|
}
|
|
41
46
|
},
|
|
42
47
|
/**
|
|
@@ -89,10 +94,10 @@ Component({
|
|
|
89
94
|
wx.switchTab({ url: backurl });
|
|
90
95
|
} else if (this.properties.linkType === "navigateTo") {
|
|
91
96
|
wx.navigateTo({ url: backurl });
|
|
92
|
-
} else if (this.properties.linkType === "
|
|
93
|
-
wx.reLaunch({ url: backurl });
|
|
94
|
-
} else {
|
|
97
|
+
} else if (this.properties.linkType === "redirectTo") {
|
|
95
98
|
wx.redirectTo({ url: backurl });
|
|
99
|
+
} else {
|
|
100
|
+
wx.reLaunch({ url: backurl });
|
|
96
101
|
}
|
|
97
102
|
});
|
|
98
103
|
} else {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="login_box">
|
|
3
3
|
<button open-type="getPhoneNumber" style="{{ loginStyle }}" bindgetphonenumber="wxPhoneLogin" wx:if="{{ agreeStatus }}">手机号授权登录</button>
|
|
4
4
|
<button bind:tap="wxPhoneLogin" style="{{ loginStyle }}" wx:else>手机号授权登录</button>
|
|
5
|
-
<radio-group bindchange="agreeChange" class="protocol_agree">
|
|
5
|
+
<radio-group bindchange="agreeChange" class="protocol_agree" wx:if="{{ showPrivacyPolicy }}">
|
|
6
6
|
<label>
|
|
7
7
|
<radio value="{{ agreeStatus }}" checked="{{ agreeStatus }}" color="{{ checkedColor }}" />
|
|
8
8
|
已阅读<text id="0" style="{{ agreementStyle }}" catch:tap="goInfo">《用户使用协议》</text> <text id="1" style="{{ agreementStyle }}" catch:tap="goInfo">《隐私权政策》</text>
|