Commit eb8c0e6b by 李伟康

commit

1 parent 244217d4
import http from "../request/http"; import http from "../request/http";
module.exports = { module.exports = {
search(data) { search (data) {
return http.post({ return http.post({
method: "scrm.api.carlife.weapp.homeSearch.search", method: "scrm.api.carlife.weapp.homeSearch.search",
pageSize: 10, pageSize: 10,
...@@ -9,14 +9,14 @@ module.exports = { ...@@ -9,14 +9,14 @@ module.exports = {
}); });
}, },
// 查询接待素材 // 查询接待素材
findSoureList() { findSoureList () {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique", projectName: "boutique",
}); });
}, },
// 查询门店支付配置 // 查询门店支付配置
findPayInfo(data) { findPayInfo (data) {
return http.post({ return http.post({
method: method:
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId", "dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId",
...@@ -25,14 +25,14 @@ module.exports = { ...@@ -25,14 +25,14 @@ module.exports = {
}); });
}, },
// 查询门店支付配置 // 查询门店支付配置
saveRecCustomer(data) { saveRecCustomer (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
}, },
getToken(data) { getToken (data) {
return http.post( return http.post(
{ {
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken", method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
...@@ -42,4 +42,12 @@ module.exports = { ...@@ -42,4 +42,12 @@ module.exports = {
"test" "test"
); );
}, },
/** 查询接待素材详情 */
getFindSoureDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureDetailList',
projectName: 'boutique',
...data
});
},
}; };
...@@ -5,7 +5,9 @@ import store from '@/store'; ...@@ -5,7 +5,9 @@ import store from '@/store';
import api from './api/index' import api from './api/index'
import { Storage } from './utils/cache/index' import { Storage } from './utils/cache/index'
import GlsxImage from './components/GlsxImage' import GlsxImage from './components/GlsxImage'
import wnCanvas from './components/Canvas/wn-canvas'
Vue.component('GlsxImage', GlsxImage) Vue.component('GlsxImage', GlsxImage)
Vue.component('wnCanvas', wnCanvas)
uni.$api = api uni.$api = api
uni.$storage = new Storage() uni.$storage = new Storage()
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
{ {
"path": "pages/detail/detail", "path": "pages/detail/detail",
"style": { "style": {
"navigationBarTitleText": "", "navigationStyle": "custom"
"enablePullDownRefresh": false
} }
}, },
{ {
......
...@@ -72,8 +72,10 @@ export default { ...@@ -72,8 +72,10 @@ export default {
}; };
}, },
onLoad (options) { onLoad (options) {
uni.showLoading()
let userInfo = uni.$storage.get('userInfo') let userInfo = uni.$storage.get('userInfo')
uni.$api.userApi.getListSelectAccount().then(res => { uni.$api.userApi.getListSelectAccount().then(res => {
uni.hideLoading()
if (res.code == 0 && userInfo) uni.reLaunch({ if (res.code == 0 && userInfo) uni.reLaunch({
url: '/pages/home/home' url: '/pages/home/home'
}) })
......
<template> <template>
<div> <view class="nothing">
</div> 暂未绑定账号
</view>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: '', name: '',
data () { data () {
return { return {
}
},
mounted () {
},
methods: {
} }
},
mounted () {
},
methods: {
} }
}
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.nothing {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="layout">
<view class="bg">
<glsx-image src="media/bg-1.png" />
</view>
<view class="content">
<view class="title">问界·交车告知书</view>
<view class="form">
<template v-for="(i,index) in formObject">
<view
class="form-item"
:key="index"
>
<view class="label">{{i.label}}</view>
<view class="value">
<template v-if="i.type == 'input'">
<input
:type="i.inputType"
:maxlength="i.maxlength"
/>
</template>
<template>
</template>
</view>
</view>
</template>
</view>
<template v-for="(i,index) in views">
<view
class="view"
:key="index"
>
<wnCanvas
saveImageType="3"
:drawImage="i.detailUrl"
:isUnderBkg="true"
drawStatus
></wnCanvas>
</view>
</template>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import Tabs from './Tabs.vue'
export default {
components: { Tabs },
props: {
views: Array
},
name: 'Media_1',
data () {
return {
formObject: [
{
label: '车主姓名',
key: '',
type: 'input',
inputType: 'text',
maxlength: 50
},
{
label: '车型',
key: '',
type: 'select'
},
{
label: '电话',
key: '',
type: 'input',
inputType: 'tel',
maxlength: 20
},
{
label: '销售姓名',
key: '',
type: 'select'
}
]
}
},
mounted () {
},
methods: {
changeView (index) {
},
}
}
</script>
<style scoped lang='scss'>
.layout {
padding-top: 272rpx;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 864rpx;
background-color: #096;
}
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
overflow: hidden;
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
.form{
display: flex;
flex-wrap: wrap;
gap: 28rpx 0;
&-item{
flex: 50%;
display: flex;
align-items: center;
.value{}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="tabs">
<template v-for="(item,index) in list">
<view
:class="['tab',{active:index == tabIndex}]"
:key="index"
@click="tabClick(index)"
>
{{item}}
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Tabs',
props: {
list: Array
},
data () {
return {
tabIndex: 0
}
},
mounted () {
},
methods: {
tabClick (index) {
this.$emit('tabclick', index)
}
}
}
</script>
<style scoped lang='scss'>
.tabs {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: 0 32rpx;
margin-bottom: 32rpx;
.tab {
width: 384rpx;
height: 80rpx;
background: #ffffff;
border: 2rpx solid #dce0e6;
font-size: 32rpx;
color: #292d33;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.active {
border: 4rpx solid #292d33;
font-weight: 500;
color: #292d33;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -90,7 +90,6 @@ export default { ...@@ -90,7 +90,6 @@ export default {
}, },
methods: { methods: {
jump (item) { jump (item) {
console.log(item)
this.$emit('choose', item) this.$emit('choose', item)
}, },
finish () { finish () {
......
...@@ -6,14 +6,18 @@ ...@@ -6,14 +6,18 @@
* @LastEditTime: 2024-04-08 20:43:15 * @LastEditTime: 2024-04-08 20:43:15
--> -->
<template> <template>
<view> <view class="detail-box">
<view class="nav-bar">
<view class="back" @click="back">
<u-icon name="arrow-left" color="#000" size="48" />
</view>
</view>
<tool-box <tool-box
:type="type" :type="type"
@choose="choose" @choose="choose"
@finish="open" @finish="open"
/> />
详情页 <media_1 :views="mediaList" />
<button @click="open">完成接待</button>
<pay-pop ref="pay"></pay-pop> <pay-pop ref="pay"></pay-pop>
</view> </view>
</template> </template>
...@@ -21,16 +25,22 @@ ...@@ -21,16 +25,22 @@
import payPop from './components/payPop.vue'; import payPop from './components/payPop.vue';
import ToolBox from './components/ToolBox.vue' import ToolBox from './components/ToolBox.vue'
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import Media_1 from './components/Media_1.vue'
import UIcon from '../../uview-ui/components/u-icon/u-icon.vue';
export default { export default {
components: { ToolBox, payPop }, components: { ToolBox, payPop, Media_1, UIcon },
mixins: [myClick], mixins: [myClick],
data () { data () {
return { return {
type: 'preview' type: 'preview',
id: '',
mediaList: []
}; };
}, },
onLoad (options) { onLoad (options) {
this.type = options.type this.type = options.type
this.id = options.id
this.getFindSoureDetail(options.id)
}, },
methods: { methods: {
open () { open () {
...@@ -39,136 +49,34 @@ export default { ...@@ -39,136 +49,34 @@ export default {
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
console.log(e) console.log(e)
},
async getFindSoureDetail (id) {
try {
this.mediaList = await uni.$api.commonApi.getFindSoureDetail({ id }) || []
} catch (error) {
}
},
back(){
uni.navigateBack()
} }
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.popup-box { .nav-bar{
position: relative; position: fixed;
margin-top: 286rpx; width: 100%;
background-color: #f8f9f9; height: 96rpx;
height: 1160rpx; left: 0;
padding-bottom: 30rpx; top: 48rpx;
.payment-title { z-index: 2;
position: relative; .back{
width: 100%; height: 100%;
height: 96rpx; aspect-ratio: 1/1;
padding: 24rpx 0 26rpx;
text-align: center;
border-bottom: 1px solid #e8e8e8;
.icon-close {
position: absolute;
right: 0;
top: 0;
width: 160rpx;
height: 96rpx;
font-size: 50rpx;
text-align: right;
padding-right: 20rpx;
line-height: 96rpx;
}
}
}
.popup-content {
.tab-list {
display: flex;
justify-content: center;
margin-top: 40rpx;
.tab-item {
width: 320rpx;
padding: 24rpx 0 28rpx;
text-align: center;
background-color: #fff;
color: #666;
&.active {
background-color: #2c66f7;
color: #fff;
}
&:first-child {
border-radius: 200rpx 0 0 200rpx;
}
&:last-child {
border-radius: 0 48rpx 48rpx 0;
}
}
}
.payment-content {
width: 100%;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
margin-top: 40rpx;
.qr-code-content {
width: 538rpx;
background-color: #fff;
border-radius: 24rpx;
text-align: center;
padding: 59rpx 0 67rpx;
.qr-code-img {
width: 420rpx;
height: 420rpx;
}
.qr-code-info {
margin-top: 40rpx;
font-weight: 500;
font-size: 32rpx;
color: #1a1a1a;
}
}
.corporate-content {
width: 1080rpx;
background-color: #fff;
border-radius: 24rpx;
.bank-logo {
width: 100%;
height: 136rpx;
}
.bank-info {
font-weight: 500;
font-size: 32rpx;
padding: 27rpx 80rpx 39rpx;
.bank-item {
display: flex;
align-items: center;
margin-bottom: 16rpx;
&:last-child {
margin-bottom: 0;
}
.bank-label {
color: #6c6c70;
// line-height: 94rpx;
}
.bank-value {
box-sizing: border-box;
background-color: #f8f9f9;
border-radius: 8rpx;
width: 740rpx;
height: 80rpx;
line-height: 80rpx;
padding-left: 24rpx;
font-weight: 500;
font-size: 32rpx;
color: #1a1a1a;
letter-spacing: 0;
}
}
}
}
} }
} }
.payment-done {
position: absolute;
bottom: 30rpx;
left: 50%;
transform: translateX(-50%);
width: calc(100% - 240rpx);
height: 80rpx;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
text-align: center;
line-height: 80rpx;
background-color: #2c66f7;
border-radius: 40rpx;
}
</style> </style>
...@@ -93,16 +93,17 @@ export default { ...@@ -93,16 +93,17 @@ export default {
data() { data() {
return { return {
moduleList: [ moduleList: [
{ // {
id: 1, // id: 1,
sort: 1, // sort: 1,
thumbnail: // thumbnail:
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png", // "https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/11.png",
title: "问界三包政策", // title: "问界三包政策",
type: 1, // type: 1,
}, // },
], ],
userInfo: {}, userInfo: {},
id:''
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -135,6 +136,7 @@ export default { ...@@ -135,6 +136,7 @@ export default {
url: `../detail/detail?id=${item.id}&type=edit`, url: `../detail/detail?id=${item.id}&type=edit`,
}); });
} else { } else {
this.id = item.id
this.$refs.tips.open("center"); this.$refs.tips.open("center");
} }
}, },
...@@ -142,8 +144,9 @@ export default { ...@@ -142,8 +144,9 @@ export default {
this.$refs.tips.close(); this.$refs.tips.close();
}, },
preview() { preview() {
let {id} = this
uni.navigateTo({ uni.navigateTo({
url: `../detail/detail?type=preview`, url: `../detail/detail?type=preview&id=${id}`,
}); });
this.close() this.close()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!