抖火法律首页调整

This commit is contained in:
唐明明
2023-06-14 14:25:30 +08:00
parent ca8c6dff01
commit 42e847fccd
26 changed files with 236 additions and 178 deletions

View File

@@ -6,7 +6,8 @@
// 获取系统版本号
getVersions({
platform: plus.os.name,
version : plus.runtime.version
version : plus.runtime.version,
channel : 'app'
}).then(res => {
if (res.update) {
uni.showModal({

View File

@@ -67,7 +67,6 @@ const request = (parameter, hideLoding = true) => {
errToast(res.statusCode)
},
fail(err) {
console.log(err)
uni.showToast({
title: '网络错误,请检查您设备网络状态',
icon : 'none'

View File

@@ -50,9 +50,6 @@ const withdrawsCreate = () => {
// 奖金提现申请
const withdraws = data => {
console.log(data)
return request({
url: 'withdraws/index',
method: 'POST',

View File

@@ -38,6 +38,8 @@
<text v-if="can.pay_status == 2">审核中</text>
<text v-if="can.pay_status == 3">被驳回</text>
</button>
<!-- 线上支付被驳回 -->
<button class="btn-cancel" v-if="status.value == 5" @click="onPayTurn(no)">原因</button>
<button class="btn-cancel" v-if="can.diff_price" @click="onDiff(no)">补差价</button>
<button class="btn-sign" @click="onInfo(no)">查看</button>
</view>
@@ -129,6 +131,10 @@
// 取消订单
onCancel(id){
this.$emit('cancel', id)
},
// 线上支付被驳回
onPayTurn(id){
this.$emit('payTurn', id)
}
}
}

View File

@@ -6,8 +6,8 @@
<view class="order-block-content">
<view class="order-user">{{user.nickname}}<text>{{user.username}}</text></view>
<view class="order-content">
<view class="order-content-type" v-if="can.lawyer_status != 0">
<label>服务律师</label>
<view class="order-content-type" v-if="can.lawyer_status && can.lawyer_status != 0 ">
<label>服务律师</label> -->
<view class="nowrap" v-if="can.lawyer_status === 2">{{ lawyer.name || '-' }}</view>
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
</view>
@@ -71,6 +71,12 @@
isSelf: {
type : Boolean,
default : false
},
can : {
type : Object,
default : () => {
return { }
}
}
},
methods: {
@@ -78,8 +84,6 @@
this.$emit('info', id)
},
onPhone(mobile){
console.log(mobile)
this.$emit('callPhone', mobile)
},
onSing(id){

View File

@@ -148,9 +148,6 @@
this.page = lists.page
this.pagesShow = false
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'

View File

@@ -278,7 +278,6 @@
// 获取提现记录
getTeams() {
getTeamLogs({identity_id:this.id}).then(res => {
console.log(res)
this.list = res
this.pagesShow = false
uni.hideLoading()

View File

@@ -37,11 +37,10 @@
<view class="free" @click="onView('FreeService')">
<image class="free-img" src="@/static/index/index_banner_free.png" mode="widthFix" />
</view>
<!-- 金法产品 -->
<!-- 协商调解类 -->
<view class="block">
<view class="block-title">
<view class="title"> 金法产品</view>
<!-- <view class="more">更多<u-icon class="more-icon" size="28rpx" color="#999" name="arrow-right"/></view> -->
<view class="title">协商调解类</view>
</view>
<scroll-view class="the-tabs" scroll-x="true" >
<block v-for="(item, index) in theTabs" :key="index">
@@ -61,56 +60,79 @@
:id='"_tabs"+item.service_id'
@click="sevicesClick(item.service_id)"
>
<image class="cover" :src="item.cover" mode="aspectFill" />
<view class="cover" :style="'background-image: url(' + item.cover + ');'"></view>
<view class="title nowrap">{{item.title}}</view>
<view class="price nowrap"><text></text>{{item.price}}<text class="ding" v-if="item.type">定金</text></view>
</view>
</scroll-view>
</view>
<!-- 综法产品 -->
<!-- 法律咨询类 -->
<view class="block">
<view class="block-title">
<view class="title">综法产品</view>
<view class="title">法律咨询类</view>
</view>
<view class="zong-list">
<view class="zong-list-item" @click="onView('Individual')">
<image class="cover" src="@/static/synthesize/img_00.png" mode="aspectFill" />
<view class="colum-flex">
<view>
<scroll-view
class="the-flex"
style="padding-top: 0;"
scroll-x="true"
scroll-with-animation="true"
:scroll-into-view='defaultViewId'
>
<view class="the-flex-item"
@click="onView('Individual')"
>
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_00.png') + ');'"></view>
<view class="title nowrap">个人全年法律</view>
<view class="subtitle">咨询服务 抖火法律</view>
<view class="price nowrap"><text></text>365 <text>/</text></view>
</view>
<view class="price nowrap"><text></text>365.00/</view>
</view>
</view>
<view class="zong-list-item" @click="onView('Entrust')">
<image class="cover" src="@/static/synthesize/img_01.png" mode="aspectFill" />
<view class="colum-flex">
<view>
<view class="title nowrap">案件委托</view>
<view class="subtitle">咨询服务 抖火法律</view>
</view>
<view class="price nowrap"><text></text>200元起</view>
</view>
</view>
<view class="zong-list-item" @click="onView('Enterprise')">
<image class="cover" src="@/static/synthesize/img_02.png" mode="aspectFill" />
<view class="colum-flex">
<view>
<view class="the-flex-item"
@click="onView('Enterprise')"
>
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_02.png') + ');'"></view>
<view class="title nowrap">企业全年法律</view>
<view class="subtitle">咨询服务 抖火法律</view>
<view class="price nowrap"><text></text>3650 <text>/</text></view>
</view>
<view class="price nowrap"><text></text>3650.00/</view>
<view class="the-flex-item"
@click="onView('Enterprise')"
>
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_04.png') + ');'"></view>
<view class="title nowrap">企业全年法律</view>
<view class="price nowrap"><text></text>8888 <text>/</text></view>
</view>
<view class="the-flex-item"
@click="onView('Enterprise')"
>
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_05.png') + ');'"></view>
<view class="title nowrap">企业全年法律</view>
<view class="price nowrap"><text></text>20000 <text>/</text></view>
</view>
<view class="the-flex-item"
@click="onView('Enterprise')"
>
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_06.png') + ');'"></view>
<view class="title nowrap">企业全年法律</view>
<view class="price nowrap"><text></text>50000 <text>/</text></view>
</view>
</scroll-view>
</view>
<!-- 诉讼委托类 -->
<view class="block">
<view class="block-title">
<view class="title">诉讼委托类</view>
</view>
<view class="lawsuit">
<view class="lawsuit-item" @click="onView('Entrust')">
<view class="lawsuit-cover" :style="'background-image: url(' + require('@/static/synthesize/img_01.png') + ');'"></view>
<view class="lawsuit-text">
<view class="lawsuit-title">案件委托</view>
<view class="lawsuit-price">200</view>
</view>
</view>
<view class="zong-list-item" @click="onView('Service')">
<image class="cover" src="@/static/synthesize/img_03.png" mode="aspectFill" />
<view class="colum-flex">
<view>
<view class="title nowrap">拓展服务</view>
<view class="subtitle">咨询服务 抖火法律</view>
</view>
<view class="price nowrap"><text></text>500元起</view>
<view class="lawsuit-item" @click="onView('Service')">
<view class="lawsuit-cover" :style="'background-image: url(' + require('@/static/synthesize/img_03.png') + ');'"></view>
<view class="lawsuit-text">
<view class="lawsuit-title">拓展服务</view>
<view class="lawsuit-price">500</view>
</view>
</view>
</view>
@@ -217,7 +239,7 @@
duration:2000
})
})
},// 获取综法列表
},
// 首页轮播图及公告
getIndex(){
index().then(res=>{
@@ -270,10 +292,6 @@
this.getJf()
}
},
// 选择城市节点
onCityPicker(e){
this.getRegion(e.value);
},
// 点击轮播图
swiperClick(e){
// console.log(this.bannerArr[e])
@@ -281,14 +299,6 @@
// 点击轮播图跳转自由服务包
onView(name){
this.$Router.push({ name })
},
// 获取城市数据
getRegion(id){
region({
parent_id: id
}).then(res => {
console.log(res)
})
},
// 关闭弹窗广告
onRemoveAd(){
@@ -348,7 +358,7 @@
width: 100%;
}
}
// 轮播
// 公告
.notice{
background: white;
padding: $padding;
@@ -393,51 +403,40 @@
width: 100%;
}
}
// 综法
.zong-list{
padding: 0 $padding 20rpx;
margin-bottom: 30rpx;
&-item{
position: relative;
margin-bottom: 30rpx;
padding-left: 210rpx;
height: 180rpx;
.cover{
position: absolute;
left: 0;
top: 0;
width: 180rpx;
height: 180rpx;
}
.colum-flex{
// 诉讼委托类
.lawsuit{
padding: 0 20rpx $padding;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 180rpx;
.title{
font-size: 34rpx;
color: #111111;
line-height: 40rpx;
margin-bottom: 10rpx;
@extend .nowrap;
&-item{
background: #F6F6F6;
border-radius: 10rpx;
display: flex;
justify-content: space-between;
align-items: center;
overflow: hidden;
width: calc(50% - 20rpx);
margin: 0 10rpx;
}
.subtitle{
font-size: 28rpx;
color: gray;
line-height: 40rpx;
@extend .nowrap;
&-cover{
width: 138rpx;
height: 138rpx;
background-size: cover;
background-position: center;
}
.price{
font-weight: bold;
&-text{
width: calc(100% - 138rpx);
padding: 0 20rpx;
box-sizing: border-box;
}
&-title{
font-size: 30rpx;
margin-bottom: 20rpx;
}
&-price{
font-size: 32rpx;
color: #d51959;
font-size: 36rpx;
line-height: 40rpx;
text{
font-size: 80%;
}
@extend .nowrap;
}
}
font-weight: bold;
}
}
// 经法
@@ -479,18 +478,23 @@
padding: $padding 20rpx;
box-sizing: border-box;
white-space: nowrap;
&-item{
width: calc(33.33% - 20rpx);
width: calc(33% - 20rpx);
margin: 0 10rpx;
display: inline-block;
&:last-child{
margin-right: 20rpx;
}
.cover{
width: 100%;
height: 200rpx;
padding-top: 100%;
background-position: center;
background-size: cover;
background-position: center;
border-radius: 10rpx;
}
.title{
font-size: 28rpx;
font-size: 30rpx;
color: #111111;
padding: 10rpx 0;
line-height: 40rpx;
@@ -499,7 +503,7 @@
line-height: 40rpx;
font-weight: bold;
color: #d51959;
font-size: 38rpx;
font-size: 32rpx;
text{
font-size: 80%;
}

View File

@@ -324,7 +324,20 @@
expressSheet(id, type, can) {
this.orderId = id
this.orderType = type
// 支付金额是0
if(can.pay_status == 4){
uni.showModal({
title : '提示',
content : '下单成功',
showCancel : false,
success : modalRes => {
if(modalRes.confirm){
uni.navigateBack()
}
}
})
return
}
// 仅支持线下打款
if(!can.online){
this.onToBankPay()
@@ -493,7 +506,7 @@
margin-right: $margin;
font-size: 30rpx;
text {
color: $main-color;
color: red;
padding-right: 10rpx;
}
}

View File

@@ -59,6 +59,10 @@
<label>业务手机</label>
<view class="val">{{user.parent.username}}</view>
</view>
<view class="block-item-flex" v-if="centerUser != ''">
<label>运营中心</label>
<view class="val">{{centerUser}}</view>
</view>
<view class="block-item-flex">
<label>订单编号</label>
<view class="val">{{no}}</view>
@@ -83,7 +87,8 @@
payType : '',
user : {},
lawyer : null,
price : '0.00'
price : '0.00',
centerUser: ''
};
},
created() {
@@ -92,7 +97,7 @@
mask : true
})
entrustInfo(this.$Route.query.id).then(res => {
let { entrust, params, created_at, user, order_no, total, lawyer, pay_driver_text } = res;
let { entrust, params, created_at, user, order_no, total, lawyer, pay_driver_text, center_user } = res;
this.entrust = entrust
this.params = params
this.createdAt = created_at
@@ -100,7 +105,8 @@
this.no = order_no
this.price = total
this.lawyer = lawyer
this.payType = pay_driver_text || '-'
this.payType = pay_driver_text || '-',
this.centerUser= center_user
}).catch(err => {
uni.showToast({
title: err.message,

View File

@@ -256,7 +256,20 @@
expressSheet(id, type, can) {
this.orderId = id
this.orderType = type
// 支付金额是0
if(can.pay_status == 4){
uni.showModal({
title : '提示',
content : '下单成功',
showCancel : false,
success : modalRes => {
if(modalRes.confirm){
uni.navigateBack()
}
}
})
return
}
// 仅支持线下打款
if(!can.online){
this.onToBankPay()
@@ -418,7 +431,7 @@
margin-right: $margin;
font-size: 30rpx;
text {
color: $main-color;
color: red;
padding-right: 10rpx;
}
}

View File

@@ -58,6 +58,10 @@
<label>业务手机</label>
<view class="val">{{user.parent.username}}</view>
</view>
<view class="block-item-flex" v-if="centerUser != ''">
<label>运营中心</label>
<view class="val">{{centerUser}}</view>
</view>
<view class="block-item-flex">
<label>订单编号</label>
<view class="val">{{no}}</view>
@@ -82,7 +86,8 @@
user : {},
payType : '',
lawyer : null,
price : '0.00'
price : '0.00',
centerUser: ''
};
},
created() {
@@ -91,7 +96,7 @@
mask : true
})
expandInfo(this.$Route.query.id).then(res => {
let { expand, params, created_at, user, order_no, total, lawyer, pay_driver_text } = res;
let { expand, params, created_at, user, order_no, total, lawyer, pay_driver_text, center_user } = res;
this.lawyer = lawyer
this.expand = expand
this.params = params
@@ -100,6 +105,7 @@
this.no = order_no
this.price = total
this.payType = pay_driver_text || ''
this.centerUser= center_user
}).catch(err => {
uni.showToast({
title: err.message,

View File

@@ -394,7 +394,7 @@
margin-right: $margin;
font-size: 30rpx;
text {
color: $main-color;
color: red;
padding-right: 10rpx;
}
}

View File

@@ -69,6 +69,7 @@
@diff="onDiff"
@callPhone="onCallPhone"
@cancel="onCancel"
@payTurn="onPayTurn"
/>
<!-- 拓展单 -->
<expand-block
@@ -207,6 +208,16 @@
this.getList()
}
},
// 委托单线上支付被驳回
onPayTurn(no){
let orderArr = this.orderArr
let orderObj = orderArr.find(val => val.order_no === no)
uni.showModal({
title : '提示',
content : '支付驳回原因:' + orderObj.remark,
showCancel : false
})
},
// 取消订单
onCancel(no){
let orderArr = this.orderArr
@@ -284,7 +295,6 @@
icon : 'none'
})
})
// console.log(is_)
uni.hideLoading()
}).catch(err => {
uni.showToast({
@@ -300,7 +310,6 @@
let orderObj = orderArr.find(val => val.order_no === no)
let { can, price, order_id, order_type } = orderObj
console.log(orderObj)
switch(can.pay_status){
case 1:
this.expressSheet(order_id, order_type, can, price)

View File

@@ -58,6 +58,10 @@
<label>业务手机</label>
<view class="val">{{user.parent.username}}</view>
</view>
<view class="block-item-flex" v-if="centerUser != ''">
<label>运营中心</label>
<view class="val">{{centerUser}}</view>
</view>
<view class="block-item-flex">
<label>订单编号</label>
<view class="val">{{no}}</view>
@@ -83,6 +87,7 @@
lawyer : null,
price : '0.00',
payType : '',
centerUser: ''
};
},
created() {
@@ -91,7 +96,7 @@
mask : true
})
servicesInfo(this.$Route.query.id).then(res => {
let { service, params, created_at, user, order_no, total, lawyer, pay_driver_text } = res;
let { service, params, created_at, user, order_no, total, lawyer, pay_driver_text, center_user } = res;
this.lawyer = lawyer
this.service = service
this.params = params
@@ -100,6 +105,7 @@
this.no = order_no
this.price = total
this.payType = pay_driver_text || ''
this.centerUser = center_user
}).catch(err => {
uni.showToast({
title: err.message,

View File

@@ -356,7 +356,7 @@
margin-right: $margin;
font-size: 30rpx;
text {
color: $main-color;
color: red;
padding-right: 10rpx;
}
}

View File

@@ -58,6 +58,10 @@
<label>业务手机</label>
<view class="val">{{user.parent.username}}</view>
</view>
<view class="block-item-flex" v-if="centerUser != ''">
<label>运营中心</label>
<view class="val">{{centerUser}}</view>
</view>
<view class="block-item-flex">
<label>订单编号</label>
<view class="val">{{no}}</view>
@@ -82,7 +86,8 @@
user : {},
payType : '',
lawyer : null,
price : '0.00'
price : '0.00',
centerUser: ''
};
},
created() {
@@ -91,7 +96,7 @@
mask : true
})
synthesisInfo(this.$Route.query.id).then(res => {
let { synthesis, params, created_at, user, order_no, price, lawyer, pay_driver_text } = res;
let { synthesis, params, created_at, user, order_no, price, lawyer, pay_driver_text, center_user } = res;
this.synthesis = synthesis
this.params = params
this.createdAt = created_at
@@ -100,6 +105,7 @@
this.price = price
this.lawyer = lawyer
this.payType = pay_driver_text || '-'
this.centerUser= center_user
}).catch(err => {
uni.showToast({
title: err.message,

View File

@@ -149,8 +149,6 @@
open.openFile({
filename : plus.io.convertLocalFileSystemURL(path.tempFilePath),
isShowBackIcon : true
}, res => {
console.log(res)
})
}
})

View File

@@ -437,7 +437,8 @@
// 获取系统版本号
getVersions({
platform: plus.os.name,
version : plus.runtime.version
version : plus.runtime.version,
channel : 'app'
}).then(res => {
uni.hideLoading()
if (res.update) {

View File

@@ -75,8 +75,6 @@
page : this.page.current
}).then(res => {
let { users, count } = res;
console.log(users)
let atList = users.page.current == 1 ? [] : this.users
this.count = count
this.users = atList.concat(users.data)

View File

@@ -159,7 +159,6 @@
},
// 选择物流公司
onPicker(e){
console.log(e)
this.expressIndex = e.detail.value
},
// 扫码

View File

@@ -77,7 +77,6 @@
<view class="btns-item btns-border" v-if="item.status.value == 3" @click="$Router.push({name: 'Pay', params: {orderId: item.business_order_id, type: 'acting', paytype: 'price'}})">缴费</view>
<view class="btns-item btns-border" v-if="item.status.value == 5" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">完善</view>
<view class="btns-item btns-border" v-if="item.status.value == 6" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id }})">查看资料</view>
<!-- type: 'perfect' -->
<view class="btns-item btns-border" v-if="item.status.value == 8" @click="$Router.push({name: 'OrderLog', params: {orderId: item.business_order_id}})">查看记录</view>
<view class="btns-item btns-border" v-if="item.can.confirm && item.is_my" @click="$Router.push({name: 'ConfirmScheme', params: {orderId: item.business_order_id,}})">去确认</view>
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.business_order_id}})">查看</view>

View File

@@ -22,9 +22,6 @@
})
baseBase(this.$Route.query.itemId).then(res => {
let { params } = res;
console.log(params)
this.params = params
uni.hideLoading()
}).catch(err => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB