@@ -9,7 +9,7 @@ export function jump(type,item){ | |||
// 16签约 | |||
if(type=="16"){ | |||
uni.navigateTo({ | |||
url:`plugin://issuer-plugin/login?redirectUrl="/pages/index/index"&wechatsignNo=${wechatsignNo}` | |||
url:`plugin://issuer-plugin/login?redirectUrl=/pages/index/index&wechatSignNo=${item}` | |||
}) | |||
}else{ | |||
let data=""//传递过来的数据 |
@@ -1907,7 +1907,7 @@ | |||
"plugins": { | |||
"issuer-plugin": { | |||
"version": "1.0.0", | |||
// "version": "dev-d21e2804b4b38d48ae3259dab66a6a57", | |||
// "version": "dev-438f8bf533dac4d1b406378c21e351b5", | |||
"provider": "wxa2d9acdd1054e69b" | |||
} | |||
}, |
@@ -213,7 +213,7 @@ | |||
import { | |||
getCodeName | |||
} from "@/datas/queryKey.js"; | |||
import { jump } from "@/datas/9901Jump.js"; | |||
// import { jump } from "@/datas/9901Jump.js"; | |||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||
const tools = require("../../static/etcUtil/tools.js"); | |||
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | |||
@@ -284,16 +284,12 @@ | |||
scrollTop.value = e.scrollTop; | |||
}); | |||
onLoad((options) => { | |||
if(options.wechatsignNo){ | |||
jump(16, options.wechatsignNo) | |||
}else{ | |||
console.log("wechatSignNo",options) | |||
getInfo(); | |||
quanKeyAction().then((val : any) => { | |||
setItem('key', val.dictTypeAndItem) | |||
}) | |||
} | |||
}) | |||
onMounted(() => { | |||
uni.getSystemInfo({ | |||
success: (e : any) => { |
@@ -67,10 +67,12 @@ | |||
const gotoNextStep = () => { | |||
noticeUser(() => { | |||
console.log("11111") | |||
uni.openBluetoothAdapter() | |||
/* 判断是否打开蓝牙 */ | |||
uni.getBluetoothAdapterState({ | |||
success(res) { | |||
console.log("2222",res) | |||
//如果res.avaliable==false 说明没打开蓝牙 反之则打开 | |||
if (res.available == false) { | |||
uni.showToast({ |
@@ -1,6 +1,6 @@ | |||
<!-- 密码登录 --> | |||
<template> | |||
<view class="login-main as-gravity-center as-layout-vertical"> | |||
<view class="login-main as-gravity-center as-layout-vertical" > | |||
<view class="form"> | |||
<view class="form-input"> | |||
<view> +86</view> | |||
@@ -27,9 +27,9 @@ | |||
import { onLoad, onUnload } from "@dcloudio/uni-app"; | |||
import { checkCode } from "@/utils/network/api.js"; | |||
import { request } from "@/utils/network/request.js"; | |||
import { stringToJson } from "@/utils/network/encryption"; | |||
import { useUserStore } from "@/stores/user"; | |||
import { getItem, setItem } from "@/utils/storage"; | |||
import { jump } from "@/datas/9901Jump.js"; | |||
const userStore = useUserStore(); | |||
const { fetchToken } = userStore; | |||
@@ -49,22 +49,29 @@ | |||
const q = decodeURIComponent(option.q); // 获取到二维码原始链接内容 | |||
console.log(q); | |||
state.json = getRequest(q) | |||
console.log("state.json", state.json, getItem("mobile"), getItem("mobile") == state.json.phone) | |||
setItem('scanCode', state.json) | |||
if (!getItem("openId")) { | |||
uni.showModal({ | |||
title: '提示', | |||
content: '您还未登录小程序,请先登录小程序', | |||
showCancel: false, | |||
success: function (res) { | |||
if (res.confirm) { | |||
navTo(`/login/login?back=1`) | |||
console.log("state.json==",state.json) | |||
if(state.json['wechatSignNo']){ | |||
console.log("wechatSignNo",state.json) | |||
// app跳往异地得签约 | |||
jump(16, state.json['wechatSignNo']) | |||
}else{ | |||
console.log("state.json", state.json, getItem("mobile"), getItem("mobile") == state.json.phone) | |||
setItem('scanCode', state.json) | |||
if (!getItem("openId")) { | |||
uni.showModal({ | |||
title: '提示', | |||
content: '您还未登录小程序,请先登录小程序', | |||
showCancel: false, | |||
success: function (res) { | |||
if (res.confirm) { | |||
navTo(`/login/login?back=1`) | |||
} | |||
} | |||
} | |||
}); | |||
}); | |||
} | |||
// 直接用传过来的手机号(不让他修改) | |||
state.mobile = state.json.phone | |||
} | |||
// 直接用传过来的手机号(不让他修改) | |||
state.mobile = state.json.phone | |||
} else { | |||
state.json = getItem("scanCode") | |||
state.mobile = state.json.phone |
@@ -70,8 +70,8 @@ export function request(code, options = {}, start = false) { | |||
} | |||
options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||
options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||
//默认json数据格式提交` | |||
let contentType = 'application/x-www-form-urlencoded' | |||