Commit a0dbe19a by 前端

设备编号

1 parent f5fcaffa
......@@ -6,6 +6,7 @@
.icon-back { width: 128rpx; height: 50rpx; background-position: -111rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;}
.icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -415rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1041rpx -557rpx;}
......

1.09 MB | W: | H:

1.09 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<uni-popup
ref="popup"
border-radius="20px"
>
<uni-popup ref="popup" border-radius="20px">
<view class="setting-box">
<view
class="close flex"
@click="close"
>
<uni-icons
type="closeempty"
:size="18"
color="#1A1A1A"
></uni-icons>
<view class="close flex" @click="close">
<uni-icons type="closeempty" :size="18" color="#1A1A1A"></uni-icons>
</view>
<view class="app-info flex">
<view class="sprite-icon icon-logo"></view>
展业助手
<view class="version">
版本号:V{{version}}
</view>
<view class="version">版本号:V{{ version }}</view>
<view class="check-box">检查更新</view>
</view>
<view class="btn-box">
<view
class="btn flex"
@click="changeAccount"
>
切换账号
</view>
<view
class="btn flex logout"
@click="logout"
>退出</view>
<view class="btn flex" @click="changeAccount">切换账号</view>
<view class="btn flex logout" @click="logout">退出</view>
</view>
<view
class="a"
@click="jump('agreement')"
>《用户隐私协议》</view>
<view
class="icp flex"
@click="jump('icp')"
>
<view class="a" @click="jump('agreement')">《用户隐私协议》</view>
<view class="icp flex" @click="jump('icp')">
ICP备案号:苏ICP备18023686号-2A
<view class="sprite-icon icon-arrow-right"></view>
</view>
<view class="app-code flex">
APP编码:{{ deviceId }}
<view class="sprite-icon icon-clone" @click="copyText"></view>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
export default {
name: 'SettingBox',
data () {
return {
version: '',
deviceId:''
}
},
mounted () {
this.version = plus?.runtime?.version || '1.0.0'
const {deviceId} = uni.getDeviceInfo()
this.deviceId = deviceId
},
methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
open () {
this.$refs.popup.open("center");
},
......@@ -122,7 +114,7 @@ export default {
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.setting-box {
position: relative;
width: 720rpx;
......@@ -156,6 +148,17 @@ export default {
font-size: 24rpx;
color: #999999;
}
.check-box {
width: 120rpx;
padding: 10rpx 0rpx 4rpx;
background: #f2f2f2;
border-radius: 6rpx;
font-size: 22rpx;
color: #999999;
text-align: center;
margin-top: 16rpx;
box-sizing: border-box;
}
}
.btn-box {
margin-top: 120rpx;
......@@ -185,5 +188,14 @@ export default {
font-size: 24rpx;
color: #999999;
}
.app-code {
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
.icon-clone {
width: 24rpx;
height: 24rpx;
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -80,7 +80,7 @@ export default {
this.setAudioInfo({ endReasonType: 1 })
},
getParams() {
const { shopMerchantId, phone, sceneType, uuid, name, merchantId, channelType } = uni.$storage.get('userInfo'),
const { shopMerchantId, phone, sceneType, uuid, name, merchantId, channelType, merchantName } = uni.$storage.get('userInfo'),
{ customerName, phoneNumber, salesUuid, carModel, staffName } = this.$store.state.user.customerInfo,
receptionCustomerPaySourceList = this.booksList.map(item => {
return {
......@@ -90,25 +90,28 @@ export default {
}
}),
{ receptionStartTime, receptionEndTime, endReasonType } = this.audioInfo,
params = {
staffUuid: uuid,
staffName: name,
serviceMerchantId: merchantId,
carModel,
endReasonType, //原因 1.异常 0.正常
customerName,
phoneNumber,
loginPhone: phone,
salesName: staffName,
salesUuid,
receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败
receptionStartTime,
receptionEndTime,
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId: shopMerchantId,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
channelType: channelType || 1 //1问界 2 比亚迪 3 其他
}
{ deviceId: appCode } = uni.getDeviceInfo()
params = {
staffUuid: uuid,
staffName: name,
serviceMerchantId: merchantId,
carModel,
endReasonType, //原因 1.异常 0.正常
customerName,
phoneNumber,
appCode,
loginPhone: phone,
salesName: staffName,
salesUuid,
receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败
receptionStartTime,
receptionEndTime,
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId: shopMerchantId,
merchantName,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
channelType: channelType || 1 //1问界 2 比亚迪 3 其他
}
return params
},
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!