flx:关闭消息推送
This commit is contained in:
parent
94eddd3401
commit
f49b24b638
@ -19,7 +19,7 @@
|
||||
"type" : "uniCloud"
|
||||
},
|
||||
{
|
||||
"playground" : "standard",
|
||||
"playground" : "custom",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
|
||||
8
main.js
8
main.js
@ -37,8 +37,8 @@ Vue.prototype.COMPANY = "cpgs" // 成平高速环境
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 开发环境
|
||||
console.log('开发环境')
|
||||
Vue.prototype.url_config = 'http://jxj.zhgdyun.com:30250/'// 演示平台H5
|
||||
Vue.prototype.work_url = 'http://jxj.zhgdyun.com:33983' // 演示平台工作流地址
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:30250/'// 演示平台H5
|
||||
// Vue.prototype.work_url = 'http://jxj.zhgdyun.com:33983' // 演示平台工作流地址
|
||||
// Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址(弃用)
|
||||
// Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢正式地址
|
||||
// Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢测试地址
|
||||
@ -46,13 +46,13 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
|
||||
// Vue.prototype.url_config = 'http://192.168.34.221:28890/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.221:28888/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://182.90.224.237:51234/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
// Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用)
|
||||
// Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址
|
||||
// Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址
|
||||
// Vue.prototype.work_url = 'http://192.168.34.175:5173' // 工作流地址
|
||||
Vue.prototype.work_url = 'http://192.168.34.175:5173' // 工作流地址
|
||||
// Vue.prototype.work_url = 'http://192.168.34.138:5173' // 工作流地址
|
||||
// Vue.prototype.work_url = 'http://139.9.66.234:5173' // 工作流地址
|
||||
// Vue.prototype.work_url = 'http://192.168.34.126:5173' // 工作流地址
|
||||
|
||||
@ -236,21 +236,21 @@
|
||||
init(data) {
|
||||
// #ifdef APP-PLUS
|
||||
// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章
|
||||
plus.push.getClientInfoAsync((info) => {
|
||||
const clientId = info["clientid"];
|
||||
// console.log(cid,"cidcidcidcidcid")
|
||||
// const cid = "f4b3246189fc051c5875a35e198ca223";
|
||||
const alias = data.userId;
|
||||
//触发绑定请求
|
||||
this.sendRequest({
|
||||
url: "xmgl/push/bindAlias", //替换掉后端彭定生的接口
|
||||
data: {
|
||||
clientId,
|
||||
alias
|
||||
},
|
||||
method: "POST"
|
||||
})
|
||||
});
|
||||
// plus.push.getClientInfoAsync((info) => {
|
||||
// const clientId = info["clientid"];
|
||||
// // console.log(cid,"cidcidcidcidcid")
|
||||
// // const cid = "f4b3246189fc051c5875a35e198ca223";
|
||||
// const alias = data.userId;
|
||||
// //触发绑定请求
|
||||
// this.sendRequest({
|
||||
// url: "xmgl/push/bindAlias", //替换掉后端彭定生的接口
|
||||
// data: {
|
||||
// clientId,
|
||||
// alias
|
||||
// },
|
||||
// method: "POST"
|
||||
// })
|
||||
// });
|
||||
// #endif
|
||||
uni.setStorageSync('wflow-token', data.token);
|
||||
uni.setStorageSync('account', this.formData.account);
|
||||
@ -277,11 +277,11 @@
|
||||
// #ifdef APP-PLUS
|
||||
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
|
||||
// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章
|
||||
plus.push.getClientInfoAsync((info) => {
|
||||
const clientid = info["clientid"];
|
||||
console.log(clientid, "cidcidcidcidcid")
|
||||
_this.clientid = clientid
|
||||
});
|
||||
// plus.push.getClientInfoAsync((info) => {
|
||||
// const clientid = info["clientid"];
|
||||
// console.log(clientid, "cidcidcidcidcid")
|
||||
// _this.clientid = clientid
|
||||
// });
|
||||
// #endif
|
||||
if (option.type) {
|
||||
// 获取上个页面传入的类型
|
||||
|
||||
@ -61,12 +61,12 @@
|
||||
let _this = this;
|
||||
// #ifdef APP-PLUS
|
||||
// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章
|
||||
plus.push.getClientInfoAsync((info) => {
|
||||
const clientid = info["clientid"];
|
||||
console.log(clientid, "cidcidcidcidcid")
|
||||
_this.clientid = clientid
|
||||
// plus.push.getClientInfoAsync((info) => {
|
||||
// const clientid = info["clientid"];
|
||||
// console.log(clientid, "cidcidcidcidcid")
|
||||
// _this.clientid = clientid
|
||||
|
||||
});
|
||||
// });
|
||||
// #endif
|
||||
if (uni.getStorageSync('userInfo')) {
|
||||
let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
|
||||
@ -170,22 +170,22 @@
|
||||
success: (res) => {
|
||||
// #ifdef APP-PLUS
|
||||
// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章// add:添加登录CID绑定功能 实现推送 2022年4月20日 10:47:41 罗劲章
|
||||
plus.push.getClientInfoAsync((info) => {
|
||||
const cid = info["clientid"];
|
||||
// console.log(cid,"cidcidcidcidcid")
|
||||
// const cid = "f4b3246189fc051c5875a35e198ca223";
|
||||
const userId = res.result.userId;
|
||||
const jsonParams = {
|
||||
clientId: cid,
|
||||
alias: userId
|
||||
}
|
||||
//触发绑定请求
|
||||
this.sendRequest({
|
||||
url: "xmgl/push/bindAlias", //替换掉后端彭定生的接口
|
||||
data: jsonParams,
|
||||
method: "POST",
|
||||
})
|
||||
});
|
||||
// plus.push.getClientInfoAsync((info) => {
|
||||
// const cid = info["clientid"];
|
||||
// // console.log(cid,"cidcidcidcidcid")
|
||||
// // const cid = "f4b3246189fc051c5875a35e198ca223";
|
||||
// const userId = res.result.userId;
|
||||
// const jsonParams = {
|
||||
// clientId: cid,
|
||||
// alias: userId
|
||||
// }
|
||||
// //触发绑定请求
|
||||
// this.sendRequest({
|
||||
// url: "xmgl/push/bindAlias", //替换掉后端彭定生的接口
|
||||
// data: jsonParams,
|
||||
// method: "POST",
|
||||
// })
|
||||
// });
|
||||
// #endif
|
||||
|
||||
uni.setStorageSync('account', e.detail.value.account);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user