Compare commits
8 Commits
master
...
5920afb9c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5920afb9c7 | ||
|
|
76bb2b2a43 | ||
| 405f36425d | |||
|
|
663a5a9762 | ||
|
|
bd1805d853 | ||
|
|
947c12d57a | ||
|
|
a6dc0901d9 | ||
|
|
5eedc7a019 |
@@ -13,8 +13,12 @@
|
||||
"type" : "uniCloud"
|
||||
},
|
||||
{
|
||||
"playground" : "standard",
|
||||
"playground" : "custom",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
"playground" : "custom",
|
||||
"type" : "uni-app:app-ios"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ import router from '../router'
|
||||
|
||||
// 基础配置
|
||||
const config = {
|
||||
apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
|
||||
// apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
|
||||
timeout : 60000
|
||||
}
|
||||
|
||||
|
||||
73
apis/interfaces/empower.js
Normal file
73
apis/interfaces/empower.js
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 增收赋能
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 增收赋能列表
|
||||
const lists = () =>{
|
||||
return request({
|
||||
url : "empower/index"
|
||||
})
|
||||
}
|
||||
|
||||
// 增收赋能详情
|
||||
const info = id => {
|
||||
return request({
|
||||
url : "empower/" + id + "/show"
|
||||
})
|
||||
}
|
||||
|
||||
// 下单前置
|
||||
const buyInit = id => {
|
||||
return request({
|
||||
url : "empower/" + id + "/buy/init",
|
||||
method : "POST"
|
||||
})
|
||||
}
|
||||
|
||||
// 下单购买
|
||||
const buy = data => {
|
||||
return request({
|
||||
url : "empower/buy/order",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 订单列表初始化
|
||||
const orderInit = () => {
|
||||
return request({
|
||||
url : "empower/order/init",
|
||||
})
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
const orderList = data => {
|
||||
return request({
|
||||
url : "empower/manager/order",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消订单
|
||||
const orderCancel = order => {
|
||||
return request({
|
||||
url : "empower/order/" + order + "/cancel",
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
lists,
|
||||
info,
|
||||
buyInit,
|
||||
buy,
|
||||
orderInit,
|
||||
orderList,
|
||||
orderCancel
|
||||
}
|
||||
|
||||
@@ -187,6 +187,23 @@ const debtUrl = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 账户注销
|
||||
const offSmsCode = data => {
|
||||
return request({
|
||||
url : 'app/user/log_off_code',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 账户注销确认
|
||||
const offUser = data => {
|
||||
return request({
|
||||
url: 'app/user/log_off',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
relations,
|
||||
code,
|
||||
@@ -209,5 +226,7 @@ export {
|
||||
getSignLogs,
|
||||
getFlows,
|
||||
createCity,
|
||||
debtUrl
|
||||
debtUrl,
|
||||
offSmsCode,
|
||||
offUser
|
||||
}
|
||||
|
||||
@@ -59,6 +59,12 @@ const synthesisAttorney = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 增收赋能单数据统计
|
||||
const empowerStatistics = () =>{
|
||||
return request({
|
||||
url : 'empower/manager/index'
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
index,
|
||||
@@ -66,5 +72,6 @@ export {
|
||||
sign,
|
||||
synthesisCount,
|
||||
synthesisServices,
|
||||
synthesisAttorney
|
||||
synthesisAttorney,
|
||||
empowerStatistics
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
|
||||
</view>
|
||||
<view class="order-content-type">
|
||||
<label>服务金额</label>
|
||||
<label>订单类型</label>
|
||||
<view class="nowrap">{{ synthesis.title || '-' }}</view>
|
||||
</view>
|
||||
<view class="order-content-type">
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "抖火法律",
|
||||
"appid" : "__UNI__C305C03",
|
||||
"description" : "纵有疾风起,人生不言弃",
|
||||
"versionName" : "1.4.9",
|
||||
"versionCode" : 104,
|
||||
"versionName" : "1.6.2",
|
||||
"versionCode" : 1062,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
@@ -37,10 +37,8 @@
|
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>"
|
||||
],
|
||||
"schemes" : "doufire",
|
||||
@@ -48,15 +46,31 @@
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
"dSYMs" : false,
|
||||
"privacyDescription" : {
|
||||
"NSPhotoLibraryUsageDescription" : "从您的相册中选择图片作为用户头像与身份认证照片",
|
||||
"NSPhotoLibraryAddUsageDescription" : "保存您的分享海报与二维码图片",
|
||||
"NSCameraUsageDescription" : "身份认证图片,用户身份活体认证与用户头头像",
|
||||
"NSContactsUsageDescription" : "快捷拨打业务联系电话",
|
||||
"NSLocalNetworkUsageDescription" : "获取网络数据",
|
||||
"NSUserTrackingUsageDescription" : "开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全"
|
||||
}
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {
|
||||
"ad" : {},
|
||||
"ad" : {
|
||||
"gdt" : {},
|
||||
"csj" : {},
|
||||
"ks" : {},
|
||||
"ks-content" : {},
|
||||
"sigmob" : {},
|
||||
"hw" : {},
|
||||
"bd" : {}
|
||||
},
|
||||
"share" : {
|
||||
"weixin" : {
|
||||
"appid" : "wx1bcdeda0dec3f1bd",
|
||||
"UniversalLinks" : ""
|
||||
"UniversalLinks" : "https://app.com.douhuofalv/ulink/"
|
||||
}
|
||||
},
|
||||
"payment" : {}
|
||||
@@ -133,5 +147,6 @@
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "2"
|
||||
"vueVersion" : "2",
|
||||
"fallbackLocale" : "zh-Hans"
|
||||
}
|
||||
|
||||
62
pages.json
62
pages.json
@@ -585,7 +585,7 @@
|
||||
"name": "Entrust",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "案件委托",
|
||||
"navigationBarTitleText": "案件委托咨询",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
@@ -622,7 +622,7 @@
|
||||
"name": "ConsultWork",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "协商调解单",
|
||||
"navigationBarTitleText": "协商调解咨询单",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
@@ -640,7 +640,7 @@
|
||||
"name": "ActionWork",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "诉讼委托单",
|
||||
"navigationBarTitleText": "诉讼委托咨询单",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
@@ -727,7 +727,7 @@
|
||||
"name": "EntrustCivil",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "案件委托-民事诉讼",
|
||||
"navigationBarTitleText": "案件委托-民事诉讼-咨询",
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundColor": "#FFF"
|
||||
}
|
||||
@@ -737,7 +737,7 @@
|
||||
"name": "EntrustWrite",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "案件委托-",
|
||||
"navigationBarTitleText": "案件委托-咨询",
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundColor": "#FFF"
|
||||
}
|
||||
@@ -755,7 +755,7 @@
|
||||
"name": "ExpandWrite",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "拓展服务-",
|
||||
"navigationBarTitleText": "拓展服务-咨询",
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundColor": "#FFF"
|
||||
}
|
||||
@@ -777,6 +777,56 @@
|
||||
"navigationBarBackgroundColor": "#FFF"
|
||||
}
|
||||
|
||||
}, {
|
||||
"path": "pages/empower/info",
|
||||
"name": "EmpowerInfo",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "增收赋能",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/empower/buy",
|
||||
"name": "EmpowerBuy",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "报名",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/empower/order",
|
||||
"name": "EmpowerOrder",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/off/off",
|
||||
"name" : "UserOff",
|
||||
"style" :{
|
||||
"navigationBarTitleText": "申请注销账号",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor" : "#FFFFFF"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/off/agreement",
|
||||
"name" : "UserOffAgreement",
|
||||
"style":{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},{
|
||||
"path" : "pages/off/verify",
|
||||
"name" : "UserOffVerify",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor" : "#FFFFFF"
|
||||
}
|
||||
}],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<input type="safe-password" password v-model="password" placeholder="请输入密码">
|
||||
</view>
|
||||
<view class="btn">
|
||||
<button :disabled="phone.length < 11 || password == '' || agreement.length == 0" @click="onAuth()">登录</button>
|
||||
<button :disabled="phone.length < 11 || password == ''" @click="onAuth()">登录</button>
|
||||
</view>
|
||||
<view class="agreement">
|
||||
<u-checkbox-group
|
||||
@@ -49,6 +49,13 @@
|
||||
},
|
||||
methods: {
|
||||
onAuth(){
|
||||
if(this.agreement.length <= 0){
|
||||
uni.showToast({
|
||||
title: '请阅读并同意服务协议与隐私政策',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
})
|
||||
|
||||
227
pages/empower/buy.vue
Normal file
227
pages/empower/buy.vue
Normal file
@@ -0,0 +1,227 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- 课程信息 -->
|
||||
<view class="info">
|
||||
<image class="info-cover" :src="empower.cover" mode="aspectFill"></image>
|
||||
<view class="info-text">
|
||||
<view class="info-title">{{empower.title}}</view>
|
||||
<view class="info-subtitle">{{empower.sub_title}}</view>
|
||||
<view class="info-price"><text>¥</text>{{empower.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 报名信息 -->
|
||||
<view class="user-title">报名人</view>
|
||||
<view class="user-block" v-for="(item, index) in formData" :key="index">
|
||||
<view class="user-block-flex">报名信息{{index + 1}}<view class="user-block-remove" v-if="formData.length > 1" @click="onRemoveUser(index)">删除</view></view>
|
||||
<view class="user-block-input">
|
||||
<label>真实姓名</label>
|
||||
<input placeholder="输入姓名" v-model="item.name" maxlength="10" />
|
||||
</view>
|
||||
<view class="user-block-input">
|
||||
<label>手机号码</label>
|
||||
<input placeholder="输入手机号码" v-model="item.mobile" maxlength="11" type="number" />
|
||||
</view>
|
||||
<view class="user-block-input" v-if="semesters.length > 0">
|
||||
<label>选择学期</label>
|
||||
<picker mode="selector" :value="item.index" :range="semesters" range-key="title" @change="onChange($event, index, item)">
|
||||
<view class="user-block-picker">{{semesters[item.index].title}}<uni-icons class="user-block-icon" type="bottom" size="20" color="#999"></uni-icons></view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="user-add" @click="onAddUser"><uni-icons type="plus" size="24" color="#446EFE"></uni-icons> 添加报名人</view>
|
||||
<view class="footer">
|
||||
<view class="footer-text">
|
||||
<view class="footer-text-price"><text>¥</text>{{allPrice}}</view>
|
||||
<view class="footer-text-subtitle">共计{{formData.length}}人报名</view>
|
||||
</view>
|
||||
<button class="footer-btn" @click="onSubmit">提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// ($event) => item.index = $event.detail.value
|
||||
import { buyInit, buy } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
semesters: [],
|
||||
formData : [{
|
||||
name : '',
|
||||
mobile : '',
|
||||
index : 0
|
||||
}],
|
||||
empower : {},
|
||||
allPrice : '0.00'
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
buyInit(this.$Route.query.id).then(res => {
|
||||
let { empower, semesters } = res;
|
||||
this.empower = empower
|
||||
this.semesters = semesters
|
||||
this.getTotalPrice()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 计算价格
|
||||
getTotalPrice(){
|
||||
let totalPrice = 0
|
||||
this.formData.map(val => {
|
||||
totalPrice += Number(this.semesters[val.index].price)
|
||||
})
|
||||
this.allPrice = totalPrice.toFixed(2)
|
||||
},
|
||||
// 选择学期
|
||||
onChange(e, index, item){
|
||||
item.index = e.detail.value
|
||||
this.$set(this.formData, index, item)
|
||||
this.getTotalPrice()
|
||||
},
|
||||
// 删除用户数据
|
||||
onRemoveUser(index){
|
||||
this.formData.splice(index,1)
|
||||
this.getTotalPrice()
|
||||
},
|
||||
// 添加新用户
|
||||
onAddUser(){
|
||||
this.formData.push({
|
||||
name : '',
|
||||
mobile : '',
|
||||
index : 0
|
||||
})
|
||||
this.getTotalPrice()
|
||||
},
|
||||
// 提交报名
|
||||
onSubmit(){
|
||||
let submitData = this.formData.map(val => {
|
||||
return {
|
||||
name : val.name,
|
||||
mobile : val.mobile,
|
||||
semester_id : this.semesters[val.index].id
|
||||
}
|
||||
})
|
||||
buy({
|
||||
empower_id: this.$Route.query.id,
|
||||
data: submitData
|
||||
}).then(res => {
|
||||
let { order_type, order_id } = res;
|
||||
this.$Router.replace({
|
||||
name : 'Pay',
|
||||
params : {
|
||||
paytype : 'synthesize',
|
||||
orderId : order_id,
|
||||
orderType : order_type.replace(/\\/g, '-')
|
||||
},
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{ background: $window-color; padding: 30rpx 30rpx 210rpx; }
|
||||
// 报名人信息
|
||||
.user-title{ padding-top: 30rpx; font-size: 30rpx; line-height: 40rpx; color: gray; }
|
||||
.user-block{
|
||||
background: white;
|
||||
margin-top: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx 30rpx;
|
||||
&-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 90rpx;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
@extend .border-solid;
|
||||
}
|
||||
&-remove{ color: $main-color; line-height: 90rpx; }
|
||||
&-input{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 90rpx;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
label{ font-size: 32rpx; width: 200rpx; }
|
||||
picker,
|
||||
input{ width: calc(100% - 200rpx); font-size: 32rpx; }
|
||||
.user-block-picker{
|
||||
padding-right: 50rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
@extend .nowrap;
|
||||
.user-block-icon{ position: absolute; right: 0; }
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-add{ text-align: center; background: white; border-radius: 20rpx; margin-top: 30rpx; display: flex; align-items: center; height: 120rpx; justify-content: center; color: $main-color; font-size: 32rpx; }
|
||||
// 报名课程信息
|
||||
.info{
|
||||
display: flex;
|
||||
background: white;
|
||||
padding: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
&-cover{ width: 180rpx; height: 180rpx; border-radius: 10rpx; }
|
||||
&-text{ width: calc(100% - 210rpx); }
|
||||
&-title{ font-size: 38rpx; font-weight: bold; line-height: 50rpx; height: 50rpx; }
|
||||
&-subtitle{ line-height: 40rpx; height: 80rpx; font-size: 30rpx; }
|
||||
&-price{
|
||||
font-weight: bold;
|
||||
color: $text-price;
|
||||
font-size: 42rpx;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 50rpx;
|
||||
height: 50rpx;
|
||||
text{
|
||||
font-size: 80%;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 底部
|
||||
.footer{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 30rpx 30rpx 50rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
z-index: 99;
|
||||
box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .04);
|
||||
background: white;
|
||||
.footer-text{
|
||||
width: 200rpx;
|
||||
&-price{ font-weight: bold; color: $text-price; font-size: 40rpx; text{ font-size: 80%; margin-right: 5rpx; } }
|
||||
&-subtitle{ font-size: 28rpx; color: gray; }
|
||||
}
|
||||
.footer-btn{
|
||||
background: $main-color;
|
||||
color: white;
|
||||
line-height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
margin-left: 50rpx;
|
||||
&::after{ display: none; }
|
||||
}
|
||||
}
|
||||
</style>
|
||||
145
pages/empower/info.vue
Normal file
145
pages/empower/info.vue
Normal file
@@ -0,0 +1,145 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- 封面 -->
|
||||
<view class="cover">
|
||||
<image class="cover-src" :src="cover" mode="aspectFill"></image>
|
||||
</view>
|
||||
<!-- 课程信息 -->
|
||||
<view class="info">
|
||||
<view class="info-title">{{ title }}</view>
|
||||
<view class="info-subtitle">{{ subtitle }}</view>
|
||||
<view class="info-info">
|
||||
<view class="info-info-item">
|
||||
<label>总学期</label>
|
||||
<view class="info-value">{{count.all || '-'}}期</view>
|
||||
</view>
|
||||
<view class="info-info-item">
|
||||
<label>已结束</label>
|
||||
<view class="info-value">{{count.over || 0}}期</view>
|
||||
</view>
|
||||
<view class="info-info-item" v-if="semester != null">
|
||||
<label>当期时间</label>
|
||||
<view class="info-value">{{semester.time.start || '-'}}</view>
|
||||
</view>
|
||||
<view class="info-info-item" v-if="semester != null">
|
||||
<label>报名价格</label>
|
||||
<view class="info-value price">{{semester.price || '0.00'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 课程介绍 -->
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
<!-- 报名信息 -->
|
||||
<view class="footer">
|
||||
<view :class="['footer-btn', count.ing <= 0 ? 'in' : '']" @click="onBuy">立即购买</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { info } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id : '',
|
||||
cover : '',
|
||||
title : '',
|
||||
subtitle : '',
|
||||
price : '0.00',
|
||||
semester : null,
|
||||
count : {},
|
||||
content : []
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
info(this.$Route.query.id).then(res => {
|
||||
let { cover, title, subtitle, price, semester_current, count, content, id } = res;
|
||||
this.id = id
|
||||
this.cover = cover
|
||||
this.title = title
|
||||
this.subtitle = subtitle
|
||||
this.price = price
|
||||
this.semester = semester_current
|
||||
this.count = count
|
||||
this.content = content.replace(/\<img/gi, '<img style="width:100%;height:auto"');
|
||||
uni.setNavigationBarTitle({
|
||||
title: title
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
onBuy(){
|
||||
if(this.count.ing <= 0){
|
||||
uni.showToast({
|
||||
title: '暂无可报名学期',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$Router.push({
|
||||
name : 'EmpowerBuy',
|
||||
params : { id: this.id }
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{ padding-bottom: 180rpx; }
|
||||
// 封面图
|
||||
.cover{
|
||||
position: relative;
|
||||
padding-top: 70%;
|
||||
background: #f7f8f9;
|
||||
&-src{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||
}
|
||||
// 信息
|
||||
.info{
|
||||
padding: 40rpx;
|
||||
&-title{ font-weight: bold; font-size: 50rpx; margin-bottom: 20rpx; line-height: 65rpx; color: #333; text-align: justify; }
|
||||
&-subtitle{ font-size: 30rpx; line-height: 50rpx; margin-bottom: 40rpx; color: #333; text-align: justify; }
|
||||
&-info{
|
||||
background: $window-color;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
&-item{
|
||||
padding: 30rpx 0;
|
||||
line-height: 40rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@extend .border-solid;
|
||||
label{ font-weight: bold; width: 170rpx; }
|
||||
&:last-child::after{ display: none; }
|
||||
}
|
||||
}
|
||||
&-value{
|
||||
width: calc(100% - 170rpx);
|
||||
text-align: right;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
&.price{ font-weight: bold; color: $text-price; }
|
||||
}
|
||||
}
|
||||
// 底部
|
||||
.footer{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 30rpx 30rpx 50rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
z-index: 99;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .04);
|
||||
.footer-btn{ background: $main-color; color: white; line-height: 100rpx; border-radius: 50rpx; flex: 1; text-align: center; font-weight: bold; font-size: 36rpx; }
|
||||
.footer-btn.in{ opacity: .6; }
|
||||
}
|
||||
</style>
|
||||
431
pages/empower/order.vue
Normal file
431
pages/empower/order.vue
Normal file
@@ -0,0 +1,431 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<view class="screen-flex">
|
||||
<view class="screen-picker">
|
||||
<picker :range="statusArr" range-key="title" :value="statusIndex" @change="onPickerChange($event, 'statusIndex')">
|
||||
<view class="screen-text nowrap">
|
||||
{{ statusArr[statusIndex].title }}
|
||||
<uni-icons class="screen-icon" type="bottom" size="32rpx" color="#999"></uni-icons>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="screen-picker">
|
||||
<picker :range="empowerArr" range-key="title" :value="empowerIndex" @change="onPickerChange($event, 'empowerIndex')">
|
||||
<view class="screen-text nowrap">
|
||||
{{ empowerArr[empowerIndex].title }}
|
||||
<uni-icons class="screen-icon" type="bottom" size="32rpx" color="#999"></uni-icons>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<!-- 订单管理列表 -->
|
||||
<view class="orders" v-if="orders.length > 0">
|
||||
<view class="orders-item" v-for="(item, index) in orders" :key="index">
|
||||
<view class="orders-flex">
|
||||
<view class="no nowrap" @click="copyNo(item.order_no)">
|
||||
<text class="orders-tag" v-if="!item.is_my">客户</text>
|
||||
<text class="orders-tag order-tag-my" v-else>个人</text>
|
||||
{{item.order_no}}
|
||||
</view>
|
||||
<view class="state">{{item.status_text}}</view>
|
||||
</view>
|
||||
<view class="orders-content">
|
||||
<view class="orders-content-item">
|
||||
<label>课程名称</label>
|
||||
<view class="nowrap orders-content-type">{{item.empower.title}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item orders-content-bottom" @click="item.is_show_type = !item.is_show_type">
|
||||
<label>课程数量</label>
|
||||
<view class="nowrap orders-content-type">
|
||||
×{{item.items.count}}
|
||||
</view>
|
||||
<uni-icons class="orders-content-icon" :type="item.is_show_type ? 'top': 'bottom'" size="14" color="gray"></uni-icons>
|
||||
</view>
|
||||
<view class="orders-content-block" v-show="item.is_show_type">
|
||||
<view class="item-flex" v-for="(citem, cindex) in item.items.lists" :key="cindex">
|
||||
<view class="item-flex-title">{{citem.semester.subtitle}}({{citem.name}})</view>
|
||||
<view class="item-flex-value">¥{{citem.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>支付金额</label>
|
||||
<view class="nowrap">¥{{item.price}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>下单时间</label>
|
||||
<view class="nowrap">{{item.created_at}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item" v-if="item.paid_at != ''">
|
||||
<label>支付时间</label>
|
||||
<view class="nowrap">{{item.paid_at}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orders-flex">
|
||||
<view class="btns">
|
||||
<view class="btns-item btns-border" v-if="item.status == 0" @click="onCancel(item.order_id)">取消</view>
|
||||
<view class="btns-item btns-border" v-if="item.status == 0" @click="onPay(item)">支付</view>
|
||||
<view class="btns-item" @click="onShowUsers(item.items)">报名信息</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 分页 -->
|
||||
<u-loadmore v-if="pagesShow" :status="status" />
|
||||
</view>
|
||||
<!-- 订单是空的 -->
|
||||
<view class="order-null" v-else>
|
||||
<u-empty
|
||||
mode="order"
|
||||
icon="http://cdn.uviewui.com/uview/empty/order.png"
|
||||
text="暂无相关订单"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
<!-- 弹出报名人信息 -->
|
||||
<u-popup :show="usersShow" closeable round="30rpx" @close="usersShow = false">
|
||||
<view class="users-content">
|
||||
<view class="users-title">报名信息</view>
|
||||
<view class="users-lists">
|
||||
<view class="users-lists-item" v-for="(item, index) in users" :key="index">
|
||||
<view class="users-item nowrap"><label>报名姓名</label>{{item.name}}</view>
|
||||
<view class="users-item nowrap"><label>报名手机</label>{{item.mobile}}</view>
|
||||
<view class="users-item nowrap"><label>课程名称</label>{{item.semester.subtitle}}</view>
|
||||
<view class="users-item nowrap"><label>签到状态</label><text class="bold">{{item.status_text}}</text></view>
|
||||
<view class="users-item"><label>课程地址</label>{{item.semester.address}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { orderInit, orderList, orderCancel } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
statusArr : [{ title: '全部订单', id: '' }],
|
||||
empowerArr : [{ title: '全部课程', id: '' }],
|
||||
statusIndex : 0,
|
||||
empowerIndex: 0,
|
||||
// 报名信息
|
||||
users : [],
|
||||
usersTotal : 0,
|
||||
usersShow : false,
|
||||
// 订单列表
|
||||
orders : [],
|
||||
// 分页
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
pagesShow : false,
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
created() {
|
||||
orderInit().then(res => {
|
||||
let { status, empower } = res;
|
||||
this.statusArr = status
|
||||
this.empowerArr = [...this.empowerArr, ...empower]
|
||||
this.statusIndex = status.findIndex(val => val.id == this.$Route.query.status)
|
||||
// 获取列表
|
||||
this.getList()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
// 是否处理当前列表状态
|
||||
let isOrderId = this.$store.getters.getOrderId
|
||||
if(isOrderId != null){
|
||||
if(this.getSignState){
|
||||
this.onGetSign(isOrderId)
|
||||
return
|
||||
}
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 报名信息
|
||||
onShowUsers(obj){
|
||||
let { count, lists } = obj
|
||||
this.users = lists
|
||||
this.usersTotal = count
|
||||
this.usersShow = true
|
||||
},
|
||||
// 筛选类型
|
||||
onPickerChange(e, key){
|
||||
let { value } = e.detail
|
||||
this[key] = value
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.orders = []
|
||||
this.getList()
|
||||
},
|
||||
// 获取列表
|
||||
getList(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
if(this.$store.getters.getOrderId != null){
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.$store.commit('setOrderId', null)
|
||||
}
|
||||
orderList({
|
||||
status : this.statusArr[this.statusIndex].id,
|
||||
empower : this.empowerArr[this.empowerIndex].id,
|
||||
page : this.page.current ,
|
||||
}).then(res => {
|
||||
let { data, page } = res;
|
||||
data.map(val => {
|
||||
val.is_show_type = false
|
||||
})
|
||||
let atList = page.current == 1 ? [] : this.orders
|
||||
this.orders = atList.concat(data)
|
||||
this.page = page
|
||||
this.pagesShow = false
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(id){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '取消订单后无法找回,确认取消吗?',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
orderCancel(id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.removeListVal(id)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 变更当前列表状态
|
||||
removeListVal(id){
|
||||
let ListArr = this.orders
|
||||
let ListIndex = ListArr.findIndex(val => val.business_order_id == id)
|
||||
if(ListIndex >= 0){
|
||||
this.orders.splice(ListIndex, 1)
|
||||
}
|
||||
},
|
||||
// 订单支付
|
||||
onPay(obj){
|
||||
let { order_id, order_type } = obj
|
||||
this.$store.commit('setOrderId', order_id)
|
||||
this.$Router.push({
|
||||
name : 'Pay',
|
||||
params : {
|
||||
paytype : 'synthesize',
|
||||
orderId : order_id,
|
||||
orderType : order_type.replace(/\\/g, '-')
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.pagesShow = true;
|
||||
if(this.page.has_more){
|
||||
this.status = 'loading';
|
||||
this.page.current++
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{ background: #f7f8f9; min-height: 100vh; }
|
||||
// 订单弹出层
|
||||
.users-content{
|
||||
.users-title{
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
color: #333;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.users-lists{
|
||||
padding: 0 30rpx 50rpx;
|
||||
max-height: 70vh;
|
||||
overflow-y: scroll;
|
||||
.users-lists-item{
|
||||
background: #f7f8f9;
|
||||
padding: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
.users-item{
|
||||
position: relative;
|
||||
line-height: 45rpx;
|
||||
min-height: 45rpx;
|
||||
padding-left: 160rpx;
|
||||
margin: 5rpx 0;
|
||||
text-align: right;
|
||||
label{ position: absolute; left: 0; top: 0; color: gray; }
|
||||
.bold{ font-weight: bold; color: $text-price; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 订单筛选
|
||||
.screen-flex{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.screen-picker{ width: 50%; text-align: center; }
|
||||
.screen-text{ line-height: 90rpx; height: 90rpx; display: inline-block; font-size: 30rpx; }
|
||||
.screen-icon{ margin-left: 10rpx; }
|
||||
}
|
||||
// 订单为空
|
||||
.order-null{
|
||||
height: 80vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
// 订单列表
|
||||
.orders{
|
||||
padding: 30rpx 0 10rpx;
|
||||
.orders-item{
|
||||
margin: 0 30rpx 20rpx;
|
||||
background-color: white;
|
||||
border-radius: $radius;
|
||||
}
|
||||
.orders-content{
|
||||
padding: 20rpx 30rpx;
|
||||
&-item{
|
||||
line-height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 30rpx;
|
||||
color: #111111;
|
||||
label{
|
||||
color: #999999;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-block{
|
||||
background: rgba(68, 110, 254, .03);
|
||||
padding: 20rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 10rpx;
|
||||
margin: 10rpx 0;
|
||||
.item-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.orders-flex{
|
||||
border-bottom: solid 1rpx #F6F6F6;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx $padding;
|
||||
&:last-child{
|
||||
border-top: solid 1rpx #F6F6F6;
|
||||
border-bottom: none;
|
||||
}
|
||||
.orders-tag{
|
||||
display: inline-block;
|
||||
background: $main-color;
|
||||
font-size: 26rpx;
|
||||
color: white;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 10rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
margin-right: 10rpx;
|
||||
&.order-tag-my{
|
||||
background: $text-price;
|
||||
}
|
||||
}
|
||||
.no{
|
||||
font-size: 30rpx;
|
||||
color: #111;
|
||||
line-height: 60rpx;
|
||||
width: calc(100% - 150rpx);
|
||||
}
|
||||
.state{
|
||||
color: $main-color;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
line-height: 60rpx;
|
||||
width: 150rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.btns{
|
||||
text-align: right;
|
||||
width: 100%;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.btns-border{
|
||||
line-height: 68rpx;
|
||||
box-sizing: border-box;
|
||||
border:solid 1rpx $main-color;
|
||||
background: white;
|
||||
color: $main-color;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -40,7 +40,7 @@
|
||||
<!-- 协商调解类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">协商调解类</view>
|
||||
<view class="title">协商调解咨询类</view>
|
||||
</view>
|
||||
<scroll-view class="the-tabs" scroll-x="true" >
|
||||
<block v-for="(item, index) in theTabs" :key="index">
|
||||
@@ -92,7 +92,7 @@
|
||||
<!-- 诉讼委托类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">诉讼委托类</view>
|
||||
<view class="title">诉讼委托咨询类</view>
|
||||
</view>
|
||||
<view class="lawsuit">
|
||||
<block v-for="(item, index) in appMenus.cases" :key="index">
|
||||
@@ -109,7 +109,7 @@
|
||||
<!-- 增收赋能类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">增收赋能类</view>
|
||||
<view class="title">增收赋能咨询类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
@@ -117,37 +117,11 @@
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId'
|
||||
@click="onToast()"
|
||||
>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_07.png') + ');'"></view>
|
||||
<view class="title nowrap">巅峰销售思维</view>
|
||||
<view class="price nowrap"><text>¥</text>2980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_08.png') + ');'"></view>
|
||||
<view class="title nowrap">团队系统思维</view>
|
||||
<view class="price nowrap"><text>¥</text>3980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_09.png') + ');'"></view>
|
||||
<view class="title nowrap">领袖演说思维</view>
|
||||
<view class="price nowrap"><text>¥</text>4980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_10.png') + ');'"></view>
|
||||
<view class="title nowrap">卓越领袖能量思维</view>
|
||||
<view class="price nowrap"><text>¥</text>5980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_11.png') + ');'"></view>
|
||||
<view class="title nowrap">激发内在无限潜能</view>
|
||||
<view class="price nowrap"><text>¥</text>9980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover" :style="'background-image: url(' + require('@/static/synthesize/img_12.png') + ');'"></view>
|
||||
<view class="title nowrap">其他赋能培训会议</view>
|
||||
<view class="price nowrap">价格另议</view>
|
||||
<view class="the-flex-item" v-for="(item, index) in empowerArr" :key="index" @click="onEmpower(item.id)">
|
||||
<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}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
@@ -166,7 +140,7 @@
|
||||
</view>
|
||||
</u-count-down>
|
||||
</view>
|
||||
<image class="ad-img" :src="layAdImg" mode="widthFix"></image>
|
||||
<image class="ad-img" :src="layAdImg" mode="heightFix"></image>
|
||||
<view class="ad-btn">
|
||||
<u-icon
|
||||
class="ad-btn-icon"
|
||||
@@ -184,6 +158,7 @@
|
||||
<script>
|
||||
import { region } from '@/apis/interfaces/address.js'
|
||||
import { categories, jf, index } from '@/apis/interfaces/index.js'
|
||||
import { lists } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -208,20 +183,36 @@
|
||||
appMenus : {
|
||||
cases : [],
|
||||
service : []
|
||||
}
|
||||
},
|
||||
// 增收赋能列表
|
||||
empowerArr : []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getCategory()
|
||||
this.getJf()
|
||||
this.getIndex()
|
||||
// 增收赋能
|
||||
this.getEmpower()
|
||||
},
|
||||
methods: {
|
||||
onToast(){
|
||||
// 查看增收赋能详情
|
||||
onEmpower(id){
|
||||
this.$Router.push({
|
||||
name : 'EmpowerInfo',
|
||||
params : { id }
|
||||
})
|
||||
},
|
||||
// 增收赋能接口
|
||||
getEmpower(){
|
||||
lists().then(res => {
|
||||
this.empowerArr = res;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: '即将开放,敬请期待',
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取金法列表
|
||||
getJf(){
|
||||
@@ -327,8 +318,8 @@
|
||||
}
|
||||
// ad弹窗广告
|
||||
.ad-lay{
|
||||
width: 70vw;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
.ad-down{
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
@@ -346,7 +337,7 @@
|
||||
}
|
||||
}
|
||||
.ad-img{
|
||||
width: 70vw;
|
||||
height: 75vh;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.ad-btn{
|
||||
@@ -507,8 +498,6 @@
|
||||
white-space: nowrap;
|
||||
width: calc(100% - 60rpx);
|
||||
&-item{
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 25%;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
@@ -516,18 +505,22 @@
|
||||
color: #454545;
|
||||
transition: all .4s;
|
||||
display: inline-block;
|
||||
background-color: transparent;
|
||||
&.active{
|
||||
color: white;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
&-acitve-block{
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
height: 60rpx;
|
||||
background: linear-gradient( to right, #d51959, #ec7247);
|
||||
background-image: linear-gradient( to right, #d51959, #ec7247);
|
||||
border-radius: 35rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
transition: all .4s;
|
||||
}
|
||||
}
|
||||
|
||||
22
pages/off/agreement.vue
Normal file
22
pages/off/agreement.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
65
pages/off/off.vue
Normal file
65
pages/off/off.vue
Normal file
@@ -0,0 +1,65 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="title">为保证你的账号安全,在你提交的注销申请生效前,需同时满足以下条件:</view>
|
||||
<view class="title">1. 账号处干安全状态</view>
|
||||
<view class="text">账号为你本人拥有,处于正常使用状态,无被盗、违规、封禁风险。</view>
|
||||
<view class="title">2. 账号财产已结清,交易已完成</view>
|
||||
<view class="text">账号下所有关联业务的资产(业务奖金,火力值)和权益(包括会员身份)均已结清、清空或自愿放弃,所有交易已完成或已自愿放弃。</view>
|
||||
<view class="title">3. 账号无任何纠纷,包括但不限于投诉或举报,服务均已完成或已自愿放弃</view>
|
||||
<view class="agreement">
|
||||
<u-checkbox-group
|
||||
v-model="agreement"
|
||||
placement="row"
|
||||
>
|
||||
<u-checkbox shape="circle" name="agreement" activeColor="#446EFE"></u-checkbox>
|
||||
我已阅读并同意
|
||||
<my-link class="agreement-nav":to="{name: 'RichText', params: { id: 5 }}">《抖火注销须知》</my-link>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view class="tool">
|
||||
<button class="btn" :disabled="agreement.length <= 0" @click="onNext()">下一步</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
agreement: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onNext(){
|
||||
this.$Router.push({
|
||||
name: 'UserOffVerify'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{
|
||||
padding: 20rpx 50rpx 50rpx;
|
||||
background: white;
|
||||
.title{ font-weight: bold; font-size: 36rpx;line-height: 50rpx; margin-top: 30rpx; text-align: justify; }
|
||||
.text{ font-size: 32rpx; color: #555; margin-bottom: 30rpx; line-height: 50rpx; text-align: justify; }
|
||||
.agreement{ font-size: 30rpx; margin-top: 100rpx; color: gray; }
|
||||
.agreement-nav{ color: $main-color; }
|
||||
.tool{
|
||||
padding-top: 50rpx;
|
||||
button{
|
||||
background: $main-color;
|
||||
color: white;
|
||||
eight: 100rpx;
|
||||
line-height: 100rpx;
|
||||
border-radius: 20rpx;
|
||||
color: white;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
&[disabled]{ opacity: .5; }
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
292
pages/off/verify.vue
Normal file
292
pages/off/verify.vue
Normal file
@@ -0,0 +1,292 @@
|
||||
<template>
|
||||
<view class="registered-content">
|
||||
<view class="title">注销账号</view>
|
||||
<view class="submit-title">请填写您的账号信息</view>
|
||||
<view class="from">
|
||||
<view class="from-inpus from-input-phoen">
|
||||
<label>+86</label>
|
||||
<input type="number" v-model="username" maxlength="11" placeholder="输入手机号码">
|
||||
</view>
|
||||
<view class="from-inpus from-password">
|
||||
<label>登录密码</label>
|
||||
<input type="safe-password" password v-model="password" placeholder="请输入登录密码">
|
||||
</view>
|
||||
<view class="from-inpus from-input-code">
|
||||
<label>验证码</label>
|
||||
<input type="number" v-model="code" maxlength="4" placeholder="短信验证码">
|
||||
<button :disabled="username.length < 11 || getSms" @click="getCode">{{sendCode}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="button">
|
||||
<button @click="onRegistered()">注销账号</button>
|
||||
</view>
|
||||
<!-- 显示图形验证码 -->
|
||||
<u-popup :show="captchaShow" mode="center" :round="10" closeable @close="captchaShow = false, captcha = ''">
|
||||
<view class="captcha-lay">
|
||||
<view class="captcha-title">图形验证</view>
|
||||
<view class="captcha-img">
|
||||
<image :src="captchaImg" mode="widthFix" @click="getCode()"></image>
|
||||
</view>
|
||||
<view class="captcha-input">
|
||||
<input type="text" placeholder="请输入验证码" v-model="captcha" maxlength="10">
|
||||
</view>
|
||||
<button class="captcha-btn" @click="getPhoneCode">验证</button>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
var outTime;
|
||||
import { offSmsCode, offUser } from '@/apis/interfaces/user.js'
|
||||
import { captcha } from '@/apis/interfaces/auth.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
password : '',
|
||||
username : '',
|
||||
code : '',
|
||||
getSms : false,
|
||||
sendCode : '获取验证码',
|
||||
captcha : '',
|
||||
captchaImg : '',
|
||||
captchaKey : '',
|
||||
captchaShow : false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 提交修改信息
|
||||
onRegistered(){
|
||||
uni.showLoading({
|
||||
title: '提交中...',
|
||||
mask : true
|
||||
})
|
||||
offUser({
|
||||
username: this.username,
|
||||
password: this.password,
|
||||
code : this.code,
|
||||
}).then(res => {
|
||||
// 重置验证码与计时器
|
||||
this.getSms = false;
|
||||
this.sendCode = '获取验证码';
|
||||
clearInterval(outTime);
|
||||
uni.hideLoading()
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "账号注销申请已提交",
|
||||
showCancel : false,
|
||||
confirmColor: "#446EFE",
|
||||
success : modalRes => {
|
||||
this.$store.commit('setToken', '');
|
||||
this.$Router.replaceAll({
|
||||
name: 'Auth'
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 弹出图形验证码
|
||||
getCode(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
captcha().then(res => {
|
||||
let { img, key } = res
|
||||
this.captchaImg = img
|
||||
this.captchaKey = key
|
||||
this.captchaShow = true
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取验证码
|
||||
getPhoneCode() {
|
||||
uni.showLoading({
|
||||
title : '加载中...',
|
||||
mask :true
|
||||
})
|
||||
let smsTime = 60;
|
||||
offSmsCode({
|
||||
mobileNo : this.username,
|
||||
captcha : this.captcha,
|
||||
captcha_key : this.captchaKey
|
||||
}).then(res => {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: "none",
|
||||
});
|
||||
this.captchaShow = false;
|
||||
this.captcha = '';
|
||||
this.getSms = true;
|
||||
this.sendCode = smsTime + 's后重新获取';
|
||||
outTime = setInterval(() => {
|
||||
if (smsTime <= 1) {
|
||||
this.getSms = false;
|
||||
this.sendCode = '重新获取';
|
||||
clearInterval(outTime);
|
||||
return
|
||||
}
|
||||
this.sendCode = smsTime + 's后重新获取';
|
||||
smsTime -= 1;
|
||||
}, 1000);
|
||||
}).catch((err) => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 图形验证码
|
||||
.captcha-lay{
|
||||
padding: 30rpx;
|
||||
width: 70vw;
|
||||
box-sizing: border-box;
|
||||
.captcha-title{
|
||||
text-align: center;
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
.captcha-img{
|
||||
text-align: center;
|
||||
padding-bottom: 30rpx;
|
||||
image{
|
||||
width: 300rpx;
|
||||
}
|
||||
}
|
||||
.captcha-input{
|
||||
input{
|
||||
height: 100rpx;
|
||||
border:solid 1rpx #ddd;
|
||||
text-align: center;
|
||||
line-height: 98rpx;
|
||||
font-size: 34rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: $radius-lg;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
.captcha-btn{
|
||||
margin-top: 30rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-weight: normal;
|
||||
font-size: 34rpx;
|
||||
border-radius: $radius-lg;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 注册
|
||||
.registered-content{
|
||||
padding: 50rpx;
|
||||
.title{
|
||||
padding-top: 3vh;
|
||||
padding-bottom: 10rpx;
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
.submit-title{
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
// 注册单
|
||||
.from{
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
.from-inpus{
|
||||
@extend .border-solid;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
label{
|
||||
width: 170rpx;
|
||||
line-height: 100rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
input{
|
||||
width: calc(100% - 200rpx);
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
.from-password{
|
||||
input{
|
||||
width: calc(100% - 200rpx);
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
.from-input-phoen{
|
||||
label{
|
||||
line-height: 60rpx;
|
||||
height: 60rpx;
|
||||
border-right: solid 1rpx $border-color;
|
||||
}
|
||||
}
|
||||
.from-input-code{
|
||||
button{
|
||||
font-size: 32rpx;
|
||||
width: 230rpx;
|
||||
padding: 0;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: $main-color;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
&[disabled]{
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
input{
|
||||
width: calc(100% - 460rpx);
|
||||
}
|
||||
}
|
||||
// 按钮
|
||||
.button{
|
||||
padding-top: 50rpx;
|
||||
button{
|
||||
background: $main-color;
|
||||
border-radius: $radius-lg;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
color: white;
|
||||
font-size: 38rpx;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
&[disabled]{
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="total-flex">
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_00.png"></image>
|
||||
<view class="title">诉讼委托单</view>
|
||||
<view class="title">诉讼委托咨询单</view>
|
||||
<view class="number">{{orderAll.all}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item">
|
||||
@@ -27,7 +27,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="block">
|
||||
<view class="block-title">委托订单管理</view>
|
||||
<view class="block-title">委托咨询单管理</view>
|
||||
<view class="tool-flex">
|
||||
<view class="tool-flex-item" @click="onNav('SynthesizeOrder', { status: 0, type: 'entrust' })">
|
||||
<image class="icon" src="@/static/icons/work_icon_06.png"></image>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="block">
|
||||
<view class="block-title">协商调解订单管理</view>
|
||||
<view class="block-title">协商调解咨询订单管理</view>
|
||||
<view class="tool-flex">
|
||||
<view class="tool-flex-item" @click="onNav('Orders', { 'type': 0 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_06.png"></image>
|
||||
|
||||
@@ -1,33 +1,373 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="null-pages">
|
||||
<u-empty
|
||||
mode="order"
|
||||
icon="http://cdn.uviewui.com/uview/empty/order.png"
|
||||
text="暂无相关订单"
|
||||
>
|
||||
</u-empty>
|
||||
<view class="block">
|
||||
<view class="block-title">统计数据</view>
|
||||
<view class="total-flex">
|
||||
<view class="total-item" @click="onNav('EmpowerOrder', { status: 0 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_00.png"></image>
|
||||
<view class="title">待支付</view>
|
||||
<view class="number">{{orderAll.init}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item" @click="onNav('EmpowerOrder', { status: 1 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_01.png"></image>
|
||||
<view class="title">已支付</view>
|
||||
<view class="number">{{orderAll.paid}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item"@click="onNav('EmpowerOrder', { status: 2 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_02.png"></image>
|
||||
<view class="title">已完成</view>
|
||||
<view class="number">{{orderAll.over}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_05.png"></image>
|
||||
<view class="title">结算金额</view>
|
||||
<view class="number">{{orderAll.amount}}<text>万</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="block">
|
||||
<view class="block-title">订单管理</view>
|
||||
<view class="tool-flex">
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: '' })">
|
||||
<image class="icon" src="@/static/icons/work_icon_06.png"></image>
|
||||
<view class="number" v-if="orderEntrust.all > 0">{{orderEntrust.all}}</view>
|
||||
<view class="text">全部订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 0 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_17.png"></image>
|
||||
<view class="number" v-if="orderEntrust.init > 0">{{orderEntrust.init}}</view>
|
||||
<view class="text">待支付</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 1 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_10.png"></image>
|
||||
<view class="number" v-if="orderEntrust.paid > 0">{{orderEntrust.paid}}</view>
|
||||
<view class="text">已支付</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 2 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_15.png"></image>
|
||||
<view class="number" v-if="orderEntrust.over > 0">{{orderEntrust.over}}</view>
|
||||
<view class="text">已完成</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { empowerStatistics } from '@/apis/interfaces/work.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
// 综法订单管理
|
||||
orderAll : '',
|
||||
orderEntrust : '',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
||||
this.getIndex()
|
||||
},
|
||||
methods: {
|
||||
// 工作台信息
|
||||
getIndex(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
// 增收赋能订单统计
|
||||
empowerStatistics().then(res => {
|
||||
let { order, data } = res;
|
||||
this.orderAll = data
|
||||
this.orderEntrust = order
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 导航
|
||||
onNav(name, obj){
|
||||
let params = obj || {}
|
||||
this.$Router.push({name, params})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
// 内容为空
|
||||
.null-pages{ height: 70vh; display: flex; align-items: center; justify-content: center; }
|
||||
.content{
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
// 登录提示
|
||||
.auth-null{
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background: white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.auth-null-btn{
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
padding: 0;
|
||||
width: 70vw;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-size: 32rpx;
|
||||
margin-top: 100rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
// 弹出特权
|
||||
.privilege-lay{
|
||||
width: 70vw;
|
||||
.privilege-lay-img{
|
||||
width: 70vw;
|
||||
vertical-align: top;
|
||||
}
|
||||
.privilege-lay-content{
|
||||
background: white;
|
||||
border-radius: 0 0 20rpx 20rpx;
|
||||
width: 70vw;
|
||||
padding: 80rpx 30rpx 50rpx;
|
||||
box-sizing: border-box;
|
||||
margin-top: -50rpx;
|
||||
line-height: 50rpx;
|
||||
color: #111111;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.privilege-lay-remove{
|
||||
padding-top: 30rpx;
|
||||
text-align: center;
|
||||
.privilege-lay-icon{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
// header
|
||||
.work-bar{
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
&-user{
|
||||
position: relative;
|
||||
line-height: 70rpx;
|
||||
height: 70rpx;
|
||||
width: calc(100% - 200rpx);
|
||||
padding-left: 90rpx;
|
||||
box-sizing: border-box;
|
||||
.cover{
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.nickname{
|
||||
font-weight: bold;
|
||||
font-size: 34rpx;
|
||||
.card{
|
||||
color: $main-color;
|
||||
font-size: 24rpx;
|
||||
display: inline-block;
|
||||
height: 40rpx;
|
||||
line-height: 38rpx;
|
||||
border-radius: 24rpx;
|
||||
padding: 0 15rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-bottom: 2rpx;
|
||||
vertical-align: middle;
|
||||
border:solid 1rpx $main-color;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-add{
|
||||
width: 200rpx;
|
||||
font-size: 30rpx;
|
||||
text-align: right;
|
||||
line-height: 70rpx;
|
||||
.icon{
|
||||
margin-right: 5rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 订单管理
|
||||
.tool-flex{
|
||||
padding: 0 10rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.tool-flex-item{
|
||||
width: 25%;
|
||||
text-align: center;
|
||||
margin-bottom: 30rpx;
|
||||
position: relative;
|
||||
.icon{
|
||||
width: 78rpx;
|
||||
height: 78rpx;
|
||||
background: #ddd;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.number{
|
||||
position: absolute;
|
||||
right: 20%;
|
||||
background: #fe4444;
|
||||
top: -10rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
min-width: 40rpx;
|
||||
font-size: 24rpx;
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.text{
|
||||
line-height: 40rpx;
|
||||
font-size: 26rpx;
|
||||
color: #111;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 数据统计单
|
||||
.total-flex{
|
||||
padding: 0 20rpx 20rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
.total-item{
|
||||
margin: 0 10rpx 20rpx;
|
||||
background: #f8f8f8;
|
||||
width: calc(50% - 20rpx);
|
||||
padding: 20rpx 20rpx 20rpx 120rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: $radius;
|
||||
position: relative;
|
||||
min-height: 140rpx;
|
||||
.icon{
|
||||
position: absolute;
|
||||
left: 20rpx;
|
||||
top: 50%;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
margin-top: -35rpx;
|
||||
}
|
||||
.title{
|
||||
font-size: 28rpx;
|
||||
color: #111;
|
||||
line-height: 40rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
.number{
|
||||
padding-top: 5rpx;
|
||||
font-weight: bold;
|
||||
font-size: 34rpx;
|
||||
color: #111;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 40rpx;
|
||||
@extend .nowrap;
|
||||
text{
|
||||
font-size: 80%;
|
||||
font-weight: normal;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 通用板块
|
||||
.block{
|
||||
background: white;
|
||||
margin: 0 30rpx 20rpx;
|
||||
border-radius: $radius;
|
||||
.block-title{
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-weight: bold;
|
||||
color: '#111';
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
// 开通业务员
|
||||
.open-interest{
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
.title{
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.open-interest-flex{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 30rpx;
|
||||
justify-content: space-between;
|
||||
.open-interest-item{
|
||||
text-align: center;
|
||||
.open-interest-icon{
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
vertical-align: top;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
.open-interest-text{
|
||||
font-size: 28rpx;
|
||||
color: #111111;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 开通步骤
|
||||
.open-interest-block{
|
||||
padding: 30rpx 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.open-interest-icon{
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
}
|
||||
.open-interest-text{
|
||||
width: calc( 100% - 258rpx);
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
.open-interest-title{
|
||||
font-weight: bold;
|
||||
color: #111111;
|
||||
line-height: 40rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.open-interest-submit{
|
||||
color: #666666;
|
||||
font-size: 26rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
.open-interest-btn[size="mini"]{
|
||||
width: 170rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
padding: 0;
|
||||
border-radius: 35rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-size: 30rpx;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
&[disabled]{
|
||||
background: #EEEEEE;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
case 'entrust':
|
||||
isScroll = true
|
||||
funName = entrustOrder
|
||||
tabName = '委托订单'
|
||||
tabName = '委托咨询订单'
|
||||
tabsArr = [
|
||||
{ name: '待支付', type: 0 },
|
||||
{ name: '待审核', type: 1 },
|
||||
|
||||
@@ -38,6 +38,14 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="set-nav-block">
|
||||
<view class="set-nav" @click="onNav('UserOff')">
|
||||
<label>账户注销</label>
|
||||
<view class="value nowrap">
|
||||
<uni-icons type="right" color="gray"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="set-nav-block">
|
||||
<view class="set-nav" @click="onLogout">
|
||||
<label>退出登录</label>
|
||||
@@ -91,7 +99,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.content{
|
||||
padding-top: 30rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
<u-icon size="12" color="#999" name="arrow-down-fill"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 业务类型 -->
|
||||
<!-- 业务咨询类型 -->
|
||||
<view class="block-item">
|
||||
<label class="block-item-label"><text>*</text>业务类型</label>
|
||||
<label class="block-item-label"><text>*</text>业务咨询类型</label>
|
||||
<picker :range="item.fromType" range-key="title" :value="item.fromIndex" @change="businessChange($event, item, index)">
|
||||
<view class="institution-picker">
|
||||
<view class="institution-picker-text nowrap">{{item.fromType[item.fromIndex].title}}</view>
|
||||
@@ -327,7 +327,7 @@
|
||||
}).then(res => {
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '订单已创建,请尽快提醒用户完善用户资料',
|
||||
content : '咨询订单已创建,请尽快提醒用户完善用户资料',
|
||||
showCancel : false,
|
||||
success : () => {
|
||||
this.$Router.back()
|
||||
|
||||
@@ -223,15 +223,13 @@
|
||||
<view v-else class="auth-null">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||
icon="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/09/04/3482a50a7b37798129c8754200c10466.png"
|
||||
text="暂未登录"
|
||||
>
|
||||
</u-empty>
|
||||
/>
|
||||
<button class="auth-null-btn" size="mini" @click="onNav('Auth')">登录</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { index, rights, sign, synthesisCount } from '@/apis/interfaces/work.js'
|
||||
export default {
|
||||
@@ -381,7 +379,7 @@
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
padding: 0;
|
||||
width: 70vw;
|
||||
width: 80vw;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-size: 32rpx;
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<view class="flex-item" @click="onNav('ConsultWork')">
|
||||
<image class="flex-icon" src="/static/icons/icon_00.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">协商调解类</view>
|
||||
<view class="flex-name">协商调解咨询类</view>
|
||||
<view class="flex-tips">信用卡、贷款业务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
@@ -85,16 +85,15 @@
|
||||
<view class="flex-item" @click="onNav('ActionWork')">
|
||||
<image class="flex-icon" src="/static/icons/icon_02.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">诉讼委托类</view>
|
||||
<view class="flex-name">诉讼委托咨询类</view>
|
||||
<view class="flex-tips">案件委托、拓展服务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onToastTips()">
|
||||
<!-- @click="onNav('EnableWork')" -->
|
||||
<view class="flex-item" @click="onNav('EnableWork')">
|
||||
<image class="flex-icon" src="/static/icons/icon_03.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">增收赋能类</view>
|
||||
<view class="flex-name">增收赋能咨询类</view>
|
||||
<view class="flex-tips">销售、领袖、演说等</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
@@ -106,10 +105,9 @@
|
||||
<view v-else class="auth-null">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||
icon="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/c95ebcf8641fcbd413f990d661f638cb.gif"
|
||||
text="暂未登录"
|
||||
>
|
||||
</u-empty>
|
||||
/>
|
||||
<button class="auth-null-btn" size="mini" @click="onNav('Auth')">登录</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -242,14 +240,7 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onToastTips(){
|
||||
uni.showToast({
|
||||
title: '即将开放,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<script>
|
||||
import { lists, orderSign, getOrderSignStatus, orderCancel } from '@/apis/interfaces/order.js'
|
||||
import { levels, transfer } from '@/apis/interfaces/transfers.js'
|
||||
import modal from 'uview-ui/libs/config/props/modal';
|
||||
import modal from 'uview-ui/libs/config/props/modal';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user