..
This commit is contained in:
@@ -8,9 +8,6 @@
|
||||
<view class="topCont-logo">
|
||||
<image class="topCont-logo-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/fbd7ddba29e4ac81467b3d218233bb02.png" mode="widthFix"></image>
|
||||
<view>
|
||||
<view class="topCont-logo-btn" @click="$Router.push({name: 'vip'})" v-if="vip.name != ''">
|
||||
会员权益
|
||||
</view>
|
||||
<view class="topCont-logo-btn" @click="seekClick">
|
||||
立即咨询
|
||||
</view>
|
||||
@@ -50,8 +47,14 @@
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- 开通会员 -->
|
||||
<image
|
||||
style="width: 100%; vertical-align: top;"
|
||||
src="/static/vip.png"
|
||||
mode="widthFix"
|
||||
@click="$Router.push({name: 'vip'})" v-if="vip.name != ''"
|
||||
></image>
|
||||
<!-- 新增改版 - 协商调解类 -->
|
||||
<view class="module" style="display: none;">
|
||||
<view class="module-title">
|
||||
|
||||
@@ -36,17 +36,20 @@
|
||||
},
|
||||
created() {
|
||||
// 业务类型列表
|
||||
workIndex().then(res => {
|
||||
this.businessArr = res
|
||||
this.businessType= res[0].self_type
|
||||
this.businessName= res[0].self_type + res[0].business_id
|
||||
this.businessId = res[0].business_id
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
// workIndex().then(res => {
|
||||
|
||||
// console.log(res)
|
||||
|
||||
// this.businessArr = res
|
||||
// this.businessType= res[0].self_type
|
||||
// this.businessName= res[0].self_type + res[0].business_id
|
||||
// this.businessId = res[0].business_id
|
||||
// }).catch(err => {
|
||||
// uni.showToast({
|
||||
// title: err.message,
|
||||
// icon : 'none'
|
||||
// })
|
||||
// })
|
||||
|
||||
// 综法类型列表
|
||||
synthList().then(res => {
|
||||
@@ -67,21 +70,29 @@
|
||||
},
|
||||
|
||||
// 创建业务单
|
||||
onNext(){
|
||||
onNext(){
|
||||
console.log(this.businessType)
|
||||
// 信用卡/贷款
|
||||
if(this.businessType == 'business') {
|
||||
let busines = this.businessArr.find(val => val.business_id === this.businessId)
|
||||
// if(this.businessType == 'business') {
|
||||
// let busines = this.businessArr.find(val => val.business_id === this.businessId)
|
||||
|
||||
this.$Router.replace({
|
||||
name : 'sheetBasic',
|
||||
params : {
|
||||
businessTitle : busines.title,
|
||||
businessId : busines.business_id,
|
||||
}
|
||||
})
|
||||
return
|
||||
// this.$Router.replace({
|
||||
// name : 'sheetBasic',
|
||||
// params : {
|
||||
// businessTitle : busines.title,
|
||||
// businessId : busines.business_id,
|
||||
// }
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
if(this.businessType != 'synthesis'){
|
||||
uni.showToast({
|
||||
title: '请选择咨询类型',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 综法
|
||||
let synthesis = this.synthesisArr.find(val => val.synthesis_id === this.businessId)
|
||||
if(synthesis.can.buy) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view id="poster" class="poster">
|
||||
<view id="poster" :class="['poster', {'vip_bg': seekData.is_vip}]">
|
||||
<view class="top">
|
||||
<view class="top-cont">
|
||||
<image class="top-cont-img" src="https://cdn.douhuofalv.com/images/2023/04/24/a45643fc33ca42b7a430aee573a93da4.png" mode="widthFix"></image>
|
||||
@@ -13,6 +13,9 @@
|
||||
<view class="confirm-white">
|
||||
<view class="confirm-top">订单号 {{seekData.order_no}}</view>
|
||||
<view class="confirm-list">
|
||||
<view class="confirm-item" style="color: #CD7F32; font-weight: bold;" v-if="seekData.is_vip">
|
||||
<view class="confirm-item-label">VIP订单</view>
|
||||
</view>
|
||||
<view class="confirm-item" v-for="(item, index) in seekData.params">
|
||||
<view class="confirm-item-label">{{item.title}}</view>
|
||||
<view class="confirm-item-text" v-if="item.key == 'address'">{{item.value_text.province_name}}{{item.value_text.city}}</view>
|
||||
@@ -115,10 +118,16 @@
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
position: fixed;
|
||||
&.vip_bg{
|
||||
background: linear-gradient(to bottom,#bf9960, #f9cd9e);
|
||||
}
|
||||
}
|
||||
|
||||
.poster {
|
||||
background-image: linear-gradient(to bottom,#041f79, #111e4b);
|
||||
&.vip_bg{
|
||||
background: linear-gradient(to bottom,#582700, #f9cd9e);
|
||||
}
|
||||
}
|
||||
|
||||
.top {
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
methods: {
|
||||
// 综法咨询-详情
|
||||
getBusiness(){
|
||||
synthDet(this.$Route.query.synthesisId).then(res => {
|
||||
synthDet(this.$Route.query.synthesisId).then(res => {
|
||||
let froms = res.synthesis.params
|
||||
froms.map(val => {
|
||||
if(val.type === 'checkbox'){
|
||||
|
||||
@@ -141,11 +141,14 @@
|
||||
<view class="block-flex-title">业务联系人</view>
|
||||
<view>{{userData.salesman.nickname || '-'}}</view>
|
||||
</view>
|
||||
<!-- v-if="userData.identity.id > 1" -->
|
||||
<view class="block-flex" @click="$Router.push({name: 'Tema'})">
|
||||
<view class="block-flex" @click="$Router.push({name: 'Tema'})" v-if="userData.identity.id > 1">
|
||||
<view class="block-flex-title">我的推荐</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
<view class="block-flex" @click="qrcodeShow = true">
|
||||
<view class="block-flex-title">我的邀请码</view>
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
<view class="tool">
|
||||
<view class="tool-title">
|
||||
其他工具
|
||||
@@ -204,13 +207,27 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 邀请码 -->
|
||||
<u-popup mode="center" closeable :show="qrcodeShow" @close="qrcodeShow = false">
|
||||
<view class="qrcode">
|
||||
<image class="qrcode-bg" src="/static/qrcode_bg.png" mode="widthFix"></image>
|
||||
<view class="qrcode-content">
|
||||
<image class="qrcode-src" :src="qrcode.qrcode" mode="aspectFit"></image>
|
||||
<view class="qrcode-footer">
|
||||
<view class="qrcode-code">{{qrcode.invite}}</view>
|
||||
<view class="qrcode-text">邀请码</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { articleList } from '@/apis/interfaces/index'
|
||||
import { userIndex } from '@/apis/interfaces/user'
|
||||
import { userIndex, userQrcode } from '@/apis/interfaces/user'
|
||||
import { synthesisCount } from '@/apis/interfaces/synthesis'
|
||||
export default {
|
||||
data() {
|
||||
@@ -225,7 +242,9 @@
|
||||
synthesisAll : '', // 综法数量
|
||||
listArr : [], // 文章列表
|
||||
page : {}, // 分页信息
|
||||
lodingStats : false, // 加载状态
|
||||
lodingStats : false, // 加载状态
|
||||
qrcodeShow : false, // 弹出层
|
||||
qrcode : ''
|
||||
};
|
||||
},
|
||||
|
||||
@@ -245,15 +264,16 @@
|
||||
|
||||
methods:{
|
||||
// 用户信息
|
||||
userInfo() {
|
||||
userIndex().then(res => {
|
||||
this.userData = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: "none"
|
||||
})
|
||||
})
|
||||
userInfo() {
|
||||
Promise.all([userIndex(), userQrcode()]).then(res => {
|
||||
this.userData = res[0]
|
||||
this.qrcode = res[1]
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: "none"
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 拨打电话
|
||||
@@ -302,6 +322,25 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.qrcode{
|
||||
width: 600rpx;
|
||||
position: relative;
|
||||
.qrcode-bg{ width: 100%; vertical-align: top; }
|
||||
.qrcode-content{
|
||||
position: absolute;
|
||||
top: 290rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
.qrcode-src{ width: 220rpx; height: 220rpx; background: #333; }
|
||||
.qrcode-footer{ width: 100%; padding-top: 30rpx; text-align: center; }
|
||||
.qrcode-code{ font-weight: bold; font-size: 34rpx; }
|
||||
.qrcode-text{ font-size: 28rpx; color: gray; line-height: 30rpx; }
|
||||
}
|
||||
}
|
||||
|
||||
.block-flex{
|
||||
display: flex; color: gray; font-size: 32rpx; align-items: center; justify-content: space-between; padding: 20rpx 30rpx; line-height: 60rpx;
|
||||
&-title{ color: #333; }
|
||||
|
||||
Reference in New Issue
Block a user