Commit a0dbe19a by 前端

设备编号

1 parent f5fcaffa
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
.icon-back { width: 128rpx; height: 50rpx; background-position: -111rpx -853rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -111rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;} .icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;} .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-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;} .icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1041rpx -557rpx;} .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> <template>
<uni-popup <uni-popup ref="popup" border-radius="20px">
ref="popup"
border-radius="20px"
>
<view class="setting-box"> <view class="setting-box">
<view <view class="close flex" @click="close">
class="close flex" <uni-icons type="closeempty" :size="18" color="#1A1A1A"></uni-icons>
@click="close"
>
<uni-icons
type="closeempty"
:size="18"
color="#1A1A1A"
></uni-icons>
</view> </view>
<view class="app-info flex"> <view class="app-info flex">
<view class="sprite-icon icon-logo"></view> <view class="sprite-icon icon-logo"></view>
展业助手 展业助手
<view class="version"> <view class="version">版本号:V{{ version }}</view>
版本号:V{{version}} <view class="check-box">检查更新</view>
</view>
</view> </view>
<view class="btn-box"> <view class="btn-box">
<view <view class="btn flex" @click="changeAccount">切换账号</view>
class="btn flex" <view class="btn flex logout" @click="logout">退出</view>
@click="changeAccount"
>
切换账号
</view>
<view
class="btn flex logout"
@click="logout"
>退出</view>
</view> </view>
<view <view class="a" @click="jump('agreement')">《用户隐私协议》</view>
class="a" <view class="icp flex" @click="jump('icp')">
@click="jump('agreement')"
>《用户隐私协议》</view>
<view
class="icp flex"
@click="jump('icp')"
>
ICP备案号:苏ICP备18023686号-2A ICP备案号:苏ICP备18023686号-2A
<view class="sprite-icon icon-arrow-right"></view> <view class="sprite-icon icon-arrow-right"></view>
</view> </view>
<view class="app-code flex">
APP编码:{{ deviceId }}
<view class="sprite-icon icon-clone" @click="copyText"></view>
</view>
</view> </view>
</uni-popup> </uni-popup>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
export default { export default {
name: 'SettingBox', name: 'SettingBox',
data () { data () {
return { return {
version: '', version: '',
deviceId:''
} }
}, },
mounted () { mounted () {
this.version = plus?.runtime?.version || '1.0.0' this.version = plus?.runtime?.version || '1.0.0'
const {deviceId} = uni.getDeviceInfo()
this.deviceId = deviceId
}, },
methods: { methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
open () { open () {
this.$refs.popup.open("center"); this.$refs.popup.open("center");
}, },
...@@ -122,7 +114,7 @@ export default { ...@@ -122,7 +114,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.setting-box { .setting-box {
position: relative; position: relative;
width: 720rpx; width: 720rpx;
...@@ -156,6 +148,17 @@ export default { ...@@ -156,6 +148,17 @@ export default {
font-size: 24rpx; font-size: 24rpx;
color: #999999; 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 { .btn-box {
margin-top: 120rpx; margin-top: 120rpx;
...@@ -185,5 +188,14 @@ export default { ...@@ -185,5 +188,14 @@ export default {
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
} }
.app-code {
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
.icon-clone {
width: 24rpx;
height: 24rpx;
}
}
} }
</style> </style>
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
this.setAudioInfo({ endReasonType: 1 }) this.setAudioInfo({ endReasonType: 1 })
}, },
getParams() { 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, { customerName, phoneNumber, salesUuid, carModel, staffName } = this.$store.state.user.customerInfo,
receptionCustomerPaySourceList = this.booksList.map(item => { receptionCustomerPaySourceList = this.booksList.map(item => {
return { return {
...@@ -90,6 +90,7 @@ export default { ...@@ -90,6 +90,7 @@ export default {
} }
}), }),
{ receptionStartTime, receptionEndTime, endReasonType } = this.audioInfo, { receptionStartTime, receptionEndTime, endReasonType } = this.audioInfo,
{ deviceId: appCode } = uni.getDeviceInfo()
params = { params = {
staffUuid: uuid, staffUuid: uuid,
staffName: name, staffName: name,
...@@ -98,6 +99,7 @@ export default { ...@@ -98,6 +99,7 @@ export default {
endReasonType, //原因 1.异常 0.正常 endReasonType, //原因 1.异常 0.正常
customerName, customerName,
phoneNumber, phoneNumber,
appCode,
loginPhone: phone, loginPhone: phone,
salesName: staffName, salesName: staffName,
salesUuid, salesUuid,
...@@ -106,6 +108,7 @@ export default { ...@@ -106,6 +108,7 @@ export default {
receptionEndTime, receptionEndTime,
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径 receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId: shopMerchantId, merchantId: shopMerchantId,
merchantName,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改 bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
channelType: channelType || 1 //1问界 2 比亚迪 3 其他 channelType: channelType || 1 //1问界 2 比亚迪 3 其他
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!