// 16签约 | // 16签约 | ||||
if(type=="16"){ | if(type=="16"){ | ||||
uni.navigateTo({ | 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{ | }else{ | ||||
let data=""//传递过来的数据 | let data=""//传递过来的数据 |
"plugins": { | "plugins": { | ||||
"issuer-plugin": { | "issuer-plugin": { | ||||
"version": "1.0.0", | "version": "1.0.0", | ||||
// "version": "dev-d21e2804b4b38d48ae3259dab66a6a57", | |||||
// "version": "dev-438f8bf533dac4d1b406378c21e351b5", | |||||
"provider": "wxa2d9acdd1054e69b" | "provider": "wxa2d9acdd1054e69b" | ||||
} | } | ||||
}, | }, |
import { | import { | ||||
getCodeName | getCodeName | ||||
} from "@/datas/queryKey.js"; | } 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"; | import navBar from "@/components/nav-bar/nav-bar2.vue"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | const tools = require("../../static/etcUtil/tools.js"); | ||||
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | ||||
scrollTop.value = e.scrollTop; | scrollTop.value = e.scrollTop; | ||||
}); | }); | ||||
onLoad((options) => { | onLoad((options) => { | ||||
if(options.wechatsignNo){ | |||||
jump(16, options.wechatsignNo) | |||||
}else{ | |||||
console.log("wechatSignNo",options) | |||||
getInfo(); | getInfo(); | ||||
quanKeyAction().then((val : any) => { | quanKeyAction().then((val : any) => { | ||||
setItem('key', val.dictTypeAndItem) | setItem('key', val.dictTypeAndItem) | ||||
}) | }) | ||||
} | |||||
}) | }) | ||||
onMounted(() => { | onMounted(() => { | ||||
uni.getSystemInfo({ | uni.getSystemInfo({ | ||||
success: (e : any) => { | success: (e : any) => { |
const gotoNextStep = () => { | const gotoNextStep = () => { | ||||
noticeUser(() => { | noticeUser(() => { | ||||
console.log("11111") | |||||
uni.openBluetoothAdapter() | uni.openBluetoothAdapter() | ||||
/* 判断是否打开蓝牙 */ | /* 判断是否打开蓝牙 */ | ||||
uni.getBluetoothAdapterState({ | uni.getBluetoothAdapterState({ | ||||
success(res) { | success(res) { | ||||
console.log("2222",res) | |||||
//如果res.avaliable==false 说明没打开蓝牙 反之则打开 | //如果res.avaliable==false 说明没打开蓝牙 反之则打开 | ||||
if (res.available == false) { | if (res.available == false) { | ||||
uni.showToast({ | uni.showToast({ |
<!-- 密码登录 --> | <!-- 密码登录 --> | ||||
<template> | <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"> | ||||
<view class="form-input"> | <view class="form-input"> | ||||
<view> +86</view> | <view> +86</view> | ||||
import { onLoad, onUnload } from "@dcloudio/uni-app"; | import { onLoad, onUnload } from "@dcloudio/uni-app"; | ||||
import { checkCode } from "@/utils/network/api.js"; | import { checkCode } from "@/utils/network/api.js"; | ||||
import { request } from "@/utils/network/request.js"; | import { request } from "@/utils/network/request.js"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | |||||
import { useUserStore } from "@/stores/user"; | import { useUserStore } from "@/stores/user"; | ||||
import { getItem, setItem } from "@/utils/storage"; | import { getItem, setItem } from "@/utils/storage"; | ||||
import { jump } from "@/datas/9901Jump.js"; | |||||
const userStore = useUserStore(); | const userStore = useUserStore(); | ||||
const { fetchToken } = userStore; | const { fetchToken } = userStore; | ||||
const q = decodeURIComponent(option.q); // 获取到二维码原始链接内容 | const q = decodeURIComponent(option.q); // 获取到二维码原始链接内容 | ||||
console.log(q); | console.log(q); | ||||
state.json = getRequest(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 { | } else { | ||||
state.json = getItem("scanCode") | state.json = getItem("scanCode") | ||||
state.mobile = state.json.phone | state.mobile = state.json.phone |
} | } | ||||
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数据格式提交` | //默认json数据格式提交` | ||||
let contentType = 'application/x-www-form-urlencoded' | let contentType = 'application/x-www-form-urlencoded' | ||||