Commit b97fb234 by 前端

ui

1 parent f3cf2ee3
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;} .icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
\ No newline at end of file \ No newline at end of file
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-settings { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
\ No newline at end of file \ No newline at end of file

51 KB | W: | H:

61.9 KB | W: | H:

assets/images/boutique/photos.png
assets/images/boutique/photos.png
assets/images/boutique/photos.png
assets/images/boutique/photos.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
/* 模块配置 */ /* 模块配置 */
"modules" : { "modules" : {
"Camera" : {}, "Camera" : {},
"Record" : {} "Record" : {},
"VideoPlayer" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute" : {
...@@ -52,7 +53,8 @@ ...@@ -52,7 +53,8 @@
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs" : {
"ad" : {} "ad" : {},
"speech" : {}
}, },
"icons" : { "icons" : {
"android" : { "android" : {
......
...@@ -57,15 +57,27 @@ ...@@ -57,15 +57,27 @@
<view class="info flex" :key="ind"> <view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view :class="{ value: true, bold: k.isBold }">{{ <view :class="{ value: true, bold: k.isBold }">{{
item[k.key] || "-" k.format
? formatTime(item[k.key])
: item[k.key] || "-"
}}</view> }}</view>
</view> </view>
</template> </template>
<view class="info flex">
<view class="label">支付方式</view>
<view class="value">
<image
class="image-pay"
:src="
require(`@/assets/images/boutique/pay_${item.payType}.png`)
"
/>
</view>
</view>
<view class="info flex"> <view class="info flex">
<view class="label">实收金额</view> <view class="label">实收金额</view>
<view class="value bold" <view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view >¥ <text>{{ item.totalPrice.toFixed(2) }}</text></view
> >
</view> </view>
</view> </view>
...@@ -78,7 +90,7 @@ ...@@ -78,7 +90,7 @@
class="icon" class="icon"
src="../../assets/images/home/nothing.webp" src="../../assets/images/home/nothing.webp"
/> />
暂无接待记录 暂无数据
</view> </view>
</template> </template>
</template> </template>
...@@ -114,6 +126,7 @@ ...@@ -114,6 +126,7 @@
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import dayjs from 'dayjs'
import Record from "@/mixin/record"; import Record from "@/mixin/record";
export default { export default {
name: '', name: '',
...@@ -131,7 +144,9 @@ export default { ...@@ -131,7 +144,9 @@ export default {
itemObject: [ itemObject: [
{ label: '车架号', key: 'standNo' }, { label: '车架号', key: 'standNo' },
{ label: '工单号', key: 'orderCode' }, { label: '工单号', key: 'orderCode' },
{ label: '交易流水号', key: 'outTradeNo' } { label: '交易流水号', key: 'outTradeNo' },
{ label: '订单时间', key: 'orderTime',format:true },
{ label: '销售顾问', key: 'employeeName' }
], ],
} }
}, },
...@@ -139,6 +154,9 @@ export default { ...@@ -139,6 +154,9 @@ export default {
this.getRecordList() this.getRecordList()
}, },
methods: { methods: {
formatTime(val,key) {
return dayjs(val).format("YYYY-MM-DD HH:mm:ss")
},
//下拉分页 //下拉分页
pageonReachBottom() { pageonReachBottom() {
let { pageNum, total, nothing, pageSize } = this let { pageNum, total, nothing, pageSize } = this
...@@ -307,7 +325,7 @@ export default { ...@@ -307,7 +325,7 @@ export default {
.item { .item {
background: #ffffff; background: #ffffff;
border-radius: 32rpx; border-radius: 32rpx;
height: 320rpx; height: 450rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 16rpx 0 #ffffff;
...@@ -398,6 +416,11 @@ export default { ...@@ -398,6 +416,11 @@ export default {
.value { .value {
margin-left: 20rpx; margin-left: 20rpx;
color: #666666; color: #666666;
.image-pay {
width: 32rpx;
height: 32rpx;
vertical-align: middle;
}
&.bold { &.bold {
color: #22ac38; color: #22ac38;
text { text {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
class="icon" class="icon"
src="../../assets/images/home/nothing.webp" src="../../assets/images/home/nothing.webp"
/> />
暂无接待记录 暂无数据
</view> </view>
</template> </template>
</template> </template>
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
customerNameOrPhone: '', customerNameOrPhone: '',
isSearch: false, isSearch: false,
list: [], list: [],
inviteStatus: { 1: '待邀约', 2: '已邀约', 3: '取消预约', 4: '已施工', 5: '超时未到店',6: '已撤销',7: '已支付' }, inviteStatus: { 1: '待预约', 2: '已预约', 3: '取消预约', 4: '已施工', 5: '超时未到店',6: '已撤销',7: '已支付' },
itemObject: [ itemObject: [
{ label: '客户电话', key: 'customerPhone',format:true }, { label: '客户电话', key: 'customerPhone',format:true },
{ label: '客户车型', key: 'carSeriesName' }, { label: '客户车型', key: 'carSeriesName' },
......
...@@ -6,31 +6,16 @@ ...@@ -6,31 +6,16 @@
* @LastEditTime: 2024-04-18 17:08:12 * @LastEditTime: 2024-04-18 17:08:12
--> -->
<template> <template>
<view <view class="container" @click="handleTouchStart()">
class="container"
@click="handleTouchStart()"
>
<view :class="['home', { show: !id }]"> <view :class="['home', { show: !id }]">
<view class="bg"> <view class="bg">
<view class="top"> <view class="top">
<view <view class="top-one" :style="randomize"></view>
class="top-one"
:style="randomize"
></view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view <view class="bottom-one" :style="randomize"></view>
class="bottom-one" <view class="bottom-two" :style="randomize"></view>
:style="randomize" <view class="bottom-three" :style="randomize"></view>
></view>
<view
class="bottom-two"
:style="randomize"
></view>
<view
class="bottom-three"
:style="randomize"
></view>
</view> </view>
</view> </view>
<!-- <template v-if="false"> --> <!-- <template v-if="false"> -->
...@@ -50,33 +35,29 @@ ...@@ -50,33 +35,29 @@
@click="changeIndex(index)" @click="changeIndex(index)"
> >
<view class="icon-box"> <view class="icon-box">
<view :class="[ <view
:class="[
'sprite-icon', 'sprite-icon',
`icon-${i.icon}${tabIndex == index ? '-active' : ''}`, `icon-${i.icon}${tabIndex == index ? '-active' : ''}`,
]"></view> ]"
></view>
</view> </view>
{{ i.label }} {{ i.label }}
</view> </view>
</template> </template>
</view> </view>
<view class="left-footer"> <view class="left-footer">
<view <view class="btn" @click="$refs.kfRef.open()">
class="btn"
@click="$refs.kfRef.open()"
>
<view class="sprite-icon icon-feedback"></view> <view class="sprite-icon icon-feedback"></view>
<view>反馈</view> <view>反馈</view>
</view> </view>
<view <view class="btn" @click="$refs.settingRef.open()">
class="btn" <view class="sprite-icon icon-settings"></view>
@click="$refs.settingRef.open()"
>
<view class="sprite-icon icon-setting"></view>
<view>设置</view> <view>设置</view>
</view> </view>
</view> </view>
</view> </view>
<view :class="['right-side',{'pl-20':tabIndex == 1}]"> <view :class="['right-side', { 'pl-20': tabIndex == 1 }]">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
<!-- 右侧内容 --> <!-- 右侧内容 -->
...@@ -99,11 +80,7 @@ ...@@ -99,11 +80,7 @@
</view> </view>
</template> </template>
<view class="home-title"></view> <view class="home-title"></view>
<button <button class="start" @click="start" hover-class="hover-class">
class="start"
@click="start"
hover-class="hover-class"
>
<view class="icon-start sprite-icon icon-icon-handshake"></view> <view class="icon-start sprite-icon icon-icon-handshake"></view>
<view class="start-text">开始接待</view> <view class="start-text">开始接待</view>
...@@ -175,26 +152,17 @@ ...@@ -175,26 +152,17 @@
:isFooter="false" :isFooter="false"
> >
<view class="footer"> <view class="footer">
<view <view class="footer-btn confirm flex" @click="openStep">
class="footer-btn confirm flex"
@click="openStep"
>
完成接待<text>(推荐)</text> 完成接待<text>(推荐)</text>
</view> </view>
<view <view class="footer-btn cancel flex" @click="backHome">
class="footer-btn cancel flex"
@click="backHome"
>
仍要退出<text>(不推荐)</text> 仍要退出<text>(不推荐)</text>
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<update-box /> <update-box />
<kf-box ref="kfRef" /> <kf-box ref="kfRef" />
<novice-guide <novice-guide @nextStep="nextStep" @back="back" />
@nextStep="nextStep"
@back="back"
/>
<setting-box ref="settingRef" /> <setting-box ref="settingRef" />
</view> </view>
</template> </template>
...@@ -209,7 +177,7 @@ import SettingBox from "@/components/HomeFrame/components/SettingBox"; ...@@ -209,7 +177,7 @@ import SettingBox from "@/components/HomeFrame/components/SettingBox";
export default { export default {
mixins: [myClick], mixins: [myClick],
components: { detail, KfBox, NoviceGuide, RecordList, SettingBox }, components: { detail, KfBox, NoviceGuide, RecordList, SettingBox },
data () { data() {
return { return {
moduleList: [], moduleList: [],
userInfo: {}, userInfo: {},
...@@ -230,16 +198,16 @@ export default { ...@@ -230,16 +198,16 @@ export default {
], ],
tabIndex: 0, tabIndex: 0,
dateKey: null, dateKey: null,
recording: false recording: false,
}; };
}, },
mounted () { mounted() {
setInterval(() => { setInterval(() => {
this.dateKey = Date.now(); this.dateKey = Date.now();
}, 5e3); }, 5e3);
}, },
computed: { computed: {
randomize () { randomize() {
let { dateKey } = this; let { dateKey } = this;
const maxX = uni.getSystemInfoSync().windowWidth - 300, const maxX = uni.getSystemInfoSync().windowWidth - 300,
maxY = uni.getSystemInfoSync().windowHeight - 100, maxY = uni.getSystemInfoSync().windowHeight - 100,
...@@ -248,7 +216,7 @@ export default { ...@@ -248,7 +216,7 @@ export default {
return `transform:translate(${x}px,${y}px);${dateKey};`; return `transform:translate(${x}px,${y}px);${dateKey};`;
}, },
}, },
onBackPress (options) { onBackPress(options) {
if (options.from === "backbutton") { if (options.from === "backbutton") {
// 物理返回按钮触发 // 物理返回按钮触发
// 阻止默认行为,即不执行页面返回 // 阻止默认行为,即不执行页面返回
...@@ -258,16 +226,16 @@ export default { ...@@ -258,16 +226,16 @@ export default {
// 其他情况允许正常返回 // 其他情况允许正常返回
return false; return false;
}, },
onShow () { onShow() {
this.init(); this.init();
}, },
async onReachBottom () { async onReachBottom() {
const { tabIndex } = this; const { tabIndex } = this;
if (tabIndex == 0) this.$refs.detail?.pageonReachBottom(); if (tabIndex == 0) this.$refs.detail?.pageonReachBottom();
// else this.$refs.recordRef?.pageonReachBottom() // else this.$refs.recordRef?.pageonReachBottom()
}, },
methods: { methods: {
init () { init() {
this.getSoure(); this.getSoure();
this.findPayInfo(); this.findPayInfo();
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
...@@ -298,7 +266,7 @@ export default { ...@@ -298,7 +266,7 @@ export default {
}, },
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
// 查询素材 // 查询素材
async getSoure () { async getSoure() {
const moduleList = await uni.$api.commonApi.findSoureList(); const moduleList = await uni.$api.commonApi.findSoureList();
moduleList.map((e) => { moduleList.map((e) => {
e.top_bg = require(`@/assets/images/media/bg-${e.id}.webp`); e.top_bg = require(`@/assets/images/media/bg-${e.id}.webp`);
...@@ -307,7 +275,7 @@ export default { ...@@ -307,7 +275,7 @@ export default {
this.moduleList = moduleList; this.moduleList = moduleList;
// this.skeletonStatus = false // this.skeletonStatus = false
}, },
async start () { async start() {
const result = await this.$permision.requestAndroidPermission( const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO" "android.permission.RECORD_AUDIO"
); );
...@@ -322,67 +290,67 @@ export default { ...@@ -322,67 +290,67 @@ export default {
this.startAudio(); this.startAudio();
this.id = this.moduleList[0].id; this.id = this.moduleList[0].id;
this.type = "edit"; this.type = "edit";
this.recording = true this.recording = true;
}, },
toDetail (item) { toDetail(item) {
this.chooseItem = item; this.chooseItem = item;
this.$refs.previewRef.open(); this.$refs.previewRef.open();
}, },
cancel () { cancel() {
this.$refs.previewRef.close(); this.$refs.previewRef.close();
}, },
preview () { preview() {
let { id } = this.chooseItem; let { id } = this.chooseItem;
this.type = "preview"; this.type = "preview";
this.id = id; this.id = id;
this.$refs.previewRef.close(); this.$refs.previewRef.close();
}, },
// 完成接待 // 完成接待
done (e) { done(e) {
this.$refs.finish.close(); this.$refs.finish.close();
if (this.recording) this.stopAudio(); if (this.recording) this.stopAudio();
this.recording = false this.recording = false;
setTimeout(() => { setTimeout(() => {
this.id = ""; this.id = "";
this.type = ""; this.type = "";
this.setReceptionStatus(e); this.setReceptionStatus(e);
}, 1500); }, 1500);
}, },
back () { back() {
if (!this.id) return uni.navigateBack(); if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.finish.open(); if (this.type != "preview") return this.$refs.finish.open();
this.backHome(); this.backHome();
}, },
backHome () { backHome() {
if (this.recording) this.stopAudio(); if (this.recording) this.stopAudio();
this.recording = false this.recording = false;
this.$refs.finish.close(); this.$refs.finish.close();
this.id = ""; this.id = "";
this.type = ""; this.type = "";
this.clearHistory(); this.clearHistory();
this.init(); this.init();
}, },
thumbnailLoad (id) { thumbnailLoad(id) {
this.thumbnailFulfillList.push(id); this.thumbnailFulfillList.push(id);
if (this.thumbnailFulfillList.length == this.moduleList.length) if (this.thumbnailFulfillList.length == this.moduleList.length)
this.skeletonStatus = false; this.skeletonStatus = false;
}, },
nextStep () { nextStep() {
let { id } = this.moduleList[0]; let { id } = this.moduleList[0];
this.type = "preview"; this.type = "preview";
this.id = id; this.id = id;
}, },
clearHistory () { clearHistory() {
this.$store.dispatch("clearCustomerInfo"); this.$store.dispatch("clearCustomerInfo");
this.$store.dispatch("clearHistory"); this.$store.dispatch("clearHistory");
}, },
openStep () { openStep() {
this.$refs.finish.close(); this.$refs.finish.close();
this.$refs.detail.open(); this.$refs.detail.open();
}, },
// 查询门店支付配置 // 查询门店支付配置
async findPayInfo () { async findPayInfo() {
const { shopMerchantId } = uni.$storage.get("userInfo"); const { shopMerchantId } = uni.$storage.get("userInfo");
const data = await uni.$api.commonApi.findPayInfo({ const data = await uni.$api.commonApi.findPayInfo({
merchantId: shopMerchantId, merchantId: shopMerchantId,
...@@ -406,7 +374,7 @@ export default { ...@@ -406,7 +374,7 @@ export default {
}); });
this.$store.dispatch("setPaymentType", paymentType); this.$store.dispatch("setPaymentType", paymentType);
}, },
changeIndex (index) { changeIndex(index) {
this.tabIndex = index; this.tabIndex = index;
if (index == 0) this.init(); if (index == 0) this.init();
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!