@@ -1,5 +1,5 @@ | |||
{ | |||
"name" : "数智工牌", | |||
"name" : "去房智控管家", | |||
"appid" : "__UNI__D88F14A", | |||
"description" : "AI营销助理", | |||
"versionName" : "1.1.0", | |||
@@ -91,7 +91,7 @@ | |||
}, | |||
"quickapp" : {}, | |||
"mp-weixin" : { | |||
"appid" : "wxe044603515ff2cb5", | |||
"appid" : "wx8f883dca5ecc5510", | |||
"setting" : { | |||
"urlCheck" : false, | |||
"es6" : true, | |||
@@ -3,7 +3,8 @@ | |||
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" | |||
}, | |||
//这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 | |||
"pages": [{ | |||
"pages": [ | |||
{ | |||
"path": "pages/index/guide", | |||
"style": { | |||
"navigationBarBackgroundColor": "#008EF2", | |||
@@ -552,8 +552,10 @@ | |||
cunsumerTipsid:'', | |||
clientStage:'', | |||
clientStageName:'' | |||
} | |||
this.visitList.map(i=>{ | |||
i.isShow = false | |||
}) | |||
this.nextPage=1; | |||
this.recordList=[]; | |||
this.screenShow=false; | |||
@@ -81,7 +81,7 @@ | |||
</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-counselor"> | |||
@@ -114,6 +114,9 @@ | |||
<view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | |||
无效接待 | |||
</view> | |||
<view :class="[screen.validInvalid==2?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(2)"> | |||
无录音 | |||
</view> | |||
</view> | |||
</view> | |||
<view class="screen-record"> | |||
@@ -495,6 +498,7 @@ | |||
orderBy:orderBy, | |||
validInvalid:this.screen.validInvalid, | |||
clientStage:this.screen.clientStage, | |||
recording:this.screen.validInvalid==2?0:null | |||
} | |||
}; | |||
if(this.screen.agentId){ | |||
@@ -540,11 +544,16 @@ | |||
counselorName:'', | |||
record:'0', | |||
markAdvisor:null, | |||
visitRecord:null, | |||
visitRecord:[], | |||
validInvalid:null, | |||
clientStage:'', | |||
clientStageName:'' | |||
clientStageName:'', | |||
recording:null, | |||
visitRecords:"", | |||
} | |||
this.visitList.map(i=>{ | |||
i.isShow = false | |||
}) | |||
this.screenShow=false; | |||
this.nextPage=1; | |||
this.recordList=[]; | |||
@@ -52,7 +52,7 @@ | |||
</view> | |||
<view class="line" @click="scan"> | |||
<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 class="right"> | |||
@@ -1,7 +1,7 @@ | |||
<template> | |||
<view class="registerCode"> | |||
<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 class="registerBtn" @click="down"> | |||
保存图片到手机 | |||
@@ -14,12 +14,16 @@ | |||
export default { | |||
data() { | |||
return { | |||
qrCodeUrl: "" | |||
qrCodeUrl: "", | |||
projectId:"" | |||
}; | |||
}, | |||
onShow() { | |||
this.projectId = uni.getStorageSync('buildingID').id; | |||
}, | |||
methods: { | |||
down() { | |||
let url = this.qrCodeUrl + '/customer/getQrCode?pageUrl=pages/index/index' | |||
let url = this.qrCodeUrl + '/customer/getQrCode?pageUrl=pages/mine/registerForm' | |||
console.log(url) | |||
uni.downloadFile({ | |||
url, | |||
@@ -60,8 +60,8 @@ | |||
</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"> | |||
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" | |||
@@ -75,7 +75,6 @@ | |||
var app = getApp(); | |||
var config = require("@/config"); | |||
let domain = require("@/utils/domain") | |||
let WXBizDataCrypt = require("@/sdk/WXBizDataCrypt") | |||
export default { | |||
data() { | |||
return { | |||
@@ -94,17 +93,20 @@ | |||
sex: 1, | |||
sourceName: null, | |||
howMany: 1, | |||
agentId: null, | |||
projectId: '', | |||
phone:'' | |||
phone:'', | |||
projectId:'', | |||
projectName:'xxx' | |||
}, | |||
daitiReceptionobj: {}, | |||
verifyPass:false, | |||
qrCodeUrl:'' | |||
}; | |||
}, | |||
onShow() { | |||
this.parames.projectId = uni.getStorageSync('buildingID').id; | |||
onLoad(options){ | |||
const sceneStr = decodeURIComponent(options.scene); | |||
console.log(options) | |||
this.projectId = sceneStr | |||
}, | |||
watch:{ | |||
parames:{ | |||
@@ -129,55 +131,52 @@ | |||
return; | |||
} | |||
}, | |||
getPhoneNumber(e){ | |||
getPhoneNumber(e){ | |||
console.log(e) | |||
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) { | |||
@@ -1,7 +1,7 @@ | |||
<template> | |||
<view class="registerCode"> | |||
<view class="registerImg"> | |||
<image src="../../static/images/allimg.png" mode=""></image> | |||
<image src="../../static/images/scuess.png" mode=""></image> | |||
</view> | |||
<view class="registerBtn"> | |||
提交成功 | |||
@@ -23,7 +23,7 @@ | |||
.registerCode{ | |||
.registerImg{ | |||
width: 300rpx; | |||
height: 300rpx; | |||
height: 300rpx; | |||
margin: 130rpx auto; | |||
image{ | |||
width: 100%; | |||
@@ -1,11 +1,11 @@ | |||
// http.js使用域名 | |||
// 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.167: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 = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||