Browse Source

访客登记

test
jyt 2 years ago
parent
commit
52df7796fd
4 changed files with 57 additions and 12 deletions
  1. +1
    -1
      manifest.json
  2. +6
    -3
      pages/center/Piabodata/Groupcontrast.vue
  3. +2
    -2
      pages/index/personal.vue
  4. +48
    -6
      pages/mine/registerForm.vue

+ 1
- 1
manifest.json View File

@@ -100,7 +100,7 @@
},
"usingComponents" : true,
"permission" : {},
"requiredBackgroundModes": ["audio"],
"requiredBackgroundModes" : [ "audio" ],
"plugins" : {
"WechatSI" : {
"version" : "0.3.4",


+ 6
- 3
pages/center/Piabodata/Groupcontrast.vue View File

@@ -151,7 +151,7 @@
<view class="heji">项目:50</view>
<view class="heji">均值:25</view>
</view> -->
<view class="uchaserbox">
<view class="uchaserbox" v-if="emptyCharData">
<qiun-data-charts
type="radar"
:chartData="chartData"
@@ -162,6 +162,9 @@
:opts="opts"
/>
</view>
<view class="uchaserbox" v-else>
<u-empty mode="data"></u-empty>
</view>
</view>
@@ -430,9 +433,9 @@
})
this.chartData=allobj
this.$forceUpdate()
console.log("yess")
this.emptyCharData = true;
}else{
console.log("noo")
this.emptyCharData = false;
}
})
},


+ 2
- 2
pages/index/personal.vue View File

@@ -53,7 +53,7 @@
<image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
</view>
</view>
<!-- <view class="line" @click="scan">
<view class="line" @click="scan">
<view class="title" style="width: 220rpx;">
<image src="/static/images/Customer.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
访客登记码
@@ -61,7 +61,7 @@
<view class="right">
<image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
</view>
</view> -->
</view>
<view class="loginout" @click="logout" style="border: none;">
<view class="title">


+ 48
- 6
pages/mine/registerForm.vue View File

@@ -46,22 +46,23 @@
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image>
</view>
</view>
<view class="title" style="border: none;" @click="Buildingselection()">
<!-- <view class="title" style="border: none;" @click="Buildingselection()">
<view class="titletext">咨询业务</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 110rpx;padding-left: 10rpx;">
<!-- {{parames.sourceName||'请选择客户来源'}} -->
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text>
<text v-else>请选择咨询业务</text>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../static/images/arrow.png" mode=""></image>
</view>
</view>
</view> -->
</view>

<view class="clive" @click="save">提交</view>
<!-- <view class="clive" @click="save">提交</view> -->
<button class="clive" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" @click="save">提交</button>

<view v-if="Showhiddenunits">
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list"
@@ -96,7 +97,7 @@
howMany: 1,
agentId: null,
projectId: '',
replaceReception: 0
phone:''
},
daitiReceptionobj: {},
};
@@ -104,10 +105,51 @@
onShow() {
this.parames.projectId = uni.getStorageSync('buildingID').id;
},
// agentId: null
// howMany: 1
// name: "1111"
// phone: "17622221111"
// projectId: "256142e1e2cb47b4a979d56ec9644545"
// sex: 1
// sourceName: "自然到访"
methods: {
save() {
if (this.parames.name.length == 0) {
uni.showToast({
icon: "none",
title: "姓名不能为空"
})
return;
}
// uni.getUserInfo({
// success(e) {
// console.log(e)
// }
// })
},
getPhoneNumber(e){
if (this.parames.name.length == 0) {
uni.showToast({
icon: "none",
title: "姓名不能为空",
})
return;
}else{
if(e.detail.errMsg=="getPhoneNumber:ok"){
this.parames.phone = e.detail.errMsg
this.$u.post("/customer/add", this.parames).then(res => {
if(res.code == 10000){
uni.navigateTo({
url:'/pages/mine/registerResult'
})
}
})
}else{
return;
}
}
},
changeSex(sex) {
this.parames.sex = sex;
},


Loading…
Cancel
Save