Commit 35a80865 authored by ly's avatar ly

修改实名相关和webview

parent edd7401f
No preview for this file type
...@@ -11,12 +11,89 @@ ...@@ -11,12 +11,89 @@
this.loadLocation(); this.loadLocation();
this.loadUuid() this.loadUuid()
} }
this.checkVersion()
plus.screen.lockOrientation("portrait-primary") plus.screen.lockOrientation("portrait-primary")
console.log('App Launch') console.log('App Launch')
}, },
methods:{ methods:{
//版本检查
checkVersion(){
const self=this
// let realVersion = '109';//这里是热更新的版本号,依次累加,(后端要比这里的版本号大)
plus.runtime.getProperty(plus.runtime.appid,function(widgetInfo){
let currentVersion = widgetInfo.version.replace(/\./g, ""); //获取当前版本号
self.$request('/app/v1/checkVersions','GET').then(res=>{
const { versionInfo }=res.result
const { version,updateUrl,updateMsg,update,forceUpdate}=versionInfo
if(update==true && currentVersion<version){
console.log(version,'checkversion')
if(forceUpdate==false){
console.log('更新1')
//可以关闭弹窗,更新
self.updateShut(updateUrl,updateMsg)
}else{
//不可关闭弹窗强制更新
console.log('更新2')
self.updatePackage(updateUrl,updateMsg)
}
}
})
})
},
//可关闭更新
updateShut(updateUrl,updateMsg){
// plus.runtime.quit(); 退出应用
uni.showModal({
//提醒用户更新
title: "版本更新",
content: updateMsg,
confirmText:'立即更新',
cancelText: '取消',
success: (rese) => {
if(rese.confirm){
// uni.getSystemInfoSync().platform
console.log(plus.os.name,'ios')
if(uni.getSystemInfoSync().platform==='ios'){
console.log('ios')
plus.runtime.openURL(updateUrl)
}else{
console.log('android')
plus.runtime.openURL(updateUrl); // 调用手机端的浏览器 进行下载
}
}
}
})
},
//强制更新app
updatePackage(updateUrl,updateMsg){
// plus.runtime.quit(); 退出应用
uni.showModal({
//提醒用户更新
title: "版本更新",
showCancel: false, // 将取消按钮隐藏
content: updateMsg,
buttonText: '立即更新',
success: (rese) => {
if(rese.confirm){
// uni.getSystemInfoSync().platform
console.log(plus.os.name,'ios')
if(uni.getSystemInfoSync().platform==='ios'){
console.log('ios')
plus.runtime.openURL(updateUrl)
}else{
console.log('android')
plus.runtime.openURL(updateUrl); // 调用手机端的浏览器 进行下载
}
}
}
})
},
// 获取common当中的设备信息 // 获取common当中的设备信息
loadDevice: function() { loadDevice: function() {
const that = this const that = this
...@@ -129,7 +206,7 @@ ...@@ -129,7 +206,7 @@
} }
}, },
onShow: function() { onShow: function() {
this.checkVersion()
}, },
onHide: function() { onHide: function() {
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"second" : { "second" : {
"title" : "确认提示", "title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用" "buttonRefuse" : "退出应用"
}, },
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
this.Go('uni:/pages/login/login') this.Go('uni:/pages/login/login')
}else{ }else{
uni.setStorageSync('appNo',itemVal) uni.setStorageSync('appNo',itemVal)
if(label=='立即提现'){
if(process>=3 && label=='激活额度'){ uni.navigateTo({
url:`/pages/websrc/websrc?url=${item}`
this.onCredit() })
}else{ }else{
this.Go(item) this.Go(item)
} }
...@@ -38,21 +38,21 @@ ...@@ -38,21 +38,21 @@
}, },
// 授信提交 // 授信提交
onCredit(){ // onCredit(){
const self=this // const self=this
const appNO=uni.getStorageSync('appNo') // const appNO=uni.getStorageSync('appNo')
const params={ // const params={
"appNo": appNO // "appNo": appNO
} // }
// return false // // return false
self.$request('/app/v1/credit','POST',params).then(res => { // self.$request('/app/v1/credit','POST',params).then(res => {
console.log(res,'credit'); // console.log(res,'credit');
self.toast('授信提交成功,请稍后查看') // self.toast('授信提交成功,请稍后查看')
self.$emit("mydemo") // self.$emit("mydemo")
}).catch(err=>{ // }).catch(err=>{
console.log(err,'请求出错') // console.log(err,'请求出错')
}) // })
}, // },
} }
} }
</script> </script>
......
/**
* base : 基础业务API
* buyer : 买家API
*/
// 开发环境
const BASE = {
development: {
baseUrl: "http://portal.cloudsmake.cn",
},
stest: {
baseUrl: "http://portal.cloudsmake.cn",
},
ltest: {
baseUrl: "https://dell-buyer-l.meimeiyouxin.com",
},
prod: {
baseUrl: "https://dell-buyer.meimeiyouxin.com",
}
}
let env = process.env.VUE_APP_BASE_NODE_ENV
/**
* ==========================
* APP打包运行需自定义环境env *
* development 开发环境 *
* stest S测试环境 *
* ltest L测试环境 *
* prod 生产环境 *
* ==========================
*/
// #ifdef APP-PLUS
env = "stest";
// #endif
console.log("env", env);
const api = {
baseUrl: BASE[env].baseUrl
}
export default {
...api,
env,
};
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "多典花", "name" : "多典花",
"appid" : "__UNI__DE04B13", "appid" : "__UNI__DE04B13",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.1",
"versionCode" : 104, "versionCode" : 123,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"targetSdkVersion" : 30, "targetSdkVersion" : 28,
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"permissionExternalStorage" : { "permissionExternalStorage" : {
"request" : "none", "request" : "none",
......
...@@ -128,6 +128,14 @@ ...@@ -128,6 +128,14 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/contact/contact",
"style": {
"navigationBarTitleText": "通讯录",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/myfinance/index", "path": "pages/myfinance/index",
"style": { "style": {
......
No preview for this file type
...@@ -33,15 +33,15 @@ ...@@ -33,15 +33,15 @@
<view-modal :show="showback" @cancel="cancel" :showCancel="true" class='infrom-modal' :title="'信息确认'"> <view-modal :show="showback" @cancel="cancel" :showCancel="true" class='infrom-modal' :title="'信息确认'">
<view class='infrom-line'> <view class='infrom-line'>
<view class="infrom-line-left">姓名</view> <view class="infrom-line-left">姓名</view>
<input class='infrom-line-right' :value='certInfo.name' @input='authChange($event)'/> <input class='infrom-line-right' :value='certInfo.realName' @input='authChange($event)'/>
</view> </view>
<view class='infrom-line'> <view class='infrom-line'>
<view class="infrom-line-left">身份证号码</view> <view class="infrom-line-left">身份证号码</view>
<input class='infrom-line-right' :value='certInfo.number' @input='IDChange($event)'/> <input class='infrom-line-right' :value='certInfo.idCardNumber' @input='IDChange($event)'/>
</view> </view>
<view class='infrom-line'> <view class='infrom-line'>
<view class="infrom-line-left">身份证有效期</view> <view class="infrom-line-left">身份证有效期</view>
<input class='infrom-line-right' :value='certInfo.timelimit' @input='dateChange($event)'/> <input class='infrom-line-right' :value='certInfo.validDate' @input='dateChange($event)'/>
</view> </view>
<view class='auth-pic-box'> <view class='auth-pic-box'>
<view class='pic-img'> <view class='pic-img'>
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
import {UploadFile} from "../../utils/upload.js" import {UploadFile} from "../../utils/upload.js"
import Permission from '@/js_sdk/wa-permission/permission' import Permission from '@/js_sdk/wa-permission/permission'
import { pathToBase64, base64ToPath } from 'image-tools' import { pathToBase64, base64ToPath } from 'image-tools'
const LF = uni.requireNativePlugin('AThree-LFv2')
export default { export default {
data() { data() {
...@@ -97,17 +96,14 @@ ...@@ -97,17 +96,14 @@
ocrKey: '20a738fd91504477a33ea4c60ba4b901', ocrKey: '20a738fd91504477a33ea4c60ba4b901',
ocrSecret: 'c56a20723a194925aa5eaea3ef09a061', ocrSecret: 'c56a20723a194925aa5eaea3ef09a061',
certInfo: { certInfo: {
"timelimit": "", "race": "",
"nation": "", "realName": "",
"day": "", "gender": "",
"sex": "", "idCardNumber": "",
"year": "", "birthday": "",
"address": "", "address": "",
"name": "", "issueBy": "",
"side": 0, "validDate": 0,
"authority": "",
"month": "",
"number": "",
reverseImgPath:"", reverseImgPath:"",
frontImgPath:'', frontImgPath:'',
...@@ -115,115 +111,55 @@ ...@@ -115,115 +111,55 @@
} }
}, },
onLoad() { onLoad() {
//初始化token
this.authToken()
}, },
methods: { methods: {
//获取token //身份证ocr
async authToken() { authOcr(frontImage,backImage){
const self=this const self=this
self.$request('/app/v1/ocrToken','POST').then(res => { const params={
console.log(res,'ocrToken'); "frontImgPath": frontImage,
const { ocrToken }=res.result "reverseImgPath":backImage
self.ocrToken=ocrToken }
self.$request('/app/v1/ocr','POST',params).then(res => {
console.log(res,'ocr');
const {cardInfo }=res.result
self.certInfo=cardInfo
self.showback=true
}).catch(err=>{ }).catch(err=>{
console.log(err,'请求出错') console.log(err,'请求出错')
}) })
},
async handleCameraUP(type) {
try {
const self = this
const { ocrToken,ocrKey,ocrSecret } = self
console.log(ocrToken,ocrKey,ocrSecret,'888')
LF.Camera_UP({
token: ocrToken,
type,
key: ocrKey,
secret: ocrSecret,
isManualRecognize: true//打开相册true,
}, (res) => {
if (res.code === "1" || res.code === 1) {
const {info}=res
if(info){
console.log(res,'ocr识别返回信息');
self.handleCertInfo(type, res)
}else{
console.log('ocr请稍后重新尝试');
self.authToken()
// self.toast('再尝试一下')
}
} else {
// self.toast('OCR识别失败')
}
})
} catch (err) {
console.log(err, '错误')
}
}, },
handleCertInfo(type, res) { // 调取图片
const self = this; handleCameraUP(type){
let {standardImage,info} = res const self=this
// console.log('zhanshitupian'); uni.chooseImage({
standardImage = standardImage.replace(/\n/g, '') count: 1, //默认9
if (info.rectifiedImage) delete info.rectifiedImage sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
let certImg sourceType: ['album'], //从相册选择
if (type === "Front") { success: function(res) {
const {nation,sex,name,address,year,day,month,number} = info; console.log(res,'rrr')
self.certInfo.nation = nation; for(let i=0; i<res.tempFilePaths.length;i++){
self.certInfo.sex = sex; self.getOss(res.tempFilePaths[i],type)
self.certInfo.name = name; }
self.certInfo.address = address; }
self.certInfo.year = year; })
self.certInfo.day = day;
self.certInfo.month = month;
self.certInfo.number = number;
certImg = `data:image/png;base64,${standardImage}`;
self.frontImage = certImg
} else {
self.certInfo.authority = info.authority
const validDate = self.convertValidDate(info.timelimit);
console.log(validDate, '转换的值')
self.certInfo.timelimit = validDate
certImg = `data:image/png;base64,${standardImage}`;
self.backImage = certImg
}
self.getOss(certImg,type)
}, },
//获取oss验签 /app/v1/oss //获取oss验签
getOss(imgsrc,type) { getOss(fileNames,type) {
const self = this const self=this
// 将图像base64保存为文件,返回文件路径。 // const newFileName=fileNames[0].split('.')[1]
base64ToPath(imgsrc).then(path => { // console.log(newFileName,'7555')
const params={ const params={
fileName: "jpg", fileType:'DDH/auth',
fileType: 'DDH/auth', fileName:'.jpg'
} }
self.$request('/app/v1/oss','GET',params).then(res => { self.$request('/app/v1/oss','GET',params).then((res)=>{
console.log(res,'oss'); console.log(res.result,'getOssToken')
const { oss }=res.result const { oss }=res.result
self.uploadOss(oss, path,type) self.uploadOss(oss, fileNames,type)
}).catch(err=>{ })
console.log(err,'请求出错')
})
})
.catch(error => {
console.error(error)
})
}, },
uploadOss(result, file,type) { uploadOss(result, file,type) {
const self=this const self=this
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
...@@ -251,16 +187,12 @@ ...@@ -251,16 +187,12 @@
if(type=='Front'){ if(type=='Front'){
self.frontImage=urlImg self.frontImage=urlImg
self.certInfo.frontImgPath = urlImg; self.certInfo.frontImgPath = urlImg;
self.frontWaterImage= urlImg self.frontWaterImage= urlImg
console.log(self.frontWaterImage,'self.frontWaterImage'); console.log(self.frontWaterImage,'self.frontWaterImage');
// self.frontWaterImage = `${urlImg}?x-oss-process=style/watermark_mmyx`;
}else{ }else{
self.backImage =urlImg self.backImage =urlImg
self.certInfo.reverseImgPath = urlImg; self.certInfo.reverseImgPath = urlImg;
self.backWaterImage= urlImg self.backWaterImage= urlImg
// self.backWaterImage = `${urlImg}?x-oss-process=style/watermark_mmyx`;
} }
return resolve(urlImg) return resolve(urlImg)
}, },
...@@ -291,7 +223,8 @@ ...@@ -291,7 +223,8 @@
return `${sYear}.${sMonth}.${sDay}-${eYear}.${eMonth}.${eDay}` return `${sYear}.${sMonth}.${sDay}-${eYear}.${eMonth}.${eDay}`
}, },
isActiveOcr(){ isActiveOcr(){
const {frontImage,backImage}=this const {frontImage,backImage}=this
if(frontImage==''){ if(frontImage==''){
this.toast('请上传正面身份证'); this.toast('请上传正面身份证');
return false return false
...@@ -299,44 +232,35 @@ ...@@ -299,44 +232,35 @@
if(backImage==''){ if(backImage==''){
this.toast('请上传反面身份证'); this.toast('请上传反面身份证');
return false return false
} }
this.showback=true this.authOcr(frontImage,backImage)
}, },
async confirmOcr() { async confirmOcr() {
const { const {
authority, race,
timelimit, realName,
nation, gender,
sex, idCardNumber,
name, birthday,
address, address,
year, issueBy,
day, validDate,
month,
number,
reverseImgPath, reverseImgPath,
frontImgPath frontImgPath
} = this.certInfo; } = this.certInfo;
let gender = 3;
if (sex === "男") gender = 1
if (sex === "女") gender = 2
const validDate = this.convertValidDate(timelimit);
console.log(validDate, '转换的值')
const form = { const form = {
birthday: `${year}-${month}-${day}`, birthday,
certType: "1", certType: "1",
gender, //1.男 2.女 3.未提供 gender, //1.男 2.女 3.未提供
validDate: timelimit, validDate,
reverseImgPath, reverseImgPath,
frontImgPath, frontImgPath,
address: address, address,
race: nation, race,
issueBy: authority, issueBy,
realName: name, realName,
idCardNumber: number idCardNumber
} }
try { try {
...@@ -349,7 +273,7 @@ ...@@ -349,7 +273,7 @@
if(authResult.authState==true){ if(authResult.authState==true){
uni.setStorage({ uni.setStorage({
key:"m-name", key:"m-name",
data:`${name}` data:`${realName}`
}) })
uni.showToast({ uni.showToast({
title:authResult.message, title:authResult.message,
...@@ -378,13 +302,13 @@ ...@@ -378,13 +302,13 @@
}, },
authChange(e) { authChange(e) {
console.log(e,'eeee'); console.log(e,'eeee');
this.certInfo.name = e.detail.value this.certInfo.realName = e.detail.value
}, },
IDChange(e) { IDChange(e) {
this.certInfo.number = e.detail.value this.certInfo.idCardNumber = e.detail.value
}, },
dateChange(e) { dateChange(e) {
this.certInfo.timelimit = e.detail.value this.certInfo.validDate = e.detail.value
} }
} }
} }
......
This diff is collapsed.
...@@ -446,14 +446,12 @@ ...@@ -446,14 +446,12 @@
}, },
// 授信提交 // 授信提交
onCredit(){ onCredit(){
const self=this const self=this
const appNO=uni.getStorageSync('appNo') self.$request('/app/v1/checkProductList','POST').then(res => {
const params={ console.log(res,'checkProductList')
"appNo": appNO const {jumpUrl}=res.result
} console.log(jumpUrl,'jumpUrl')
self.$request('/app/v1/credit','POST',params).then(res => { self.Go(jumpUrl)
console.log(res,'credit');
self.Go('uni:/pages/creditResult/creditResult')
}).catch(err=>{ }).catch(err=>{
console.log(err,'请求出错') console.log(err,'请求出错')
}) })
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
data() { data() {
return { return {
imgList:[ imgList:[
{name:'五官遮挡',url:'http://ddh.yyhock.com/appStatic/face-f.png'}, {name:'五官遮挡',url:'https://ddh.yyhock.com/appStatic/face-f.png'},
{name:'镜头模糊',url:'http://ddh.yyhock.com/appStatic/fece-s.png'}, {name:'镜头模糊',url:'https://ddh.yyhock.com/appStatic/fece-s.png'},
{name:'光线不足',url:'http://ddh.yyhock.com/appStatic/face-t.png'} {name:'光线不足',url:'https://ddh.yyhock.com/appStatic/face-t.png'}
], ],
bizToken:'', bizToken:'',
requestId:'', requestId:'',
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
initUser(){ initUser(){
const self=this const self=this
self.$request('/app/v1/user','GET').then(res => { self.$request('/app/v1/user','GET').then(res => {
console.log(res,'user'); console.log(res,'user')
}).catch(err=>{ }).catch(err=>{
console.log(err,'请求出错') console.log(err,'请求出错')
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
}, },
goFace(){ goFace(){
const self = this; const self = this
const {bizToken, requestId} = self; const {bizToken, requestId} = self
LF.Face_UP({ LF.Face_UP({
token:bizToken, token:bizToken,
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
"faceBestImgPath":faceUrl, "faceBestImgPath":faceUrl,
"faceFullImgPath": faceUrl, "faceFullImgPath": faceUrl,
"faceRandomImgPath": faceUrl, "faceRandomImgPath": faceUrl,
"faceToken":bizToken,// "faceToken":bizToken
} }
console.log(params,'params222'); console.log(params,'params222');
self.$request('/app/v1/faceCheck','POST',params).then(res => { self.$request('/app/v1/faceCheck','POST',params).then(res => {
......
...@@ -183,8 +183,10 @@ ...@@ -183,8 +183,10 @@
loginNocheck(){ loginNocheck(){
const self=this const self=this
const params={ const params={
"mobile": self.mobile "mobile": self.mobile,
} "promoCode":'own'
}
console.log(params,'8766')
self.$request('/app/v1/loginNoCheck','POST',params).then(res => { self.$request('/app/v1/loginNoCheck','POST',params).then(res => {
console.log(res,'loginNoCheck'); console.log(res,'loginNoCheck');
const {deviceId,token }=res.result const {deviceId,token }=res.result
......
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
const that = this const that = this
try { try {
uni.getStorage({ uni.getStorage({
key: 'm-device-info', key: 'm-header-device',
success: function(res) { success: function(res) {
console.log(res.data, 'res设备信息') console.log(res.data, 'res设备信息')
that.GetWebView().evalJS("receiveDeviceInfo('" + res.data + "')") that.GetWebView().evalJS("receiveDeviceInfo('" + res.data + "')")
...@@ -393,6 +393,20 @@ ...@@ -393,6 +393,20 @@
} }
}, },
GetToken(){
const that=this
try{
uni.getStorage({
key: 'tokenFinance',
success:function(res){
console.log(res.data,'token信息')
that.GetWebView().evalJS("receiveToken('" + res.data + "')")
}
})
}catch(err){
console.log(err,'token信息')
}
},
//获取位置信息 //获取位置信息
GetLocation() { GetLocation() {
console.log('hhhhh设别') console.log('hhhhh设别')
......
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
const that=this const that=this
try{ try{
uni.getStorage({ uni.getStorage({
key: 'm-device-info', key: 'm-header-device',
success:function(res){ success:function(res){
console.log(res.data,'res设备信息') console.log(res.data,'res设备信息')
that.GetWebView().evalJS("receiveDeviceInfo('" + res.data + "')") that.GetWebView().evalJS("receiveDeviceInfo('" + res.data + "')")
...@@ -347,6 +347,20 @@ ...@@ -347,6 +347,20 @@
} }
}, },
GetToken(){
const that=this
try{
uni.getStorage({
key: 'tokenFinance',
success:function(res){
console.log(res.data,'token信息')
that.GetWebView().evalJS("receiveToken('" + res.data + "')")
}
})
}catch(err){
console.log(err,'token信息')
}
},
//获取位置信息 //获取位置信息
GetLocation() { GetLocation() {
console.log('hhhhh设别') console.log('hhhhh设别')
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
appleAppid=io.dcloud.ddh appleAppid=io.dcloud.ddh
[appstore] [appstore]
appstore= appstore=f78d3568306c96378cd0dc20d87bde50
[iosStyle] [iosStyle]
iosStyle= iosStyle=
......
{"dir":"/Users/seaman/srv/bdserver.dcloud.net.cn/service/storage/app/package/IOS/queue/69cc13f0-65d3-11ef-9c44-ef5e90a3ce01/wgtRoot/__UNI__DE04B13/"} {"dir":"/Users/seaman/srv/bdserver.dcloud.net.cn/service/storage/app/package/IOS/queue/33b7b170-6904-11ef-a62e-9910c0044fc4/wgtRoot/__UNI__DE04B13/"}
\ No newline at end of file \ No newline at end of file
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"second" : { "second" : {
"title" : "确认提示", "title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用" "buttonRefuse" : "退出应用"
}, },
......
forceInstall
\ No newline at end of file
forceInstall
\ No newline at end of file
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"second" : { "second" : {
"title" : "确认提示", "title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用" "buttonRefuse" : "退出应用"
}, },
......
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"second" : { "second" : {
"title" : "确认提示", "title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13719927043339059\">《服务协议》</a>和<a href=\"https://buyer.meimeiyouxin.com/article/detail?id=13717799279001600\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-user.html\">《服务协议》</a>和<a href=\"https://ddh.yyhock.com/appStatic/protocol/dd-private.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用" "buttonRefuse" : "退出应用"
}, },
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
import {initHeaderDevice} from './header.js' import {initHeaderDevice} from './header.js'
import api from '../config/api.js'
const request=async(url,type,data)=>{ const request=async(url,type,data)=>{
const baseUrl='http://portal.cloudsmake.cn' //测试 // const baseUrl='http://portal.cloudsmake.cn' //测试
// const baseUrl='https://api.yyhock.com'//线上 // const baseUrl='https://api.yyhock.com'//线上
const baseUrl=api.baseUrl
// 这里确保一定是可以获取得到的 // 这里确保一定是可以获取得到的
console.log(baseUrl,'rd3333')
const headerDevice = uni.getStorageSync('m-header-device') const headerDevice = uni.getStorageSync('m-header-device')
let rd = null; let rd = null;
if (headerDevice) { if (headerDevice) {
...@@ -12,10 +15,12 @@ const request=async(url,type,data)=>{ ...@@ -12,10 +15,12 @@ const request=async(url,type,data)=>{
rd = JSON.stringify(common) rd = JSON.stringify(common)
} }
console.log(baseUrl,'rd')
return new Promise((resolve,reject)=>{ return new Promise((resolve,reject)=>{
const token=uni.getStorageSync('token') const token=uni.getStorageSync('token')
const tokenFinance=uni.getStorageSync('tokenFinance') const tokenFinance=uni.getStorageSync('tokenFinance')
console.log(token,'token')
console.log(tokenFinance,'tokenFinance')
uni.request({ uni.request({
url: baseUrl+url, url: baseUrl+url,
method:type, method:type,
...@@ -28,6 +33,7 @@ const request=async(url,type,data)=>{ ...@@ -28,6 +33,7 @@ const request=async(url,type,data)=>{
device:rd, device:rd,
Authorization:tokenFinance,//贷超 Authorization:tokenFinance,//贷超
Author:token,//多典花 Author:token,//多典花
appcode:8
}, },
success: (res) => { success: (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment