diff --git a/app/.hbuilderx/launch.json b/app/.hbuilderx/launch.json index 075b9c55..261ce484 100644 --- a/app/.hbuilderx/launch.json +++ b/app/.hbuilderx/launch.json @@ -2,6 +2,10 @@ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 "version": "0.0", "configurations": [{ + "app-plus" : + { + "launchtype" : "remote" + }, "default" : { "launchtype" : "remote" diff --git a/app/App.vue b/app/App.vue index 22b8c0ad..11d00902 100644 --- a/app/App.vue +++ b/app/App.vue @@ -186,6 +186,11 @@ @import 'static/iconfont/iconfont.css'; @import 'static/css/guildford.css'; @import 'static/css/style.scss'; + + // #ifdef APP + @import 'static/iconfont/iconfont.css'; + @import 'static/iconfont/iconfont-app.css'; + // #endif /* 条件编译,仅在H5平台生效 */ // #ifdef H5 diff --git a/app/config/app.js b/app/config/app.js index 1991df11..d500c725 100644 --- a/app/config/app.js +++ b/app/config/app.js @@ -1,12 +1,23 @@ - -let domain = 'http://127.0.0.1:8081' +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +//移动端商城API +let domain = 'https://api.front.javademo.hdq.xbdzz.cn' module.exports = { // 请求域名 格式: https://您的域名 + HTTP_REQUEST_URL:domain, + // #ifdef MP HTTP_REQUEST_URL: domain, // #endif - HTTP_ADMIN_URL:'http://127.0.0.1:8080', //PC后台的API请求地址,上传图片用 + HTTP_ADMIN_URL:'https://api.admin.javademo.hdq.xbdzz.cn', //PC后台的API请求地址,上传图片用,影响h5上传头像 // #ifdef H5 //H5接口是浏览器地址 // HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host, diff --git a/app/libs/login.js b/app/libs/login.js index 70a626dd..ea8824f0 100644 --- a/app/libs/login.js +++ b/app/libs/login.js @@ -17,10 +17,20 @@ function prePage(){ export const toLogin = Debounce(_toLogin,800) export function _toLogin(push, pathLogin) { + console.log(43333); //修改 store.commit("LOGOUT"); let path = prePage(); let login_back_url = Cache.get(BACK_URL); + + // #ifdef APP //修改 + uni.navigateTo({ + url: '/pages/users/login/index' + }) + return + // #endif + + // #ifdef H5 // path = location.href; path = location.pathname + location.search; diff --git a/app/manifest.json b/app/manifest.json index 2b885fa7..a8640fed 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,6 +1,6 @@ { - "name" : "crmeb", - "appid" : "__UNI__E8BDBA5", + "name" : "何天", + "appid" : "__UNI__E0D9AB1", "description" : "crmeb商城", "versionName" : "1.0.0", "versionCode" : 1001, @@ -16,7 +16,13 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules" : { + "Share" : {}, + "VideoPlayer" : {}, + "OAuth" : {}, + "Payment" : {}, + "Geolocation" : {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ @@ -31,35 +37,92 @@ "", "", "", - "", "", "", "", - "", "", "", "", "", - "", "", "" ], - "abiFilters" : [] + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] }, /* ios打包配置 */ "ios" : { - "idfa" : false + "idfa" : false, + "dSYMs" : false }, /* SDK配置 */ - "sdkConfigs" : {}, - "icons" : {} + "sdkConfigs" : { + "ad" : {}, + "geolocation" : { + "amap" : { + "__platform__" : [ "ios", "android" ], + "appkey_ios" : "", + "appkey_android" : "2D2BZ-G5635-3JDIH-QY5R3-HI43Z-ARFNB" + } + }, + "payment" : { + "weixin" : { + "__platform__" : [ "ios", "android" ], + "appid" : "wxe2fc3c6a514c613a", + "UniversalLinks" : "" + } + }, + "share" : { + "weixin" : { + "appid" : "wxe2fc3c6a514c613a", + "UniversalLinks" : "" + } + }, + "oauth" : { + "weixin" : { + "appid" : "wxe2fc3c6a514c613a", + "UniversalLinks" : "" + } + } + }, + "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" + }, + "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" + } + } + } } }, /* 快应用特有相关 */ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "123", + "appid" : "wxd29e5ba4ccbcca2f", "setting" : { "urlCheck" : true, "minified" : true, diff --git a/app/pages/index/index.vue b/app/pages/index/index.vue index 554e32ca..9f3346d7 100644 --- a/app/pages/index/index.vue +++ b/app/pages/index/index.vue @@ -1,7 +1,7 @@