@@ -1,5 +1,5 @@ | |||||
{ | { | ||||
"name" : "数智工牌", | |||||
"name" : "去房智控管家", | |||||
"appid" : "__UNI__D88F14A", | "appid" : "__UNI__D88F14A", | ||||
"description" : "AI营销助理", | "description" : "AI营销助理", | ||||
"versionName" : "1.1.0", | "versionName" : "1.1.0", | ||||
@@ -91,7 +91,7 @@ | |||||
}, | }, | ||||
"quickapp" : {}, | "quickapp" : {}, | ||||
"mp-weixin" : { | "mp-weixin" : { | ||||
"appid" : "wxe044603515ff2cb5", | |||||
"appid" : "wx8f883dca5ecc5510", | |||||
"setting" : { | "setting" : { | ||||
"urlCheck" : false, | "urlCheck" : false, | ||||
"es6" : true, | "es6" : true, | ||||
@@ -3,7 +3,8 @@ | |||||
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" | "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" | ||||
}, | }, | ||||
//这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 | //这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 | ||||
"pages": [{ | |||||
"pages": [ | |||||
{ | |||||
"path": "pages/index/guide", | "path": "pages/index/guide", | ||||
"style": { | "style": { | ||||
"navigationBarBackgroundColor": "#008EF2", | "navigationBarBackgroundColor": "#008EF2", | ||||
@@ -552,8 +552,10 @@ | |||||
cunsumerTipsid:'', | cunsumerTipsid:'', | ||||
clientStage:'', | clientStage:'', | ||||
clientStageName:'' | clientStageName:'' | ||||
} | } | ||||
this.visitList.map(i=>{ | |||||
i.isShow = false | |||||
}) | |||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
this.screenShow=false; | this.screenShow=false; | ||||
@@ -81,7 +81,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-popup v-model="screenShow" mode="top" height="780"> | |||||
<u-popup v-model="screenShow" mode="top" height="880"> | |||||
<view class="screen"> | <view class="screen"> | ||||
<!-- 顾问选择 --> | <!-- 顾问选择 --> | ||||
<view class="screen-counselor"> | <view class="screen-counselor"> | ||||
@@ -114,6 +114,9 @@ | |||||
<view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | <view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | ||||
无效接待 | 无效接待 | ||||
</view> | </view> | ||||
<view :class="[screen.validInvalid==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(2)"> | |||||
无录音 | |||||
</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="screen-record"> | <view class="screen-record"> | ||||
@@ -495,6 +498,7 @@ | |||||
orderBy:orderBy, | orderBy:orderBy, | ||||
validInvalid:this.screen.validInvalid, | validInvalid:this.screen.validInvalid, | ||||
clientStage:this.screen.clientStage, | clientStage:this.screen.clientStage, | ||||
recording:this.screen.validInvalid==2?0:null | |||||
} | } | ||||
}; | }; | ||||
if(this.screen.agentId){ | if(this.screen.agentId){ | ||||
@@ -540,11 +544,16 @@ | |||||
counselorName:'', | counselorName:'', | ||||
record:'0', | record:'0', | ||||
markAdvisor:null, | markAdvisor:null, | ||||
visitRecord:null, | |||||
visitRecord:[], | |||||
validInvalid:null, | validInvalid:null, | ||||
clientStage:'', | clientStage:'', | ||||
clientStageName:'' | |||||
clientStageName:'', | |||||
recording:null, | |||||
visitRecords:"", | |||||
} | } | ||||
this.visitList.map(i=>{ | |||||
i.isShow = false | |||||
}) | |||||
this.screenShow=false; | this.screenShow=false; | ||||
this.nextPage=1; | this.nextPage=1; | ||||
this.recordList=[]; | this.recordList=[]; | ||||
@@ -52,7 +52,7 @@ | |||||
</view> | </view> | ||||
<view class="line" @click="scan"> | <view class="line" @click="scan"> | ||||
<view class="title" style="width: 220rpx;"> | <view class="title" style="width: 220rpx;"> | ||||
<image src="/static/images/Customer.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||||
<image src="/static/images/reg.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||||
访客登记码 | 访客登记码 | ||||
</view> | </view> | ||||
<view class="right"> | <view class="right"> | ||||
@@ -1,7 +1,7 @@ | |||||
<template> | <template> | ||||
<view class="registerCode"> | <view class="registerCode"> | ||||
<view class="registerImg"> | <view class="registerImg"> | ||||
<image :src="qrCodeUrl+'/customer/getQrCode?page=pages/mine/registerForm&scene=556'" mode=""></image> | |||||
<image :src="qrCodeUrl+'/customer/getQrCode?page=pages/mine/registerForm&scene='+projectId" mode=""></image> | |||||
</view> | </view> | ||||
<view class="registerBtn" @click="down"> | <view class="registerBtn" @click="down"> | ||||
保存图片到手机 | 保存图片到手机 | ||||
@@ -14,12 +14,16 @@ | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
qrCodeUrl: "" | |||||
qrCodeUrl: "", | |||||
projectId:"" | |||||
}; | }; | ||||
}, | |||||
onShow() { | |||||
this.projectId = uni.getStorageSync('buildingID').id; | |||||
}, | }, | ||||
methods: { | methods: { | ||||
down() { | down() { | ||||
let url = this.qrCodeUrl + '/customer/getQrCode?pageUrl=pages/index/index' | |||||
let url = this.qrCodeUrl + '/customer/getQrCode?pageUrl=pages/mine/registerForm' | |||||
console.log(url) | console.log(url) | ||||
uni.downloadFile({ | uni.downloadFile({ | ||||
url, | url, | ||||
@@ -60,8 +60,8 @@ | |||||
</view> --> | </view> --> | ||||
</view> | </view> | ||||
<button class="clive" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="verifyPass">提交2</button> | |||||
<view class="clive" @click="save" v-else>提交1</view> | |||||
<button class="clive" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="verifyPass">提交</button> | |||||
<view class="clive" @click="save" v-else>提交</view> | |||||
<view v-if="Showhiddenunits"> | <view v-if="Showhiddenunits"> | ||||
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" | <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" | ||||
@@ -75,7 +75,6 @@ | |||||
var app = getApp(); | var app = getApp(); | ||||
var config = require("@/config"); | var config = require("@/config"); | ||||
let domain = require("@/utils/domain") | let domain = require("@/utils/domain") | ||||
let WXBizDataCrypt = require("@/sdk/WXBizDataCrypt") | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -94,17 +93,20 @@ | |||||
sex: 1, | sex: 1, | ||||
sourceName: null, | sourceName: null, | ||||
howMany: 1, | howMany: 1, | ||||
agentId: null, | |||||
projectId: '', | projectId: '', | ||||
phone:'' | |||||
phone:'', | |||||
projectId:'', | |||||
projectName:'xxx' | |||||
}, | }, | ||||
daitiReceptionobj: {}, | daitiReceptionobj: {}, | ||||
verifyPass:false, | verifyPass:false, | ||||
qrCodeUrl:'' | qrCodeUrl:'' | ||||
}; | }; | ||||
}, | }, | ||||
onShow() { | |||||
this.parames.projectId = uni.getStorageSync('buildingID').id; | |||||
onLoad(options){ | |||||
const sceneStr = decodeURIComponent(options.scene); | |||||
console.log(options) | |||||
this.projectId = sceneStr | |||||
}, | }, | ||||
watch:{ | watch:{ | ||||
parames:{ | parames:{ | ||||
@@ -129,55 +131,52 @@ | |||||
return; | return; | ||||
} | } | ||||
}, | }, | ||||
getPhoneNumber(e){ | |||||
getPhoneNumber(e){ | |||||
console.log(e) | |||||
this.qrCodeUrl = domain.baseUrl | this.qrCodeUrl = domain.baseUrl | ||||
uni.login({ | |||||
success:(login_res)=> { | |||||
if(e.detail.errMsg=="getPhoneNumber:ok"){ | |||||
let data = { | |||||
code:login_res.code, | |||||
} | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/code/loginSessionKey', | |||||
method:"GET", | |||||
data, | |||||
success:(SessionKey_res)=> { | |||||
let pc = new WXBizDataCrypt('wx8f883dca5ecc5510',SessionKey_res.data.data.session_key); | |||||
let data = pc.decryptData(e.detail.encryptedData,e.detail.iv) | |||||
console.log(data) | |||||
this.parames.phone = data.phoneNumber | |||||
if(this.parames.phone!=null && this.parames.phone!=""){ | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/customer/add', | |||||
method:"POST", | |||||
data:this.parames, | |||||
header: { | |||||
'content-type': 'application/json', | |||||
'Access-Token': uni.getStorageSync('weapp_session_login_data').token | |||||
}, | |||||
success: (addres) => { | |||||
if(addres.data.code == 10000){ | |||||
uni.navigateTo({ | |||||
url:'/pages/mine/registerResult' | |||||
}) | |||||
} | |||||
if(e.detail.errMsg=="getPhoneNumber:ok"){ | |||||
let data = { | |||||
code:e.detail.code, | |||||
} | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/code/loginSessionKey', | |||||
method:"GET", | |||||
data, | |||||
success:(res)=> { | |||||
let phoneNum = JSON.parse(res.data.data).phone_info.phoneNumber | |||||
this.parames.phone = phoneNum | |||||
if(this.parames.phone!=null && this.parames.phone!=""){ | |||||
if(this.parames.name.length>8){ | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: "不能超过8个汉字" | |||||
}) | |||||
}else{ | |||||
uni.request({ | |||||
url:this.qrCodeUrl + '/customer/codeAdd', | |||||
method:"POST", | |||||
data:this.parames, | |||||
header: { | |||||
'content-type': 'application/json', | |||||
'Access-Token': uni.getStorageSync('weapp_session_login_data').token | |||||
}, | |||||
success: (addres) => { | |||||
console.log(addres.data,111) | |||||
if(addres.data.code == 10000){ | |||||
uni.reLaunch({ | |||||
url:'/pages/mine/registerResult' | |||||
}) | |||||
} | } | ||||
}) | |||||
}else{ | |||||
console.log("fail") | |||||
uni.showToast({ | |||||
title: "获取手机号失败,重新提交", | |||||
icon: "none" | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} | } | ||||
}) | |||||
}else{ | |||||
return; | |||||
} | |||||
} | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
}else{ | |||||
return; | |||||
} | |||||
}, | }, | ||||
changeSex(sex) { | changeSex(sex) { | ||||
@@ -1,7 +1,7 @@ | |||||
<template> | <template> | ||||
<view class="registerCode"> | <view class="registerCode"> | ||||
<view class="registerImg"> | <view class="registerImg"> | ||||
<image src="../../static/images/allimg.png" mode=""></image> | |||||
<image src="../../static/images/scuess.png" mode=""></image> | |||||
</view> | </view> | ||||
<view class="registerBtn"> | <view class="registerBtn"> | ||||
提交成功 | 提交成功 | ||||
@@ -23,7 +23,7 @@ | |||||
.registerCode{ | .registerCode{ | ||||
.registerImg{ | .registerImg{ | ||||
width: 300rpx; | width: 300rpx; | ||||
height: 300rpx; | |||||
height: 300rpx; | |||||
margin: 130rpx auto; | margin: 130rpx auto; | ||||
image{ | image{ | ||||
width: 100%; | width: 100%; | ||||
@@ -1,11 +1,11 @@ | |||||
// http.js使用域名 | // http.js使用域名 | ||||
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 | // const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 | ||||
const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站/ | |||||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站/ | |||||
// const baseUrl = 'http://192.168.31.92:8080/api';// sh | // const baseUrl = 'http://192.168.31.92:8080/api';// sh | ||||
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | // const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | ||||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | ||||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||||
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | // const baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||