|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- Component({
-
-
- data: {
- privacyContractName: '',
- showPrivacy: false
- },
- properties: {
-
- },
-
-
- pageLifetimes: {
- show() {
- const that = this
- wx.getPrivacySetting({
- success(res) {
- if (res.errMsg == "getPrivacySetting:ok") {
- that.setData({
- privacyContractName: res.privacyContractName,
- showPrivacy: res.needAuthorization
- })
- }
- }
- })
- }
- },
-
-
- methods: {
-
- openPrivacyContract() {
- wx.openPrivacyContract({
- fail: () => {
- wx.showToast({
- title: '出错了',
- icon: 'error'
- })
- }
- })
- },
-
- exitMiniProgram() {
-
- wx.exitMiniProgram();
- },
-
- handleAgreePrivacyAuthorization() {
- const that = this;
- that.setData({
- showPrivacy: false
- });
-
- this.triggerEvent('onStartWifi');
- },
- },
- })
|