From 8dc36eccd84a028a94b0cf09e2fe27febc03b0ad Mon Sep 17 00:00:00 2001 From: jianweie code Date: Tue, 12 Sep 2023 13:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E6=9C=80=E6=96=B0=E7=9A=84=E9=9A=90=E7=A7=81=E6=94=BF?= =?UTF-8?q?=E7=AD=96=EF=BC=8C=E8=B0=83=E6=95=B4=E5=BC=B9=E7=AA=97=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=A0=81=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=A0=B7=E5=BC=8F=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=8D=E5=8B=BE=E9=80=89=E5=90=8C=E6=84=8F=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E8=8E=B7=E5=8F=96=E6=8E=88=E6=9D=83=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E8=B0=83=E6=95=B4=E4=B8=BA=E7=81=B0=E8=89=B2=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E6=8E=88=E6=9D=83=E7=9A=84=E6=8F=90=E9=86=92=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coreshop-login-modal.vue | 26 +- CoreCms.Net.Uni-App/CoreShop/manifest.json | 316 +++++++++--------- 2 files changed, 178 insertions(+), 164 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue index c2a71ef..8e0a050 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue @@ -33,10 +33,9 @@ - 暂不授权 - - 确定授权 - + 暂不授权 + 确定授权 + 确定授权 @@ -51,12 +50,15 @@ * @property {Boolean} forceOauth - 小程序端特制的全屏登录提示。 */ import { mapMutations, mapActions, mapState } from 'vuex'; + import { goods, articles, commonUse, tools } from '@/common/mixins/mixinsHelper.js' export default { + mixins: [goods, articles, commonUse, tools], name: 'coreshopLoginModal', components: {}, data() { return { - agreement: true + agreement: false, + isDisabled: true, }; }, props: { @@ -149,6 +151,12 @@ // 勾选版权协议 checkboxChange(e) { this.agreement = e.value; + if (e.value == true) { + this.isDisabled = false; + } else { + this.isDisabled = true; + } + console.log(this.agreement); }, // 隐藏登录弹窗 hideModal() { @@ -213,9 +221,15 @@ data.invitecode = invitecode } _this.toGetPhoneNumber(data); - } else { + } + else if (e.mp.detail.errMsg == 'getPhoneNumber:fail user deny') { + _this.$u.toast('您已经取消了授权,将无法进行关键业务功能。'); + } + else { _this.$u.toast('如未授权,您可尝试使用手机号+短信验证码登录'); } + _this.agreement = false; + _this.isDisabled = true; _this.showLogin = false; }, //实际的去登陆 diff --git a/CoreCms.Net.Uni-App/CoreShop/manifest.json b/CoreCms.Net.Uni-App/CoreShop/manifest.json index 133dc90..3eea293 100644 --- a/CoreCms.Net.Uni-App/CoreShop/manifest.json +++ b/CoreCms.Net.Uni-App/CoreShop/manifest.json @@ -1,169 +1,169 @@ { - "name": "核心商城系统", - "appid": "__UNI__EAACF14", - "description": "核心商城系统(CoreShop)是基于uni-app框架开发的商城应用程序", - "versionName": "1.0", - "versionCode": 1, - "transformPx": false, - "app-plus": { - /* 5+App特有相关 */ - "modules": { - "Payment": {}, - "VideoPlayer": {} - }, - /* 模块配置 */ - "distribute": { - /* 应用发布信息 */ - "android": { - /* android打包配置 */ - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters": [ "armeabi-v7a", "arm64-v8a", "x86" ] - }, - "ios": {}, - /* ios打包配置 */ - "sdkConfigs": { - "payment": { - "weixin": { - "appid": "wxd56f71964a318e5d" - }, - "alipay": { - "scheme": "" - } + "name" : "核心商城系统", + "appid" : "__UNI__EAACF14", + "description" : "核心商城系统(CoreShop)是基于uni-app框架开发的商城应用程序", + "versionName" : "1.0", + "versionCode" : 1, + "transformPx" : false, + "app-plus" : { + /* 5+App特有相关 */ + "modules" : { + "Payment" : {}, + "VideoPlayer" : {} }, - "ad": {}, - "maps": {}, - "oauth": { - "univerify": {} - } - }, - "icons": { - "android": { - "hdpi": "unpackage/res/icons/72x72.png", - "xhdpi": "unpackage/res/icons/96x96.png", - "xxhdpi": "unpackage/res/icons/144x144.png", - "xxxhdpi": "unpackage/res/icons/192x192.png" + /* 模块配置 */ + "distribute" : { + /* 应用发布信息 */ + "android" : { + /* android打包配置 */ + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] + }, + "ios" : {}, + /* ios打包配置 */ + "sdkConfigs" : { + "payment" : { + "weixin" : { + "appid" : "wxd56f71964a318e5d" + }, + "alipay" : { + "scheme" : "" + } + }, + "ad" : {}, + "maps" : {}, + "oauth" : { + "univerify" : {} + } + }, + "icons" : { + "android" : { + "hdpi" : "", + "xhdpi" : "", + "xxhdpi" : "", + "xxxhdpi" : "" + }, + "ios" : { + "appstore" : "", + "ipad" : { + "app" : "", + "app@2x" : "", + "notification" : "", + "notification@2x" : "", + "proapp@2x" : "", + "settings" : "", + "settings@2x" : "", + "spotlight" : "", + "spotlight@2x" : "" + }, + "iphone" : { + "app@2x" : "", + "app@3x" : "", + "notification@2x" : "", + "notification@3x" : "", + "settings@2x" : "", + "settings@3x" : "", + "spotlight@2x" : "", + "spotlight@3x" : "" + } + } + } }, - "ios": { - "appstore": "unpackage/res/icons/1024x1024.png", - "ipad": { - "app": "unpackage/res/icons/76x76.png", - "app@2x": "unpackage/res/icons/152x152.png", - "notification": "unpackage/res/icons/20x20.png", - "notification@2x": "unpackage/res/icons/40x40.png", - "proapp@2x": "unpackage/res/icons/167x167.png", - "settings": "unpackage/res/icons/29x29.png", - "settings@2x": "unpackage/res/icons/58x58.png", - "spotlight": "unpackage/res/icons/40x40.png", - "spotlight@2x": "unpackage/res/icons/80x80.png" - }, - "iphone": { - "app@2x": "unpackage/res/icons/120x120.png", - "app@3x": "unpackage/res/icons/180x180.png", - "notification@2x": "unpackage/res/icons/40x40.png", - "notification@3x": "unpackage/res/icons/60x60.png", - "settings@2x": "unpackage/res/icons/58x58.png", - "settings@3x": "unpackage/res/icons/87x87.png", - "spotlight@2x": "unpackage/res/icons/80x80.png", - "spotlight@3x": "unpackage/res/icons/120x120.png" - } + "splashscreen" : { + "waiting" : true } - } - }, - "splashscreen": { - "waiting": true - } - }, - /* SDK配置 */ - "quickapp": {}, - /* 快应用特有相关 */ - "mp-weixin": { - "appid": "wx6fc139d4de0b470f", - "setting": { - "urlCheck": true, - "postcss": true, - "minified": true, - "es6": true, - "checkSiteMap": false - }, - "permission": { - "scope.userFuzzyLocation": { - "desc": "你的位置信息将用于小程序定位" - } }, - "optimization": { - "subPackages": true - }, - "requiredPrivateInfos": [ "getFuzzyLocation" ] - }, - "h5": { - "title": "核心商城系统", - "domain": "https://h5.demo.coreshop.com.cn/", - "router": { - "base": "./", - "mode": "hash" - }, - "template": "index.html", - "devServer": { - "port": 80, - "disableHostCheck": true, - "https": true + /* SDK配置 */ + "quickapp" : {}, + /* 快应用特有相关 */ + "mp-weixin" : { + "appid" : "wx9ffab147a56e9424", + "setting" : { + "urlCheck" : true, + "postcss" : true, + "minified" : true, + "es6" : true, + "checkSiteMap" : false + }, + "permission" : { + "scope.userFuzzyLocation" : { + "desc" : "你的位置信息将用于小程序定位" + } + }, + "optimization" : { + "subPackages" : true + }, + "requiredPrivateInfos" : [ "getFuzzyLocation" ] }, - "sdkConfigs": { - "maps": { - "qqmap": { - "key": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" + "h5" : { + "title" : "核心商城系统", + "domain" : "https://h5.demo.coreshop.com.cn/", + "router" : { + "base" : "./", + "mode" : "hash" + }, + "template" : "index.html", + "devServer" : { + "port" : 80, + "disableHostCheck" : true, + "https" : true + }, + "sdkConfigs" : { + "maps" : { + "qqmap" : { + "key" : "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" + } + } + }, + "optimization" : { + "treeShaking" : { + "enable" : false + } } - } }, - "optimization": { - "treeShaking": { - "enable": false - } - } - }, - "mp-toutiao": { - "setting": { - "es6": true, - "postcss": true, - "minified": true + "mp-toutiao" : { + "setting" : { + "es6" : true, + "postcss" : true, + "minified" : true + }, + "appid" : "" }, - "appid": "" - }, - "mp-qq": { - "setting": { - "es6": true, - "postcss": true, - "minified": true + "mp-qq" : { + "setting" : { + "es6" : true, + "postcss" : true, + "minified" : true + }, + "optimization" : { + "subPackages" : true + } }, - "optimization": { - "subPackages": true - } - }, - "mp-alipay": {}, - "mp-baidu": {} + "mp-alipay" : {}, + "mp-baidu" : {} }