This commit is contained in:
parent
83e56bb3ff
commit
926c71c0d3
329
api/user.js
329
api/user.js
|
@ -11,85 +11,110 @@ import request from "@/utils/request.js";
|
|||
|
||||
import request1 from "@/utils/requestb.js";
|
||||
import Cache from '@/utils/cache'
|
||||
|
||||
|
||||
/**
|
||||
* 提现----审核进度
|
||||
*/
|
||||
export function progressBankList(merId) {
|
||||
return request.get(`admin/${merId}/bank_progress`);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 提现----添加银行卡
|
||||
*/
|
||||
export function addBank(merId, data) {
|
||||
return request.post(`admin/${merId}/add_bank`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现----查询银行卡
|
||||
*/
|
||||
export function searchBank(merId) {
|
||||
return request.get(`admin/${merId}/bank_list`);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取版本信息
|
||||
*/
|
||||
export function Appversion(data) {
|
||||
return request.get(`app/version`, data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.get(`app/version`, data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 提交提现
|
||||
*/
|
||||
export function postCreateApplyAPI(merId, data) {
|
||||
return request.post(`admin/${merId}/create_apply`, data);
|
||||
return request.post(`admin/${merId}/create_apply`, data);
|
||||
}
|
||||
/**
|
||||
* 申请提现
|
||||
*/
|
||||
export function getAdminApplyAPI(merId, data) {
|
||||
return request.get(`admin/${merId}/apply`, data);
|
||||
return request.get(`admin/${merId}/apply`, data);
|
||||
}
|
||||
/**
|
||||
* 提现记录
|
||||
*/
|
||||
export function getAdminApplyListAPI(merId) {
|
||||
return request.get(`admin/${merId}/lis_apply`);
|
||||
return request.get(`admin/${merId}/lis_apply`);
|
||||
}
|
||||
/**
|
||||
* 获取用户信息
|
||||
*
|
||||
*/
|
||||
export function getUserInfo() {
|
||||
return request.get('user');
|
||||
return request.get('user');
|
||||
}
|
||||
/**
|
||||
* 头像
|
||||
*
|
||||
*/
|
||||
export function editAvatar(data) {
|
||||
return request.post('user/change/info', data);
|
||||
return request.post('user/change/info', data);
|
||||
}
|
||||
|
||||
// 修改昵称
|
||||
export function updateInfo(data) {
|
||||
return request.post('user/change/avatar', data);
|
||||
return request.post('user/change/avatar', data);
|
||||
}
|
||||
/**
|
||||
* h5用户登录
|
||||
* @param data object 用户账号密码
|
||||
*/
|
||||
export function loginH5(data) {
|
||||
return request.post("auth/login", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("auth/login", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* h5用户手机号登录
|
||||
* @param data object 用户手机号 也只能
|
||||
*/
|
||||
export function loginMobile(data) {
|
||||
return request.post("auth/smslogin", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("auth/smslogin", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* h5用户手机号登录
|
||||
* @param data object 用户手机号 也只能
|
||||
*/
|
||||
export function loginMpPhone(data) {
|
||||
return request.post("auth/mp_phone", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("auth/mp_phone", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 验证码key
|
||||
*/
|
||||
export function getCodeApi() {
|
||||
return request.get("verify_code", {}, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.get("verify_code", {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,18 +122,18 @@ export function getCodeApi() {
|
|||
* @param data object 用户手机号
|
||||
*/
|
||||
export function registerVerify(data) {
|
||||
return request.post("auth/verify", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("auth/verify", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* h5用户手机号注册
|
||||
* @param data object 用户手机号 验证码 密码
|
||||
*/
|
||||
export function register(data) {
|
||||
return request.post("auth/register", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("auth/register", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,30 +141,32 @@ export function register(data) {
|
|||
* @param data object 用户手机号 验证码 密码
|
||||
*/
|
||||
export function registerReset(data) {
|
||||
return request.post("/register/reset", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("/register/reset", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 用户手机号忘记密码
|
||||
*/
|
||||
export function registerForget(data) {
|
||||
return request.post("user/change_pwd", data, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post("user/change_pwd", data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 获取用户中心菜单
|
||||
*
|
||||
*/
|
||||
export function getMenuList() {
|
||||
return request.get("common/menus", {}, { noAuth: true });
|
||||
return request.get("common/menus", {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/*
|
||||
* 签到用户信息
|
||||
* */
|
||||
export function getSignUser() {
|
||||
return request.get("user/sign/info");
|
||||
return request.get("user/sign/info");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -147,20 +174,20 @@ export function getSignUser() {
|
|||
*
|
||||
*/
|
||||
export function getSignConfig() {
|
||||
return request.get('sign/config')
|
||||
return request.get('sign/config')
|
||||
}
|
||||
/**
|
||||
* 获取签到列表
|
||||
* @param object data
|
||||
*/
|
||||
export function getSignList(data) {
|
||||
return request.get('user/sign/lst', data);
|
||||
return request.get('user/sign/lst', data);
|
||||
}
|
||||
/**
|
||||
* 用户签到
|
||||
*/
|
||||
export function setSignIntegral() {
|
||||
return request.post('user/sign/create')
|
||||
return request.post('user/sign/create')
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,32 +196,32 @@ export function setSignIntegral() {
|
|||
*
|
||||
*/
|
||||
export function getSignMonthList(data) {
|
||||
return request.get('user/sign/month', data)
|
||||
return request.get('user/sign/month', data)
|
||||
}
|
||||
/**
|
||||
* 活动状态
|
||||
*
|
||||
*/
|
||||
export function userActivity() {
|
||||
return request.get('user/activity');
|
||||
return request.get('user/activity');
|
||||
}
|
||||
/*
|
||||
* 资金明细(types|0=全部,1=消费,2=充值,3=返佣)
|
||||
* */
|
||||
export function getCommissionInfo(q, types) {
|
||||
return request.get("user/bill", q);
|
||||
return request.get("user/bill", q);
|
||||
}
|
||||
/*
|
||||
* 提现列表
|
||||
* */
|
||||
export function extractLst(data) {
|
||||
return request.get("user/extract/lst", data);
|
||||
return request.get("user/extract/lst", data);
|
||||
}
|
||||
/*
|
||||
* 积分记录
|
||||
* */
|
||||
export function getIntegralList(data) {
|
||||
return request.get("user/integral/lst", data);
|
||||
return request.get("user/integral/lst", data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -202,16 +229,16 @@ export function getIntegralList(data) {
|
|||
*
|
||||
*/
|
||||
export function spreadBanner() {
|
||||
//#ifdef H5
|
||||
return request.get('user/spread_image', {
|
||||
type: 'wechat'
|
||||
});
|
||||
//#endif
|
||||
//#ifdef MP
|
||||
return request.get('user/spread_image', {
|
||||
type: 'routine'
|
||||
});
|
||||
//#endif
|
||||
//#ifdef H5
|
||||
return request.get('user/spread_image', {
|
||||
type: 'wechat'
|
||||
});
|
||||
//#endif
|
||||
//#ifdef MP
|
||||
return request.get('user/spread_image', {
|
||||
type: 'routine'
|
||||
});
|
||||
//#endif
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
@ -219,7 +246,7 @@ export function spreadBanner() {
|
|||
* @param object data
|
||||
*/
|
||||
export function spreadPeople(data) {
|
||||
return request.get('user/spread_list', data);
|
||||
return request.get('user/spread_list', data);
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
@ -227,13 +254,13 @@ export function spreadPeople(data) {
|
|||
* @param int type
|
||||
*/
|
||||
export function spreadCount(type) {
|
||||
return request.get('spread/count/' + type);
|
||||
return request.get('spread/count/' + type);
|
||||
}
|
||||
/*
|
||||
* 推广数据
|
||||
* */
|
||||
export function getSpreadInfo() {
|
||||
return request.get("/commission");
|
||||
return request.get("/commission");
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
@ -241,54 +268,54 @@ export function getSpreadInfo() {
|
|||
* @param object data
|
||||
*/
|
||||
export function spreadOrder(data) {
|
||||
return request.get('user/spread_order', data);
|
||||
return request.get('user/spread_order', data);
|
||||
}
|
||||
/*
|
||||
* 获取推广人排行
|
||||
* */
|
||||
export function getRankList(data) {
|
||||
return request.get("user/spread_top", data);
|
||||
return request.get("user/spread_top", data);
|
||||
}
|
||||
/*
|
||||
* 获取佣金排名
|
||||
* */
|
||||
export function getBrokerageRank(q) {
|
||||
return request.get("user/brokerage_top", q);
|
||||
return request.get("user/brokerage_top", q);
|
||||
}
|
||||
/**
|
||||
* 提现申请
|
||||
* @param object data
|
||||
*/
|
||||
export function extractCash(data) {
|
||||
return request.post('user/extract/create', data)
|
||||
return request.post('user/extract/create', data)
|
||||
}
|
||||
/**
|
||||
* 提现银行/提现最低金额
|
||||
*
|
||||
*/
|
||||
export function extractBank() {
|
||||
return request.get('user/extract/banklst');
|
||||
return request.get('user/extract/banklst');
|
||||
}
|
||||
/**
|
||||
* 会员等级列表
|
||||
*
|
||||
*/
|
||||
export function userLevelGrade() {
|
||||
return request.get('user/level/grade');
|
||||
return request.get('user/level/grade');
|
||||
}
|
||||
/**
|
||||
* 获取某个等级任务
|
||||
* @param int id 任务id
|
||||
*/
|
||||
export function userLevelTask(id) {
|
||||
return request.get('user/level/task/' + id);
|
||||
return request.get('user/level/task/' + id);
|
||||
}
|
||||
/**
|
||||
* 检查用户是否可以成为会员
|
||||
*
|
||||
*/
|
||||
export function userLevelDetection() {
|
||||
return request.get('user/level/detection');
|
||||
return request.get('user/level/detection');
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
@ -296,21 +323,21 @@ export function userLevelDetection() {
|
|||
* @param object data
|
||||
*/
|
||||
export function getAddressList(data) {
|
||||
return request.get('user/address/lst', data);
|
||||
return request.get('user/address/lst', data);
|
||||
}
|
||||
/**
|
||||
* 设置默认地址
|
||||
* @param int id
|
||||
*/
|
||||
export function setAddressDefault(id) {
|
||||
return request.post('user/address/update/' + id)
|
||||
return request.post('user/address/update/' + id)
|
||||
}
|
||||
/**
|
||||
* 修改 添加地址
|
||||
* @param object data
|
||||
*/
|
||||
export function editAddress(data) {
|
||||
return request.post('user/address/create', data);
|
||||
return request.post('user/address/create', data);
|
||||
}
|
||||
/**
|
||||
* 删除地址
|
||||
|
@ -318,285 +345,287 @@ export function editAddress(data) {
|
|||
*
|
||||
*/
|
||||
export function delAddress(id) {
|
||||
return request.post('user/address/delete/' + id)
|
||||
return request.post('user/address/delete/' + id)
|
||||
}
|
||||
/**
|
||||
* 获取单个地址
|
||||
* @param int id
|
||||
*/
|
||||
export function getAddressDetail(id) {
|
||||
return request.get('user/address/detail/' + id);
|
||||
return request.get('user/address/detail/' + id);
|
||||
}
|
||||
/**
|
||||
* 修改用户信息
|
||||
* @param object
|
||||
*/
|
||||
export function userEdit(data) {
|
||||
return request.post('user/edit', data);
|
||||
return request.post('user/edit', data);
|
||||
}
|
||||
/*
|
||||
* 退出登录
|
||||
* */
|
||||
export function getLogout() {
|
||||
return request.post("logout");
|
||||
return request.post("logout");
|
||||
}
|
||||
/**
|
||||
* 佣金转入
|
||||
*
|
||||
*/
|
||||
export function rechargeBrokerage(data) {
|
||||
return request.post('user/recharge/brokerage', data)
|
||||
return request.post('user/recharge/brokerage', data)
|
||||
}
|
||||
/**
|
||||
* 小程序充值
|
||||
*
|
||||
*/
|
||||
export function rechargeRoutine(data) {
|
||||
return request.post('recharge/routine', data)
|
||||
return request.post('recharge/routine', data)
|
||||
}
|
||||
/*
|
||||
* 公众号充值
|
||||
* */
|
||||
export function rechargeWechat(data) {
|
||||
return request.post("user/recharge", data);
|
||||
return request.post("user/recharge", data);
|
||||
}
|
||||
/**
|
||||
* 获取默认地址
|
||||
*
|
||||
*/
|
||||
export function getAddressDefault() {
|
||||
return request.get('address/default');
|
||||
return request.get('address/default');
|
||||
}
|
||||
/**
|
||||
* 充值金额选择
|
||||
*/
|
||||
export function getRechargeApi() {
|
||||
return request.get("common/recharge_quota");
|
||||
return request.get("common/recharge_quota");
|
||||
}
|
||||
/**
|
||||
* 登陆记录
|
||||
*/
|
||||
export function setVisit(data) {
|
||||
return request.post('user/set_visit', {
|
||||
...data
|
||||
}, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.post('user/set_visit', {
|
||||
...data
|
||||
}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 客服列表
|
||||
*/
|
||||
export function serviceList(data) {
|
||||
return request.get("service/list", data);
|
||||
return request.get("service/list", data);
|
||||
}
|
||||
/**
|
||||
* 客服列表
|
||||
*/
|
||||
export function serviceLogin(key, data) {
|
||||
return request.post("service/scan_login/" + key, data);
|
||||
return request.post("service/scan_login/" + key, data);
|
||||
}
|
||||
/**
|
||||
* 客服获取客户列表
|
||||
*/
|
||||
export function serviceUserList(mer_id, data) {
|
||||
return request.get("service/user_list/" + mer_id, data);
|
||||
return request.get("service/user_list/" + mer_id, data);
|
||||
}
|
||||
/**
|
||||
* 用户获取聊天记录详情
|
||||
*/
|
||||
export function getChatRecord(to_uid, data) {
|
||||
return request.get("service/history/" + to_uid, data);
|
||||
return request.get("service/history/" + to_uid, data);
|
||||
}
|
||||
/**
|
||||
* 客服获取聊天记录详情
|
||||
*/
|
||||
export function getMerHistory(userid, mer_id, data) {
|
||||
return request.get("service/mer_history/" + mer_id + '/' + userid, data);
|
||||
return request.get("service/mer_history/" + mer_id + '/' + userid, data);
|
||||
}
|
||||
/**
|
||||
* 静默绑定推广人
|
||||
* @param {Object} puid
|
||||
*/
|
||||
export function spread(puid) {
|
||||
Cache.set("spread", puid || 0);
|
||||
return request.post("user/spread", {
|
||||
spread_spid: puid
|
||||
});
|
||||
Cache.set("spread", puid || 0);
|
||||
return request.post("user/spread", {
|
||||
spread_spid: puid
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 反馈类型
|
||||
*/
|
||||
export function feedbackType() {
|
||||
return request.get("common/feedback_type");
|
||||
return request.get("common/feedback_type");
|
||||
}
|
||||
/**
|
||||
* 提交反馈
|
||||
*/
|
||||
export function feedback(data) {
|
||||
return request.post("user/feedback", {
|
||||
...data
|
||||
});
|
||||
return request.post("user/feedback", {
|
||||
...data
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 反馈列表
|
||||
*/
|
||||
export function feedbackList(data) {
|
||||
return request.get("user/feedback/list", data);
|
||||
return request.get("user/feedback/list", data);
|
||||
}
|
||||
/**
|
||||
* 反馈列表
|
||||
*/
|
||||
export function feedbackDetail(id) {
|
||||
return request.get("user/feedback/detail/" + id);
|
||||
return request.get("user/feedback/detail/" + id);
|
||||
}
|
||||
/**
|
||||
* 浏览记录
|
||||
*/
|
||||
export function historyList(data) {
|
||||
return request.get("user/history", data);
|
||||
return request.get("user/history", data);
|
||||
}
|
||||
/**
|
||||
* 删除浏览记录
|
||||
*/
|
||||
export function historyDelete(id) {
|
||||
return request.post("user/history/delete/" + id);
|
||||
return request.post("user/history/delete/" + id);
|
||||
}
|
||||
/**
|
||||
* 批量删除浏览记录
|
||||
*/
|
||||
export function historyBatchDelete(data) {
|
||||
return request.post("user/history/batch/delete", data);
|
||||
return request.post("user/history/batch/delete", data);
|
||||
}
|
||||
/**
|
||||
* 批量收藏浏览记录
|
||||
*/
|
||||
export function historyBatchCollect(data) {
|
||||
return request.post("user/relation/batch/create", data);
|
||||
return request.post("user/relation/batch/create", data);
|
||||
}
|
||||
/**
|
||||
* 佣金记录
|
||||
*/
|
||||
export function brokerage_list(data) {
|
||||
return request.get("user/brokerage_list", data);
|
||||
return request.get("user/brokerage_list", data);
|
||||
}
|
||||
/**
|
||||
* 佣金数据
|
||||
*/
|
||||
export function spreadInfo() {
|
||||
return request.get("user/spread_info");
|
||||
return request.get("user/spread_info");
|
||||
}
|
||||
// 图片验证码
|
||||
export function getCaptcha() {
|
||||
return request.get('captcha', {}, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.get('captcha', {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
// 用户账户列表
|
||||
export function userAcc() {
|
||||
return request.get('user/account', {}, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.get('user/account', {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
// 创建发票
|
||||
export function invoiceSave(data) {
|
||||
return request.post('user/receipt/create', data);
|
||||
return request.post('user/receipt/create', data);
|
||||
}
|
||||
// 编辑发票
|
||||
export function invoiceUpdate(id, data) {
|
||||
return request.post('user/receipt/update/' + id, data);
|
||||
return request.post('user/receipt/update/' + id, data);
|
||||
}
|
||||
// 获取默认发票
|
||||
export function invoiceDefault(id) {
|
||||
return request.post('user/receipt/is_default/' + id);
|
||||
return request.post('user/receipt/is_default/' + id);
|
||||
}
|
||||
// 发票抬头--列表
|
||||
export function invoice(data) {
|
||||
return request.get('user/receipt/lst', data);
|
||||
return request.get('user/receipt/lst', data);
|
||||
}
|
||||
// 发票抬头--删除
|
||||
export function invoiceDelete(id) {
|
||||
return request.post('user/receipt/delete/' + id);
|
||||
return request.post('user/receipt/delete/' + id);
|
||||
}
|
||||
// 发票--详情
|
||||
export function invoiceDetail(id) {
|
||||
return request.get('user/receipt/detail/' + id);
|
||||
return request.get('user/receipt/detail/' + id);
|
||||
}
|
||||
/**
|
||||
* 新版分享海报信息获取
|
||||
*
|
||||
*/
|
||||
export function spreadMsg(data) {
|
||||
return request.get('user/v2/spread_image', data);
|
||||
return request.get('user/v2/spread_image', data);
|
||||
}
|
||||
/**
|
||||
* 图片链接转base64
|
||||
*
|
||||
*/
|
||||
export function imgToBase(data) {
|
||||
return request.post('common/base64', data);
|
||||
return request.post('common/base64', data);
|
||||
}
|
||||
/**
|
||||
* 获取协议
|
||||
*
|
||||
*/
|
||||
export function getAgreementApi(key) {
|
||||
return request.get('agreement/' + key, {}, { noAuth: true });
|
||||
return request.get('agreement/' + key, {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 获取协议
|
||||
*
|
||||
*/
|
||||
export function getIntegralInfo() {
|
||||
return request.get('user/integral/info');
|
||||
return request.get('user/integral/info');
|
||||
}
|
||||
/**
|
||||
* 获取店铺列表
|
||||
*
|
||||
*/
|
||||
export function getStoreList(data) {
|
||||
return request.get('user/services', data);
|
||||
return request.get('user/services', data);
|
||||
}
|
||||
/*
|
||||
获取佣金说明
|
||||
*/
|
||||
export function commissionDescription() {
|
||||
return request.get('agreement/sys_extension_agree')
|
||||
return request.get('agreement/sys_extension_agree')
|
||||
}
|
||||
/*
|
||||
获取用户分销等级信息
|
||||
*/
|
||||
export function getBrokerageInfo() {
|
||||
return request.get('user/brokerage/info')
|
||||
return request.get('user/brokerage/info')
|
||||
}
|
||||
/*
|
||||
获取用户分销等级表格数据
|
||||
*/
|
||||
export function getBrokerageGrade() {
|
||||
return request.get('user/brokerage/all')
|
||||
return request.get('user/brokerage/all')
|
||||
}
|
||||
/*
|
||||
分销员升级提醒
|
||||
*/
|
||||
export function brokerageNotice(data) {
|
||||
return request.get(`user/brokerage/notice`, data)
|
||||
return request.get(`user/brokerage/notice`, data)
|
||||
}
|
||||
/*
|
||||
口令解析
|
||||
*/
|
||||
export function pwdResolution(data) {
|
||||
return request.get(`command/copy?key=${data}`)
|
||||
return request.get(`command/copy?key=${data}`)
|
||||
}
|
||||
/*
|
||||
获取佣金说明
|
||||
*/
|
||||
export function getInstructions(key) {
|
||||
return request.get(`agreement/${key}`)
|
||||
return request.get(`agreement/${key}`)
|
||||
}
|
||||
/*
|
||||
会员信息
|
||||
*/
|
||||
export function memberInfo() {
|
||||
return request.get('user/member/info')
|
||||
return request.get('user/member/info')
|
||||
}
|
||||
/**
|
||||
* 成长值记录
|
||||
|
@ -604,7 +633,7 @@ export function memberInfo() {
|
|||
*
|
||||
*/
|
||||
export function growthValueRecord(data) {
|
||||
return request.get('user/member/log', data)
|
||||
return request.get('user/member/log', data)
|
||||
}
|
||||
/**
|
||||
* 协议规则列表
|
||||
|
@ -612,7 +641,9 @@ export function growthValueRecord(data) {
|
|||
*
|
||||
*/
|
||||
export function cacheLst() {
|
||||
return request.get('agreement_lst', {}, { noAuth: true })
|
||||
return request.get('agreement_lst', {}, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 协议规则列表对应的数据
|
||||
|
@ -620,7 +651,9 @@ export function cacheLst() {
|
|||
*
|
||||
*/
|
||||
export function cacheInfo(key) {
|
||||
return request.get(`agreement/${key}`, {}, { noAuth: true })
|
||||
return request.get(`agreement/${key}`, {}, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 注销账户
|
||||
|
@ -628,7 +661,7 @@ export function cacheInfo(key) {
|
|||
*
|
||||
*/
|
||||
export function userOut(data) {
|
||||
return request.post(`user/cancel`, data)
|
||||
return request.post(`user/cancel`, data)
|
||||
}
|
||||
/**
|
||||
* 获取聊天用户信息
|
||||
|
@ -636,7 +669,7 @@ export function userOut(data) {
|
|||
*
|
||||
*/
|
||||
export function serviceUser(merId, uid) {
|
||||
return request.get(`service/user/${merId}/${uid}`)
|
||||
return request.get(`service/user/${merId}/${uid}`)
|
||||
}
|
||||
/**
|
||||
* 保存聊天用户备注
|
||||
|
@ -644,7 +677,9 @@ export function serviceUser(merId, uid) {
|
|||
*
|
||||
*/
|
||||
export function serviceSaveMark(merId, uid, mark) {
|
||||
return request.post(`service/mark/${merId}/${uid}`, { mark })
|
||||
return request.post(`service/mark/${merId}/${uid}`, {
|
||||
mark
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取会员卡类型
|
||||
|
@ -652,7 +687,7 @@ export function serviceSaveMark(merId, uid, mark) {
|
|||
*
|
||||
*/
|
||||
export function memberCard() {
|
||||
return request.get(`svip/pay_lst`)
|
||||
return request.get(`svip/pay_lst`)
|
||||
}
|
||||
/**
|
||||
* 开通付费会员--支付
|
||||
|
@ -660,7 +695,7 @@ export function memberCard() {
|
|||
*
|
||||
*/
|
||||
export function memberCardCreate(id, data) {
|
||||
return request.post(`svip/pay/${id}`, data)
|
||||
return request.post(`svip/pay/${id}`, data)
|
||||
}
|
||||
/**
|
||||
* 付费会员权益
|
||||
|
@ -668,7 +703,9 @@ export function memberCardCreate(id, data) {
|
|||
*
|
||||
*/
|
||||
export function memberEquity() {
|
||||
return request.get(`svip/user_info`, {}, { noAuth: true })
|
||||
return request.get(`svip/user_info`, {}, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 付费会员优惠券
|
||||
|
@ -676,7 +713,9 @@ export function memberEquity() {
|
|||
*
|
||||
*/
|
||||
export function memberCouponLst() {
|
||||
return request.get(`svip/coupon_lst`, {}, { noAuth: true })
|
||||
return request.get(`svip/coupon_lst`, {}, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 付费会员优惠券--领取
|
||||
|
@ -684,7 +723,7 @@ export function memberCouponLst() {
|
|||
*
|
||||
*/
|
||||
export function receiveMemberCoupon(id) {
|
||||
return request.post(`svip/coupon_receive/${id}`)
|
||||
return request.post(`svip/coupon_receive/${id}`)
|
||||
}
|
||||
/**
|
||||
* 付费会员--会员商品
|
||||
|
@ -692,7 +731,9 @@ export function receiveMemberCoupon(id) {
|
|||
*
|
||||
*/
|
||||
export function groomList(data) {
|
||||
return request.get(`svip/product_lst`, data, { noAuth: true })
|
||||
return request.get(`svip/product_lst`, data, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 客服聊天--撤回消息
|
||||
|
@ -700,7 +741,7 @@ export function groomList(data) {
|
|||
*
|
||||
*/
|
||||
export function chatReverstApi(id) {
|
||||
return request.post(`service/recall/${id}`)
|
||||
return request.post(`service/recall/${id}`)
|
||||
}
|
||||
/**
|
||||
* 客服聊天--判断店铺是否有在线客服
|
||||
|
@ -708,7 +749,7 @@ export function chatReverstApi(id) {
|
|||
*
|
||||
*/
|
||||
export function hasServiceApi(id) {
|
||||
return request.get(`has_service/${id}`)
|
||||
return request.get(`has_service/${id}`)
|
||||
}
|
||||
/**
|
||||
* 银行卡提现--银行卡信息
|
||||
|
@ -716,11 +757,11 @@ export function hasServiceApi(id) {
|
|||
*
|
||||
*/
|
||||
export function getBankInfo() {
|
||||
return request.get(`user/extract/history_bank`)
|
||||
return request.get(`user/extract/history_bank`)
|
||||
}
|
||||
// 商户账单管理
|
||||
export function getBillDetil() {
|
||||
return request.get(`mer/financial_record`)
|
||||
return request.get(`mer/financial_record`)
|
||||
}
|
||||
|
||||
|
||||
|
@ -728,5 +769,5 @@ export function getBillDetil() {
|
|||
//获取商户入驻所签署公司
|
||||
|
||||
export function merstreet(data) {
|
||||
return request1.get(`company/street_company`, data);
|
||||
}
|
||||
return request1.get(`company/street_company`, data);
|
||||
}
|
22
pages.json
22
pages.json
|
@ -303,6 +303,28 @@
|
|||
}
|
||||
],
|
||||
"subPackages": [{
|
||||
"root": "pages/withdrawal",
|
||||
"name": "withdrawal",
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "提货付款",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "add",
|
||||
"style": {
|
||||
"navigationBarTitleText": "添加银行卡",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "progress",
|
||||
"style": {
|
||||
"navigationBarTitleText": "提现进度",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
"root": "pages/payment",
|
||||
"name": "payment",
|
||||
"pages": [{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
|
||||
<view class="content-top">
|
||||
<view class="content-tops">
|
||||
<view class="content-top_img" v-if="Object.keys(userInfoData).length>0">
|
||||
|
@ -1450,7 +1449,6 @@
|
|||
title: '申请正在审核中,请勿重复提交'
|
||||
})
|
||||
}
|
||||
|
||||
} else {
|
||||
this.isFshow = true
|
||||
this.countDown()
|
||||
|
@ -1489,8 +1487,10 @@
|
|||
})
|
||||
break;
|
||||
case 5:
|
||||
//提现管理
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/embody/embody?mer_id=' + this.userInfoData.service.mer_id
|
||||
// url: '/pages/users/embody/embody?mer_id=' + this.userInfoData.service.mer_id
|
||||
url: '/pages/withdrawal/index?mer_id=' + this.userInfoData.service.mer_id
|
||||
})
|
||||
break;
|
||||
case 6:
|
||||
|
|
|
@ -0,0 +1,499 @@
|
|||
<!-- 类型变更 -->
|
||||
<style lang="scss">
|
||||
.withdrawal-con {
|
||||
height: calc(100vh - 88rpx - 184rpx - var(--status-bar-height) - 30rpx);
|
||||
overflow: auto;
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.withdrawal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
height: 102rpx;
|
||||
border-radius: 20rpx;
|
||||
margin: 0 30rpx 26rpx;
|
||||
padding: 0 26rpx 0 30rpx;
|
||||
|
||||
.withdrawal-left {
|
||||
display: flex;
|
||||
|
||||
.withdrawal-left-to {
|
||||
margin-right: 42rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.withdrawal-left-empty {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.withdrawal-right-add {
|
||||
font-size: 28rpx;
|
||||
color: #40AE36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-info {
|
||||
margin: 0 30rpx;
|
||||
|
||||
.withdrawal-form {
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.withdrawal-form-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 102rpx;
|
||||
border-bottom: 2rpx solid #FBFCFC;
|
||||
|
||||
.withdrawal-form-item-label {
|
||||
width: 120rpx;
|
||||
margin-right: 42rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.withdrawal-form-item-val {
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
|
||||
/deep/.uni-input-placeholder,
|
||||
.placeholderClass {
|
||||
font-size: 30rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-change {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
color: #40AE36;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-envidence {
|
||||
border-radius: 20rpx;
|
||||
|
||||
.withdrawal-envidence {
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.withdrawal-envidence-main {
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.withdrawal-envidence-sub {
|
||||
font-size: 22rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-envience-img {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background-color: #fff;
|
||||
padding: 24rpx 20rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.image-wrap {
|
||||
position: relative;
|
||||
width: 152rpx;
|
||||
height: 152rpx;
|
||||
background: #ccc;
|
||||
margin: 0 12rpx 8rpx 0;
|
||||
border-radius: 8rpx;
|
||||
|
||||
&:nth-child(4n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
position: absolute;
|
||||
right: -24rpx;
|
||||
top: -24rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 152rpx;
|
||||
height: 152rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder-img {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
border: 2rpx dashed #9E9E9E;
|
||||
border-radius: 8rpx;
|
||||
background-color: #F5F5F5;
|
||||
|
||||
text {
|
||||
font-size: 22rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 184rpx;
|
||||
width: 100%;
|
||||
padding-top: 32rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #f7f8f9;
|
||||
z-index: 10;
|
||||
|
||||
.withdrawal-btn-wrap {
|
||||
height: 88rpx;
|
||||
background: linear-gradient(359deg, #72BE53 0%, #46B03A 100%);
|
||||
border-radius: 88rpx;
|
||||
margin: 0 30rpx;
|
||||
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
|
||||
text {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #F5F5F5;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<view class="shop_type">
|
||||
<view class="shop_type-head">
|
||||
<view style="height: var(--status-bar-height);"></view>
|
||||
<view class="shop-type-navbar">
|
||||
<u-icon name="arrow-left" size="18" color="#fff" @click="handleBack" />
|
||||
<text class="shop-type-navbar-title">添加银行卡</text>
|
||||
<text></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 表单部分 -->
|
||||
<view class="withdrawal-con">
|
||||
<view class="withdrawal">
|
||||
<view class="withdrawal-left">
|
||||
<text class="withdrawal-left-to">提现至</text>
|
||||
<text
|
||||
class="withdrawal-left-empty">{{bindForm.is_own === 0 ? '法人账户' : bindForm.is_own === 1 ? '对公账户':'请选择账户类型'}}</text>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-right" @click="show = true">
|
||||
<text class="withdrawal-right-add">{{bindForm.is_own === ''?'选择':'更换'}}账户</text>
|
||||
<u-icon name="arrow-right" size="14" color="#40AE36"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现信息 法人账户-->
|
||||
<view class="withdrawal-info" v-if="bindForm.is_own === 0">
|
||||
<view class="withdrawal-form">
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户银行</view>
|
||||
<view class="withdrawal-form-item-val">{{bindForm.bank?bindForm.bank:'请选择开户银行'}}</view>
|
||||
|
||||
<view class="withdrawal-change" @click="changeBank">
|
||||
<text class="withdrawal-right-add">{{bindForm.bank?'更换':'选择'}}银行</text>
|
||||
<u-icon name="arrow-right" size="14" color="#40AE36"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">持卡人</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.name" type="text" placeholder="请输入持卡人"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">身份证</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.id_card" type="text" placeholder="请输入身份证"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">银行账户</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.bank_code" type="text" placeholder="请输入银行账户"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户网点</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.bank_branch" type="text" placeholder="请输入银行账户"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">手机号码</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.phone" type="text" placeholder="请输入手机号码"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 相关凭证 -->
|
||||
<view class="withdrawal-envidence">
|
||||
<view class="withdrawal-envidence">
|
||||
<text class="withdrawal-envidence-main">请上传相关凭证</text>
|
||||
<text class="withdrawal-envidence-sub">(图片格式支持JPG、PNG、JPEG)</text>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-envience-img">
|
||||
<view class="image-wrap" v-for="(item,indx) in bindForm.temp" :key="indx">
|
||||
<view class="icon" @click="delImg(indx)">
|
||||
<u-icon name="close-circle-fill" size="24" color="#909399" />
|
||||
</view>
|
||||
<image :src="item"></image>
|
||||
</view>
|
||||
|
||||
<view class="image-wrap placeholder-img" @click="handleUpload">
|
||||
<u-icon name="camera" size="40"></u-icon>
|
||||
<text>上传凭证</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现信息 对公账户-->
|
||||
<view class="withdrawal-info" v-if="bindForm.is_own === 1">
|
||||
<view class="withdrawal-form">
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户银行</view>
|
||||
<view class="withdrawal-form-item-val">{{bindForm.bank?bindForm.bank:'请选择开户银行'}}</view>
|
||||
|
||||
<view class="withdrawal-change" @click="changeBank">
|
||||
<text class="withdrawal-right-add">{{bindForm.bank?'更换':'选择'}}银行</text>
|
||||
<u-icon name="arrow-right" size="14" color="#40AE36"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">账户名称</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.name" type="text" placeholder="请输入账户名称"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">银行账户</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.bank_code" type="text" placeholder="请输入银行账户"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户网点</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input v-model="bindForm.bank_branch" type="text" placeholder="请输入开户网点"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现btn -->
|
||||
<view class="withdrawal-btn tapActive" v-if="bindForm.is_own !== ''" @click="handleBind">
|
||||
<view class="withdrawal-btn-wrap">
|
||||
<text>提交绑定</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现账户 -->
|
||||
<u-action-sheet title="请选择提现账户" :actions="list" :show="show" round="15" @select="handleSelected"
|
||||
@close="show = false"></u-action-sheet>
|
||||
|
||||
<!-- 银行 -->
|
||||
<u-action-sheet title="请选择银行" :actions="bankList" :show="bankShow" round="15" @select="handleSelectedBank"
|
||||
@close="bankShow = false"></u-action-sheet>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
extractBank,
|
||||
addBank,
|
||||
searchBank
|
||||
} from "@/api/user.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [{
|
||||
name: '对公账户'
|
||||
}, {
|
||||
name: '法人账户'
|
||||
}],
|
||||
show: false,
|
||||
bankList: [], //银行列表
|
||||
bankShow: false,
|
||||
bindForm: {
|
||||
name: '', //姓名
|
||||
bank: '', //银行
|
||||
bank_code: '', //银行卡号
|
||||
bank_branch: '', //开户行信息
|
||||
financial_img: '', //凭证
|
||||
id_card: '', //身份证号码
|
||||
phone: '', //手机号
|
||||
is_own: '', //转账类型(0个人,1对公)
|
||||
temp: []
|
||||
},
|
||||
mer_id: 30
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
// 账户类型
|
||||
handleSelected(e) {
|
||||
this.show = false;
|
||||
if (e.name == '法人账户') this.bindForm.is_own = 0;
|
||||
if (e.name == '对公账户') this.bindForm.is_own = 1;
|
||||
},
|
||||
|
||||
// 上传图片
|
||||
handleUpload() {
|
||||
this.$util.uploadImageOne('upload/image', res => {
|
||||
this.bindForm.temp.push(res.data.path);
|
||||
});
|
||||
},
|
||||
|
||||
// 删除图片
|
||||
delImg(index) {
|
||||
this.bindForm.temp.splice(index, 1);
|
||||
},
|
||||
|
||||
// 选择银行卡
|
||||
handleSelectedBank(e) {
|
||||
this.bindForm.bank = e.name;
|
||||
this.bankShow = false;
|
||||
},
|
||||
|
||||
// 获取银行卡
|
||||
changeBank() {
|
||||
if (this.bankList.length > 0) {
|
||||
this.bankShow = true;
|
||||
} else {
|
||||
extractBank().then(res => {
|
||||
this.bankList = res.data;
|
||||
this.bankShow = true;
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 绑定账号
|
||||
handleBind() {
|
||||
if (!this.bindForm.name) return this.$util.Tips({
|
||||
title: this.bindForm.is_own === 0 ? '法人姓名不能为空!' : '账户名称不能为空!'
|
||||
});
|
||||
|
||||
if (!this.bindForm.bank) return this.$util.Tips({
|
||||
title: '开户银行不能为空!'
|
||||
});
|
||||
|
||||
if (!this.bindForm.bank) return this.$util.Tips({
|
||||
title: '银行账户不能为空!!'
|
||||
});
|
||||
|
||||
if (!this.bindForm.bank_branch) return this.$util.Tips({
|
||||
title: '开户网点不能为空!'
|
||||
});
|
||||
|
||||
// 法人账号验证
|
||||
if (this.bindForm.is_own === 0) {
|
||||
if (!this.bindForm.temp.length > 0) return this.$util.Tips({
|
||||
title: '开户网点不能为空!'
|
||||
});
|
||||
this.bindForm.financial_img = this.bindForm.temp.join(",");
|
||||
|
||||
if (!uni.$u.test.idCard(this.bindForm.id_card)) return this.$util.Tips({
|
||||
title: '身份证不能为空!'
|
||||
});
|
||||
|
||||
if (!uni.$u.test.mobile(this.bindForm.phone)) return this.$util.Tips({
|
||||
title: '手机号有误!'
|
||||
});
|
||||
}
|
||||
|
||||
addBank(this.mer_id, this.bindForm).then(res => {
|
||||
this.$util.Tips({
|
||||
title: '提交成功,请等待后台审核!'
|
||||
}, () => {
|
||||
uni.navigateBack();
|
||||
});
|
||||
}).catch(err => {
|
||||
this.$util.Tips({
|
||||
title: 'err'
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
// 返回上一级
|
||||
handleBack() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F8F9FA;
|
||||
}
|
||||
|
||||
.shop_type {
|
||||
padding-bottom: 184rpx;
|
||||
|
||||
.shop_type-head {
|
||||
background-color: #40AE36;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.shop-type-navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx;
|
||||
height: 88rpx;
|
||||
|
||||
.shop-type-navbar-title {
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,488 @@
|
|||
<!-- 类型变更 -->
|
||||
<style lang="scss">
|
||||
.withdrawal-con {
|
||||
height: calc(100vh - 88rpx - 184rpx - var(--status-bar-height) - 30rpx);
|
||||
overflow: auto;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.withdrawal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
height: 102rpx;
|
||||
border-radius: 20rpx;
|
||||
margin: 0 30rpx 26rpx;
|
||||
padding: 0 26rpx 0 30rpx;
|
||||
|
||||
.withdrawal-left {
|
||||
display: flex;
|
||||
|
||||
.withdrawal-left-to {
|
||||
margin-right: 42rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.withdrawal-left-empty {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.withdrawal-right-add {
|
||||
font-size: 28rpx;
|
||||
color: #40AE36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 184rpx;
|
||||
width: 100%;
|
||||
padding-top: 32rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #f7f8f9;
|
||||
z-index: 10;
|
||||
|
||||
.withdrawal-btn-wrap {
|
||||
height: 88rpx;
|
||||
background: linear-gradient(359deg, #72BE53 0%, #46B03A 100%);
|
||||
border-radius: 88rpx;
|
||||
margin: 0 30rpx;
|
||||
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
|
||||
text {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #F5F5F5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-info {
|
||||
margin: 0 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding-bottom: 38rpx;
|
||||
|
||||
.withdrawal-form {
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.withdrawal-form-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 102rpx;
|
||||
border-bottom: 2rpx solid #FBFCFC;
|
||||
|
||||
.withdrawal-form-item-label {
|
||||
width: 120rpx;
|
||||
margin-right: 42rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.withdrawal-form-item-val {
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
|
||||
input {}
|
||||
|
||||
.placeholderClass {
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.withdrawal-pro {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 24rpx;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.withdrawal-pro-txt {
|
||||
font-size: 24rpx;
|
||||
color: #F66C42;
|
||||
}
|
||||
|
||||
.withdrawal-pro-progress {
|
||||
font-size: 24rpx;
|
||||
color: #40AE36;
|
||||
}
|
||||
}
|
||||
|
||||
.tips {
|
||||
margin: 0 30rpx;
|
||||
|
||||
view {
|
||||
margin-bottom: 20rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
line-height: 36rpx;
|
||||
|
||||
text {
|
||||
color: #F55726;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<view class="shop_type" v-if="bankInfo">
|
||||
<view class="shop_type-head">
|
||||
<view style="height: var(--status-bar-height);"></view>
|
||||
<view class="shop-type-navbar">
|
||||
<u-icon name="arrow-left" size="18" color="#fff" @click="handleBack" />
|
||||
<text class="shop-type-navbar-title">提现</text>
|
||||
<text></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="withdrawal-con">
|
||||
<view class="withdrawal">
|
||||
<view class="withdrawal-left" @click="handleAddAccount">
|
||||
<text class="withdrawal-left-to">提现至</text>
|
||||
<text class="withdrawal-left-empty">{{bankInfo.is_own === 0 ? '法人账户' : '对公账户'}}</text>
|
||||
</view>
|
||||
<view class="withdrawal-right" v-if="bankList.length < 2 ">
|
||||
<text class="withdrawal-right-add">更改账户</text>
|
||||
<u-icon name="arrow-right" size="14" color="#40AE36"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现信息 法人账户-->
|
||||
<view class="withdrawal-info" v-if="bankInfo.is_own === 0">
|
||||
<view class="withdrawal-form">
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">银行卡</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">持卡人</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.name}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">身份证</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.id_card}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">银行账户</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank_code}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户网点</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank_branch}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">提现金额</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input type="number" v-model="payForm.extract_money" placeholder="请输入提现金额"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 协议 -->
|
||||
<view class="withdrawal-pro">
|
||||
<text class="withdrawal-pro-txt">《企业授权法人提现书》</text>
|
||||
<text class="withdrawal-pro-progress" @click="viewProgress">查看审核进度</text>
|
||||
</view>
|
||||
|
||||
<!-- 提示 -->
|
||||
<view class="tips">
|
||||
<view>当前可提现金额:¥{{extract_money || '0.00'}},暂存金额: ¥{{lock_money || '0.00'}}</view>
|
||||
<view>当前商户押金:¥{{ot_margin || '0.00'}}</view>
|
||||
<view>说明:用户下单后该订单金额存放在暂存金额中,用户确认收货后次日18:00才可提现该笔订单金额
|
||||
提货付款订单在完成后次日18:00才可提现</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现信息 对公账户-->
|
||||
<view class="withdrawal-info" v-else>
|
||||
<view class="withdrawal-form">
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">对公账户</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.name}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">银行账户</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank_code}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户银行</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">开户网点</view>
|
||||
<view class="withdrawal-form-item-val">{{bankInfo.financial_account.bank_branch}}</view>
|
||||
</view>
|
||||
<view class="withdrawal-form-item">
|
||||
<view class="withdrawal-form-item-label">提现金额</view>
|
||||
<view class="withdrawal-form-item-val">
|
||||
<input type="number" v-model="payForm.extract_money" placeholder="请输入提现金额"
|
||||
placeholder-class="placeholderClass">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 协议 -->
|
||||
<view class="withdrawal-pro">
|
||||
<!-- <text class="withdrawal-pro-txt">《企业授权法人提现书》</text> -->
|
||||
<text class="withdrawal-pro-progress" @click="viewProgress">查看审核进度</text>
|
||||
</view>
|
||||
|
||||
<!-- 提示 -->
|
||||
<view class="tips">
|
||||
<view>当前可提现金额:¥{{extract_money || '0.00'}},暂存金额: ¥{{lock_money || '0.00'}}</view>
|
||||
<view>当前商户押金:¥{{ot_margin || '0.00'}}</view>
|
||||
<view>说明:用户下单后该订单金额存放在暂存金额中,用户确认收货后次日18:00才可提现该笔订单金额
|
||||
提货付款订单在完成后次日18:00才可提现</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 提现btn -->
|
||||
<view class="withdrawal-btn tapActive" @click="handleSubmit">
|
||||
<view class="withdrawal-btn-wrap">
|
||||
<text v-if="bankList.length == 0">点击查看审核进度</text>
|
||||
<text v-else>点击提现</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提现提示 -->
|
||||
<u-modal :show="tipShow" title="提示"
|
||||
content='工作日当日10点前提现当日12点到账, 当日16点前提现当日18点到账, 当日18点后提现次日12点到账, 周末节假日提现, 下一工作日18点前到账'
|
||||
@confirm="tipShow = false"></u-modal>
|
||||
|
||||
<!-- 支付密码 键盘 -->
|
||||
<popups ref="popups" :isPay="true" @confirm="handleConfirm" @clear="handleClear" @change="handleChange" />
|
||||
|
||||
<!-- 密码错误事件处理 -->
|
||||
<payPwd ref="payPwd" @left="handleLeft" @right="handleRight"></payPwd>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
getAdminApplyAPI
|
||||
import {
|
||||
postCreateApplyAPI,
|
||||
getAdminApplyAPI,
|
||||
} from '@/api/user.js'
|
||||
import {
|
||||
searchBank
|
||||
} from "@/api/user.js";
|
||||
import payPwd from "@/components/payPwd/index.vue";
|
||||
import popups from "@/components/popups/index.vue";
|
||||
export default {
|
||||
components: {
|
||||
popups,
|
||||
payPwd
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tipShow: false,
|
||||
bankList: [],
|
||||
bankInfo: undefined,
|
||||
type: 0, //初始话类型 0 法人 1 对公账号
|
||||
payForm: {
|
||||
extract_money: "",
|
||||
financial_bank_bank: "",
|
||||
financial_bank_branch: "",
|
||||
financial_bank_code: "",
|
||||
financial_bank_name: "",
|
||||
financial_type: 1,
|
||||
withdrawal_pwd: "",
|
||||
},
|
||||
mer_id: '',
|
||||
ot_margin: '', //押金
|
||||
extract_money: '', //可提现金额
|
||||
lock_money: '', //暂存金额
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(opt) {
|
||||
this.mer_id = opt.mer_id;
|
||||
this.getBankInfo();
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 提现信息
|
||||
getBankInfo() {
|
||||
searchBank(this.mer_id).then(res => {
|
||||
this.bankList = res.data.bank;
|
||||
this.bankInfo = this.bankList[this.type];
|
||||
|
||||
this.ot_margin = res.data.ot_margin; //押金
|
||||
this.extract_money = res.data.extract_money //可提现金额
|
||||
this.lock_money = res.data.lock_money //暂存金额
|
||||
})
|
||||
},
|
||||
|
||||
// 切换账号
|
||||
handleAddAccount() {
|
||||
if (this.bankList.length < 2) {
|
||||
let isOwn = this.bankList[0].financial_account.is_own;
|
||||
if (isOwn === 0) {
|
||||
return this.$util.Tips({
|
||||
title: "您还没有添加对公账户!"
|
||||
})
|
||||
} else {
|
||||
return this.$util.Tips({
|
||||
title: "您还没有添加法人账户!"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (this.type === 0)
|
||||
this.type = 1;
|
||||
else
|
||||
this.type = 0;
|
||||
this.bankInfo = this.bankList[this.type];
|
||||
},
|
||||
|
||||
// 查看进度
|
||||
viewProgress() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/withdrawal/progress?mer_id=" + this.mer_id
|
||||
})
|
||||
},
|
||||
|
||||
// 提交
|
||||
async handleSubmit() {
|
||||
if (this.bankList.length == 0) {
|
||||
this.viewProgress();
|
||||
} else {
|
||||
this.payForm.financial_bank_bank = this.bankInfo.financial_account.bank;
|
||||
this.payForm.financial_bank_branch = this.bankInfo.financial_account.bank_branch;
|
||||
this.payForm.financial_bank_code = this.bankInfo.financial_account.bank_code;
|
||||
this.payForm.financial_bank_name = this.bankInfo.financial_account.name;
|
||||
|
||||
if (!this.payForm.extract_money) return this.$util.Tips({
|
||||
title: '请输入提现金额'
|
||||
});
|
||||
|
||||
if (!Number(this.payForm.extract_money) < 0) return this.$util.Tips({
|
||||
title: '请输入正确的提现金额'
|
||||
});
|
||||
|
||||
|
||||
// 是否输入密码
|
||||
const result = await this.$util.checkPassword();
|
||||
if (result.data.code == 101) { //未设置支付密码
|
||||
return this.$util.Tips({
|
||||
title: "您暂未设置支付密码,请前往设置!"
|
||||
}, () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/users/user_modify_pwd/index?type=payPwd"
|
||||
});
|
||||
})
|
||||
}
|
||||
this.$refs.popups.handleOpen();
|
||||
}
|
||||
},
|
||||
|
||||
// 输入密码回调
|
||||
async handleConfirm(e) {
|
||||
const result = await this.$util.checkPassword(e);
|
||||
// 验证密码正确
|
||||
if (result.data.code == 100) {
|
||||
this.$set(this.payForm, 'withdrawal_pwd', e);
|
||||
this.submit();
|
||||
} else {
|
||||
this.$refs.payPwd.handleOpen(result.data.code);
|
||||
}
|
||||
},
|
||||
|
||||
// 弹框左边按钮 101 未设置密码 102 忘记密码 都去设置密码
|
||||
handleLeft(code) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/users/user_modify_pwd/index?type=payPwd"
|
||||
});
|
||||
this.$refs.payPwd.handleClose();
|
||||
},
|
||||
|
||||
// 弹框右边按钮 取消 重试
|
||||
handleRight(code) {
|
||||
if (code == 101) { //取消
|
||||
this.$refs.payPwd.handleClose(code);
|
||||
} else {
|
||||
this.$refs.payPwd.handleClose();
|
||||
this.$refs.popups.handleOpen();
|
||||
}
|
||||
},
|
||||
|
||||
handleClear() {},
|
||||
handleChange(val) {
|
||||
if (!val)
|
||||
this.load = false;
|
||||
},
|
||||
|
||||
submit() {
|
||||
uni.showLoading({
|
||||
title: '申请提现中~',
|
||||
mask: true
|
||||
});
|
||||
postCreateApplyAPI(this.mer_id, this.payForm).then(res => {
|
||||
uni.hideLoading();
|
||||
this.$util.Tips({
|
||||
title: "提现申请成功,请等待审核!"
|
||||
}, () => {
|
||||
uni.navigateBack()
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
this.$util.Tips({
|
||||
title: err
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
handleBack() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F8F9FA;
|
||||
}
|
||||
|
||||
.shop_type {
|
||||
padding-bottom: 184rpx;
|
||||
|
||||
.shop_type-head {
|
||||
background-color: #40AE36;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.shop-type-navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx;
|
||||
height: 88rpx;
|
||||
|
||||
.shop-type-navbar-title {
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,8 @@
|
|||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
|
@ -0,0 +1,194 @@
|
|||
<!-- 银行卡审核进度 -->
|
||||
<template>
|
||||
<view class="shop_type">
|
||||
<view class="shop_type-head">
|
||||
<view style="height: var(--status-bar-height);"></view>
|
||||
<view class="shop-type-navbar">
|
||||
<u-icon name="arrow-left" size="18" color="#fff" @click="handleBack" />
|
||||
<text class="shop-type-navbar-title">类型变更</text>
|
||||
<text></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 进度详情 -->
|
||||
<view class="shop-type-con-progress" v-for="(item,indx) in bankList" :key="indx">
|
||||
<view class="shop-type-con-detail">{{item.is_own === 0?'法人账户':'对公账户'}}进度详情</view>
|
||||
<view class="shop-type-con-progress-card">
|
||||
<view class="shop-type-con-progress-left">
|
||||
<view class="shop-type-con-progress-left-item">
|
||||
<u-icon name="checkmark-circle-fill" size="20" color="#40AE36"></u-icon>
|
||||
</view>
|
||||
<view class="dot"></view>
|
||||
<view class="dot"></view>
|
||||
<view class="dot"></view>
|
||||
<view class="dot"></view>
|
||||
<view class="dot"></view>
|
||||
<view class="dot"></view>
|
||||
<view class="shop-type-con-progress-left-item">
|
||||
<u-icon name="checkmark-circle-fill" size="18" color="#999" v-if="item.is_check == 0" />
|
||||
<u-icon name="checkmark-circle-fill" size="18" color="#40AE36" v-if="item.is_check == 1" />
|
||||
<u-icon name="close-circle-fill" size="20" color="#F55726" v-if="item.is_check == 2" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop-type-con-progress-right">
|
||||
<view style="display:flex;margin-bottom: 46rpx;justify-content: space-between;align-items: center;">
|
||||
<view class="shop-type-con-progress-right-name">申请已提交</view>
|
||||
<view class="shop-type-con-progress-right-time">{{item.create_time}}</view>
|
||||
</view>
|
||||
<view style="display: flex;justify-content: space-between;align-items: center;margin-bottom:10rpx;">
|
||||
<view class="shop-type-con-progress-right-name">
|
||||
{{item.is_check == 0?'待审核人员审核':item.is_check==1?'审核通过':'审核未通过'}}
|
||||
</view>
|
||||
<view class="shop-type-con-progress-right-time" v-if="item.is_check == 1 || item.is_check == 2">
|
||||
{{item.update_time}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="audit-info" v-if="item.is_check != 0">
|
||||
<view style="margin-bottom: 10rpx;">
|
||||
审批人:{{item.adminInfo.real_name?item.adminInfo.real_name:item.adminInfo.account?item.adminInfo.account:''}}
|
||||
</view>
|
||||
<view class="audit-info-txt" v-if="item.is_check == 2">审核不通过:{{item.fail_msg}}</view>
|
||||
<view style="text-align: right;color:#46B03A;font-weight: bold;" v-if="item.is_check == 2">去修改
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
progressBankList
|
||||
} from "@/api/user.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
status: 2,
|
||||
check_name: '',
|
||||
fail_msg: '',
|
||||
create_time: ''
|
||||
},
|
||||
mer_id: '',
|
||||
data0: undefined, //法人账户
|
||||
data1: undefined, //对共账户
|
||||
bankList: []
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(opt) {
|
||||
this.mer_id = opt.mer_id;
|
||||
progressBankList(this.mer_id).then(res => {
|
||||
this.bankList = res.data.list;
|
||||
// const data0 = res.data.bank.find(i => i.is_own === 0);
|
||||
// if (data0 != undefined) this.data0 = data0;
|
||||
|
||||
// const data1 = res.data.bank.find(i => i.is_own === 1);
|
||||
// if (data1 != undefined) this.data1 = data1;
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
handleBack() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F8F9FA;
|
||||
}
|
||||
|
||||
.shop_type {
|
||||
padding-bottom: 184rpx;
|
||||
|
||||
.shop_type-head {
|
||||
background-color: #40AE36;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.shop-type-navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx;
|
||||
height: 88rpx;
|
||||
|
||||
.shop-type-navbar-title {
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shop-type-con-progress {
|
||||
margin: 0 30rpx 30rpx;
|
||||
|
||||
.shop-type-con-detail {
|
||||
margin-bottom: 20rpx;
|
||||
margin-left: 20rpx;
|
||||
font-weight: 600;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.shop-type-con-progress-card {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
padding: 30rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 4rpx 6rpx 2rpx rgba(0, 0, 0, 0.16);
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
|
||||
.shop-type-con-progress-left {
|
||||
width: 12%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.dot {
|
||||
width: 4rpx;
|
||||
height: 4rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #ccc;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.shop-type-con-progress-left-item {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.shop-type-con-progress-right {
|
||||
flex: 1;
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
&:nth-last-child(1) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.shop-type-con-progress-right-name {
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.shop-type-con-progress-right-time {
|
||||
font-size: 26rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.audit-info {
|
||||
font-size: 22rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue