Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9619d8f84d | ||
|
|
cfb5ff334d | ||
|
|
be73fea618 | ||
|
|
cf6df19182 | ||
| 84809068c9 | |||
|
|
67a2f91b36 | ||
|
|
ba89cc726f |
@@ -15,14 +15,6 @@
|
||||
{
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
"bundleId" : "io.douhuofalv.com",
|
||||
"certificateFile" : "/Users/tmoct5/Documents/App证书/抖火/抖火法律苹果证书/DevDouhuoApp.p12",
|
||||
"certificateProfileFile" : "/Users/tmoct5/Documents/App证书/抖火/抖火法律苹果证书/DevDouhuoApp.mobileprovision",
|
||||
"playground" : "custom",
|
||||
"runSignStatus" : 0,
|
||||
"type" : "uni-app:app-ios"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
1
App.vue
@@ -2,7 +2,6 @@
|
||||
import { getVersions } from './apis/interfaces/versions'
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
return
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
getVersions({
|
||||
|
||||
@@ -11,7 +11,7 @@ import router from '../router'
|
||||
// 基础配置
|
||||
const config = {
|
||||
apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||
// apiUrl : 'https://douhuo.demos.uzchain.tech/api/', //测试环境
|
||||
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
|
||||
timeout : 60000
|
||||
}
|
||||
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
|
||||
/**
|
||||
* Web -zdx
|
||||
* moduleName: 线下业务订单类型
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 获取业务类型
|
||||
const customTypes = () =>{
|
||||
return request({
|
||||
url: "custom_type/index",
|
||||
})
|
||||
}
|
||||
|
||||
// 提交办理线下订单
|
||||
const customTypeStore = (customType,data) => {
|
||||
return request({
|
||||
url : `custom_type/${customType}/store`,
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 取消线下订单
|
||||
const customTypeCancel = (orderId, data) => {
|
||||
return request({
|
||||
url : `custom_type/order/${orderId}/cancel`,
|
||||
method : 'DELETE',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 线下订单列表
|
||||
const customTypelists = data => {
|
||||
return request({
|
||||
url : 'custom_type/order/lists',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
customTypes,
|
||||
customTypeStore,
|
||||
customTypeCancel,
|
||||
customTypelists
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
|
||||
/**
|
||||
* 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
|
||||
}
|
||||
|
||||
@@ -54,140 +54,6 @@ const fwbDetail = (service) =>{
|
||||
})
|
||||
}
|
||||
|
||||
// 账户管理类
|
||||
const accountManagement = () => {
|
||||
return request({
|
||||
url: "account_management/index"
|
||||
})
|
||||
}
|
||||
|
||||
// 账户管理类 - 办理
|
||||
const accountFrom = (data, id) => {
|
||||
return request({
|
||||
url : "account_management/" + id + "/store",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 账户管理类 - 订单
|
||||
const accountOrder = data => {
|
||||
console.log(data)
|
||||
return request({
|
||||
url : "account_management/order/lists",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 账户管理类 - 取消订单
|
||||
const accountCancel = id => {
|
||||
return request({
|
||||
url : "account_management/order/" + id + "/cancel",
|
||||
method : "DELETE"
|
||||
})
|
||||
}
|
||||
|
||||
// 委托管理类
|
||||
const delegation = () => {
|
||||
return request({
|
||||
url: "delegation/index"
|
||||
})
|
||||
}
|
||||
|
||||
// 委托管理类 - 办理
|
||||
const delegationFrom = (data, id) => {
|
||||
return request({
|
||||
url : "delegation/" + id + "/store",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 委托管理类 - 订单
|
||||
const delegationOrder = data => {
|
||||
return request({
|
||||
url : "delegation/order/lists",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 委托管理类 - 取消订单
|
||||
const delegationCancel = id => {
|
||||
return request({
|
||||
url : "delegation/order/" + id + "/cancel",
|
||||
method : "DELETE"
|
||||
})
|
||||
}
|
||||
|
||||
// **
|
||||
// 最新五大板块
|
||||
// **
|
||||
// 业务列表
|
||||
const bigfive = data => {
|
||||
return request({
|
||||
url : "bigfive/index",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 业务详情
|
||||
const bigfiveInfo = (bigFive) => {
|
||||
return request({
|
||||
url : "bigfive/" + bigFive + "/info"
|
||||
})
|
||||
}
|
||||
|
||||
// 办理初始接口
|
||||
const bigfiveInit = (bigFive) => {
|
||||
return request({
|
||||
url : "bigfive/order/" + bigFive + "/init"
|
||||
})
|
||||
}
|
||||
|
||||
// 标的额比例计算
|
||||
const settleAmount = (data, bigFive) => {
|
||||
return request({
|
||||
url : "bigfive/order/" + bigFive + "/settle_amount",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 三级分类服务费类型
|
||||
const amountType = (bigFive) => {
|
||||
return request({
|
||||
url : "bigfive/order/" + bigFive + "/amount_type",
|
||||
method : "POST"
|
||||
})
|
||||
}
|
||||
|
||||
// 办理业务
|
||||
const bigfiveStore = data => {
|
||||
return request({
|
||||
url : "bigfive/order/store",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
const orderLists = data => {
|
||||
return request({
|
||||
url : "bigfive/order/lists",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 订单取消
|
||||
const orderCancel = (order) => {
|
||||
return request({
|
||||
url : "bigfive/order/" + order + "/cancel",
|
||||
method : "DELETE"
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
categories,
|
||||
jf,
|
||||
@@ -196,22 +62,5 @@ export {
|
||||
index,
|
||||
recharge,
|
||||
zyPay,
|
||||
accountManagement,
|
||||
accountFrom,
|
||||
accountOrder,
|
||||
accountCancel,
|
||||
delegation,
|
||||
delegationFrom,
|
||||
delegationOrder,
|
||||
delegationCancel,
|
||||
|
||||
bigfive,
|
||||
bigfiveInfo,
|
||||
bigfiveInit,
|
||||
settleAmount,
|
||||
amountType,
|
||||
bigfiveStore,
|
||||
orderLists,
|
||||
orderCancel
|
||||
}
|
||||
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 线下业务
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 主业务类型
|
||||
const business = () =>{
|
||||
return request({
|
||||
url: "offline/index",
|
||||
})
|
||||
}
|
||||
|
||||
// 获取主业务机构
|
||||
const institution = id =>{
|
||||
return request({
|
||||
url: "offline/" + id + "/institution",
|
||||
})
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
// 获取机构表单数据
|
||||
const institutionType = id => {
|
||||
return request({
|
||||
url: "offline/institution/" + id + "/type",
|
||||
})
|
||||
}
|
||||
|
||||
// 提交用户办理信息
|
||||
const submitStore = data => {
|
||||
console.log(data)
|
||||
return request({
|
||||
url : "offline/store",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 配置服务包
|
||||
const service = orderId => {
|
||||
return request({
|
||||
url : 'offline/' + orderId + '/service',
|
||||
method : 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
// 添加服务包
|
||||
const serviceAdd = (orderId, items) => {
|
||||
return request({
|
||||
url : 'offline/' + orderId + '/service/calculate',
|
||||
method : 'POST',
|
||||
data : {
|
||||
items
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除服务包
|
||||
const serviceRemove = (id, data) => {
|
||||
return request({
|
||||
url : 'offline/' + id + '/service/remove',
|
||||
method : 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 完成分配
|
||||
const serviceOver = orderId => {
|
||||
return request({
|
||||
url : 'offline/' + orderId + '/service/over',
|
||||
method : 'POST',
|
||||
})
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
const lists = data => {
|
||||
return request({
|
||||
url : 'offline/orders/lists',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
business,
|
||||
institution,
|
||||
institutionType,
|
||||
submitStore,
|
||||
service,
|
||||
serviceAdd,
|
||||
serviceRemove,
|
||||
serviceOver,
|
||||
lists
|
||||
}
|
||||
@@ -216,16 +216,6 @@ const orderLog = (id, page) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 通用订单详情
|
||||
const unifyInfo = data => {
|
||||
return request({
|
||||
url : 'unify/order/info',
|
||||
method : 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 支付订单
|
||||
export {
|
||||
lists,
|
||||
@@ -253,6 +243,5 @@ export {
|
||||
getConfirmSchemeInfo,
|
||||
sbuConfirmScheme,
|
||||
orderCancel,
|
||||
orderLog,
|
||||
unifyInfo
|
||||
orderLog
|
||||
}
|
||||
|
||||
@@ -114,15 +114,6 @@ const coinSynthesize = data => {
|
||||
})
|
||||
}
|
||||
|
||||
// 现在打款支付
|
||||
const cashierOffline = data => {
|
||||
return request({
|
||||
url : 'pay/cashier_desk/offline',
|
||||
data,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
coinPay,
|
||||
diffCoinPay,
|
||||
@@ -136,6 +127,5 @@ export {
|
||||
dgFree,
|
||||
umsSynthesize,
|
||||
dgSynthesize,
|
||||
coinSynthesize,
|
||||
cashierOffline
|
||||
coinSynthesize
|
||||
}
|
||||
@@ -9,9 +9,6 @@
|
||||
import { uploading as upd } from '../index'
|
||||
|
||||
const uploads = (paths, fromData) => {
|
||||
|
||||
console.log(paths)
|
||||
|
||||
return upd(paths, fromData)
|
||||
}
|
||||
|
||||
|
||||
@@ -8,13 +8,6 @@
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 团队分类
|
||||
const relationsTab = () => {
|
||||
return request({
|
||||
url : 'user/team/init',
|
||||
})
|
||||
}
|
||||
|
||||
// 我的下级用户
|
||||
const relations = data => {
|
||||
return request({
|
||||
@@ -194,25 +187,7 @@ 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 {
|
||||
relationsTab,
|
||||
relations,
|
||||
code,
|
||||
info,
|
||||
@@ -234,7 +209,5 @@ export {
|
||||
getSignLogs,
|
||||
getFlows,
|
||||
createCity,
|
||||
debtUrl,
|
||||
offSmsCode,
|
||||
offUser
|
||||
debtUrl
|
||||
}
|
||||
|
||||
@@ -59,12 +59,6 @@ const synthesisAttorney = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 增收赋能单数据统计
|
||||
const empowerStatistics = () =>{
|
||||
return request({
|
||||
url : 'empower/manager/index'
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
index,
|
||||
@@ -72,6 +66,5 @@ export {
|
||||
sign,
|
||||
synthesisCount,
|
||||
synthesisServices,
|
||||
synthesisAttorney,
|
||||
empowerStatistics
|
||||
synthesisAttorney
|
||||
}
|
||||
@@ -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">
|
||||
|
||||
5
main.js
@@ -1,6 +1,5 @@
|
||||
|
||||
import App from './App'
|
||||
|
||||
|
||||
import Vue from 'vue'
|
||||
import uView from "uview-ui";
|
||||
|
||||
@@ -24,4 +23,4 @@ import { INIT } from './im/INIT'
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
// })()
|
||||
// })()
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "抖火法律",
|
||||
"appid" : "__UNI__C305C03",
|
||||
"description" : "纵有疾风起,人生不言弃",
|
||||
"versionName" : "1.5.5",
|
||||
"versionCode" : 1054,
|
||||
"versionName" : "1.4.9",
|
||||
"versionCode" : 104,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
@@ -37,8 +37,10 @@
|
||||
"<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",
|
||||
@@ -46,31 +48,15 @@
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
"dSYMs" : false,
|
||||
"privacyDescription" : {
|
||||
"NSPhotoLibraryUsageDescription" : "从您的相册中选择图片作为用户头像与身份认证照片",
|
||||
"NSPhotoLibraryAddUsageDescription" : "保存您的分享海报与二维码图片",
|
||||
"NSCameraUsageDescription" : "身份认证图片,用户身份活体认证与用户头头像",
|
||||
"NSContactsUsageDescription" : "快捷拨打业务联系电话",
|
||||
"NSLocalNetworkUsageDescription" : "获取网络数据",
|
||||
"NSUserTrackingUsageDescription" : "开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全"
|
||||
}
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {
|
||||
"ad" : {
|
||||
"gdt" : {},
|
||||
"csj" : {},
|
||||
"ks" : {},
|
||||
"ks-content" : {},
|
||||
"sigmob" : {},
|
||||
"hw" : {},
|
||||
"bd" : {}
|
||||
},
|
||||
"ad" : {},
|
||||
"share" : {
|
||||
"weixin" : {
|
||||
"appid" : "wx1bcdeda0dec3f1bd",
|
||||
"UniversalLinks" : "https://app.com.douhuofalv/ulink/"
|
||||
"UniversalLinks" : ""
|
||||
}
|
||||
},
|
||||
"payment" : {}
|
||||
@@ -147,6 +133,5 @@
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "2",
|
||||
"fallbackLocale" : "zh-Hans"
|
||||
"vueVersion" : "2"
|
||||
}
|
||||
|
||||
254
pages.json
@@ -197,7 +197,7 @@
|
||||
"auth": true,
|
||||
"name": "UserTeam",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的团队",
|
||||
"navigationBarTitleText": "我的客户",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -768,240 +768,15 @@
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}, {
|
||||
"path": "pages/synthesize/feeWrite",
|
||||
"name": "FeeWrite",
|
||||
"path": "pages/synthesize/feeWrite",
|
||||
"name": "FeeWrite",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "个人法律咨询",
|
||||
"enablePullDownRefresh": false,
|
||||
"enablePullDownRefresh": false,
|
||||
"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"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/offline/create",
|
||||
"name" : "OfflineCreate",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor" : "#FFFFFF"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/offline/generate",
|
||||
"name" : "OfflineGenerate",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor" : "#FFFFFF"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/offline/service",
|
||||
"name" : "OfflineService",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "分配服务包",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"buttons": [{
|
||||
"text": "添加",
|
||||
"color": "#446EFE",
|
||||
"fontSize": "32rpx",
|
||||
"width": "120rpx"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
},{
|
||||
"path" : "pages/offline/orders",
|
||||
"name" : "OfflineOrders",
|
||||
"auth": true,
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#ffffff"
|
||||
}
|
||||
},{
|
||||
"path": "pages/offline/orderInfo",
|
||||
"auth": true,
|
||||
"name": "OfflineInfo",
|
||||
"style": {
|
||||
"navigationBarTitleText": "详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#446EFE",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/management/account",
|
||||
"name" : "MagAccount",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "账户咨询办理",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},{
|
||||
"path" : "pages/management/account2",
|
||||
"name" : "MagAccount2",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "线下账户咨询办理",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/management/delegation",
|
||||
"name" : "MagDelegation",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "委托管理办理",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/work/account",
|
||||
"name" : "AccountWork",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "账户管理咨询类",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/work/account2",
|
||||
"name" : "AccountWork2",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : " 线下订单",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/work/delegation",
|
||||
"name" : "DelegationWork",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "委托管理类",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/orderInfo/orderInfo",
|
||||
"name" : "OrderInfo",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#353ef4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/list",
|
||||
"name" : "businessList",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/info",
|
||||
"name" : "businessInfo",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "详情",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/bigFive",
|
||||
"name" : "businessBigFive",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/handle",
|
||||
"name" : "businessHandle",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "业务办理",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/other",
|
||||
"name" : "businessOther",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/order",
|
||||
"name" : "businessOrder",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "订单列表",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/business/orderInfo",
|
||||
"name" : "businessOrderInfo",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "订单详情",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
@@ -1018,7 +793,12 @@
|
||||
"iconPath": "static/icons/tabs_icon_00.png",
|
||||
"selectedIconPath": "static/icons/tabs_show_00.png",
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "首页"
|
||||
"text": "服务包"
|
||||
}, {
|
||||
"iconPath": "static/icons/tabs_icon_01.png",
|
||||
"selectedIconPath": "static/icons/tabs_show_01.png",
|
||||
"pagePath": "pages/college/test",
|
||||
"text": "业务考试"
|
||||
}, {
|
||||
"iconPath": "static/icons/tabs_icon_02.png",
|
||||
"selectedIconPath": "static/icons/tabs_show_02.png",
|
||||
@@ -1035,4 +815,4 @@
|
||||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
|
||||
},
|
||||
"uniIdRouter": {}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
<input type="safe-password" password v-model="password" placeholder="请输入密码">
|
||||
</view>
|
||||
<view class="btn">
|
||||
<button :disabled="phone.length < 11 || password == ''" @click="onAuth()">登录</button>
|
||||
<button :disabled="phone.length < 11 || password == '' || agreement.length == 0" @click="onAuth()">登录</button>
|
||||
</view>
|
||||
<view class="agreement">
|
||||
<u-checkbox-group
|
||||
@@ -49,13 +49,6 @@
|
||||
},
|
||||
methods: {
|
||||
onAuth(){
|
||||
if(this.agreement.length <= 0){
|
||||
uni.showToast({
|
||||
title: '请阅读并同意服务协议与隐私政策',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
})
|
||||
@@ -68,6 +61,7 @@
|
||||
this.$store.commit('setToken', res.token_type + ' ' + res.access_token);
|
||||
this.onBack()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
<template>
|
||||
<view class="create-page">
|
||||
<block v-if="childrenArr.length > 0">
|
||||
<view class="create-title">创建新的订单</view>
|
||||
<view class="create-submit">选择业务类型</view>
|
||||
<view class="create-from">
|
||||
<view class="create-type">
|
||||
<block v-for="(item, index) in childrenArr" :key="index">
|
||||
<view class="create-type-item" :class="{'active': (item.id == businessId)}" @click="onBusiness(item.id)">
|
||||
<image class="create-type-icon" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="create-type-text">
|
||||
<view class="title nowrap">{{item.title || '-'}}</view>
|
||||
<view class="submit nowrap">{{item.subtitle}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="create-btn">
|
||||
<button size="default" @click="onNext()">下一步</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 订单是空的 -->
|
||||
<view class="order-null" v-else>
|
||||
<u-empty
|
||||
mode="order"
|
||||
icon="http://cdn.uviewui.com/uview/empty/order.png"
|
||||
text="暂无可创建订单"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { bigfiveInit } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
childrenArr: [],
|
||||
businessId : '',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const parentData = JSON.parse(decodeURIComponent(this.$Route.query.children))
|
||||
this.childrenArr = parentData
|
||||
this.businessId = this.childrenArr[0].id
|
||||
},
|
||||
methods: {
|
||||
// 选择业务类型
|
||||
onBusiness(id){
|
||||
this.businessId = id
|
||||
},
|
||||
|
||||
// 创建业务单
|
||||
onNext(){
|
||||
const synthesisObj = this.childrenArr.find(val => val.id === this.businessId)
|
||||
// 办理初始接口
|
||||
bigfiveInit(synthesisObj.id).then(res=>{
|
||||
this.onNav('businessHandle', { record: encodeURIComponent(JSON.stringify(res)), bigFiveId: synthesisObj.id })
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转
|
||||
onNav(name, obj){
|
||||
let params = obj || {}
|
||||
this.$Router.push({name, params})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.create-page{
|
||||
padding: 50rpx;
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
.create-title{
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
.create-submit{
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
|
||||
// 选择业务类型
|
||||
.create-type{
|
||||
padding-top: 30rpx;
|
||||
.create-type-title{
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
color: gray;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.create-type-item{
|
||||
background: #f8f8f8;
|
||||
border-radius: $radius;
|
||||
padding: 30rpx;
|
||||
margin-top: 30rpx;
|
||||
border:solid 1rpx #f8f8f8;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.create-type-icon{
|
||||
width: 74rpx;
|
||||
height: 74rpx;
|
||||
margin-right: $margin;
|
||||
}
|
||||
.create-type-text{
|
||||
line-height: 40rpx;
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.submit{
|
||||
color: gray;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
&.active{
|
||||
border:solid 1rpx $main-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 按钮
|
||||
.create-btn{
|
||||
margin-top: 90rpx;
|
||||
button[size="default"]{
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
background: $main-color;
|
||||
font-size: 32rpx;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,232 +0,0 @@
|
||||
<template>
|
||||
<view class="from-content">
|
||||
<view class="from-block" v-if="pickerArr.length > 0" >
|
||||
<view class="from-block-item">
|
||||
<label>办理业务</label>
|
||||
<picker class="from-block-val" :range="pickerArr" :value="pickerIndex" range-key="title" @change="pickerChange">
|
||||
<view class="from-block-picker nowrap">{{pickerArr[pickerIndex].title}}
|
||||
<u-icon class="from-block-picker-icon" name="arrow-down" color="#555" size="15"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="from-block">
|
||||
<view class="from-block-item" v-if="pickertype == 'select'">
|
||||
<label>资费类型</label>
|
||||
<picker class="from-block-val" :range="selectP" :value="selectPIndex" range-key="name" @change="pickerSelectChange">
|
||||
<view class="from-block-picker nowrap">{{selectP[selectPIndex].name}}
|
||||
<u-icon class="from-block-picker-icon" name="arrow-down" color="#555" size="15"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>客户姓名</label>
|
||||
<input class="from-block-val from-block-input" placeholder="请输入客户姓名" v-model="name" />
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>手机号码</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户手机号码" v-model="phone" maxlength="11" />
|
||||
</view>
|
||||
<view class="from-block-item" v-if="needAmount > 0">
|
||||
<label>{{priceTitle}}</label>
|
||||
<input class="from-block-val from-block-input" type="number" v-model="amount" placeholder="请输入标的额"/>
|
||||
</view>
|
||||
<view class="from-block-item from-block-get" v-if="pickertype != 'free'">
|
||||
<label>服务费</label>
|
||||
<input class="from-block-val from-block-input" type="number" v-model="price" disabled />
|
||||
<view class="from-block-get-btn" @click="settleInfo">计算费用</view>
|
||||
</view>
|
||||
<view class="from-block-item" v-else>
|
||||
<label>服务费</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户服务费(元)" v-model="priceValue" />
|
||||
</view>
|
||||
<view class="from-block-item" v-if="needDiff != 0">
|
||||
<label>已缴服务费</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入已缴纳金额" v-model="diffPrice" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="from-btn" @click="onSubmit">提交办理</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { customTypes,customTypeStore } from '@/apis/interfaces/custom.js'
|
||||
import { settleAmount, amountType, bigfiveStore } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id : '',
|
||||
pickerArr : [],
|
||||
pickerIndex : 0,
|
||||
pickertype : '',
|
||||
name : '',
|
||||
phone : '',
|
||||
price : 0,
|
||||
diffPrice : '',
|
||||
priceValue : '',
|
||||
amount : '',
|
||||
needAmount : 0,
|
||||
needDiff : 0,
|
||||
selectP : [],
|
||||
selectPIndex: 0,
|
||||
priceTitle : '标的额'
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
const parentData = JSON.parse(decodeURIComponent(this.$Route.query.record))
|
||||
console.log(parentData)
|
||||
this.id = parentData.id
|
||||
this.needDiff = parentData.need_diff
|
||||
this.needAmount = parentData.need_amount
|
||||
this.pickerArr = parentData.child.data
|
||||
this.pickertype = parentData.type
|
||||
this.selectP = parentData.select_p || []
|
||||
this.priceTitle = parentData.price_title
|
||||
if(parentData.child.has){
|
||||
this.amountTypeInfo()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 标的额比例计算
|
||||
settleInfo() {
|
||||
let { pickerArr, pickerIndex } = this
|
||||
let id = pickerArr.length > 0 ? pickerArr[pickerIndex].id : this.id
|
||||
|
||||
settleAmount({
|
||||
amount : this.pickertype == 'select' ? this.selectP[this.selectPIndex].key : this.amount,
|
||||
username: this.phone
|
||||
}, id).then(res => {
|
||||
this.price = res.price
|
||||
}).catch(err => {
|
||||
this.price = 0
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none',
|
||||
mask:true,
|
||||
duration:3000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 选择办理业务
|
||||
pickerChange(e) {
|
||||
this.pickerIndex = e.detail.value
|
||||
// 获取三级分类服务费类型
|
||||
this.amountTypeInfo();
|
||||
// 清空表单数据
|
||||
this.onClerFrom()
|
||||
},
|
||||
|
||||
// 选择资费信息
|
||||
pickerSelectChange(e){
|
||||
let { value } = e.detail
|
||||
this.selectPIndex = value
|
||||
// 清空表单数据
|
||||
this.onClerFrom()
|
||||
},
|
||||
|
||||
// 清空数据信息
|
||||
onClerFrom(){
|
||||
this.amount = ""
|
||||
this.price = 0
|
||||
this.priceValue = ""
|
||||
this.name = ""
|
||||
this.phone = ""
|
||||
this.diffPrice = ""
|
||||
},
|
||||
// 三级分类服务费类型
|
||||
amountTypeInfo() {
|
||||
let { pickerArr, pickerIndex } = this
|
||||
let id = pickerArr[pickerIndex].id
|
||||
amountType(id).then(res => {
|
||||
let { type, need_amount, select_p, need_diff, price_title } = res;
|
||||
this.needDiff = need_diff
|
||||
this.pickertype = type
|
||||
this.needAmount = need_amount
|
||||
this.selectP = select_p || []
|
||||
this.priceTitle = price_title
|
||||
// if(type == 'select'){
|
||||
// this.settleInfo()
|
||||
// }
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none',
|
||||
mask:true,
|
||||
duration:3000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 提交表单
|
||||
onSubmit(){
|
||||
let { name, phone, pickerIndex, price, priceValue, amount, pickerArr, pickertype, selectP, selectPIndex, diffPrice } = this
|
||||
uni.showLoading({
|
||||
title: "提交中...",
|
||||
mask : true
|
||||
})
|
||||
let params = {
|
||||
big_id : pickerArr.length > 0 ? pickerArr[pickerIndex].id : this.$Route.query.bigFiveId,
|
||||
name : name,
|
||||
amount : amount || 0,
|
||||
mobile : phone,
|
||||
price : pickertype == 'free' ? priceValue : price,
|
||||
select_key : selectP.length > 0 ? selectP[selectPIndex].key : '',
|
||||
diff_price : diffPrice
|
||||
}
|
||||
bigfiveStore(params).then(res => {
|
||||
let { order_type, order_id, order_no } = 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',
|
||||
mask:true,
|
||||
duration:3000
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.from-content{
|
||||
min-height: 100vh;
|
||||
padding: 30rpx;
|
||||
background: #f7f8f9;
|
||||
}
|
||||
.from-block{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.from-block-item{
|
||||
min-height: 70rpx;
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
border-bottom: solid 1rpx #f3f3f3;
|
||||
padding: 15rpx 0;
|
||||
&:last-child{ border: none; }
|
||||
label{ width: 200rpx; line-height: 70rpx; }
|
||||
&.from-block-get{ padding-right: 200rpx; position: relative; }
|
||||
.from-block-get-btn{ font-size: 32rpx; line-height: 100rpx; border-left:solid 1rpx #f3f3f3; color: $main-color; width: 170rpx; text-align: center; position: absolute; right: 0; top: 0; }
|
||||
.from-block-val{ width: calc(100% - 200rpx); text-align: right; line-height: 70rpx;
|
||||
&.price{ color: $main-color; font-weight: bold; }
|
||||
}
|
||||
.from-block-input{ height: 70rpx; font-size: 32rpx; }
|
||||
.from-block-picker{ padding-right: 50rpx; position: relative; }
|
||||
.from-block-picker-icon{ position: absolute; right: 0; top: 50%; margin-top: -15rpx; }
|
||||
}
|
||||
.from-btn{ width: 100%; background-color: $main-color; color: white; line-height: 95rpx; height: 95rpx; border-radius: 45rpx; font-size: 32rpx; font-weight: bold;
|
||||
&::after{ display: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -1,80 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<image class="infoBack" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2024/02/20/10a4a33eb939fe721f934ec82fabb340.png" mode="widthFix"></image>
|
||||
<view class="infoCont">
|
||||
<view class="infoWrite">
|
||||
<image class="infoCont-mark" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2024/02/20/ca5ec8654ee1f2de5bfc1858a1415aef.png" mode="heightFix"></image>
|
||||
<image class="infoCont-hot" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2024/02/20/053632a2a4c63fd50a0f2cde9835a152.png" mode="widthFix"></image>
|
||||
<image class="infoCont-seal" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2024/02/20/2df98978be66b60985c88eea95f091e5.png" mode="widthFix"></image>
|
||||
<view class="infoCont-title">{{bigFiveInfo.title}}</view>
|
||||
<view class="infoCont-text" v-if="bigFiveInfo.subtitle != ''">
|
||||
<view class="infoCont-text-star">★</view>
|
||||
<view class="infoCont-text-subtitle">{{bigFiveInfo.subtitle}}</view>
|
||||
</view>
|
||||
<view class="infoCont-text">
|
||||
<!-- <view class="infoCont-text-star">★</view> -->
|
||||
<!-- <view class="infoCont-text-tips">{{bigFiveInfo.remark}}</view> -->
|
||||
<block v-for="(item,index) in bigFiveInfo.pictures" :key="index">
|
||||
<image style="max-width: 100%; vertical-align: top;" :src="item" @click="onOpenImg(index)" mode="widthFix"></image>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<image class="infoBottom" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2024/02/20/b99c7e15d011e53e8eed7dc16a84d6cf.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import { bigfiveInfo } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
bigFiveInfo: ''
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.bigfiveIndex()
|
||||
},
|
||||
methods: {
|
||||
// 最新五大板块
|
||||
bigfiveIndex(){
|
||||
bigfiveInfo(this.$Route.query.bigFive).then(res=>{
|
||||
|
||||
console.log(res)
|
||||
|
||||
this.bigFiveInfo = res
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 查看图片
|
||||
onOpenImg(index){
|
||||
wx.previewImage({
|
||||
urls : this.bigFiveInfo.pictures,
|
||||
current : this.bigFiveInfo.pictures[index]
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{background: #070b30; overflow-y: scroll;}
|
||||
.infoBack {width: 100%;}
|
||||
.infoCont {padding: 0 $padding; box-sizing: border-box; margin-top: -100rpx; position: relative; z-index: 99;}
|
||||
.infoWrite {background-color: #ffffff; padding: $padding + 10 $padding 90rpx; box-sizing: border-box; position: relative;}
|
||||
.infoCont-mark {position: absolute; top: 10%; left: 20%;}
|
||||
.infoCont-hot {width: 130rpx;position: absolute; top: 0; right: 0;}
|
||||
.infoCont-seal {width: 160rpx;position: absolute; bottom: -80rpx; right: $padding;}
|
||||
.infoCont-title {color: #003a95; font-size: $title-size + 12; font-weight: bold; margin-bottom: $margin;}
|
||||
.infoCont-text {color: #111111; line-height: 52rpx; font-size: $title-size; display: flex;}
|
||||
.infoCont-text-subtitle {font-weight: 600; margin-bottom: 20rpx;}
|
||||
.infoCont-text-star {padding-right: 10rpx;}
|
||||
.infoBottom {width: 100%; position: relative; bottom: 0; left: 0;}
|
||||
</style>
|
||||
@@ -1,51 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="list">
|
||||
<view class="item" v-for="(item, index) in childrenArr" :key="index">
|
||||
<view class="item-number"><text>0{{index + 1}}</text></view>
|
||||
<view class="nowrap item-name">{{item.title}}</view>
|
||||
<view class="nowrap item-text">{{item.subtitle}}</view>
|
||||
<view class="item-more">
|
||||
<view class="item-more-name" @click="onNav(item.id)">点击查看详情</view>
|
||||
<view class="footer-tool-label-icon"><u-icon name="arrow-right" size="16" /></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { bigfive } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
childrenArr: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
onShow() {
|
||||
const parentData = JSON.parse(decodeURIComponent(this.$Route.query.children))
|
||||
this.childrenArr = parentData
|
||||
},
|
||||
methods: {
|
||||
// 跳转
|
||||
onNav(id){
|
||||
this.$Router.push({name: 'businessInfo', params:{bigFive:id}})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list {padding: $padding; box-sizing: border-box;}
|
||||
.item {background-color: #ffffff; border-radius: $radius; position: relative;padding: $padding; box-sizing: border-box; overflow: hidden; margin-bottom: $margin;}
|
||||
.item-name {font-weight: bold; font-size: $title-size + 8; color: #c92453;}
|
||||
.item-text {font-size: $title-size; color: #111111; line-height: 54rpx; padding: $padding 0;}
|
||||
.item-more {color: #666666; border-top: 2rpx solid #eeeeee;display: flex; line-height: 44rpx; font-size: $title-size; padding-top: $padding;}
|
||||
.item-more-name {flex: 1;}
|
||||
.footer-tool-label-icon {line-height: 44rpx; padding-top: 4rpx; font-weight: 600;}
|
||||
.item-number {background-color: #fea6cd; position: absolute; right: 0; top: 0; color: #c92553; font-weight: bold; font-size: $title-size + 2; border-radius: 0 $radius 0 $radius + 20; overflow: hidden; padding: 0 $padding - 20rpx 0 $padding - 10;}
|
||||
.item-number::after {position: absolute; content: ''; bottom: -48%; left: -78%; background-color: #ffc8e7; width: 200%; height: 100%; z-index: 9; border-radius: 100%;transform: rotate(45deg);}
|
||||
.item-number text {transform: rotate(45deg); display: inline-block; margin: 5rpx 0 10rpx;}
|
||||
</style>
|
||||
@@ -1,339 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<u-tabs
|
||||
:current="tabsCurrent"
|
||||
:list="tabs"
|
||||
keyName="value"
|
||||
lineColor="#446EFE"
|
||||
:scrollable="tabs.length > 5"
|
||||
:activeStyle="{
|
||||
color: '#111',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '32rpx'
|
||||
}"
|
||||
:inactiveStyle="{
|
||||
color: '#606266',
|
||||
fontSize: '30rpx'
|
||||
}"
|
||||
@click="onTabs"
|
||||
></u-tabs>
|
||||
</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)">
|
||||
{{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">{{item.title}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="nowrap">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>手机号码</label>
|
||||
<view class="nowrap">{{item.mobile}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item" v-if="item.amount != ''">
|
||||
<label>标的额</label>
|
||||
<view class="nowrap">¥{{item.amount}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item" v-if="item.price != ''">
|
||||
<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="price">¥{{item.price}}</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</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>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { orderLists, orderCancel } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabs : [{ id: '', value: '全部' }],
|
||||
tabsCurrent : 0,
|
||||
tabsId : '',
|
||||
orders : [],
|
||||
pagesShow : false,
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.getOrder()
|
||||
},
|
||||
methods: {
|
||||
// 筛选分类
|
||||
onTabs(e){
|
||||
let { id, index } = e;
|
||||
this.tabsCurrent = index
|
||||
this.tabsId = id
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
},
|
||||
// 获取订单列表
|
||||
getOrder(){
|
||||
let { tabsId, tabs, orders, page } = this
|
||||
orderLists({
|
||||
big_id : this.$Route.query.bigId,
|
||||
status : tabsId,
|
||||
page : page.current
|
||||
}).then(res => {
|
||||
let { status, lists } = res;
|
||||
this.tabs = [{ id: '', value: '全部' }].concat(status)
|
||||
this.orders = lists.page.current == 1 ? lists.data : this.orders.concat(lists.data)
|
||||
this.page = lists.page
|
||||
this.pagesShow = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(e){
|
||||
let { order_id } = e;
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "确认取消当前订单嘛?",
|
||||
cancelText : "取消",
|
||||
confirmColor: "#446EFE",
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask : true
|
||||
})
|
||||
orderCancel(order_id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'businessOrderInfo',
|
||||
params : {
|
||||
orderId : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 去支付
|
||||
onPay(obj){
|
||||
let { order_id, order_type, paid_at } = obj
|
||||
if(paid_at == ''){
|
||||
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.getOrder()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 订单列表
|
||||
.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;
|
||||
width: 200rpx;
|
||||
}
|
||||
.orders-content-btn{
|
||||
color: $main-color;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-type{
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-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;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.price{
|
||||
font-weight: bold;
|
||||
color: $main-color;
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.border{
|
||||
border: solid 1rpx $main-color;
|
||||
color: $main-color;
|
||||
background: white;
|
||||
height: 68rpx;
|
||||
line-height: 68rpx;
|
||||
&::after{ display: none;}
|
||||
}
|
||||
&:last-child{ margin-left: 30rpx; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,124 +0,0 @@
|
||||
|
||||
<template>
|
||||
<view class="info-content">
|
||||
<view class="block">
|
||||
<view class="block-item">
|
||||
<view class="block-item-flex" v-for="(item, index) in objArr" :key="index">
|
||||
<label>{{item.name}}</label>
|
||||
<view class="val">{{item.value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { unifyInfo } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
objArr: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
unifyInfo({
|
||||
order_type : this.$Route.query.orderType.replace(/\-/g, '\\'),
|
||||
order_id : this.$Route.query.orderId
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
uni.hideLoading()
|
||||
this.objArr = res;
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.info-content{
|
||||
position: relative;
|
||||
background: #eeefff;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 10rpx;
|
||||
padding-top: 30rpx;
|
||||
&::before{
|
||||
background-image: linear-gradient(180deg, #353ef4 10%, #eeefff);
|
||||
height: 50vh;
|
||||
content: " ";
|
||||
width: 100vw;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
// 模块
|
||||
.block{
|
||||
background: white;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0 40rpx 30rpx;
|
||||
border-radius: 20rpx;
|
||||
.block-header{
|
||||
padding: 32rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.title{
|
||||
width: calc(100% - 200rpx);
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
.price{
|
||||
text-align: right;
|
||||
width: 200rpx;
|
||||
padding-left: 20rpx;
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #353ef4;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block-item{
|
||||
padding: 32rpx;
|
||||
.block-item-flex{
|
||||
padding: 20rpx 0;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
color: #555;
|
||||
justify-content: space-between;
|
||||
label{ width: 240rpx; }
|
||||
.val{
|
||||
text-align: right;
|
||||
width: calc(100% - 240rpx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,127 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="flex">
|
||||
<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-tips">信用卡、贷款业务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onNav('AccountWork')">
|
||||
<image class="flex-icon" src="/static/icons/work_icon_30.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">账户管理咨询类</view>
|
||||
<view class="flex-tips">客户账户管理咨询类订单</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onNav('DelegationWork')">
|
||||
<image class="flex-icon" src="/static/icons/work_icon_29.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">委托管理类</view>
|
||||
<view class="flex-tips">客户委托管理类订单</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
|
||||
<view class="flex-item" @click="onNav('ServiceWork')">
|
||||
<image class="flex-icon" src="/static/icons/icon_01.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">法律咨询类</view>
|
||||
<view class="flex-tips">个人、企业法律</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<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-tips">案件委托、拓展服务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<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-tips">销售、领袖、演说等</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onNav('AccountWork2')">
|
||||
<image class="flex-icon" src="/static/icons/icon_04.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">线下订单</view>
|
||||
<view class="flex-tips">线下咨询类订单</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
// 跳转
|
||||
onNav(name, obj){
|
||||
let params = obj || {}
|
||||
this.$Router.push({name, params})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
.flex{
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
&-item{
|
||||
background: white;
|
||||
padding: 30rpx;
|
||||
border-radius: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.flex-icon{ width: 48px; height: 48px; border-radius: 30rpx; }
|
||||
.flex-title{
|
||||
box-sizing: border-box;
|
||||
padding-left: 30rpx;
|
||||
.flex-name {
|
||||
color: #293f66;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
padding: 4rpx 0;
|
||||
}
|
||||
.flex-tips {
|
||||
color: #929db3;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
.flex-btn {
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: 48rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
border-radius: 80rpx;
|
||||
color: #468bff;
|
||||
background-color: #f8fbff;
|
||||
border: 2rpx solid #d8e6ff;
|
||||
font-size: 28rpx;
|
||||
padding: 0 25rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,227 +0,0 @@
|
||||
<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>
|
||||
@@ -1,145 +0,0 @@
|
||||
<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>
|
||||
@@ -1,431 +0,0 @@
|
||||
<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>
|
||||
@@ -1,669 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="header">
|
||||
<view class="banner">
|
||||
<u-swiper
|
||||
class="banner-swiper"
|
||||
:list="bannerArr"
|
||||
:indicator="true"
|
||||
keyName="cover"
|
||||
previousMargin="20"
|
||||
nextMargin="20"
|
||||
circular
|
||||
radius="10"
|
||||
bgColor="#ffffff"
|
||||
height="100%"
|
||||
@click='swiperClick'
|
||||
/>
|
||||
</view>
|
||||
<view class="notice">
|
||||
<view class="notice-title">
|
||||
<image class="notice-icon" src="@/static/index/index_notice.png" mode="widthFix" /> 公告
|
||||
</view>
|
||||
<u-notice-bar
|
||||
icon=""
|
||||
:text="notice"
|
||||
url=''
|
||||
linkType='navigateTo'
|
||||
fontSize="14"
|
||||
direction="column"
|
||||
bgColor="#fff"
|
||||
color="#111111"
|
||||
/>
|
||||
<view class="notice-more">更多<u-icon class="more-icon" size="20rpx" color="#999" name="arrow-right" /></view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 自由服务包 -->
|
||||
<view class="free" @click="onView('FreeService')">
|
||||
<image class="free-img" src="@/static/index/index_banner_free.png" mode="widthFix" />
|
||||
</view>
|
||||
<!-- 协商调解类 -->
|
||||
<view class="block" v-if="false">
|
||||
<view class="block-title">
|
||||
<view class="title">协商调解咨询类</view>
|
||||
</view>
|
||||
<scroll-view class="the-tabs" scroll-x="true" >
|
||||
<block v-for="(item, index) in theTabs" :key="index">
|
||||
<view class="the-tabs-item" :class="{'active': item.category_id == theTabId}" @click="onTheTab(item)">{{item.title}}</view>
|
||||
</block>
|
||||
<view class="the-tabs-acitve-block" :style="theTabStyle"></view>
|
||||
</scroll-view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId'
|
||||
>
|
||||
<view class="the-flex-item"
|
||||
v-for="item in jfList"
|
||||
:key="item.service_id"
|
||||
:id='"_tabs"+item.service_id'
|
||||
@click="sevicesClick(item.service_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}}<text class="ding" v-if="item.type">定金</text></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 账户管理咨询类 -->
|
||||
<view class="block" v-if="accountData.length > 0">
|
||||
<view class="block-title">
|
||||
<view class="title">账户管理咨询类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
>
|
||||
<block v-for="(item, index) in accountData" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onMagInfo('Account', 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}} <text v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 委托管理类 -->
|
||||
<view class="block" v-if="delegation.length > 0">
|
||||
<view class="block-title">
|
||||
<view class="title">委托管理类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
>
|
||||
<block v-for="(item, index) in delegation" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onMagInfo('Delegation', 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}} <text v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 法律咨询类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">法律咨询类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId'
|
||||
>
|
||||
<block v-for="(item, index) in appMenus.service" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onView(item.page)"
|
||||
>
|
||||
<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 v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 诉讼委托类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">诉讼委托咨询类</view>
|
||||
</view>
|
||||
<view class="lawsuit">
|
||||
<block v-for="(item, index) in appMenus.cases" :key="index">
|
||||
<view class="lawsuit-item" @click="onView(item.page)">
|
||||
<view class="lawsuit-cover" :style="'background-image: url(' + item.cover + ');'"></view>
|
||||
<view class="lawsuit-text">
|
||||
<view class="lawsuit-title nowrap">{{item.title}}</view>
|
||||
<view class="lawsuit-price">¥{{item.price}}<text v-if="item.limit != null">{{item.limit}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 增收赋能类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">增收赋能咨询类</view>
|
||||
</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" 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>
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showAdImg" mode="center" bgColor="transparent">
|
||||
<view class="ad-lay">
|
||||
<view class="ad-down">
|
||||
<u-count-down
|
||||
ref="adCountDown"
|
||||
:time="showAdTime"
|
||||
:autoStart="false"
|
||||
@change="timeData = $event"
|
||||
@finish="showAdImg = false">
|
||||
<view>
|
||||
自动关闭<text>{{ timeData.seconds }}</text>S
|
||||
</view>
|
||||
</u-count-down>
|
||||
</view>
|
||||
<image class="ad-img" :src="layAdImg" mode="heightFix"></image>
|
||||
<view class="ad-btn">
|
||||
<u-icon
|
||||
class="ad-btn-icon"
|
||||
name="close-circle"
|
||||
color="white"
|
||||
size="36px"
|
||||
@click="onRemoveAd"
|
||||
></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { region } from '@/apis/interfaces/address.js'
|
||||
import { categories, jf, index, accountManagement, delegation } from '@/apis/interfaces/index.js'
|
||||
import { lists } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
theTabs : [
|
||||
{ category_id: '', title: '全部' }
|
||||
],
|
||||
theTabId : '',
|
||||
theTabStyle : {
|
||||
left: '0%'
|
||||
},
|
||||
bannerArr : [],
|
||||
notice : [],
|
||||
jfList:[],
|
||||
defaultViewId:'',
|
||||
zfList:[],
|
||||
// 首次进入弹窗
|
||||
timeData : {},
|
||||
first : 1,
|
||||
showAdTime : 0,
|
||||
showAdImg : true,
|
||||
layAdImg : '',
|
||||
appMenus : {
|
||||
cases : [],
|
||||
service : []
|
||||
},
|
||||
// 增收赋能列表
|
||||
empowerArr : [],
|
||||
// 账户管理类
|
||||
accountData : [],
|
||||
// 委托管理类
|
||||
delegation : []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getCategory()
|
||||
this.getJf()
|
||||
this.getIndex()
|
||||
// 增收赋能
|
||||
this.getEmpower()
|
||||
// 管理类业务
|
||||
this.getManagement()
|
||||
},
|
||||
methods: {
|
||||
// 获取管理类业务
|
||||
getManagement(){
|
||||
Promise.all([accountManagement(), delegation()]).then(res => {
|
||||
let accountData = res[0]
|
||||
let delegationData = res[1]
|
||||
this.accountData = accountData
|
||||
this.delegation = delegationData
|
||||
})
|
||||
},
|
||||
// 查看管理类业务
|
||||
onMagInfo(type, id){
|
||||
this.$Router.push({
|
||||
name : 'Mag' + type,
|
||||
params : { id }
|
||||
})
|
||||
},
|
||||
// 查看增收赋能详情
|
||||
onEmpower(id){
|
||||
this.$Router.push({
|
||||
name : 'EmpowerInfo',
|
||||
params : { id }
|
||||
})
|
||||
},
|
||||
// 增收赋能接口
|
||||
getEmpower(){
|
||||
lists().then(res => {
|
||||
this.empowerArr = res;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取金法列表
|
||||
getJf(){
|
||||
let params = {
|
||||
category_id:this.theTabId
|
||||
}
|
||||
jf(params).then(res=>{
|
||||
if(res.length>0){
|
||||
setTimeout(()=>{
|
||||
this.defaultViewId = '_tabs'+res[0].service_id
|
||||
},300)
|
||||
}
|
||||
this.jfList = res
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 点击金法产品跳转金法详情
|
||||
sevicesClick(id){
|
||||
uni.navigateTo({
|
||||
url:'/pages/index/introduces?id='+id
|
||||
})
|
||||
},
|
||||
// 首页轮播图及公告
|
||||
getIndex(){
|
||||
index().then(res=>{
|
||||
this.bannerArr = res.bannners
|
||||
this.appMenus = res.app_menus
|
||||
let list = []
|
||||
res.notices.map(item=>{
|
||||
let params = item.user.name + ' ' + item.user.text
|
||||
list.push(params)
|
||||
})
|
||||
this.notice = list
|
||||
let { is_lay_ad, lay_ad_img, times } = res.layad
|
||||
if(is_lay_ad) this.layAdImg = lay_ad_img
|
||||
if(this.first === 1 && is_lay_ad){
|
||||
this.showAdImg = true
|
||||
this.showAdTime = times * 1000
|
||||
this.$nextTick(() => {
|
||||
this.$refs.adCountDown.start()
|
||||
})
|
||||
}
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取金法分类列表
|
||||
getCategory(){
|
||||
categories().then(res=>{
|
||||
this.theTabs = this.theTabs.concat(res)
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 金法产品筛选
|
||||
onTheTab(e){
|
||||
if(e.category_id != this.theTabId){
|
||||
let index = this.theTabs.findIndex(val => val.category_id === e.category_id)
|
||||
this.theTabStyle = {
|
||||
left: index * 25 + '%'
|
||||
}
|
||||
this.theTabId = e.category_id
|
||||
this.getJf()
|
||||
}
|
||||
},
|
||||
// 点击轮播图
|
||||
swiperClick(e){
|
||||
// console.log(this.bannerArr[e])
|
||||
},
|
||||
// 点击轮播图跳转自由服务包
|
||||
onView(name){
|
||||
this.$Router.push({ name })
|
||||
},
|
||||
// 关闭弹窗广告
|
||||
onRemoveAd(){
|
||||
this.first = 0;
|
||||
this.showAdImg = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.header{
|
||||
background-color: white;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
// ad弹窗广告
|
||||
.ad-lay{
|
||||
position: relative;
|
||||
text-align: center;
|
||||
.ad-down{
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
z-index: 1;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
font-size: 20rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
line-height: 30rpx;
|
||||
border-radius: 24rpx;
|
||||
color: white;
|
||||
.ad-down-u{
|
||||
display: inline-block;
|
||||
line-height: 30rpx;
|
||||
}
|
||||
}
|
||||
.ad-img{
|
||||
height: 75vh;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.ad-btn{
|
||||
text-align: center;
|
||||
margin-top: 30rpx;
|
||||
.ad-btn-icon{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 轮播图
|
||||
.banner{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 43%;
|
||||
.banner-swiper{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
// 公告
|
||||
.notice{
|
||||
background: white;
|
||||
padding: $padding;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
.notice-title{
|
||||
background-color: #ececec;
|
||||
color: #000;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
width: 130rpx;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
border-radius: 20rpx;
|
||||
.notice-icon{
|
||||
width: 32rpx;
|
||||
vertical-align: middle;
|
||||
margin-bottom: 8rpx;
|
||||
margin-right: 10rpx;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.notice-more{
|
||||
font-size: 24rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 25rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
.more-icon{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 自由服务包
|
||||
.free{
|
||||
padding: $padding $padding $padding - 10 $padding ;
|
||||
.free-img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
// 增收赋能类
|
||||
.closed{
|
||||
background: white;
|
||||
margin: 0 $margin;
|
||||
border-radius: 35rpx;
|
||||
padding-bottom: 10rpx;
|
||||
.closed-item{
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: solid 1rpx #f8f8f8;
|
||||
&:last-child{
|
||||
margin-bottom: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
.closed-cover{
|
||||
width: 168rpx;
|
||||
height: 168rpx;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.closed-text{
|
||||
width: calc(100% - 168rpx);
|
||||
padding-left: 30rpx;
|
||||
box-sizing: border-box;
|
||||
.closed-title{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.closed-subtitle{
|
||||
color: gray;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.closed-price{
|
||||
color: #d51959;
|
||||
font-size: 34rpx;
|
||||
line-height: 40rpx;
|
||||
margin-top: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 诉讼委托类
|
||||
.lawsuit{
|
||||
padding: 0 20rpx $padding;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
&-item{
|
||||
background: #F6F6F6;
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
width: calc(50% - 20rpx);
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
&-cover{
|
||||
width: 138rpx;
|
||||
height: 138rpx;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
&-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-weight: bold;
|
||||
}
|
||||
}
|
||||
// 经法
|
||||
.the-tabs{
|
||||
background: #ececec;
|
||||
margin: 0 $margin;
|
||||
height: 60rpx;
|
||||
border-radius: 35rpx;
|
||||
display: flex;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
width: calc(100% - 60rpx);
|
||||
&-item{
|
||||
width: 25%;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
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-image: linear-gradient( to right, #d51959, #ec7247);
|
||||
border-radius: 35rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
transition: all .4s;
|
||||
}
|
||||
}
|
||||
.the-flex{
|
||||
padding: $padding 20rpx;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
&-item{
|
||||
width: calc(33% - 20rpx);
|
||||
margin: 0 10rpx;
|
||||
display: inline-block;
|
||||
&:last-child{
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.cover{
|
||||
width: 100%;
|
||||
padding-top: 100%;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
color: #111111;
|
||||
padding: 10rpx 0;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.price{
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
color: #d51959;
|
||||
font-size: 32rpx;
|
||||
text{
|
||||
font-size: 80%;
|
||||
}
|
||||
.ding{
|
||||
font-size: 64%;
|
||||
margin-left: 4rpx;
|
||||
position: relative;
|
||||
bottom: 2rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 模块
|
||||
.block{
|
||||
background-color: white;
|
||||
border-radius: $radius;
|
||||
margin: 0 $margin $margin;
|
||||
.block-title{
|
||||
padding: 0 $padding;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.title{
|
||||
font-weight: bold;
|
||||
color: #111111;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.more{
|
||||
background-color: #ececec;
|
||||
font-size: 28rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 25rpx;
|
||||
width: 120rpx;
|
||||
padding-left: 10rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
color: #454545;
|
||||
.more-icon{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -34,27 +34,123 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 自由服务包 -->
|
||||
<view class="free" v-if="free.has_free" @click="onView('FreeService')">
|
||||
<image class="free-img" :src="free.cover" mode="widthFix" />
|
||||
</view>
|
||||
|
||||
<view class="block">
|
||||
<view class="module" :style="{'background-color':item.bg_color,'color':item.text_color}" v-for="(item, index) in bigfiveArr" :key="index">
|
||||
<view class="moduleCont" @click="onNav('businessList', item.children)">
|
||||
<view class="moduleCont-text">
|
||||
<view class="moduleCont-text-name">{{item.title}}</view>
|
||||
<view class="nowrap moduleCont-text-tips">{{item.subtitle}}</view>
|
||||
</view>
|
||||
<image class="moduleCont-img" :src="item.cover" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="moduleInfo" @click="moduleClick(index)">
|
||||
<view class="moduleInfo-text" :class="{active : item.schemesShow}">{{item.remark}}</view>
|
||||
<image class="moduleInfo-more" :class="{active : item.schemesShow}" src="@/static/imgs/basic_down.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<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>
|
||||
<scroll-view class="the-tabs" scroll-x="true" >
|
||||
<block v-for="(item, index) in theTabs" :key="index">
|
||||
<view class="the-tabs-item" :class="{'active': item.category_id == theTabId}" @click="onTheTab(item)">{{item.title}}</view>
|
||||
</block>
|
||||
<view class="the-tabs-acitve-block" :style="theTabStyle"></view>
|
||||
</scroll-view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId'
|
||||
>
|
||||
<view class="the-flex-item"
|
||||
v-for="item in jfList"
|
||||
:key="item.service_id"
|
||||
:id='"_tabs"+item.service_id'
|
||||
@click="sevicesClick(item.service_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}}<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>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId'
|
||||
>
|
||||
<block v-for="(item, index) in appMenus.service" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onView(item.page)"
|
||||
>
|
||||
<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 v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 诉讼委托类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">诉讼委托类</view>
|
||||
</view>
|
||||
<view class="lawsuit">
|
||||
<block v-for="(item, index) in appMenus.cases" :key="index">
|
||||
<view class="lawsuit-item" @click="onView(item.page)">
|
||||
<view class="lawsuit-cover" :style="'background-image: url(' + item.cover + ');'"></view>
|
||||
<view class="lawsuit-text">
|
||||
<view class="lawsuit-title nowrap">{{item.title}}</view>
|
||||
<view class="lawsuit-price">¥{{item.price}}<text v-if="item.limit != null">{{item.limit}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 增收赋能类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
<view class="title">增收赋能类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
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>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showAdImg" mode="center" bgColor="transparent">
|
||||
<view class="ad-lay">
|
||||
@@ -70,7 +166,7 @@
|
||||
</view>
|
||||
</u-count-down>
|
||||
</view>
|
||||
<image class="ad-img" :src="layAdImg" mode="heightFix"></image>
|
||||
<image class="ad-img" :src="layAdImg" mode="widthFix"></image>
|
||||
<view class="ad-btn">
|
||||
<u-icon
|
||||
class="ad-btn-icon"
|
||||
@@ -86,12 +182,23 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { index, bigfive } from '@/apis/interfaces/index.js'
|
||||
import { region } from '@/apis/interfaces/address.js'
|
||||
import { categories, jf, index } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
theTabs : [
|
||||
{ category_id: '', title: '全部' }
|
||||
],
|
||||
theTabId : '',
|
||||
theTabStyle : {
|
||||
left: '0%'
|
||||
},
|
||||
bannerArr : [],
|
||||
notice : [],
|
||||
jfList:[],
|
||||
defaultViewId:'',
|
||||
zfList:[],
|
||||
// 首次进入弹窗
|
||||
timeData : {},
|
||||
first : 1,
|
||||
@@ -101,27 +208,53 @@
|
||||
appMenus : {
|
||||
cases : [],
|
||||
service : []
|
||||
},
|
||||
free : {
|
||||
has_free: false,
|
||||
cover : ""
|
||||
},
|
||||
bigfiveArr : [], //五大板块
|
||||
moduleShow : false //展开默认
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getIndex();
|
||||
|
||||
this.bigfiveIndex();
|
||||
this.getCategory()
|
||||
this.getJf()
|
||||
this.getIndex()
|
||||
},
|
||||
methods: {
|
||||
onToast(){
|
||||
uni.showToast({
|
||||
title: '即将开放,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
},
|
||||
// 获取金法列表
|
||||
getJf(){
|
||||
let params = {
|
||||
category_id:this.theTabId
|
||||
}
|
||||
jf(params).then(res=>{
|
||||
if(res.length>0){
|
||||
setTimeout(()=>{
|
||||
this.defaultViewId = '_tabs'+res[0].service_id
|
||||
},300)
|
||||
}
|
||||
this.jfList = res
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 点击金法产品跳转金法详情
|
||||
sevicesClick(id){
|
||||
uni.navigateTo({
|
||||
url:'/pages/index/introduces?id='+id
|
||||
})
|
||||
},
|
||||
// 首页轮播图及公告
|
||||
getIndex(){
|
||||
index().then(res=>{
|
||||
this.bannerArr = res.bannners
|
||||
this.appMenus = res.app_menus
|
||||
this.free = res.free
|
||||
let list = []
|
||||
res.notices.map(item=>{
|
||||
let params = item.user.name + ' ' + item.user.text
|
||||
@@ -145,36 +278,31 @@
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 最新五大板块
|
||||
bigfiveIndex(){
|
||||
bigfive({parent_id: 0}).then(res=>{
|
||||
let esArr = res
|
||||
esArr.forEach((item, index) => {
|
||||
item.schemesShow = false
|
||||
})
|
||||
this.bigfiveArr = esArr
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 点击查看全部
|
||||
moduleClick(index) {
|
||||
this.bigfiveArr[index].schemesShow = !this.bigfiveArr[index].schemesShow
|
||||
},
|
||||
|
||||
// 跳转
|
||||
onNav(name, children){
|
||||
this.$Router.push({name, params:{children:encodeURIComponent(JSON.stringify(children))}})
|
||||
},
|
||||
|
||||
},
|
||||
// 获取金法分类列表
|
||||
getCategory(){
|
||||
categories().then(res=>{
|
||||
this.theTabs = this.theTabs.concat(res)
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 金法产品筛选
|
||||
onTheTab(e){
|
||||
if(e.category_id != this.theTabId){
|
||||
let index = this.theTabs.findIndex(val => val.category_id === e.category_id)
|
||||
this.theTabStyle = {
|
||||
left: index * 25 + '%'
|
||||
}
|
||||
this.theTabId = e.category_id
|
||||
this.getJf()
|
||||
}
|
||||
},
|
||||
// 点击轮播图
|
||||
swiperClick(e){
|
||||
// console.log(this.bannerArr[e])
|
||||
@@ -199,8 +327,8 @@
|
||||
}
|
||||
// ad弹窗广告
|
||||
.ad-lay{
|
||||
width: 70vw;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
.ad-down{
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
@@ -218,7 +346,7 @@
|
||||
}
|
||||
}
|
||||
.ad-img{
|
||||
height: 75vh;
|
||||
width: 70vw;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.ad-btn{
|
||||
@@ -281,27 +409,202 @@
|
||||
}
|
||||
// 自由服务包
|
||||
.free{
|
||||
padding: $padding $padding 0 $padding;
|
||||
.free-img{ width: 100%; vertical-align: top; }
|
||||
}
|
||||
|
||||
// 模块
|
||||
.block {padding: $padding;box-sizing: border-box;width: 100%;}
|
||||
.module {border-radius: $radius;padding: $padding - 10 $padding $padding $padding + 10;box-sizing: border-box; margin-bottom: $margin;}
|
||||
.module.moduleRed {background-color: #fff1f2;color: #c92453;}
|
||||
.module.moduleYellow {background-color: #fff7f2;color: #ff7b29;}
|
||||
.module.moduleBlue {background-color: #eaf4f3;color: #0dc8b3;}
|
||||
.module.moduleGreen {background-color: #eff5ee;color: #1fba05;}
|
||||
.module.modulePurple {background-color: #f2eef5;color: #a13dec;}
|
||||
.moduleCont {display: flex;}
|
||||
.moduleCont-text {width: calc(100% - 170rpx);}
|
||||
.moduleCont-text-name {font-weight: bold; font-size: $title-size + 12; padding: 20rpx 0 10rpx;}
|
||||
.moduleCont-text-tips {font-size: $title-size + 2;}
|
||||
.moduleCont-img {width: 170rpx;}
|
||||
.moduleInfo {color: #666666;font-size: $title-size-m; line-height: 48rpx; display: flex;}
|
||||
.moduleInfo-text {width: calc(100% - 28rpx); padding-right: 20rpx; box-sizing: border-box; height: 60rpx;overflow: hidden;}
|
||||
.moduleInfo-text.active {height: auto;}
|
||||
.moduleInfo-more {width: 24rpx; margin-top: 15rpx; transition: .2s;}
|
||||
.moduleInfo-more.active {transform: rotate(180deg);}
|
||||
|
||||
padding: $padding $padding $padding - 10 $padding ;
|
||||
.free-img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
// 增收赋能类
|
||||
.closed{
|
||||
background: white;
|
||||
margin: 0 $margin;
|
||||
border-radius: 35rpx;
|
||||
padding-bottom: 10rpx;
|
||||
.closed-item{
|
||||
display: flex;
|
||||
margin-bottom: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: solid 1rpx #f8f8f8;
|
||||
&:last-child{
|
||||
margin-bottom: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
.closed-cover{
|
||||
width: 168rpx;
|
||||
height: 168rpx;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.closed-text{
|
||||
width: calc(100% - 168rpx);
|
||||
padding-left: 30rpx;
|
||||
box-sizing: border-box;
|
||||
.closed-title{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.closed-subtitle{
|
||||
color: gray;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.closed-price{
|
||||
color: #d51959;
|
||||
font-size: 34rpx;
|
||||
line-height: 40rpx;
|
||||
margin-top: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 诉讼委托类
|
||||
.lawsuit{
|
||||
padding: 0 20rpx $padding;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
&-item{
|
||||
background: #F6F6F6;
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
width: calc(50% - 20rpx);
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
&-cover{
|
||||
width: 138rpx;
|
||||
height: 138rpx;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
&-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-weight: bold;
|
||||
}
|
||||
}
|
||||
// 经法
|
||||
.the-tabs{
|
||||
background: #ececec;
|
||||
margin: 0 $margin;
|
||||
height: 60rpx;
|
||||
border-radius: 35rpx;
|
||||
display: flex;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
width: calc(100% - 60rpx);
|
||||
&-item{
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 25%;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
color: #454545;
|
||||
transition: all .4s;
|
||||
display: inline-block;
|
||||
&.active{
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
&-acitve-block{
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
height: 60rpx;
|
||||
background: linear-gradient( to right, #d51959, #ec7247);
|
||||
border-radius: 35rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
transition: all .4s;
|
||||
}
|
||||
}
|
||||
.the-flex{
|
||||
padding: $padding 20rpx;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
&-item{
|
||||
width: calc(33% - 20rpx);
|
||||
margin: 0 10rpx;
|
||||
display: inline-block;
|
||||
&:last-child{
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.cover{
|
||||
width: 100%;
|
||||
padding-top: 100%;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
color: #111111;
|
||||
padding: 10rpx 0;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.price{
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
color: #d51959;
|
||||
font-size: 32rpx;
|
||||
text{
|
||||
font-size: 80%;
|
||||
}
|
||||
.ding{
|
||||
font-size: 64%;
|
||||
margin-left: 4rpx;
|
||||
position: relative;
|
||||
bottom: 2rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 模块
|
||||
.block{
|
||||
background-color: white;
|
||||
border-radius: $radius;
|
||||
margin: 0 $margin $margin;
|
||||
.block-title{
|
||||
padding: 0 $padding;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.title{
|
||||
font-weight: bold;
|
||||
color: #111111;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.more{
|
||||
background-color: #ececec;
|
||||
font-size: 28rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 25rpx;
|
||||
width: 120rpx;
|
||||
padding-left: 10rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
color: #454545;
|
||||
.more-icon{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -1,141 +0,0 @@
|
||||
<template>
|
||||
<view class="from-content">
|
||||
<view class="from-block" v-if="pickerArr.length > 0" >
|
||||
<view class="from-block-item">
|
||||
<label>办理业务</label>
|
||||
<picker class="from-block-val" :range="pickerArr" :value="pickerIndex" range-key="title" @change="pickerIndex = $event.detail.value">
|
||||
<view class="from-block-picker nowrap">{{pickerArr[pickerIndex].title}}
|
||||
<u-icon class="from-block-picker-icon" name="arrow-down" color="#555" size="15"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>业务价格</label>
|
||||
<view class="from-block-val price">¥{{pickerArr[pickerIndex].price}}</view>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>业务描述</label>
|
||||
<view class="from-block-val">{{pickerArr[pickerIndex].subtitle}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="from-block">
|
||||
<view class="from-block-item">
|
||||
<label>客户姓名</label>
|
||||
<input class="from-block-val from-block-input" placeholder="请输入客户姓名" v-model="name" />
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>手机号码</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户手机号码" v-model="phone" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="from-btn" @click="onSubmit">提交办理</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { accountManagement, accountFrom } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pickerArr : [],
|
||||
pickerIndex : 0,
|
||||
name : '',
|
||||
phone : ''
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
accountManagement().then(res => {
|
||||
uni.hideLoading()
|
||||
this.pickerArr = res;
|
||||
this.pickerIndex = res.findIndex(val => val.id == this.$Route.query.id)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 提交表单
|
||||
onSubmit(){
|
||||
let { name, phone, pickerArr, pickerIndex } = this
|
||||
|
||||
console.log(pickerArr[pickerIndex])
|
||||
|
||||
if(name === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户姓名',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(phone === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户手机号码',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: "提交中...",
|
||||
mask : true
|
||||
})
|
||||
accountFrom({
|
||||
name : name,
|
||||
mobile : phone
|
||||
}, pickerArr[pickerIndex].id).then(res => {
|
||||
let { order_type, order_id, order_no } = 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">
|
||||
.from-content{
|
||||
min-height: 100vh;
|
||||
padding: 30rpx;
|
||||
background: #f7f8f9;
|
||||
}
|
||||
.from-block{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.from-block-item{
|
||||
min-height: 70rpx;
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
border-bottom: solid 1rpx #f3f3f3;
|
||||
padding: 15rpx 0;
|
||||
&:last-child{ border: none; }
|
||||
label{ width: 200rpx; line-height: 70rpx; }
|
||||
.from-block-val{ width: calc(100% - 200rpx); text-align: right; line-height: 70rpx;
|
||||
&.price{ color: $main-color; font-weight: bold; }
|
||||
}
|
||||
.from-block-input{ height: 70rpx; font-size: 32rpx; }
|
||||
.from-block-picker{ padding-right: 50rpx; position: relative; }
|
||||
.from-block-picker-icon{ position: absolute; right: 0; top: 50%; margin-top: -15rpx; }
|
||||
}
|
||||
.from-btn{ width: 100%; background-color: $main-color; color: white; line-height: 95rpx; height: 95rpx; border-radius: 45rpx; font-size: 32rpx; font-weight: bold;
|
||||
&::after{ display: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -1,151 +0,0 @@
|
||||
<template>
|
||||
<view class="from-content">
|
||||
<view class="from-block" v-if="pickerArr.length > 0" >
|
||||
<view class="from-block-item">
|
||||
<label>办理业务</label>
|
||||
<picker class="from-block-val" :range="pickerArr" :value="pickerIndex" range-key="title" @change="pickerIndex = $event.detail.value">
|
||||
<view class="from-block-picker nowrap">{{pickerArr[pickerIndex].title}}
|
||||
<u-icon class="from-block-picker-icon" name="arrow-down" color="#555" size="15"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>业务描述</label>
|
||||
<view class="from-block-val">{{pickerArr[pickerIndex].subtitle}}</view>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>服务费</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户服务费(元)" v-model="price" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="from-block">
|
||||
<view class="from-block-item">
|
||||
<label>客户姓名</label>
|
||||
<input class="from-block-val from-block-input" placeholder="请输入客户姓名" v-model="name" />
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>手机号码</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户手机号码" v-model="phone" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="from-btn" @click="onSubmit">提交办理</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { customTypes,customTypeStore } from '@/apis/interfaces/custom.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pickerArr : [],
|
||||
pickerIndex : 0,
|
||||
name : '',
|
||||
phone : '',
|
||||
price : ''
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
customTypes().then(res => {
|
||||
console.log(res)
|
||||
uni.hideLoading()
|
||||
this.pickerArr = res;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 提交表单
|
||||
onSubmit(){
|
||||
let { name, phone, pickerArr, pickerIndex,price} = this
|
||||
|
||||
if(price === ''){
|
||||
uni.showToast({
|
||||
title: '请输入服务费金额',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(name === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户姓名',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(phone === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户手机号码',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: "提交中...",
|
||||
mask : true
|
||||
})
|
||||
let params = {
|
||||
name : name,
|
||||
mobile : phone,
|
||||
price : price
|
||||
}
|
||||
customTypeStore(pickerArr[pickerIndex].id,params).then(res => {
|
||||
let { order_type, order_id, order_no } = 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',
|
||||
mask:true,
|
||||
duration:3000
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.from-content{
|
||||
min-height: 100vh;
|
||||
padding: 30rpx;
|
||||
background: #f7f8f9;
|
||||
}
|
||||
.from-block{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.from-block-item{
|
||||
min-height: 70rpx;
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
border-bottom: solid 1rpx #f3f3f3;
|
||||
padding: 15rpx 0;
|
||||
&:last-child{ border: none; }
|
||||
label{ width: 200rpx; line-height: 70rpx; }
|
||||
.from-block-val{ width: calc(100% - 200rpx); text-align: right; line-height: 70rpx;
|
||||
&.price{ color: $main-color; font-weight: bold; }
|
||||
}
|
||||
.from-block-input{ height: 70rpx; font-size: 32rpx; }
|
||||
.from-block-picker{ padding-right: 50rpx; position: relative; }
|
||||
.from-block-picker-icon{ position: absolute; right: 0; top: 50%; margin-top: -15rpx; }
|
||||
}
|
||||
.from-btn{ width: 100%; background-color: $main-color; color: white; line-height: 95rpx; height: 95rpx; border-radius: 45rpx; font-size: 32rpx; font-weight: bold;
|
||||
&::after{ display: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -1,141 +0,0 @@
|
||||
<template>
|
||||
<view class="from-content">
|
||||
<view class="from-block" v-if="pickerArr.length > 0" >
|
||||
<view class="from-block-item">
|
||||
<label>办理业务</label>
|
||||
<picker class="from-block-val" :range="pickerArr" :value="pickerIndex" range-key="title" @change="pickerIndex = $event.detail.value">
|
||||
<view class="from-block-picker nowrap">{{pickerArr[pickerIndex].title}}
|
||||
<u-icon class="from-block-picker-icon" name="arrow-down" color="#555" size="15"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>业务价格</label>
|
||||
<view class="from-block-val price">¥{{pickerArr[pickerIndex].price}}</view>
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>业务描述</label>
|
||||
<view class="from-block-val">{{pickerArr[pickerIndex].subtitle}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="from-block">
|
||||
<view class="from-block-item">
|
||||
<label>客户姓名</label>
|
||||
<input class="from-block-val from-block-input" placeholder="请输入客户姓名" v-model="name" />
|
||||
</view>
|
||||
<view class="from-block-item">
|
||||
<label>手机号码</label>
|
||||
<input class="from-block-val from-block-input" type="number" placeholder="请输入客户手机号码" v-model="phone" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="from-btn" @click="onSubmit">提交办理</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { delegation, delegationFrom } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pickerArr : [],
|
||||
pickerIndex : 0,
|
||||
name : '',
|
||||
phone : ''
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
delegation().then(res => {
|
||||
uni.hideLoading()
|
||||
this.pickerArr = res;
|
||||
this.pickerIndex = res.findIndex(val => val.id == this.$Route.query.id)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 提交表单
|
||||
onSubmit(){
|
||||
let { name, phone, pickerArr, pickerIndex } = this
|
||||
if(name === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户姓名',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(phone === ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户手机号码',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: "提交中...",
|
||||
mask : true
|
||||
})
|
||||
delegationFrom({
|
||||
name : name,
|
||||
mobile : phone
|
||||
}, pickerArr[pickerIndex].id).then(res => {
|
||||
let { order_type, order_id, order_no } = res;
|
||||
this.$Router.replace({
|
||||
name : 'Pay',
|
||||
params : {
|
||||
paytype : 'synthesize',
|
||||
orderId : order_id,
|
||||
orderType : order_type.replace(/\\/g, '-')
|
||||
},
|
||||
})
|
||||
}).catch(err => {
|
||||
|
||||
console.log(err)
|
||||
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.from-content{
|
||||
min-height: 100vh;
|
||||
padding: 30rpx;
|
||||
background: #f7f8f9;
|
||||
}
|
||||
.from-block{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.from-block-item{
|
||||
min-height: 70rpx;
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
border-bottom: solid 1rpx #f3f3f3;
|
||||
padding: 15rpx 0;
|
||||
&:last-child{ border: none; }
|
||||
label{ width: 200rpx; line-height: 70rpx; }
|
||||
.from-block-val{ width: calc(100% - 200rpx); text-align: right; line-height: 70rpx;
|
||||
&.price{ color: $main-color; font-weight: bold; }
|
||||
}
|
||||
.from-block-input{ height: 70rpx; font-size: 32rpx; }
|
||||
.from-block-picker{ padding-right: 50rpx; position: relative; }
|
||||
.from-block-picker-icon{ position: absolute; right: 0; top: 50%; margin-top: -15rpx; }
|
||||
}
|
||||
.from-btn{ width: 100%; background-color: $main-color; color: white; line-height: 95rpx; height: 95rpx; border-radius: 45rpx; font-size: 32rpx; font-weight: bold;
|
||||
&::after{ display: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -1,65 +0,0 @@
|
||||
<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>
|
||||
@@ -1,292 +0,0 @@
|
||||
<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>
|
||||
@@ -1,190 +0,0 @@
|
||||
<template>
|
||||
<view class="create-page">
|
||||
<view class="create-title">创建新的订单</view>
|
||||
<view class="create-submit">完善创建订单用户与订单类型</view>
|
||||
<view class="create-from">
|
||||
<view class="create-type">
|
||||
<view class="create-type-title">选择业务类型</view>
|
||||
<block v-for="(item, index) in businessArr" :key="index">
|
||||
<view class="create-type-item" :class="{'active': (item.business_id == businessId || item.synthesis_id == businessId) && item.self_type == selfType}" @click="onBusiness(item.business_id || item.synthesis_id, item.self_type)">
|
||||
<image class="create-type-icon" :src="item.cover_url || item.cover" mode="aspectFill"></image>
|
||||
<view class="create-type-text">
|
||||
<view class="title nowrap">{{item.title || '-'}}</view>
|
||||
<view class="submit nowrap">{{item.self_type == 'synthesis' ? '相关个人法律咨询服务' : item.subtitle || '-'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="create-btn">
|
||||
<button size="default" @click="onNext()">下一步</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { business } from '@/apis/interfaces/offline.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
businessArr: [],
|
||||
businessId : '',
|
||||
selfType : '',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
business().then(res => {
|
||||
this.businessArr = res
|
||||
this.businessId = res[0].business_id
|
||||
this.selfType = res[0].self_type
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 选择业务类型
|
||||
onBusiness(id, type){
|
||||
this.selfType = type
|
||||
this.businessId = id
|
||||
},
|
||||
// 创建业务单
|
||||
onNext(){
|
||||
let busines = this.businessArr.find(val => val.business_id === this.businessId)
|
||||
this.$Router.replace({
|
||||
name : 'OfflineGenerate',
|
||||
params : {
|
||||
businessTitle : busines.title,
|
||||
businessId : busines.business_id
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.create-page{
|
||||
padding: 50rpx;
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
.create-title{
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
.create-submit{
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.create-from{
|
||||
padding-top: 50rpx;
|
||||
}
|
||||
// 目标用户
|
||||
.create-user{
|
||||
background: #f8f8f8;
|
||||
border-radius: $radius;
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.cover{
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
background: white;
|
||||
border-radius: $radius;
|
||||
margin-right: 20rpx;
|
||||
border: dashed 1rpx #ddd;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
.cover-src{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.nickname{
|
||||
width: calc(100% - 188rpx);
|
||||
line-height: 70rpx;
|
||||
font-size: 32rpx;
|
||||
&.hide{
|
||||
color: gray;
|
||||
}
|
||||
}
|
||||
.icon{
|
||||
width: 80rpx;
|
||||
text-align: right;
|
||||
.icon-u{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 选择业务类型
|
||||
.create-type{
|
||||
padding-top: 50rpx;
|
||||
.create-type-title{
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
color: gray;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.create-type-item{
|
||||
background: #f8f8f8;
|
||||
border-radius: $radius;
|
||||
padding: 30rpx;
|
||||
margin-top: 30rpx;
|
||||
border:solid 1rpx #f8f8f8;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.create-type-icon{
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
margin-right: $margin;
|
||||
background-color: white;
|
||||
border-radius: $radius;
|
||||
}
|
||||
.create-type-text{
|
||||
line-height: 40rpx;
|
||||
.title{
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.submit{
|
||||
color: gray;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
&.active{
|
||||
border:solid 1rpx $main-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 按钮
|
||||
.create-btn{
|
||||
margin-top: 90rpx;
|
||||
button[size="default"]{
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
background: $main-color;
|
||||
font-size: 32rpx;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,554 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="block">
|
||||
<view class="block-title">客户信息</view>
|
||||
<view class="block-item">
|
||||
<label class="block-item-label"><text>*</text>客户姓名</label>
|
||||
<view class="inputs-flex">
|
||||
<input
|
||||
class="text-input"
|
||||
v-model="user"
|
||||
placeholder="请输入客户姓名"
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="block-item">
|
||||
<label class="block-item-label"><text>*</text>手机号码</label>
|
||||
<view class="inputs-flex">
|
||||
<input
|
||||
class="text-input"
|
||||
v-model="phone"
|
||||
type="number"
|
||||
placeholder="请输入客户手机号码"
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="serviceArr.length > 0">
|
||||
<view class="block" v-for="(item, index) in serviceArr" :key="index">
|
||||
<view class="block-title">
|
||||
{{item.title}}
|
||||
<view class="block-remove" @click="onRemove(index)" v-if="serviceArr.length > 1">
|
||||
<u-icon class="block-remove-icon" size="15" color="#446EFE" name="minus-circle"></u-icon>移出
|
||||
</view>
|
||||
</view>
|
||||
<!-- 机构 -->
|
||||
<view class="block-item">
|
||||
<label class="block-item-label"><text>*</text>机构</label>
|
||||
<view class="institution-picker" @click="onShowInstitution(item.institution, item, index)">
|
||||
<view class="institution-picker-text nowrap">{{item.institution[item.institutionIndex].title}}</view>
|
||||
<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>
|
||||
<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>
|
||||
<u-icon size="12" color="#999" name="arrow-down-fill"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<!-- 表单信 -->
|
||||
<view
|
||||
class="block-item"
|
||||
v-for="(formItem, formIndex) in item.froms"
|
||||
:key="formIndex"
|
||||
v-if="item.subVal[formItem.pre_key] == formItem.pre_value"
|
||||
>
|
||||
<block v-if="formItem.type == 'price' || formItem.type == 'number' || formItem.type == 'day'">
|
||||
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
|
||||
<view class="inputs-flex">
|
||||
<input
|
||||
class="input"
|
||||
v-model="item.subVal[formItem.key]"
|
||||
:type="formItem.type == 'price' ? 'digit': 'number'"
|
||||
:placeholder="'请输入' + formItem.title"
|
||||
>
|
||||
<text class="unit" v-if="formItem.type == 'price'">元</text>
|
||||
<text class="unit" v-if="formItem.type == 'number' || formItem.type == 'day'">天</text>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="formItem.type == 'radio'">
|
||||
<view class="radio-flex">
|
||||
<view class="radio-title"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</view>
|
||||
<radio-group @change="item.subVal[formItem.key] = $event.detail.value">
|
||||
<label class="radio-label" v-for="(radioItem, radioIndex) in formItem.options" :key="radioIndex">
|
||||
<radio class="radio-input" color="#446EFE" :checked="radioIndex === item.subVal[formItem.key]" :value="radioIndex"/>{{radioItem}}
|
||||
</label>
|
||||
</radio-group>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="formItem.type == 'checkbox'">
|
||||
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}(可多选)</label>
|
||||
<checkbox-group @change="item.subVal[formItem.key] = $event.detail.value">
|
||||
<label class="checkbox-item" v-for="(checkboxItem, checkboxIndex) in formItem.options">
|
||||
<checkbox class="checkbox-input" :value="checkboxIndex" color="#446EFE"></checkbox>{{checkboxItem}}
|
||||
</label>
|
||||
</checkbox-group>
|
||||
</block>
|
||||
<block v-if="formItem.type == 'select'">
|
||||
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
|
||||
<picker :range="formItem.options" :value="item.subVal[formItem.key]" @change="item.subVal[formItem.key] = $event.detail.value">
|
||||
<view class="institution-picker">
|
||||
<view class="institution-picker-text nowrap" :class="{'institution-picker-gray': item.subVal[formItem.key] == 0}">{{formItem.options[item.subVal[formItem.key]]}}</view>
|
||||
<u-icon size="12" color="#999" name="arrow-down-fill"></u-icon>
|
||||
</view>
|
||||
</picker>
|
||||
</block>
|
||||
<block v-if="formItem.type == 'textarea'">
|
||||
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
|
||||
<textarea
|
||||
class="textarea"
|
||||
:placeholder="'请输入' + formItem.title"
|
||||
v-model="item.subVal[formItem.key]"
|
||||
></textarea>
|
||||
</block>
|
||||
<block v-if="formItem.type == 'text'">
|
||||
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
|
||||
<view class="inputs-flex">
|
||||
<input
|
||||
class="text-input"
|
||||
v-model="item.subVal[formItem.key]"
|
||||
:placeholder="'请输入' + formItem.title"
|
||||
>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="footer">
|
||||
<view class="footer-text">温馨提示:为了匹配最准确方案,请如实填写信息</view>
|
||||
<view class="footer-flex">
|
||||
<button @click="onAdd">添加新信息</button>
|
||||
<button @click="onSubmit">下一步</button>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 机构弹出层 -->
|
||||
<oct-mechanism-picker
|
||||
ref="institutionPicker"
|
||||
title="选择办理机构"
|
||||
:columns="columns"
|
||||
@choose="institutionChange"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { institution, business, institutionType, submitStore } from '@/apis/interfaces/offline.js';
|
||||
import { octpicker } from '@/components/oct-picker.vue'
|
||||
export default {
|
||||
components: { octpicker },
|
||||
data() {
|
||||
return {
|
||||
user : '',
|
||||
phone : '',
|
||||
columns : [],
|
||||
businessArr: [],
|
||||
serviceArr : [],
|
||||
old : {},
|
||||
cIndex : 0
|
||||
};
|
||||
},
|
||||
created() {
|
||||
let { businessId, businessTitle } = this.$Route.query
|
||||
this.getInstitution(businessId, businessTitle)
|
||||
this.getBusiness()
|
||||
},
|
||||
methods: {
|
||||
// 显示选择机构
|
||||
onShowInstitution(e, item, index){
|
||||
this.columns = e
|
||||
this.old = item
|
||||
this.cIndex = index
|
||||
this.$refs.institutionPicker.open()
|
||||
},
|
||||
// 移出选项
|
||||
onRemove(index){
|
||||
this.serviceArr.splice(index, 1)
|
||||
},
|
||||
// 获取主业务
|
||||
getBusiness(){
|
||||
business().then(res => {
|
||||
this.businessArr = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取主业务机构
|
||||
getInstitution(businessId, businessTitle){
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
})
|
||||
institution(businessId).then(institutionArr => {
|
||||
let forms = this.getForms(institutionArr[0].institution_id)
|
||||
forms.then(val => {
|
||||
this.servicePush( val, institutionArr, businessTitle, businessId )
|
||||
})
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 获取业务类型
|
||||
async getForms(businessId){
|
||||
return await institutionType(businessId)
|
||||
},
|
||||
// 组织业务表单数据
|
||||
servicePush( vals, institutionArr, businessTitle, businessId ){
|
||||
let fromType = [],
|
||||
fromsVal = {},
|
||||
froms = vals[0].params
|
||||
|
||||
fromType = vals.map((val) => {
|
||||
return {
|
||||
type_id: val.type_id,
|
||||
title : val.title
|
||||
}
|
||||
})
|
||||
froms.map(val => {
|
||||
if(val.type === 'checkbox'){
|
||||
fromsVal[val.key] = []
|
||||
}else if(val.type === 'select'){
|
||||
fromsVal[val.key] = 0
|
||||
}else {
|
||||
fromsVal[val.key] = ''
|
||||
}
|
||||
})
|
||||
// 新增卡片
|
||||
this.serviceArr.push({
|
||||
title : businessTitle,
|
||||
institution : institutionArr,
|
||||
allInstitution : vals,
|
||||
institutionIndex: 0,
|
||||
fromType : fromType,
|
||||
fromIndex : 0,
|
||||
froms : froms,
|
||||
subVal : {
|
||||
business_id : Number(businessId),
|
||||
institution_id : institutionArr[0].institution_id,
|
||||
type_id : fromType[0].type_id,
|
||||
...fromsVal
|
||||
}
|
||||
})
|
||||
},
|
||||
// 机构变更更新业务
|
||||
institutionChange(e){
|
||||
let index = this.cIndex
|
||||
let old = this.old
|
||||
let value = old.institution.findIndex(val => val.institution_id === e.val.institution_id);
|
||||
let businessId = old.subVal.business_id
|
||||
|
||||
// 获取机构的子业务类型
|
||||
let forms = this.getForms(old.institution[value].institution_id)
|
||||
forms.then(institutionVal => {
|
||||
let newObj = old
|
||||
let fromType = []
|
||||
let params = institutionVal[0].params
|
||||
let paramsVal = []
|
||||
|
||||
// 业务类型
|
||||
fromType = institutionVal.map(val => {
|
||||
return {
|
||||
type_id: val.type_id,
|
||||
title : val.title
|
||||
}
|
||||
})
|
||||
// 提交字段
|
||||
params.map(val => {
|
||||
if(val.type === 'checkbox'){
|
||||
paramsVal[val.key] = []
|
||||
}else if(val.type === 'select'){
|
||||
paramsVal[val.key] = 0
|
||||
}else {
|
||||
paramsVal[val.key] = ''
|
||||
}
|
||||
})
|
||||
// 更新数据
|
||||
newObj.allInstitution = institutionVal;
|
||||
newObj.institutionIndex = value;
|
||||
newObj.fromType = fromType;
|
||||
newObj.fromIndex = 0;
|
||||
newObj.froms = params;
|
||||
newObj.subVal = {
|
||||
business_id : old.subVal.business_id,
|
||||
institution_id : old.institution[value].institution_id,
|
||||
type_id : fromType[0].type_id,
|
||||
...paramsVal
|
||||
}
|
||||
this.$set(this.serviceArr, index, newObj)
|
||||
})
|
||||
},
|
||||
// 业务变更
|
||||
businessChange(e, old, index){
|
||||
let { value } = e.detail;
|
||||
let businessId = old.subVal.business_id;
|
||||
let allInstitution = old.allInstitution
|
||||
let newObj = old
|
||||
let params = allInstitution[value].params
|
||||
let paramsVal = {}
|
||||
params.map(val => {
|
||||
if(val.type === 'checkbox'){
|
||||
paramsVal[val.key] = []
|
||||
}else if(val.type === 'select'){
|
||||
paramsVal[val.key] = 0
|
||||
}else {
|
||||
paramsVal[val.key] = ''
|
||||
}
|
||||
})
|
||||
newObj.fromIndex = value;
|
||||
newObj.froms = params;
|
||||
newObj.subVal = {
|
||||
business_id : old.subVal.business_id,
|
||||
institution_id : old.subVal.institution_id,
|
||||
type_id : allInstitution[value].type_id,
|
||||
...paramsVal
|
||||
}
|
||||
this.$set(this.serviceArr, index, newObj)
|
||||
},
|
||||
// 添加主业务
|
||||
onAdd(){
|
||||
let businessTitle = this.businessArr.map(val => {
|
||||
return val.title
|
||||
})
|
||||
uni.showActionSheet({
|
||||
itemList: businessTitle,
|
||||
success : res=> {
|
||||
let { tapIndex } = res;
|
||||
this.getInstitution(this.businessArr[tapIndex].business_id, businessTitle[tapIndex])
|
||||
}
|
||||
})
|
||||
},
|
||||
// 提交订单数据
|
||||
onSubmit(){
|
||||
let dataVal = this.serviceArr.map(val => {
|
||||
return val.subVal
|
||||
})
|
||||
if(this.name == ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户姓名',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(this.phone == ''){
|
||||
uni.showToast({
|
||||
title: '请输入客户手机号码',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '提交中...',
|
||||
mask : true
|
||||
})
|
||||
submitStore({
|
||||
username: this.user,
|
||||
mobileNo: this.phone,
|
||||
data : dataVal,
|
||||
channel : 'app'
|
||||
}).then(res => {
|
||||
let { offline_order_id } = res;
|
||||
uni.hideLoading()
|
||||
this.$Router.replace({name: 'OfflineService', params: { orderId: offline_order_id }})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 260rpx;
|
||||
}
|
||||
// 表单模块
|
||||
.block{
|
||||
background: white;
|
||||
border-radius: $radius;
|
||||
margin: 0 30rpx 20rpx;
|
||||
padding: 30rpx;
|
||||
.block-title{
|
||||
font-weight: bold;
|
||||
line-height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.block-remove{
|
||||
background: rgba(68, 110, 254, .1);
|
||||
color: #446EFE;
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
border-radius: 25rpx;
|
||||
padding: 0 25rpx 0 20rpx;
|
||||
&-icon{
|
||||
display: inline-block;
|
||||
margin-right: 10rpx;
|
||||
margin-bottom: 5rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block-item{
|
||||
padding: 15rpx 0;
|
||||
&-label{
|
||||
padding-bottom: 10rpx;
|
||||
display: block;
|
||||
font-size: 30rpx;
|
||||
color: #111111;
|
||||
text{
|
||||
color: #FF0000;
|
||||
font-size: 28rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
// picker
|
||||
.institution-picker{
|
||||
background: #F6F6F6;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 30rpx 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
&-text{
|
||||
width: calc( 100% - 60rpx );
|
||||
}
|
||||
&-gray{
|
||||
color: gray;
|
||||
}
|
||||
}
|
||||
// input
|
||||
.inputs-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.input{
|
||||
background: #F6F6F6;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 30rpx 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
box-sizing: border-box;
|
||||
width: calc( 100% - 64rpx );
|
||||
}
|
||||
.unit{
|
||||
width: 64rpx;
|
||||
text-align: right;
|
||||
}
|
||||
.text-input{
|
||||
background: #F6F6F6;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 30rpx 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
// radio
|
||||
.radio-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10rpx 0;
|
||||
.radio-title{
|
||||
font-size: 30rpx;
|
||||
color: #111111;
|
||||
text{
|
||||
color: #FF0000;
|
||||
font-size: 28rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
.radio-label{
|
||||
margin-left: 20rpx;
|
||||
color: #999999;
|
||||
.radio-input{
|
||||
transform:scale(0.7);
|
||||
}
|
||||
}
|
||||
}
|
||||
// checkbox
|
||||
.checkbox-item{
|
||||
display: block;
|
||||
color: #999999;
|
||||
line-height: 70rpx;
|
||||
.checkbox-input{
|
||||
transform:scale(0.7);
|
||||
vertical-align: middle;
|
||||
margin-top: -5rpx;
|
||||
}
|
||||
}
|
||||
// textarea
|
||||
.textarea{
|
||||
background: #F6F6F6;
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx 30rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 40rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
// footer
|
||||
.footer{
|
||||
box-shadow: 0 0 10rpx 0 rgba(0, 0, 0, .05);
|
||||
background-color: white;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
padding: 30rpx 30rpx 70rpx;
|
||||
.footer-text{
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #FEA044;
|
||||
line-height: 40rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.footer-flex{
|
||||
display: flex;
|
||||
margin: 0 -10rpx;
|
||||
button{
|
||||
width: calc(50% - 20rpx);
|
||||
margin: 0 10rpx;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
border-radius: $radius-lg;
|
||||
font-size: 32rpx;
|
||||
border:solid 1rpx $main-color;
|
||||
background-color: white;
|
||||
color: $main-color;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
&:last-child{
|
||||
background-color: $main-color;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,337 +0,0 @@
|
||||
<template>
|
||||
<view class="content" v-if="order_no != ''">
|
||||
<view class="order-header"></view>
|
||||
<!-- 订单主要信息 -->
|
||||
<view class="order-back order-flex order-info">
|
||||
<view class="order-state">{{statusText.text}}</view>
|
||||
<view class="order-item">
|
||||
<label>服务类型</label>
|
||||
<view class="order-value nowrap">
|
||||
<text class="order-type" v-for="(item, index) in item_type" :key="index" v-if="item.number > 0">{{item.title}}×{{item.number}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-items">
|
||||
<view class="order-items-flex" v-for="(item, index) in items" :key="index" @click="$Router.push({ name: 'OrderSchemes', params: { id: item.business_order_item_id }})">
|
||||
<label class="nowrap">{{item.institution.title}}({{item.business_type.title}})</label>
|
||||
<view class="order-items-type nowrap">¥{{item.price}}<uni-icons type="right" color="gray" size="14px"></uni-icons></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>欠款总金额</label>
|
||||
<view class="order-value order-value-price nowrap">¥{{serviceTotal}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 订单服务包信息 -->
|
||||
<view class="order-back order-flex" v-if="services.length > 0">
|
||||
<view class="order-title">服务包</view>
|
||||
<view class="order-serve">
|
||||
<block v-for="(item, index) in services" :key="index">
|
||||
<view class="serve-header">
|
||||
{{item.title}}<text>¥{{item.price}}</text>
|
||||
</view>
|
||||
<view class="serve-item" v-for="(citem, cindex) in item.items" :key="cindex">
|
||||
<view class="services-flex">
|
||||
<label class="services-flex-label nowrap">服务类型</label>
|
||||
<view class="services-flex-val nowrap">{{citem.business}}({{citem.type}})</view>
|
||||
</view>
|
||||
<view class="services-flex">
|
||||
<label class="services-flex-title nowrap">{{citem.title}}</label>
|
||||
<view class="services-flex-price nowrap"><text>¥</text>{{citem.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 客户信息 -->
|
||||
<view class="order-back order-flex">
|
||||
<view class="order-title">客户信息</view>
|
||||
<view class="order-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="order-value nowrap">{{user.nickname || '-'}}</view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>客户性别</label>
|
||||
<view class="order-value nowrap">{{user.sex || '-'}}</view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>客户电话</label>
|
||||
<view class="order-value nowrap">{{user.username || '-'}}</view>
|
||||
</view>
|
||||
<view class="order-btn" @click="onCallPhone(user.username)">联系客户</view>
|
||||
</view>
|
||||
<!-- 老师与助理 -->
|
||||
<view class="order-back order-flex" v-if="statusText.value > 5">
|
||||
<view class="order-title">法务老师与助理</view>
|
||||
<view class="order-item">
|
||||
<label>法务老师</label>
|
||||
<view class="order-value nowrap">{{teachers || '-'}}</view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>法务助理</label>
|
||||
<view class="order-value nowrap">{{tutor || '-'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 订单其他信息 -->
|
||||
<view class="order-back order-flex">
|
||||
<view class="order-title">订单信息</view>
|
||||
<view class="order-item" @click="copyNo(order_no)">
|
||||
<label>订单编号</label>
|
||||
<view class="order-value nowrap">{{order_no || '-'}}<u-icon class="order-value-icon" name="file-text" color="gray" size="18"></u-icon></view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>创建时间</label>
|
||||
<view class="order-value nowrap">{{created_at || '-'}}</view>
|
||||
</view>
|
||||
<view class="order-item">
|
||||
<label>订单金额</label>
|
||||
<view class="order-value nowrap">{{total || '-'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { info } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orderId : '',
|
||||
total : '0.00',
|
||||
order_no : '',
|
||||
statusText : '',
|
||||
created_at : '',
|
||||
user : {
|
||||
nickname : '',
|
||||
sex : '',
|
||||
username : ''
|
||||
},
|
||||
item_type : [],
|
||||
items : [],
|
||||
services : [],
|
||||
serviceTotal: '',
|
||||
tutor : '',
|
||||
teachers : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.orderId = this.$Route.query.orderId
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
// 订单详情
|
||||
getInfo(){
|
||||
info(this.orderId).then(res => {
|
||||
let { status, created_at, total, order_no, user, item_type, items, services, service_prices, tutor, teachers } = res
|
||||
this.statusText = status
|
||||
this.created_at = created_at
|
||||
this.total = total
|
||||
this.order_no = order_no
|
||||
this.user = user
|
||||
this.item_type = item_type
|
||||
this.items = items
|
||||
this.services = services
|
||||
this.serviceTotal = service_prices
|
||||
this.tutor = tutor
|
||||
this.teachers = teachers
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 刷新列表订单
|
||||
onRefreshOrder(){
|
||||
this.$store.commit('setOrderId', this.$Route.query.orderId)
|
||||
},
|
||||
// 拨打电话
|
||||
onCallPhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// header
|
||||
.order-header{
|
||||
background: #446EFE;
|
||||
height: 150rpx;
|
||||
}
|
||||
// 订单块
|
||||
.order-back{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
margin: 0 30rpx 30rpx;
|
||||
}
|
||||
// 订单信息
|
||||
.order-info{
|
||||
margin: -100rpx 30rpx 30rpx;
|
||||
.order-state{
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
margin: 0 -30rpx;
|
||||
padding: 0 30rpx;
|
||||
border-bottom: solid 1rpx #f6f6f6;
|
||||
padding-bottom: 20rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 48rpx;
|
||||
}
|
||||
}
|
||||
// 订单列表
|
||||
.order-flex{
|
||||
padding: 20rpx 30rpx;
|
||||
.order-title{
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
// 订单信息
|
||||
.order-item{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
label{
|
||||
width: 200rpx;
|
||||
}
|
||||
.order-value{
|
||||
color: gray;
|
||||
width: calc(100% - 200rpx);
|
||||
text-align: right;
|
||||
.order-type{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.order-value-icon{
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
&.order-value-price{
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 服务包信息
|
||||
.order-serve{
|
||||
background-color: rgba(68, 110, 254, .03);
|
||||
border-radius: 10rpx;
|
||||
margin: 15rpx 0;
|
||||
padding: 0 25rpx;
|
||||
.serve-header{
|
||||
display: flex;
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
justify-content: space-between;
|
||||
font-weight: bold;
|
||||
border-bottom: solid 1rpx #f6f6f6;
|
||||
text{
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.serve-item{
|
||||
border-bottom: solid 1rpx #f6f6f6;
|
||||
padding: 20rpx 0;
|
||||
&:last-child{
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.services-flex{
|
||||
display: flex;
|
||||
font-size: 30rpx;
|
||||
line-height: 55rpx;
|
||||
.services-flex-label{
|
||||
width: 150rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.services-flex-val{
|
||||
width: calc(100% - 150rpx);
|
||||
text-align: right;
|
||||
color: gray;
|
||||
}
|
||||
.services-flex-title{
|
||||
width: 50%;
|
||||
color: #111111;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.services-flex-price{
|
||||
font-size: 30rpx;
|
||||
width: 50%;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
color: #111111;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 订单服务项目
|
||||
.order-items{
|
||||
background-color: rgba(68, 110, 254, .03);
|
||||
border-radius: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
padding: 20rpx 30rpx;
|
||||
.order-items-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
label{
|
||||
width: 340rpx;
|
||||
}
|
||||
.order-items-type{
|
||||
width: calc(100% - 340rpx);
|
||||
text-align: right;
|
||||
color: gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 订单按钮
|
||||
.order-btn{
|
||||
margin: 0 -30rpx;
|
||||
padding: 20rpx 30rpx 0;
|
||||
border-top: solid 1rpx #f6f6f6;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
color: $main-color;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,351 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<u-tabs
|
||||
:current="tabsCurrent"
|
||||
:list="tabs"
|
||||
keyName="title"
|
||||
lineColor="#446EFE"
|
||||
:activeStyle="{
|
||||
color: '#111',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '32rpx'
|
||||
}"
|
||||
:inactiveStyle="{
|
||||
color: '#606266',
|
||||
fontSize: '30rpx'
|
||||
}"
|
||||
@click="onTabs"
|
||||
></u-tabs>
|
||||
</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)">{{item.order_no}}</view>
|
||||
<view class="state">{{item.status.text}}</view>
|
||||
</view>
|
||||
<view class="orders-content">
|
||||
<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">
|
||||
<!-- <text v-for="(itemType, indexType) in item.item_type" :key="indexType" v-if="itemType.number > 0">{{itemType.title}}x{{itemType.number}}</text> -->
|
||||
x{{item.items.length}}
|
||||
</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" :key="cindex">
|
||||
<view class="item-flex-title">{{citem.institution.title}}({{citem.business_type.title}})</view>
|
||||
<view class="item-flex-value">¥{{citem.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="nowrap">{{item.user.username}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户手机号</label>
|
||||
<view class="nowrap">{{item.user.mobile}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item" v-if="item.total > 0">
|
||||
<label>咨询服务费</label>
|
||||
<view class="nowrap">¥{{item.total}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item" v-if="item.diff_prices_pays > 0">
|
||||
<label>补差价金额</label>
|
||||
<view class="nowrap">¥{{item.diff_prices_pays}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>下单时间</label>
|
||||
<view class="nowrap">{{item.created_at}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orders-flex">
|
||||
<view class="btns">
|
||||
<view class="btns-item btns-border" v-if="item.can.service" @click="onOrdersService(item.business_order_id)">匹配服务包</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>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { lists } from '@/apis/interfaces/offline.js'
|
||||
import modal from 'uview-ui/libs/config/props/modal';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabsCurrent : 0,
|
||||
tabType : 0,
|
||||
tabs : [
|
||||
{ key: 'all', title: '全部' }
|
||||
],
|
||||
orders : [],
|
||||
// 分页
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
pagesShow : false,
|
||||
status : ''
|
||||
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.tabType = 'all';
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
// 是否处理当前列表状态
|
||||
let isOrderId = this.$store.getters.getOrderId
|
||||
if(isOrderId != null){
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 切换列表
|
||||
onTabs(e){
|
||||
this.tabsCurrent = e.index
|
||||
this.tabType = this.tabs[e.index].key
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.orders = []
|
||||
this.getList()
|
||||
},
|
||||
// 变更当前列表状态
|
||||
removeListVal(id){
|
||||
let ListArr = this.orders
|
||||
let ListIndex = ListArr.findIndex(val => val.business_order_id == id)
|
||||
if(ListIndex >= 0){
|
||||
this.orders.splice(ListIndex, 1)
|
||||
}
|
||||
this.$store.commit('setOrderId', null)
|
||||
},
|
||||
// 获取列表
|
||||
getList(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
if(this.$store.getters.getOrderId != null){
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.$store.commit('setOrderId', null)
|
||||
}
|
||||
lists({
|
||||
status: this.tabType,
|
||||
page : this.page.current
|
||||
}).then(res => {
|
||||
let { status, lists } = res;
|
||||
lists.data.map(val => {
|
||||
val.is_show_type = false
|
||||
})
|
||||
if(this.tabs.length <= 1){
|
||||
this.tabs = status
|
||||
}
|
||||
let atList = lists.page.current == 1 ? [] : this.orders
|
||||
this.orders = atList.concat(lists.data)
|
||||
this.page = lists.page
|
||||
this.pagesShow = false
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 匹配服务包
|
||||
onOrdersService(id){
|
||||
this.$Router.push({
|
||||
name: 'OfflineService',
|
||||
params: {
|
||||
orderId: id,
|
||||
},
|
||||
});
|
||||
this.getNextTab = true;
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
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>
|
||||
// 订单为空
|
||||
.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-btn{
|
||||
color: $main-color;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-type{
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-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: flex-end;
|
||||
align-items: center;
|
||||
padding: 20rpx $padding;
|
||||
&:last-child{
|
||||
border-top: solid 1rpx #F6F6F6;
|
||||
border-bottom: none;
|
||||
}
|
||||
.no{
|
||||
font-size: 30rpx;
|
||||
color: #111;
|
||||
line-height: 60rpx;
|
||||
width: calc(100% - 200rpx);
|
||||
}
|
||||
.state{
|
||||
color: $main-color;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
line-height: 60rpx;
|
||||
width: 200rpx;
|
||||
text-align: right;
|
||||
}
|
||||
.user{
|
||||
padding-left: 90rpx;
|
||||
position: relative;
|
||||
min-height: 70rpx;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 400rpx);
|
||||
.user-cover{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 50%;
|
||||
background: #ddd;
|
||||
}
|
||||
.user-name{
|
||||
line-height: 70rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.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>
|
||||
@@ -1,468 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- 服务包列表 -->
|
||||
<view class="services">
|
||||
<view class="services-null" v-if="services.length <= 0">
|
||||
<u-empty
|
||||
mode="data"
|
||||
icon="http://cdn.uviewui.com/uview/empty/data.png"
|
||||
text="暂无添加服务包"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
<view class="services-list" v-else>
|
||||
<view class="services-item" v-for="(item, index) in services" :key="index">
|
||||
<view class="services-header">
|
||||
<view class="title">{{item.title}}<text>{{item.tag}}</text></view>
|
||||
<view class="remove" @click="onRemove(item, index)">移出</view>
|
||||
</view>
|
||||
<view class="services-content">
|
||||
<block v-for="(citem, cindex) in item.items" :key="cindex">
|
||||
<view class="services-content-item">
|
||||
<view class="services-flex">
|
||||
<label class="services-flex-label nowrap">服务类型</label>
|
||||
<view class="services-flex-val nowrap">{{citem.business}}({{citem.type}})</view>
|
||||
</view>
|
||||
<view class="services-flex">
|
||||
<label class="services-flex-title nowrap">{{citem.title}}</label>
|
||||
<view class="services-flex-price nowrap"><text>¥</text>{{citem.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="services-price">服务包价格<text>¥{{item.price}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 选择业务 -->
|
||||
<u-popup :show="institutionsShow" round="20rpx" closeable @close="institutionsShow = false, itemsVal = []">
|
||||
<view class="institutions">
|
||||
<view class="institutions-title">选择业务</view>
|
||||
<scroll-view scroll-y class="institutions-scroll">
|
||||
<view class="institutions-lists" v-if="institutions.length > 0">
|
||||
<view class="institutions-block" :class="{ 'active': item.isChoose }" v-for="(item, index) in institutions" :key="index" @click="onInstitution(item, index)">
|
||||
<view class="institutions-block-item">
|
||||
<label>业务类型</label>
|
||||
<view class="val nowrap">{{item.business}}({{item.type}})</view>
|
||||
</view>
|
||||
<view class="institutions-block-item">
|
||||
<label>业务机构</label>
|
||||
<view class="val nowrap">{{item.title}}</view>
|
||||
</view>
|
||||
<view class="institutions-block-item">
|
||||
<label>金额</label>
|
||||
<view class="val price nowrap">¥{{item.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="institutions-null">
|
||||
<u-empty
|
||||
mode="list"
|
||||
icon="http://cdn.uviewui.com/uview/empty/list.png"
|
||||
text="暂无可分配的业务"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="institutions-footer">
|
||||
<button class="btn" @click="onAddService" :disabled="itemsVal.length <= 0">选好了({{itemsVal.length}})</button>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- footer -->
|
||||
<view class="footer">
|
||||
<view class="footer-total">共{{services.length}}个服务包,总价格<text>{{total}}</text>元</view>
|
||||
<button class="footer-btn" :disabled="services.length <= 0" @click="onServiceOver">保存配置服务包</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { service, serviceAdd, serviceRemove, serviceOver } from '@/apis/interfaces/offline.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
total : '0.00',
|
||||
orderId : '',
|
||||
institutions : [],
|
||||
services : [],
|
||||
itemsVal : [],
|
||||
institutionsShow: false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.orderId = this.$Route.query.orderId
|
||||
// 开始配置服务包
|
||||
this.getService()
|
||||
},
|
||||
methods: {
|
||||
// 获取业务
|
||||
getService(){
|
||||
service(this.orderId).then(res => {
|
||||
let { institutions, services, total } = res;
|
||||
this.institutions = institutions.map(val => {
|
||||
val.isChoose = false
|
||||
return val;
|
||||
})
|
||||
this.total = total;
|
||||
this.services = services;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 选择业务
|
||||
onInstitution(val, index){
|
||||
let idIndex = this.itemsVal.findIndex(e => e === val.item_id)
|
||||
if(idIndex >= 0){
|
||||
val.isChoose = !val.isChoose;
|
||||
this.itemsVal.splice(idIndex, 1)
|
||||
this.$set(this.institutions, index, val)
|
||||
return
|
||||
}
|
||||
if(idIndex < 0 && this.itemsVal.length <= 2){
|
||||
val.isChoose = !val.isChoose;
|
||||
this.itemsVal.push(val.item_id)
|
||||
this.$set(this.institutions, index, val)
|
||||
return
|
||||
}
|
||||
uni.showToast({
|
||||
title: '单一服务包业务数量不可以超过3项',
|
||||
icon : 'none'
|
||||
})
|
||||
},
|
||||
// 新增服务包
|
||||
onAddService(){
|
||||
serviceAdd(this.orderId, this.itemsVal).then(res => {
|
||||
let { institutions, services, total } = res;
|
||||
this.institutions = institutions.map(val => {
|
||||
val.isChoose = false
|
||||
return val;
|
||||
});
|
||||
this.total = total;
|
||||
this.services = services
|
||||
this.itemsVal = []
|
||||
this.institutionsShow = false
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 删除服务包
|
||||
onRemove(val, index){
|
||||
serviceRemove(this.orderId, {
|
||||
group_no: val.group_no
|
||||
} ).then(res => {
|
||||
let { institutions, services, total } = res;
|
||||
this.institutions = institutions.map(val => {
|
||||
val.isChoose = false
|
||||
return val;
|
||||
});
|
||||
this.total = total;
|
||||
this.services = services;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 保存配置服务包
|
||||
onServiceOver(){
|
||||
if(this.institutions.length > 0){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '当前还有' + this.institutions.length + '项业务未匹配服务包,是否放弃未匹配的业务继续保存服务包?',
|
||||
cancelText : '继续配置',
|
||||
cancelColor : '#FFAB3F',
|
||||
confirmText : '立即保存',
|
||||
confirmColor: '#446EFE',
|
||||
success : res => {
|
||||
if(res.confirm){
|
||||
this.onSubmitService()
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
this.onSubmitService()
|
||||
},
|
||||
// 提交保存服务
|
||||
onSubmitService(){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '是否确认提交服务包配置给客户,提交后不可修改',
|
||||
cancelText : '稍后',
|
||||
confirmText : '提交',
|
||||
success : ModalRes => {
|
||||
if(ModalRes.confirm){
|
||||
wx.showLoading({
|
||||
title: '保存中...',
|
||||
mask : true
|
||||
})
|
||||
serviceOver(this.orderId).then(res => {
|
||||
uni.showModal({
|
||||
content : res.message,
|
||||
showCancel : false,
|
||||
confirmColor: '#446EFE',
|
||||
success : res => {
|
||||
if(res.confirm){
|
||||
this.$store.commit('setOrderId', this.orderId)
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap() {
|
||||
this.institutionsShow = true
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 服务包列表
|
||||
.services{
|
||||
padding-bottom: 250rpx;
|
||||
box-sizing: border-box;
|
||||
.services-null{
|
||||
height: 70vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
// 服务包列表
|
||||
.services-list{
|
||||
padding: 10rpx 30rpx;
|
||||
.services-item{
|
||||
background: white;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx;
|
||||
margin: 30rpx 0;
|
||||
.services-header{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 20rpx;
|
||||
.title{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #111;
|
||||
width: calc(100% - 150rpx);
|
||||
text{
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-weight: normal;
|
||||
font-size: 26rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 10rpx;
|
||||
margin-left: 10rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
.remove{
|
||||
background: rgba(68, 110, 254, .1);
|
||||
color: #446EFE;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
width: 100rpx;
|
||||
border-radius: 25rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
.services-content{
|
||||
background-color: rgba(68, 110, 254, .03);
|
||||
border-radius: 10rpx;
|
||||
margin: 15rpx 0;
|
||||
padding: 0 25rpx;
|
||||
.services-content-item{
|
||||
border-bottom: solid 1rpx #f6f6f6;
|
||||
padding: 20rpx 0;
|
||||
&:last-child{
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.services-flex{
|
||||
display: flex;
|
||||
font-size: 30rpx;
|
||||
line-height: 55rpx;
|
||||
.services-flex-label{
|
||||
width: 150rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.services-flex-val{
|
||||
width: calc(100% - 150rpx);
|
||||
text-align: right;
|
||||
color: gray;
|
||||
}
|
||||
.services-flex-title{
|
||||
width: 50%;
|
||||
color: #111111;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.services-flex-price{
|
||||
font-size: 30rpx;
|
||||
width: 50%;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
color: #111111;
|
||||
}
|
||||
}
|
||||
}
|
||||
.services-price{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
line-height: 60rpx;
|
||||
text{
|
||||
color: $text-price;
|
||||
font-weight: bold;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 添加服务包
|
||||
.institutions{
|
||||
padding: 0 0 180rpx;
|
||||
position: relative;
|
||||
// 标题
|
||||
.institutions-title{
|
||||
padding: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
// 列表
|
||||
.institutions-scroll{
|
||||
height: 65vh;
|
||||
.institutions-null{
|
||||
height: 50vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.institutions-lists{
|
||||
padding: 15rpx 0;
|
||||
.institutions-block{
|
||||
margin: 15rpx 30rpx;
|
||||
background: #f8f8f8;
|
||||
padding: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
border:solid 1rpx #f8f8f8;
|
||||
box-sizing: border-box;
|
||||
.institutions-block-item{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 50rpx;
|
||||
font-size: 30rpx;
|
||||
label{
|
||||
color: gray;
|
||||
width: 200rpx;
|
||||
}
|
||||
.val{
|
||||
width: calc(100% - 200rpx);
|
||||
text-align: right;
|
||||
&.price{
|
||||
color: $text-price;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.active{
|
||||
background-color: #E4E8F7;
|
||||
border-color: $main-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// footer
|
||||
.institutions-footer{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 30rpx 30rpx 50rpx;
|
||||
.btn{
|
||||
background: $main-color;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
color: white;
|
||||
font-size: 32rpx;
|
||||
border-radius: $radius-lg;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
&[disabled]{
|
||||
background-color: $main-color;
|
||||
color: white;
|
||||
opacity: .7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// footer
|
||||
.footer{
|
||||
padding: 30rpx 30rpx 50rpx;
|
||||
background: white;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 9;
|
||||
box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .02);
|
||||
.footer-total{
|
||||
padding-bottom: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
line-height: 40rpx;
|
||||
text{
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.footer-btn{
|
||||
background: $main-color;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
color: white;
|
||||
font-size: 32rpx;
|
||||
border-radius: $radius-lg;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
.icon{
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: 10rpx;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
&[disabled]{
|
||||
background-color: $main-color;
|
||||
color: white;
|
||||
opacity: .7;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,122 +0,0 @@
|
||||
|
||||
<template>
|
||||
<view class="info-content">
|
||||
<view class="block">
|
||||
<view class="block-item">
|
||||
<view class="block-item-flex" v-for="(item, index) in objArr" :key="index">
|
||||
<label>{{item.name}}</label>
|
||||
<view class="val">{{item.value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { unifyInfo } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
objArr: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
unifyInfo({
|
||||
order_type : this.$Route.query.orderType.replace(/\-/g, '\\'),
|
||||
order_id : this.$Route.query.id
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
this.objArr = res;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.info-content{
|
||||
position: relative;
|
||||
background: #eeefff;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 10rpx;
|
||||
padding-top: 30rpx;
|
||||
&::before{
|
||||
background-image: linear-gradient(180deg, #353ef4 10%, #eeefff);
|
||||
height: 50vh;
|
||||
content: " ";
|
||||
width: 100vw;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
// 模块
|
||||
.block{
|
||||
background: white;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0 40rpx 30rpx;
|
||||
border-radius: 20rpx;
|
||||
.block-header{
|
||||
padding: 32rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.title{
|
||||
width: calc(100% - 200rpx);
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
.price{
|
||||
text-align: right;
|
||||
width: 200rpx;
|
||||
padding-left: 20rpx;
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #353ef4;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block-item{
|
||||
padding: 32rpx;
|
||||
.block-item-flex{
|
||||
padding: 20rpx 0;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
color: #555;
|
||||
justify-content: space-between;
|
||||
label{ width: 240rpx; }
|
||||
.val{
|
||||
text-align: right;
|
||||
width: calc(100% - 240rpx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<view class="header">
|
||||
<view class="header-title">实付金额</view>
|
||||
<view class="header-price"><text>¥</text>{{total}}</view>
|
||||
<block v-if="totalFire > 0">
|
||||
<view class="header-fire">最大可抵扣:{{totalFire}}</view>
|
||||
<!-- <view class="header-no">当前火力值比例1:{{rate}}</view> -->
|
||||
<block v-if="rate != 1">
|
||||
<view class="header-fire">火力值:{{totalFire}}</view>
|
||||
<view class="header-no">当前火力值比例1:{{rate}}</view>
|
||||
</block>
|
||||
<view class="header-no">订单号:{{orderNo}}</view>
|
||||
</view>
|
||||
@@ -56,16 +56,9 @@
|
||||
</view>
|
||||
<radio class="choose-radio" value="code" :checked="payMethod == 'code'"></radio>
|
||||
</label>
|
||||
<label class="choose-item nowrap" v-if="payCan.offline">
|
||||
<view class="choose-text">
|
||||
<image src="@/static/icons/pay_bank.png" mode="aspectFill"></image>
|
||||
线下打款
|
||||
</view>
|
||||
<radio class="choose-radio" value="offline" :checked="payMethod == 'offline'"></radio>
|
||||
</label>
|
||||
</radio-group>
|
||||
</view>
|
||||
<view class="deduction" v-if="payCan.deduction == 1 && payType != 'free'">
|
||||
<view class="deduction" v-if="(payMethod == 'wx' || payMethod == 'ali' || payMethod == 'dgwx' || payMethod == 'dgali') && payType != 'free'">
|
||||
<view class="deduction-item">
|
||||
<view class="deduction-label">
|
||||
<view class="title">使用火力值抵扣</view>
|
||||
@@ -108,13 +101,9 @@
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 确认支付 -->
|
||||
<view class="payBtn" v-if="payMethod != 'offline'">
|
||||
<view class="payBtn">
|
||||
<button size="default" @click="onPay">支付</button>
|
||||
</view>
|
||||
<!-- 上传打款凭证 -->
|
||||
<view class="payBtn" v-else>
|
||||
<button size="default" @click="onOffline">上传打款凭证</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -135,10 +124,8 @@
|
||||
umsSynthesize,
|
||||
dgSynthesize,
|
||||
coinSynthesize,
|
||||
cashierOffline
|
||||
} from '@/apis/interfaces/pay.js'
|
||||
} from '@/apis/interfaces/pay.js'
|
||||
import mixin from 'uview-ui/libs/mixin/mixin';
|
||||
import { uploads } from '@/apis/interfaces/uploading.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -272,7 +259,7 @@
|
||||
clearInterval(outTime)
|
||||
wx.showModal({
|
||||
title : '提示',
|
||||
content : this.$Route.query.paytype === 'synthesize' ? '支付成功,可在工作台查询您的订单' : '支付成功',
|
||||
content : this.$Route.query.paytype === 'synthesize' ? '支付成功,可在工作台综法订单管理查询您的订单' : '支付成功',
|
||||
showCancel : false,
|
||||
confirmColor: '#446EFE',
|
||||
success : () => {
|
||||
@@ -333,7 +320,7 @@
|
||||
if(this.payType == 'price') this.onDgPay('app', true)
|
||||
if(this.payType == 'diff') this.onDgDiffPay('app', true)
|
||||
if(this.payType == 'free') this.onDgFreePay('app', true)
|
||||
if(this.payType == 'synthesize') this.onFreeToast('onDgSynthesizePay', 'app', true)
|
||||
if(this.payType == 'synthesize') this.onFreeToast('onDgSynthesizePay', 'app', true)
|
||||
}
|
||||
if(actionRes.tapIndex === 1){
|
||||
if(this.payType == 'price') this.onDgPay('app_alipay', true)
|
||||
@@ -368,71 +355,8 @@
|
||||
if(this.payType == 'free') this.onDgFreePay('app_alipay', false)
|
||||
if(this.payType == 'synthesize') this.onFreeToast('onDgSynthesizePay', 'app_alipay', false)
|
||||
break
|
||||
case 'offline':
|
||||
console.log('线下打款')
|
||||
break
|
||||
}
|
||||
},
|
||||
// 上传打款凭证
|
||||
onOffline(){
|
||||
uni.chooseImage({
|
||||
count: 4,
|
||||
success: path => {
|
||||
let { tempFiles } = path;
|
||||
let paths = tempFiles.map(val => {
|
||||
return {
|
||||
name: 'file' + val.size,
|
||||
uri : val.path
|
||||
}
|
||||
})
|
||||
uploads(paths, {}).then(updRes => {
|
||||
let { path } = updRes
|
||||
cashierOffline({
|
||||
pics : path,
|
||||
order_type : this.orderType,
|
||||
order_id : this.orderId,
|
||||
}).then(res => {
|
||||
uni.showModal({
|
||||
title : '上传成功',
|
||||
content : '请耐心等待打款审核',
|
||||
showCancel : false,
|
||||
success : () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
wx.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},complete: chooseErr => {
|
||||
|
||||
if(chooseErr.errMsg == "chooseImage:fail No Permission") {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '您关闭了相关权限,是否重新授权?',
|
||||
success: showres=> {
|
||||
if (showres.confirm) {
|
||||
uni.openAppAuthorizeSetting({
|
||||
success: openAppres=> {
|
||||
console.log(openAppres)
|
||||
}
|
||||
})
|
||||
} else if (showres.cancel) {}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 火力值 - 综法
|
||||
onCoinSynthesizePay(){
|
||||
coinSynthesize({
|
||||
|
||||
@@ -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>
|
||||
@@ -125,10 +125,6 @@
|
||||
<view class="number" v-if="orderCount.refund > 0">{{orderCount.refund}}</view>
|
||||
<view class="text">退款订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('OfflineOrders')">
|
||||
<image class="icon" src="@/static/icons/work_icon_28.png"></image>
|
||||
<view class="text">线下订单</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,373 +1,33 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<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 class="null-pages">
|
||||
<u-empty
|
||||
mode="order"
|
||||
icon="http://cdn.uviewui.com/uview/empty/order.png"
|
||||
text="暂无相关订单"
|
||||
>
|
||||
</u-empty>
|
||||
</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>
|
||||
.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 内容为空
|
||||
.null-pages{ height: 70vh; display: flex; align-items: center; justify-content: center; }
|
||||
</style>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
case 'entrust':
|
||||
isScroll = true
|
||||
funName = entrustOrder
|
||||
tabName = '委托咨询订单'
|
||||
tabName = '委托订单'
|
||||
tabsArr = [
|
||||
{ name: '待支付', type: 0 },
|
||||
{ name: '待审核', type: 1 },
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view>
|
||||
<view>
|
||||
<view class="user-info">
|
||||
<block v-if="isAuth">
|
||||
<view class="user-info-left">
|
||||
@@ -42,7 +42,7 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="nav-flex" @click="onNav('AccountIntegral')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_00.png"></image>火力值
|
||||
@@ -55,16 +55,10 @@
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="nav-flex" @click="onNav('FreeService')" v-if="isAuth">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_11.png"></image>{{freeTitle}}
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="nav-flex" @click="onNav('UserTeam')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_02.png"></image>我的团队
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_02.png"></image>我的客户
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
@@ -93,18 +87,12 @@
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
<view class="nav-flex" @click="onParent('parent')">
|
||||
<view class="nav-flex" @click="onParent">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_07.png"></image>推荐人
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
<view class="nav-flex" @click="onParent('salesman')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_10.png"></image>业务联系人
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nav-flex" @click="onNav('WeChat')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_06.png"></image>关注公众号
|
||||
@@ -246,9 +234,7 @@
|
||||
reckonerURL : '',
|
||||
reckonerQrcode : '',
|
||||
reckonerInvite : '',
|
||||
reckonerPoster : {},
|
||||
salesman : '', // 业务联系人
|
||||
freeTitle : '' // 自由服务包标题
|
||||
reckonerPoster : {}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -339,22 +325,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
// 识别产品
|
||||
onPhone(e){
|
||||
uni.chooseImage({
|
||||
crop : {
|
||||
quality : 100,
|
||||
width : 300,
|
||||
height : 300,
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
},
|
||||
fail : err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 生成海报地址
|
||||
qrcodePath(path){
|
||||
uni.hideLoading()
|
||||
@@ -416,16 +386,20 @@
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
})
|
||||
info().then(res => {
|
||||
let { nickname, identity, avatar, certification, parent,team_name,teams, salesman, free } = res
|
||||
this.freeTitle= free.title
|
||||
info().then(res => {
|
||||
let {
|
||||
nickname,
|
||||
identity,
|
||||
avatar,
|
||||
certification,
|
||||
parent,team_name,teams
|
||||
} = res
|
||||
this.nickname = nickname
|
||||
this.identity = identity
|
||||
this.avatar = avatar
|
||||
this.certification = certification
|
||||
this.parent = parent
|
||||
this.team_name = team_name
|
||||
this.salesman = salesman
|
||||
uni.hideLoading()
|
||||
// team_status:'', // 状态 0 不展示运营中心 1可以申请但是没有完善,2申请完,审核中,3已通过,已修改
|
||||
this.team_status = teams.center.status // 运营中心状态
|
||||
@@ -483,32 +457,32 @@
|
||||
})
|
||||
},
|
||||
// 导航
|
||||
onNav(name) {
|
||||
this.$Router.push({name})
|
||||
onNav(name) {
|
||||
this.$Router.push({
|
||||
name
|
||||
})
|
||||
},
|
||||
// 推荐关系
|
||||
onParent(type) {
|
||||
onParent() {
|
||||
if(!this.isAuth){
|
||||
this.$Router.push({
|
||||
name: 'Auth'
|
||||
})
|
||||
return
|
||||
}
|
||||
let phone = type == 'parent' ? this.parent.username : this.salesman.username
|
||||
let name = type == 'parent' ? this.parent.nickname : this.salesman.nickname
|
||||
if (type == 'parent' && this.parent == '') {
|
||||
}
|
||||
if (this.parent == '') {
|
||||
this.showBind = true
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title : type == 'parent' ? '我的推荐人': '我的业务联系人',
|
||||
content : name + '['+ phone +']',
|
||||
confirmText : '关闭',
|
||||
cancelText : '联系TA',
|
||||
title: '我的推荐人',
|
||||
content: this.parent.nickname,
|
||||
confirmText: '关闭',
|
||||
cancelText: '联系TA',
|
||||
success: modalRes => {
|
||||
if (modalRes.cancel) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
phoneNumber: this.parent.username
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,14 +38,6 @@
|
||||
</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>
|
||||
@@ -99,7 +91,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style lang="scss">
|
||||
.content{
|
||||
padding-top: 30rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -1,25 +1,15 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- <view class="total">
|
||||
<view class="total">
|
||||
<uni-icons type="staff" size="50" color="white"></uni-icons>
|
||||
<view class="total-user">
|
||||
<view class="total-number">{{count.one}}人</view>
|
||||
<view class="total-title">总人数</view>
|
||||
<view class="total-title">客户总人数</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<u-sticky>
|
||||
<u-tabs
|
||||
:list="tabs"
|
||||
:scrollable="false"
|
||||
:current="tabVal"
|
||||
style="margin-bottom: 30rpx;"
|
||||
keyName="title"
|
||||
lineColor="#446EFE"
|
||||
@click="onClick"
|
||||
></u-tabs>
|
||||
</u-sticky>
|
||||
</view>
|
||||
|
||||
<block v-if="users.length > 0">
|
||||
<view class="team-item" v-for="(item, index) in users" :key="index" @click="onCallPhone(item.real_username)">
|
||||
<view class="team-item" v-for="(item, index) in users" :key="index">
|
||||
<u-avatar :src="item.avatar" size="48"></u-avatar>
|
||||
<view class="team-content">
|
||||
<view class="nowrap name">{{item.nickname}}</view>
|
||||
@@ -33,7 +23,7 @@
|
||||
<view class="nowrap submit">联系电话:{{item.username}}</view>
|
||||
<view class="nowrap submit">注册时间:{{item.created_at}}</view>
|
||||
</view>
|
||||
<view class="mobile">
|
||||
<view class="mobile" @click="onCallPhone(item.real_username)">
|
||||
<uni-icons class="mobile-icon" type="phone-filled" size="18" color="white"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,12 +44,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { relations, relationsTab } from '@/apis/interfaces/user.js'
|
||||
import { relations } from '@/apis/interfaces/user.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabs : [],
|
||||
tabVal : 0,
|
||||
users : [],
|
||||
count : {
|
||||
all: 0
|
||||
@@ -74,29 +62,9 @@
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
relationsTab().then(res => {
|
||||
uni.hideLoading()
|
||||
this.tabs = res
|
||||
this.getList()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
// 切换tabs
|
||||
onClick(e){
|
||||
this.tabVal = e.index
|
||||
this.page = { current : 1, has_more: false },
|
||||
this.getList()
|
||||
},
|
||||
// 获取列表
|
||||
getList(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
@@ -104,8 +72,7 @@
|
||||
})
|
||||
relations({
|
||||
larer : 1,
|
||||
page : this.page.current,
|
||||
key : this.tabs[this.tabVal].key
|
||||
page : this.page.current
|
||||
}).then(res => {
|
||||
let { users, count } = res;
|
||||
let atList = users.page.current == 1 ? [] : this.users
|
||||
@@ -144,11 +111,10 @@
|
||||
.content{
|
||||
box-sizing: border-box;
|
||||
background: white;
|
||||
padding-top: 1rpx;
|
||||
}
|
||||
// 统计数据
|
||||
.total{
|
||||
margin: 30rpx 30rpx 0;
|
||||
margin: 30rpx;
|
||||
background: linear-gradient(to top left, #446EFE, #0f36bb);
|
||||
box-shadow: 10rpx 0 15rpx 15rpx rgba(0, 0, 0, .03);
|
||||
border-radius: 20rpx;
|
||||
@@ -248,6 +214,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// 空页面
|
||||
.list-null{ height: 60vh; display: flex; align-items: center; justify-content: center; }
|
||||
</style>
|
||||
|
||||
@@ -1,330 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<u-tabs
|
||||
:current="tabsCurrent"
|
||||
:list="tabs"
|
||||
keyName="value"
|
||||
lineColor="#446EFE"
|
||||
:scrollable="tabs.length > 5"
|
||||
:activeStyle="{
|
||||
color: '#111',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '32rpx'
|
||||
}"
|
||||
:inactiveStyle="{
|
||||
color: '#606266',
|
||||
fontSize: '30rpx'
|
||||
}"
|
||||
@click="onTabs"
|
||||
></u-tabs>
|
||||
</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)">
|
||||
{{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">{{item.item.title}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="nowrap">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>手机号码</label>
|
||||
<view class="nowrap">{{item.mobile}}</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="price">¥{{item.item.price}}</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</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>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { accountOrder, accountCancel } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabs : [{ id: '', value: '全部' }],
|
||||
tabsCurrent : 0,
|
||||
tabsId : '',
|
||||
orders : [],
|
||||
pagesShow : false,
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.getOrder()
|
||||
},
|
||||
methods: {
|
||||
// 筛选分类
|
||||
onTabs(e){
|
||||
let { id, index } = e;
|
||||
this.tabsCurrent = index
|
||||
this.tabsId = id
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
},
|
||||
// 获取订单列表
|
||||
getOrder(){
|
||||
let { tabsId, tabs, orders, page } = this
|
||||
accountOrder({
|
||||
manager: 1,
|
||||
status : tabsId,
|
||||
page : page.current
|
||||
}).then(res => {
|
||||
let { status, lists } = res;
|
||||
this.tabs = [{ id: '', value: '全部' }].concat(status)
|
||||
this.orders = lists.page.current == 1 ? lists.data : this.orders.concat(lists.data)
|
||||
this.page = lists.page
|
||||
this.pagesShow = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(e){
|
||||
let { order_id } = e;
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "确认取消当前订单嘛?",
|
||||
cancelText : "取消",
|
||||
confirmColor: "#446EFE",
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask : true
|
||||
})
|
||||
accountCancel(order_id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 去支付
|
||||
onPay(obj){
|
||||
let { order_id, order_type, paid_at } = obj
|
||||
if(paid_at == ''){
|
||||
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.getOrder()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 订单列表
|
||||
.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-btn{
|
||||
color: $main-color;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-type{
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-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;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.price{
|
||||
font-weight: bold;
|
||||
color: $main-color;
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.border{
|
||||
border: solid 1rpx $main-color;
|
||||
color: $main-color;
|
||||
background: white;
|
||||
height: 68rpx;
|
||||
line-height: 68rpx;
|
||||
&::after{ display: none;}
|
||||
}
|
||||
&:last-child{ margin-left: 30rpx; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,331 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<u-tabs
|
||||
:current="tabsCurrent"
|
||||
:list="tabs"
|
||||
keyName="value"
|
||||
lineColor="#446EFE"
|
||||
:scrollable="tabs.length > 5"
|
||||
:activeStyle="{
|
||||
color: '#111',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '32rpx'
|
||||
}"
|
||||
:inactiveStyle="{
|
||||
color: '#606266',
|
||||
fontSize: '30rpx'
|
||||
}"
|
||||
@click="onTabs"
|
||||
></u-tabs>
|
||||
</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)">
|
||||
{{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">{{item.item.title}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="nowrap">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>手机号码</label>
|
||||
<view class="nowrap">{{item.mobile}}</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="price">¥{{item.price}}</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</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>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { customTypelists, customTypeCancel } from '@/apis/interfaces/custom.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabs : [{ id: '', value: '全部' }],
|
||||
tabsCurrent : 0,
|
||||
tabsId : '',
|
||||
orders : [],
|
||||
pagesShow : false,
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.getOrder()
|
||||
},
|
||||
methods: {
|
||||
// 筛选分类
|
||||
onTabs(e){
|
||||
let { id, index } = e;
|
||||
this.tabsCurrent = index
|
||||
this.tabsId = id
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
},
|
||||
// 获取订单列表
|
||||
getOrder(){
|
||||
let { tabsId, tabs, orders, page } = this
|
||||
customTypelists({
|
||||
manager: 1,
|
||||
status : tabsId,
|
||||
page : page.current
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
let { status, lists } = res;
|
||||
this.tabs = [{ id: '', value: '全部' }].concat(status)
|
||||
this.orders = lists.page.current == 1 ? lists.data : this.orders.concat(lists.data)
|
||||
this.page = lists.page
|
||||
this.pagesShow = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(e){
|
||||
let { order_id } = e;
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "确认取消当前订单嘛?",
|
||||
cancelText : "取消",
|
||||
confirmColor: "#446EFE",
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask : true
|
||||
})
|
||||
customTypeCancel(order_id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 去支付
|
||||
onPay(obj){
|
||||
let { order_id, order_type, paid_at } = obj
|
||||
if(paid_at == ''){
|
||||
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.getOrder()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 订单列表
|
||||
.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-btn{
|
||||
color: $main-color;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-type{
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-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;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.price{
|
||||
font-weight: bold;
|
||||
color: $main-color;
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.border{
|
||||
border: solid 1rpx $main-color;
|
||||
color: $main-color;
|
||||
background: white;
|
||||
height: 68rpx;
|
||||
line-height: 68rpx;
|
||||
&::after{ display: none;}
|
||||
}
|
||||
&:last-child{ margin-left: 30rpx; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -65,7 +65,8 @@
|
||||
Promise.all([business(), synthList()]).then(res => {
|
||||
let businessData = res[0]
|
||||
let synthListData = res[1]
|
||||
this.businessArr = this.createType === 'other' || this.createType === 'offline' ? businessData : businessData.concat(synthListData)
|
||||
|
||||
this.businessArr = this.createType === 'other' ? businessData : businessData.concat(synthListData)
|
||||
this.businessId = this.businessArr[0].business_id
|
||||
this.selfType = this.businessArr[0].self_type
|
||||
}).catch(err => {
|
||||
@@ -127,8 +128,8 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
let busines = this.businessArr.find(val => val.business_id === this.businessId)
|
||||
// 金法业务
|
||||
let busines = this.businessArr.find(val => val.business_id === this.businessId)
|
||||
this.$Router.replace({
|
||||
name : 'WorkGenerate',
|
||||
params : {
|
||||
|
||||
@@ -1,323 +0,0 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- tabs -->
|
||||
<u-sticky bgColor="#FFF" zIndex="9" >
|
||||
<u-tabs
|
||||
:current="tabsCurrent"
|
||||
:list="tabs"
|
||||
keyName="value"
|
||||
lineColor="#446EFE"
|
||||
:scrollable="tabs.length > 5"
|
||||
:activeStyle="{
|
||||
color: '#111',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '32rpx'
|
||||
}"
|
||||
:inactiveStyle="{
|
||||
color: '#606266',
|
||||
fontSize: '30rpx'
|
||||
}"
|
||||
@click="onTabs"
|
||||
></u-tabs>
|
||||
</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)">
|
||||
{{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">{{item.item.title}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>客户姓名</label>
|
||||
<view class="nowrap">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="orders-content-item">
|
||||
<label>手机号码</label>
|
||||
<view class="nowrap">{{item.mobile}}</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="price">¥{{item.item.price}}</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</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>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { delegationOrder, delegationCancel } from '@/apis/interfaces/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabs : [{ id: '', value: '全部' }],
|
||||
tabsCurrent : 0,
|
||||
tabsId : '',
|
||||
orders : [],
|
||||
pagesShow : false,
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.getOrder()
|
||||
},
|
||||
methods: {
|
||||
// 筛选分类
|
||||
onTabs(e){
|
||||
let { id, index } = e;
|
||||
this.tabsCurrent = index
|
||||
this.tabsId = id
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
},
|
||||
// 获取订单列表
|
||||
getOrder(){
|
||||
let { tabsId, tabs, orders, page } = this
|
||||
delegationOrder({
|
||||
manager: 1,
|
||||
status : tabsId,
|
||||
page : page.current
|
||||
}).then(res => {
|
||||
let { status, lists } = res;
|
||||
this.tabs = [{ id: '', value: '全部' }].concat(status)
|
||||
this.orders = lists.page.current == 1 ? lists.data : this.orders.concat(lists.data)
|
||||
this.page = lists.page
|
||||
this.pagesShow = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(e){
|
||||
let { order_id } = e;
|
||||
uni.showModal({
|
||||
title : "提示",
|
||||
content : "确认取消当前订单嘛?",
|
||||
cancelText : "取消",
|
||||
confirmColor: "#446EFE",
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask : true
|
||||
})
|
||||
delegationCancel(order_id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.page = { current: 1, has_more: false }
|
||||
this.getOrder()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
data : no,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '订单号已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 去支付
|
||||
onPay(obj){
|
||||
let { order_id, order_type, paid_at } = obj
|
||||
if(paid_at == ''){
|
||||
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.getOrder()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 订单列表
|
||||
.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-btn{
|
||||
color: $main-color;
|
||||
}
|
||||
&.orders-content-bottom{
|
||||
padding-right: 40rpx;
|
||||
position: relative;
|
||||
.orders-content-icon{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-type{
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-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;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.price{
|
||||
font-weight: bold;
|
||||
color: $main-color;
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.border{ border: solid 1rpx $main-color; color: $main-color; background: white; height: 68rpx; &::after{ display: none; } }
|
||||
&:last-child{ margin-left: 30rpx; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -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,13 +223,15 @@
|
||||
<view v-else class="auth-null">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/09/04/3482a50a7b37798129c8754200c10466.png"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.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 {
|
||||
@@ -379,7 +381,7 @@
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
padding: 0;
|
||||
width: 80vw;
|
||||
width: 70vw;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-size: 32rpx;
|
||||
|
||||
@@ -9,16 +9,15 @@
|
||||
<image class="cover" :src="userInfo.avatar || require('@/static/imgs/default-active.png')" mode="aspectFill"></image>
|
||||
<view class="nickname">{{userInfo.nickname}}<text class="card" v-if="isManager">{{identity.name}}</text></view>
|
||||
</view>
|
||||
<view class="work-bar-add" @click="onCreateOrder" v-if="isWorker">
|
||||
<uni-icons class="icon" type="plusempty" size="30rpx" color="#111"></uni-icons>创建订单
|
||||
</view>
|
||||
<view class="work-bar-add" @click="onCreateOrder" v-if="isManager">
|
||||
<uni-icons class="icon" type="plusempty" size="30rpx" color="#111"></uni-icons>创建订单
|
||||
</view>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<!-- ! -->
|
||||
<!-- 工作台无权限 -->
|
||||
<block v-if="!isWorker">
|
||||
<!-- 未认证或未考试 -->
|
||||
<block v-if="!isManager">
|
||||
<view class="block open-interest">
|
||||
<view class="title">专属权益</view>
|
||||
<view class="title">实习顾问专属权益</view>
|
||||
<view class="open-interest-flex">
|
||||
<view class="open-interest-item" v-for="(item, index) in rightsArr" :key="index" @click="onToast(item)">
|
||||
<image class="open-interest-icon" :src="item.icon"></image>
|
||||
@@ -26,16 +25,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="block work-hint">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||
:text="workerHint"
|
||||
textColor="gray"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
<!-- <view class="block open-interest">
|
||||
<view class="block open-interest">
|
||||
<view class="title">仅需3步即可成为实习顾问</view>
|
||||
<view class="open-interest-block">
|
||||
<image class="open-interest-icon" :src="isCertification ? require('@/static/icons/work_icon_25.png'): require('@/static/icons/work_icon_24.png')"></image>
|
||||
@@ -61,7 +51,7 @@
|
||||
</view>
|
||||
<button class="open-interest-btn" size="mini" :disabled="sign.isSign" @click="onSign">{{sign.isSign ? '已签约': '去签约'}}</button>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- 提示信息 -->
|
||||
<u-popup :show="privilegeShow" mode="center" bgColor="transparent">
|
||||
<view class="privilege-lay">
|
||||
@@ -74,44 +64,59 @@
|
||||
</u-popup>
|
||||
</block>
|
||||
<!-- 管理中台 -->
|
||||
<view class="flex" v-else>
|
||||
<view class="flex-item" @click="onNav('businessOrder', {bigId: item.id})" v-for="(item, index) in bigfiveArr" :key="index">
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/040906a765db310d77722cec9e0b9f46.png" mode="widthFix" v-if="index == 0"></image>
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/e0ac4aae85290f1148cea0005ed523a7.png" mode="widthFix" v-else-if="index == 1"></image>
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/8ff1eeeebd37b89026db8c2b8d1f87fc.png" mode="widthFix" v-else-if="index == 2"></image>
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/03167bf2cacaa63b6b0eebdf0fe31a92.png" mode="widthFix" v-else-if="index == 3"></image>
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/4dfe17b98e15dfdbae30df1a4fcddeaf.png" mode="widthFix" v-else></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">{{item.title}}订单</view>
|
||||
<view class="flex-tips">{{item.subtitle}}</view>
|
||||
</view>
|
||||
<image class="flex-arrow" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/943544e5693c009bbe873ddaedd9c4be.png" mode="widthFix"></image>
|
||||
<block v-else>
|
||||
<view class="flex">
|
||||
<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-tips">信用卡、贷款业务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onNav('ServiceWork')">
|
||||
<image class="flex-icon" src="/static/icons/icon_01.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">法律咨询类</view>
|
||||
<view class="flex-tips">个人、企业法律</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<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-tips">案件委托、拓展服务</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onToastTips()">
|
||||
<!-- @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-tips">销售、领袖、演说等</view>
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-item" @click="onNav('businessOther')">
|
||||
<image class="flex-icon" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/3f917a849dd07e254aaa9b0f218c8a0a.png" mode="widthFix"></image>
|
||||
<view class="flex-title">
|
||||
<view class="flex-name">其他咨询类订单</view>
|
||||
<view class="flex-tips">信用卡、贷款、个人、客户等</view>
|
||||
</view>
|
||||
<image class="flex-arrow" src="https://douhuo-demo.oss-cn-beijing.aliyuncs.com/images/2024/02/28/943544e5693c009bbe873ddaedd9c4be.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 未登录 -->
|
||||
<view v-else class="auth-null">
|
||||
<u-empty
|
||||
mode="permission"
|
||||
icon="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/c95ebcf8641fcbd413f990d661f638cb.gif"
|
||||
text="暂未登录"
|
||||
/>
|
||||
mode="permission"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.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'
|
||||
import { bigfive } from '@/apis/interfaces/index.js'
|
||||
import { index, rights, sign, synthesisCount } from '@/apis/interfaces/work.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -136,13 +141,7 @@
|
||||
address : ""
|
||||
},
|
||||
// 综法订单管理
|
||||
synthesisData : {},
|
||||
|
||||
bigfiveArr : [],
|
||||
captchaShow : false,
|
||||
// 工作台权限
|
||||
isWorker : false,
|
||||
workerHint : ""
|
||||
synthesisData : {}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -150,30 +149,9 @@
|
||||
this.isAuth = this.$store.getters.getToken != ''
|
||||
if(this.isAuth){
|
||||
this.getIndex()
|
||||
}
|
||||
|
||||
this.bigfiveInfo();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 最新五大板块
|
||||
bigfiveInfo(){
|
||||
bigfive({parent_id: 0}).then(res=>{
|
||||
this.bigfiveArr = res
|
||||
}).catch(err=>{
|
||||
uni.showToast({
|
||||
title:err.message,
|
||||
icon:'none',
|
||||
mask:true,
|
||||
duration:2000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 选择学期
|
||||
onChange(e){
|
||||
console.log(e)
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 签约
|
||||
onSign(){
|
||||
if(!this.isCertification){
|
||||
@@ -225,7 +203,7 @@
|
||||
indexData = res[1],
|
||||
synthesisData = res[2]
|
||||
|
||||
let { nickname, avatar, business_orders_count, isCertification, certification, isManager, isAnswer, identity, sign, is_worker, no_worker_message } = indexData
|
||||
let { nickname, avatar, business_orders_count, isCertification, certification, isManager, isAnswer, identity, sign } = indexData
|
||||
this.rightsArr = rightsData
|
||||
this.userInfo = {
|
||||
nickname,
|
||||
@@ -238,88 +216,48 @@
|
||||
this.orderCount = business_orders_count
|
||||
this.identity = identity
|
||||
this.sign = sign
|
||||
|
||||
this.synthesisData = synthesisData
|
||||
this.isWorker = is_worker
|
||||
this.workerHint = no_worker_message
|
||||
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 跳转
|
||||
// 导航
|
||||
onNav(name, obj){
|
||||
let params = obj || {}
|
||||
this.$Router.push({name, params})
|
||||
},
|
||||
// 创建订单
|
||||
onCreateOrder(){
|
||||
// 最新五大板块
|
||||
uni.showActionSheet({
|
||||
itemList: [this.bigfiveArr[0].title,this.bigfiveArr[1].title, this.bigfiveArr[2].title, this.bigfiveArr[3].title, this.bigfiveArr[4].title],
|
||||
success : res => {
|
||||
switch (res.tapIndex){
|
||||
case 0:
|
||||
this.onNav('businessBigFive', { children: encodeURIComponent(JSON.stringify(this.bigfiveArr[0].children)) })
|
||||
break;
|
||||
case 1:
|
||||
this.onNav('businessBigFive', { children: encodeURIComponent(JSON.stringify(this.bigfiveArr[1].children)) })
|
||||
break;
|
||||
case 2:
|
||||
this.onNav('businessBigFive', { children: encodeURIComponent(JSON.stringify(this.bigfiveArr[2].children)) })
|
||||
break;
|
||||
case 3:
|
||||
this.onNav('businessBigFive', { children: encodeURIComponent(JSON.stringify(this.bigfiveArr[3].children)) })
|
||||
break;
|
||||
case 4:
|
||||
this.onNav('businessBigFive', { children: encodeURIComponent(JSON.stringify(this.bigfiveArr[4].children)) })
|
||||
break;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// 旧数据备份
|
||||
// uni.showActionSheet({
|
||||
// itemList: ['线下订单','个人订单', '客户订单'],
|
||||
// success : res => {
|
||||
// switch (res.tapIndex){
|
||||
// case 0:
|
||||
// this.onNav('MagAccount2')
|
||||
// break;
|
||||
// case 1:
|
||||
// this.onNav('OrderCreate', { type: 'self' })
|
||||
// break;
|
||||
// case 2:
|
||||
// this.onNav('OrderCreate', { type: 'other' })
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
onCreateOrder(){
|
||||
uni.showActionSheet({
|
||||
itemList: ['个人订单', '客户订单'],
|
||||
success : res => {
|
||||
this.onNav('OrderCreate', {
|
||||
type: res.tapIndex === 0 ? 'self' : 'other'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onToastTips(){
|
||||
uni.showToast({
|
||||
title: '即将开放,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{
|
||||
.content{
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
// 权限提示
|
||||
.work-hint{
|
||||
height: 50vh;
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
color: gray;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
// 登录提示
|
||||
.auth-null{
|
||||
height: 100vh;
|
||||
@@ -591,45 +529,46 @@
|
||||
}
|
||||
}
|
||||
|
||||
.flex{
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
.flex-item {
|
||||
padding: 40rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #ffffff;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
position: relative;
|
||||
margin-bottom: 30rpx;
|
||||
.flex-icon {
|
||||
width: 80rpx;
|
||||
display: block;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.flex-title {
|
||||
width: calc(100% - 80rpx);
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
.flex-name {
|
||||
font-weight: bold;
|
||||
color: #405477;
|
||||
font-size: 34rpx;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
.flex-tips {
|
||||
font-size: 28rpx;
|
||||
color: #b2bbc9;
|
||||
}
|
||||
}
|
||||
.flex-arrow {
|
||||
width: 50rpx;
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: calc(50% - 25rpx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.flex{
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
&-item{
|
||||
background: white;
|
||||
padding: 30rpx;
|
||||
border-radius: 30rpx;
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.flex-icon{ width: 48px; height: 48px; background: #dce1fb; border-radius: 30rpx; }
|
||||
.flex-title{
|
||||
box-sizing: border-box;
|
||||
padding-left: 30rpx;
|
||||
.flex-name {
|
||||
color: #293f66;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
padding: 4rpx 0;
|
||||
}
|
||||
.flex-tips {
|
||||
color: #929db3;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
.flex-btn {
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: 48rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
border-radius: 80rpx;
|
||||
color: #468bff;
|
||||
background-color: #f8fbff;
|
||||
border: 2rpx solid #d8e6ff;
|
||||
font-size: 28rpx;
|
||||
padding: 0 25rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
methods: {
|
||||
// 订单详情
|
||||
getInfo(){
|
||||
info(this.orderId).then(res => {
|
||||
info(this.orderId).then(res => {
|
||||
let { status, created_at, total, order_no, user, item_type, items, services, service_prices, tutor, teachers } = res
|
||||
this.statusText = status
|
||||
this.created_at = created_at
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
127
yarn.lock
@@ -2,29 +2,11 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@babel/parser@^7.16.4", "@babel/parser@^7.18.4":
|
||||
"@babel/parser@^7.18.4":
|
||||
version "7.20.5"
|
||||
resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz"
|
||||
integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==
|
||||
|
||||
"@vue/compiler-core@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.45.tgz"
|
||||
integrity sha512-rcMj7H+PYe5wBV3iYeUgbCglC+pbpN8hBLTJvRiK2eKQiWqu+fG9F+8sW99JdL4LQi7Re178UOxn09puSXvn4A==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/shared" "3.2.45"
|
||||
estree-walker "^2.0.2"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-dom@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.45.tgz"
|
||||
integrity sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==
|
||||
dependencies:
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/compiler-sfc@2.7.14":
|
||||
version "2.7.14"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz"
|
||||
@@ -34,103 +16,21 @@
|
||||
postcss "^8.4.14"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-sfc@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.45.tgz"
|
||||
integrity sha512-1jXDuWah1ggsnSAOGsec8cFjT/K6TMZ0sPL3o3d84Ft2AYZi2jWJgRMjw4iaK0rBfA89L5gw427H4n1RZQBu6Q==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/compiler-ssr" "3.2.45"
|
||||
"@vue/reactivity-transform" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
postcss "^8.1.10"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-ssr@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.45.tgz"
|
||||
integrity sha512-6BRaggEGqhWht3lt24CrIbQSRD5O07MTmd+LjAn5fJj568+R9eUD2F7wMQJjX859seSlrYog7sUtrZSd7feqrQ==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/devtools-api@^6.0.0-beta.11":
|
||||
version "6.4.5"
|
||||
resolved "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.4.5.tgz"
|
||||
integrity sha512-JD5fcdIuFxU4fQyXUu3w2KpAJHzTVdN+p4iOX2lMWSHMOoQdMAcpFLZzm9Z/2nmsoZ1a96QEhZ26e50xLBsgOQ==
|
||||
|
||||
"@vue/reactivity-transform@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.45.tgz"
|
||||
integrity sha512-BHVmzYAvM7vcU5WmuYqXpwaBHjsS8T63jlKGWVtHxAHIoMIlmaMyurUSEs1Zcg46M4AYT5MtB1U274/2aNzjJQ==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
|
||||
"@vue/reactivity@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.45.tgz"
|
||||
integrity sha512-PRvhCcQcyEVohW0P8iQ7HDcIOXRjZfAsOds3N99X/Dzewy8TVhTCT4uXpAHfoKjVTJRA0O0K+6QNkDIZAxNi3A==
|
||||
dependencies:
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/runtime-core@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.45.tgz"
|
||||
integrity sha512-gzJiTA3f74cgARptqzYswmoQx0fIA+gGYBfokYVhF8YSXjWTUA2SngRzZRku2HbGbjzB6LBYSbKGIaK8IW+s0A==
|
||||
dependencies:
|
||||
"@vue/reactivity" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/runtime-dom@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.45.tgz"
|
||||
integrity sha512-cy88YpfP5Ue2bDBbj75Cb4bIEZUMM/mAkDMfqDTpUYVgTf/kuQ2VQ8LebuZ8k6EudgH8pYhsGWHlY0lcxlvTwA==
|
||||
dependencies:
|
||||
"@vue/runtime-core" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
csstype "^2.6.8"
|
||||
|
||||
"@vue/server-renderer@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.45.tgz"
|
||||
integrity sha512-ebiMq7q24WBU1D6uhPK//2OTR1iRIyxjF5iVq/1a5I1SDMDyDu4Ts6fJaMnjrvD3MqnaiFkKQj+LKAgz5WIK3g==
|
||||
dependencies:
|
||||
"@vue/compiler-ssr" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
"@vue/shared@3.2.45":
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.2.45.tgz"
|
||||
integrity sha512-Ewzq5Yhimg7pSztDV+RH1UDKBzmtqieXQlpTVm2AwraoRL/Rks96mvd8Vgi7Lj+h+TH8dv7mXD3FRZR3TUvbSg==
|
||||
|
||||
core-js@^2.6.5:
|
||||
version "2.6.12"
|
||||
resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz"
|
||||
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
|
||||
|
||||
csstype@^2.6.8:
|
||||
version "2.6.21"
|
||||
resolved "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz"
|
||||
integrity sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==
|
||||
|
||||
csstype@^3.1.0:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz"
|
||||
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
|
||||
|
||||
estree-walker@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz"
|
||||
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
|
||||
|
||||
eventemitter3@^4.0.7:
|
||||
version "4.0.7"
|
||||
resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz"
|
||||
@@ -141,13 +41,6 @@ lodash-es@^4.17.21:
|
||||
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz"
|
||||
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
|
||||
|
||||
magic-string@^0.25.7:
|
||||
version "0.25.9"
|
||||
resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz"
|
||||
integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==
|
||||
dependencies:
|
||||
sourcemap-codec "^1.4.8"
|
||||
|
||||
moment@^2.29.4:
|
||||
version "2.29.4"
|
||||
resolved "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz"
|
||||
@@ -177,7 +70,7 @@ platform@^1.3.6:
|
||||
resolved "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz"
|
||||
integrity sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==
|
||||
|
||||
postcss@^8.1.10, postcss@^8.4.14:
|
||||
postcss@^8.4.14:
|
||||
version "8.4.20"
|
||||
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz"
|
||||
integrity sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==
|
||||
@@ -196,11 +89,6 @@ source-map@^0.6.1:
|
||||
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
|
||||
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
||||
|
||||
sourcemap-codec@^1.4.8:
|
||||
version "1.4.8"
|
||||
resolved "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz"
|
||||
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
|
||||
|
||||
uni-read-pages@^1.0.5:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz"
|
||||
@@ -232,17 +120,6 @@ vue@^2.6.10:
|
||||
"@vue/compiler-sfc" "2.7.14"
|
||||
csstype "^3.1.0"
|
||||
|
||||
vue@^3.2.0, vue@3.2.45:
|
||||
version "3.2.45"
|
||||
resolved "https://registry.npmjs.org/vue/-/vue-3.2.45.tgz"
|
||||
integrity sha512-9Nx/Mg2b2xWlXykmCwiTUCWHbWIj53bnkizBxKai1g61f2Xit700A1ljowpTIM11e3uipOeiPcSqnmBg6gyiaA==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.2.45"
|
||||
"@vue/compiler-sfc" "3.2.45"
|
||||
"@vue/runtime-dom" "3.2.45"
|
||||
"@vue/server-renderer" "3.2.45"
|
||||
"@vue/shared" "3.2.45"
|
||||
|
||||
vuex@^4.0.2:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz"
|
||||
|
||||