diff --git a/uni-app/App.vue b/uni-app/App.vue
index b1529b849..232a87d9e 100644
--- a/uni-app/App.vue
+++ b/uni-app/App.vue
@@ -1,37 +1,40 @@
+
diff --git a/uni-app/components/diy/extend/hello-info/index.vue b/uni-app/components/diy/extend/hello-info/index.vue
new file mode 100644
index 000000000..34d1158bc
--- /dev/null
+++ b/uni-app/components/diy/extend/hello-info/index.vue
@@ -0,0 +1,24 @@
+
+
+ 演示插件信息——自定义组件
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/diy/extend/hello-text/index.vue b/uni-app/components/diy/extend/hello-text/index.vue
new file mode 100644
index 000000000..675230e9e
--- /dev/null
+++ b/uni-app/components/diy/extend/hello-text/index.vue
@@ -0,0 +1,24 @@
+
+
+ 演示插件文本——自定义组件
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/diy/group/index.vue b/uni-app/components/diy/group/index.vue
index fdb8c9100..ff8f20937 100644
--- a/uni-app/components/diy/group/index.vue
+++ b/uni-app/components/diy/group/index.vue
@@ -6,35 +6,41 @@
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
@@ -43,7 +49,7 @@
-
-
\ No newline at end of file
diff --git a/uni-app/components/diy/article/index.vue b/uni-app/components/diy/system/article/index.vue
similarity index 100%
rename from uni-app/components/diy/article/index.vue
rename to uni-app/components/diy/system/article/index.vue
diff --git a/uni-app/components/diy/graphic-nav/index.vue b/uni-app/components/diy/system/graphic-nav/index.vue
similarity index 97%
rename from uni-app/components/diy/graphic-nav/index.vue
rename to uni-app/components/diy/system/graphic-nav/index.vue
index cd6dc25e8..679653a4e 100644
--- a/uni-app/components/diy/graphic-nav/index.vue
+++ b/uni-app/components/diy/system/graphic-nav/index.vue
@@ -1,12 +1,12 @@
-
-
-
+
+
diff --git a/uni-app/components/diy/horz-blank/index.vue b/uni-app/components/diy/system/horz-blank/index.vue
similarity index 100%
rename from uni-app/components/diy/horz-blank/index.vue
rename to uni-app/components/diy/system/horz-blank/index.vue
diff --git a/uni-app/components/diy/image-ads/index.vue b/uni-app/components/diy/system/image-ads/index.vue
similarity index 100%
rename from uni-app/components/diy/image-ads/index.vue
rename to uni-app/components/diy/system/image-ads/index.vue
diff --git a/uni-app/components/diy/system/member-info/index.vue b/uni-app/components/diy/system/member-info/index.vue
new file mode 100644
index 000000000..b1f401710
--- /dev/null
+++ b/uni-app/components/diy/system/member-info/index.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ info.nickname }}
+ {{ t('memberLanguage') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('login') }}/{{ t('register') }}
+ {{ t('memberLanguage') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseInt(info?.point) || 0 }}
+
+
+ {{ t('point') }}
+
+
+
+
+ {{ money }}
+
+
+ {{ t('balance') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('memberCenter') }}
+
+
+
+
+
+
+
+ {{ t('myBalance') }}
+
+
+
+
+
+
+
+ {{ t('myPoint') }}
+
+
+
+
+
+
+
+ {{ t('customerService') }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/diy/text/index.vue b/uni-app/components/diy/system/text/index.vue
similarity index 100%
rename from uni-app/components/diy/text/index.vue
rename to uni-app/components/diy/system/text/index.vue
diff --git a/uni-app/components/information-filling/information-filling.vue b/uni-app/components/information-filling/information-filling.vue
index ec8c00bf2..dfab7d3c3 100644
--- a/uni-app/components/information-filling/information-filling.vue
+++ b/uni-app/components/information-filling/information-filling.vue
@@ -35,7 +35,7 @@
import { t } from '@/locale'
import useMemberStore from '@/stores/member'
import { img } from '@/utils/common'
- import { updateMember } from '@/api/member'
+ import { modifyMember } from '@/api/member'
import { fetchBase64Image } from '@/api/system'
const show = ref(false)
@@ -92,7 +92,7 @@
loading.value = true
// 修改头像
- await updateMember({ field: 'headimg', value: formData.headimg })
+ await modifyMember({ field: 'headimg', value: formData.headimg })
.then(() => {
memberStore.info.headimg = formData.headimg
})
@@ -102,7 +102,7 @@
if (!loading.value) return
// 修改昵称
- updateMember({ field: 'nickname', value: formData.nickname })
+ modifyMember({ field: 'nickname', value: formData.nickname })
.then(() => {
memberStore.info.nickname = formData.nickname
loading.value = false
diff --git a/uni-app/components/pay/pay.vue b/uni-app/components/pay/pay.vue
index 15d91bf45..9d3d34f37 100644
--- a/uni-app/components/pay/pay.vue
+++ b/uni-app/components/pay/pay.vue
@@ -1,173 +1,178 @@
-
-
-
- {{ t('pay.payTitle') }}
-
- {{ t('currency') }}
- {{ moneyFormat(payInfo.money) }}
-
-
-
-
- {{ t('pay.orderInfo') }}
- {{ payInfo.body }}
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
+
+
+
+ {{ t('pay.payTitle') }}
+
+ {{ t('currency') }}
+ {{ moneyFormat(payInfo.money) }}
+
+
+
+
+ {{ t('pay.orderInfo') }}
+ {{ payInfo.body }}
+
+
+
+
+
+ {{ item.name }}
+
+
+
+ {{ t('pay.notHavePayType') }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/tabbar/tabbar.vue b/uni-app/components/tabbar/tabbar.vue
index 405b0c54a..a1f9663e5 100644
--- a/uni-app/components/tabbar/tabbar.vue
+++ b/uni-app/components/tabbar/tabbar.vue
@@ -1,29 +1,41 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/uni-app/hooks/useCaptcha.ts b/uni-app/hooks/useCaptcha.ts
index cd37b35ce..0d97ea476 100644
--- a/uni-app/hooks/useCaptcha.ts
+++ b/uni-app/hooks/useCaptcha.ts
@@ -12,11 +12,9 @@ export function useCaptcha(formData: formData) {
const refresh = async ()=> {
try {
const res:AnyObject = await getCaptcha()
- if (res.code == 200) {
- formData.captcha_key = res.data.captcha_key
- formData.captcha_code = ''
- image.value = res.data.img.replace(/\r\n/g, '')
- }
+ formData.captcha_key = res.data.captcha_key
+ formData.captcha_code = ''
+ image.value = res.data.img.replace(/\r\n/g, '')
} catch (e) {
}
}
diff --git a/uni-app/hooks/useLogin.ts b/uni-app/hooks/useLogin.ts
index 71ca8513a..5afcaf7b7 100644
--- a/uni-app/hooks/useLogin.ts
+++ b/uni-app/hooks/useLogin.ts
@@ -1,4 +1,4 @@
-import { redirect, isWeixinBrowser } from '@/utils/common'
+import { redirect, isWeixinBrowser, urlDeconstruction } from '@/utils/common'
import { weappLogin, wechatLogin } from '@/api/auth'
import { getWechatAuthCode } from '@/api/system'
import useMemberStore from '@/stores/member'
@@ -14,18 +14,18 @@ export function useLogin() {
const config = useConfigStore()
// #ifdef MP-WEIXIN
if (uni.getStorageSync('openid') && config.login.is_bind_mobile) {
- redirect({ url: '/pages/auth/bind' })
+ redirect({ url: '/pages/auth/bind', mode: 'redirectTo' })
return
}
// #endif
// #ifdef H5
if (isWeixinBrowser() && uni.getStorageSync('openid') && config.login.is_bind_mobile) {
- redirect({ url: '/pages/auth/bind' })
+ redirect({ url: '/pages/auth/bind', mode: 'redirectTo' })
return
}
// #endif
- redirect({ url: '/pages/auth/login' })
+ redirect({ url: '/pages/auth/login', mode: 'redirectTo' })
})
}
@@ -83,8 +83,13 @@ export function useLogin() {
// #endif
// #ifdef H5
+ let url = `${location.origin}${location.pathname}`
+ let query = urlDeconstruction(location.href).query
+ query.code && (delete query.code)
+ Object.keys(query).length && (url += uni.$u.queryParams(query))
+
getWechatAuthCode({
- url: `${location.origin}${location.pathname}`,
+ url,
scopes
}).then((res : AnyObject) => {
location.href = res.data.url
diff --git a/uni-app/hooks/useSendSms.ts b/uni-app/hooks/useSendSms.ts
index 8d2abb446..1fa28399d 100644
--- a/uni-app/hooks/useSendSms.ts
+++ b/uni-app/hooks/useSendSms.ts
@@ -21,7 +21,7 @@ export function useSendSms(smsRef: AnyObject | null) {
let result: string | boolean = false
await sendSms(param).then(res=>{
- if (res.code == 200) {
+ if (res.code == 1) {
result = res.data.key
} else {
smsRef.value.reset()
@@ -29,6 +29,7 @@ export function useSendSms(smsRef: AnyObject | null) {
}
}).catch(err=>{
result = false
+ smsRef.value.reset()
})
return result
}
diff --git a/uni-app/hooks/useShare.ts b/uni-app/hooks/useShare.ts
index c8477ea0f..75f226db6 100644
--- a/uni-app/hooks/useShare.ts
+++ b/uni-app/hooks/useShare.ts
@@ -8,14 +8,19 @@ import wechat from '@/utils/wechat'
// #endif
export const useShare = () => {
- let wechatOptions : WeixinJsSdk.OnMenuShareAppMessageOptions = {
+ var wechatOptions : WeixinJsSdk.OnMenuShareAppMessageOptions = {
title: '',
link: ''
};
- let weappOptions = {};
+ var weappOptions = {};
// #ifdef H5
+ const wechatInit = async () => {
+ if (!isWeixinBrowser()) return;
+ await wechat.init();
+ }
+
// 微信公众号分享
const wechatShare = () => {
if (!isWeixinBrowser()) return;
@@ -23,17 +28,26 @@ export const useShare = () => {
}
// #endif
- const setShare = (options : any = {}) => {
+ const setShare = async (options : any = {}) => {
let memberStore = useMemberStore();
+ // 初始化sdk
+ await wechatInit();
+
if (options && options.wechat && options.weapp) {
let query = currShareRoute().params;
+
if (memberStore.info) {
- query.push('mid=' + memberStore.info.member_id);
+ query.mid = memberStore.info.member_id;
+ }
+
+ let str = [];
+ for (let key in query) {
+ str.push(key + '=' + query[key]);
}
// #ifdef H5
- let link = location.origin + location.pathname + (query.length > 0 ? '?' + query.join('&') : '');
+ let link = location.origin + location.pathname + (str.length > 0 ? '?' + str.join('&') : '');
wechatOptions = {
title: options.wechat.title || '',
link: options.wechat.link || link,
@@ -45,37 +59,35 @@ export const useShare = () => {
weappOptions = {
title: options.weapp.title || '',
- query: options.weapp.path || '/' + currRoute() + (query.length > 0 ? '?' + query.join('&') : ''),
+ query: options.weapp.path || '/' + currRoute() + (str.length > 0 ? '?' + str.join('&') : ''),
imageUrl: options.weapp.url ? img(options.weapp.url) : ''
}
} else {
- getShareInfo({ route: '/' + currRoute(), params: currShareRoute().params.toString() }).then((res : any) => {
- if (res.code == 200) {
- let data = res.data;
+ getShareInfo({ route: '/' + currRoute(), params: JSON.stringify(currShareRoute().params) }).then((res : any) => {
+ let data = res.data;
- // #ifdef H5
- let wechat = data.wechat;
- if (wechat) {
- let link = location.origin + location.pathname + (data.query ? '?' + data.query : '');
- wechatOptions = {
- link: link,
- title: wechat.title,
- desc: wechat.desc,
- imgUrl: wechat.url ? img(wechat.url) : ''
- }
- }
- wechatShare()
- // #endif
+ // #ifdef H5
+ let wechat = data.wechat;
+ if (wechat) {
+ let link = location.origin + location.pathname + (data.query ? '?' + data.query : '');
+ wechatOptions = {
+ link: link,
+ title: wechat.title,
+ desc: wechat.desc,
+ imgUrl: wechat.url ? img(wechat.url) : ''
+ }
+ }
+ wechatShare()
+ // #endif
- let weapp = data.weapp;
- if (weapp) {
- weappOptions = {
- query: data.url,
- title: weapp.title,
- imageUrl: weapp.url ? img(weapp.url) : ''
- }
- }
- }
+ let weapp = data.weapp;
+ if (weapp) {
+ weappOptions = {
+ query: data.url,
+ title: weapp.title,
+ imageUrl: weapp.url ? img(weapp.url) : ''
+ }
+ }
})
}
diff --git a/uni-app/locale/zh-Hans.json b/uni-app/locale/zh-Hans.json
index 179ab6801..5946ed3fe 100644
--- a/uni-app/locale/zh-Hans.json
+++ b/uni-app/locale/zh-Hans.json
@@ -1,13 +1,18 @@
{
- // pages.json 中文标题
- "pages.index.index": "",
- "pages.article.list": "资讯中心",
- "pages.article.detail": "文章详情",
- "pages.member.index": "",
- "pages.auth.login": "登录",
- "pages.auth.register": "注册",
- "pages.auth.resetpwd": "找回密码",
- "pages.setting.index": "设置",
- "pages.auth.bind": "绑定手机号",
- "pages.member.personal": "个人资料"
+ // pages.json 中文标题
+ "pages.index.index": "",
+ "pages.article.list": "资讯中心",
+ "pages.article.detail": "文章详情",
+ "pages.member.index": "",
+ "pages.auth.login": "登录",
+ "pages.auth.register": "注册",
+ "pages.auth.resetpwd": "找回密码",
+ "pages.setting.index": "设置",
+ "pages.auth.bind": "绑定手机号",
+ "pages.member.personal": "个人资料",
+ "pages.member.balance": "我的余额",
+ "pages.member.detailed_account": "流水明细",
+ "pages.member.apply_cash_out": "申请提现",
+ "pages.member.cash_out": "提现记录",
+ "pages.member.cash_out_detail": "提现详情"
}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/common.json b/uni-app/locale/zh-Hans/common.json
index 2700ae605..ac2a0080c 100644
--- a/uni-app/locale/zh-Hans/common.json
+++ b/uni-app/locale/zh-Hans/common.json
@@ -5,6 +5,8 @@
"captchaTitle": "请完成验证",
"confirm": "确认",
"cancel": "取消",
+ "save": "保存",
+ "delete": "删除",
"captchaPlaceholder": "请输入验证码",
"mobilePlaceholder": "请输入手机号码",
"mobileError": "请输入正确的手机号",
@@ -36,5 +38,9 @@
"completePay": "已完成支付",
"incompletePay": "未完成支付",
"getting": "获取支付结果中"
- }
+ },
+ "memberLanguage": "与你分享我的观点,共享真实世界",
+ "myBalance": "我的余额",
+ "myPoint": "我的积分",
+ "customerService": "联系客服"
}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.account.json b/uni-app/locale/zh-Hans/pages.member.account.json
new file mode 100644
index 000000000..c853542cd
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.account.json
@@ -0,0 +1,7 @@
+{
+ "alipayAccountNo": "支付宝账号",
+ "addBankCard": "添加银行卡",
+ "addAlipayAccount": "添加支付宝账号",
+ "endNumber": "尾号",
+ "bankCard": "银行卡"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.account_edit.json b/uni-app/locale/zh-Hans/pages.member.account_edit.json
new file mode 100644
index 000000000..27dd321c4
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.account_edit.json
@@ -0,0 +1,17 @@
+{
+ "addBankCard": "添加银行卡",
+ "addBankCardTips": "请添加持卡人本人的银行卡",
+ "addAlipayAccount": "添加支付宝账号",
+ "addAlipayAccountTips": "请添加已实名的支付宝账号",
+ "bankRealname": "持卡人姓名",
+ "bankRealnamePlaceholder": "请输入持卡人姓名",
+ "bankName": "银行名称",
+ "bankNamePlaceholder": "请输入银行名称",
+ "bankAccountNo": "银行卡号",
+ "bankAccountNoPlaceholder": "请输入银行卡号",
+ "alipayRealname": "真实姓名",
+ "alipayRealnamePlaceholder": "请输入真实姓名",
+ "alipayAccountNo": "支付宝账号",
+ "alipayAccountNoPlaceholder": "请输入支付宝账号",
+ "deleteConfirm": "确定要删除该账号吗?"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.apply_cash_out.json b/uni-app/locale/zh-Hans/pages.member.apply_cash_out.json
new file mode 100644
index 000000000..4b30fb074
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.apply_cash_out.json
@@ -0,0 +1,29 @@
+{
+ "cashOut": "提现",
+ "balanceDetail": "余额明细",
+ "cashOutTo": "提现到",
+ "cashOutTypePlaceholder": "请选择提现方式",
+ "wechatpay": "微信默认钱包",
+ "cashOutMoneyTip": "提现金额",
+ "money": "可提现余额",
+ "allTx": "全部提现",
+ "minWithdrawal": "最小提现金额为",
+ "commissionTo": "手续费为",
+ "cashOutList": "提现记录",
+ "cashOutToWechat": "提现至微信",
+ "cashOutToWechatTips": "提现至微信零钱",
+ "cashOutToAlipay": "提现至支付宝",
+ "cashOutToAlipayTips": "请先添加支付宝账号",
+ "cashOutToBank": "提现至银行卡",
+ "cashOutToBankTips": "请先添加银行卡",
+ "alipayAccountNo": "支付宝账号",
+ "debitCard": "储蓄卡",
+ "abnormalOperation": "异常操作",
+ "noAvailableCashOutType": "没有可用的提现方式",
+ "applyMoneyPlaceholder": "请输入提现金额",
+ "moneyformatError": "提现金额格式错误",
+ "applyMoneyExceed": "提现金额超出可提现金额",
+ "applyMoneyBelow": "提现金额小于最低提现金额",
+ "replace": "更换",
+ "toAdd": "去添加"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.balance.json b/uni-app/locale/zh-Hans/pages.member.balance.json
index 14561f132..1e13a6c45 100644
--- a/uni-app/locale/zh-Hans/pages.member.balance.json
+++ b/uni-app/locale/zh-Hans/pages.member.balance.json
@@ -1,8 +1,15 @@
{
+ "balanceInfo": "我的余额",
"recharge": "充值",
+ "cashOut":"提现",
"balanceDetail": "余额明细",
+ "accountBalance":"账户余额(元)",
+ "balance":"余额(元)",
+ "money":"可提现余额(元)",
"availableBalance": "可用余额",
"rechargeAmountError": "充值金额错误",
"clickRecharge": "立即充值",
- "rechargeAmountPlaceholder": "请输入充值金额"
+ "rechargeAmountPlaceholder": "请输入充值金额",
+ "yuan":"元",
+ "rechargeRecord":"充值记录"
}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.cash_out.json b/uni-app/locale/zh-Hans/pages.member.cash_out.json
new file mode 100644
index 000000000..1bd777a3d
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.cash_out.json
@@ -0,0 +1,11 @@
+{
+ "applyTime": "申请时间",
+ "toBeReviewed": "官方正在审核,请耐心等待",
+ "toBeTransfer": "官方正在转账,请耐心等待",
+ "transfer": "官方已转账,请及时查收",
+ "cancelApply": "申请已取消",
+ "balanceDetail": "余额记录",
+ "commissionDetail": "佣金记录",
+ "emptyTip": "暂无余额记录",
+ "commissemptyTip": "暂无佣金记录"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.cash_out_detail.json b/uni-app/locale/zh-Hans/pages.member.cash_out_detail.json
new file mode 100644
index 000000000..3f17229ab
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.cash_out_detail.json
@@ -0,0 +1,12 @@
+{
+ "statusName": "当前状态",
+ "cashOutNo": "交易号",
+ "serviceMoney": "手续费",
+ "createTime": "申请时间",
+ "auditTime": "审核时间",
+ "transferBank": "银行名称",
+ "transferAccount": "收款账号",
+ "refuseReason": "拒绝理由",
+ "transferTypeName": "转账方式名称",
+ "transferTime": "转账时间"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.commission.json b/uni-app/locale/zh-Hans/pages.member.commission.json
new file mode 100644
index 000000000..fdaf75fd8
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.commission.json
@@ -0,0 +1,14 @@
+{
+ "recharge": "充值",
+ "cashOut":"提现",
+ "commissionDetail": "佣金明细",
+ "accountCommission":"账户佣金(元)",
+ "commission":"累计佣金(元)",
+ "money":"提现中佣金(元)",
+ "availableCommission": "可用佣金",
+ "rechargeAmountError": "充值金额错误",
+ "clickRecharge": "立即充值",
+ "rechargeAmountPlaceholder": "请输入充值金额",
+ "yuan":"元",
+ "commissionInfo": "我的佣金"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.detailed_account.json b/uni-app/locale/zh-Hans/pages.member.detailed_account.json
new file mode 100644
index 000000000..e9b9c4ccd
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.detailed_account.json
@@ -0,0 +1,6 @@
+{
+ "balanceDetail": "余额明细",
+ "commissionDetail": "佣金明细",
+ "emptyTip": "暂无余额明细",
+ "commissemptyTip": "暂无佣金明细"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.personal.json b/uni-app/locale/zh-Hans/pages.member.personal.json
deleted file mode 100644
index fca88d05f..000000000
--- a/uni-app/locale/zh-Hans/pages.member.personal.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "nickname": "昵称",
- "sex": "性别",
- "mobile": "手机号",
- "birthday": "生日",
- "unknown": "未知",
- "updateHeadimg": "更换头像",
- "updateNickname": "修改昵称",
- "man": "男",
- "woman": "女",
- "bindMobile": "绑定手机"
-}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.recharge_record.json b/uni-app/locale/zh-Hans/pages.member.recharge_record.json
new file mode 100644
index 000000000..5b3a1d8fb
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.recharge_record.json
@@ -0,0 +1,4 @@
+{
+ "rechargeRecord": "充值记录",
+ "emptyTip": "暂无充值记录"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.recharge_record_detail.json b/uni-app/locale/zh-Hans/pages.member.recharge_record_detail.json
new file mode 100644
index 000000000..3f17229ab
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.recharge_record_detail.json
@@ -0,0 +1,12 @@
+{
+ "statusName": "当前状态",
+ "cashOutNo": "交易号",
+ "serviceMoney": "手续费",
+ "createTime": "申请时间",
+ "auditTime": "审核时间",
+ "transferBank": "银行名称",
+ "transferAccount": "收款账号",
+ "refuseReason": "拒绝理由",
+ "transferTypeName": "转账方式名称",
+ "transferTime": "转账时间"
+}
\ No newline at end of file
diff --git a/uni-app/locale/zh-Hans/pages.member.withdrawal_detail.json b/uni-app/locale/zh-Hans/pages.member.withdrawal_detail.json
new file mode 100644
index 000000000..288248b83
--- /dev/null
+++ b/uni-app/locale/zh-Hans/pages.member.withdrawal_detail.json
@@ -0,0 +1,13 @@
+{
+ "recharge": "充值",
+ "cashOut":"提现",
+ "balanceDetail": "余额明细",
+ "accountBalance":"账户余额(元)",
+ "balance":"余额(元)",
+ "money":"可提现余额(元)",
+ "availableBalance": "可用余额",
+ "rechargeAmountError": "充值金额错误",
+ "clickRecharge": "立即充值",
+ "rechargeAmountPlaceholder": "请输入充值金额",
+ "yuan":"元"
+}
\ No newline at end of file
diff --git a/uni-app/pages.json b/uni-app/pages.json
index fb3df631f..7fa4ca081 100644
--- a/uni-app/pages.json
+++ b/uni-app/pages.json
@@ -1,68 +1,11 @@
{
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ "pages": [ // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
- // #ifdef H5
"navigationStyle": "custom",
- // #endif
"navigationBarTitleText": "%pages.index.index%"
}
- }, {
- "path": "pages/index/diy",
- "style": {
- // #ifdef H5
- "navigationStyle": "custom",
- // #endif
- "navigationBarTitleText": "%pages.index.diy%"
- }
- },
- {
- "path": "pages/auth/login",
- "style": {
- // #ifdef H5
- "navigationStyle": "custom",
- // #endif
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "%pages.auth.login%"
- }
- },
- {
- "path": "pages/auth/register",
- "style": {
- // #ifdef H5
- "navigationStyle": "custom",
- // #endif
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "%pages.auth.register%"
- }
- },
- {
- "path": "pages/auth/resetpwd",
- "style": {
- // #ifdef H5
- "navigationStyle": "custom",
- // #endif
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "%pages.auth.resetpwd%"
- }
- },
- {
- "path": "pages/auth/bind",
- "style": {
- // #ifdef H5
- "navigationStyle": "custom",
- // #endif
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "%pages.auth.bind%"
- }
- },
- {
- "path": "pages/auth/agreement",
- "style": {
- "navigationBarTitleText": "",
- "navigationBarBackgroundColor": "#ffffff"
- }
},
{
"path": "pages/article/list",
@@ -73,6 +16,60 @@
"navigationBarTitleText": "%pages.article.list%"
}
},
+ {
+ "path": "pages/auth/agreement",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.auth.agreement%"
+ }
+ },
+ {
+ "path": "pages/auth/bind",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.auth.bind%"
+ }
+ },
+ {
+ "path": "pages/auth/login",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.auth.login%"
+ }
+ },
+ {
+ "path": "pages/auth/register",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.auth.register%"
+ }
+ },
+ {
+ "path": "pages/auth/resetpwd",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.auth.resetpwd%"
+ }
+ },
+ {
+ "path": "pages/index/diy",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.index.diy%"
+ }
+ },
{
"path": "pages/article/detail",
"style": {
@@ -82,6 +79,83 @@
"navigationBarTitleText": "%pages.article.detail%"
}
},
+ {
+ "path": "pages/member/apply_cash_out",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.apply_cash_out%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/commission",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.commission%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/balance",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.balance%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/recharge_record",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.recharge_record%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/recharge_record_detail",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.recharge_record_detail%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/detailed_account",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.detailed_account%"
+ }
+ },
+ {
+ "path": "pages/member/cash_out",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.cash_out%"
+ }
+ },
+ {
+ "path": "pages/member/cash_out_detail",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.cash_out_detail%"
+ }
+ },
{
"path": "pages/member/index",
"style": {
@@ -92,22 +166,19 @@
{
"path": "pages/member/info",
"style": {
- "navigationBarTitleText": "%pages.member.index%"
- },
- "needLogin": true
- },
- {
- "path": "pages/setting/index",
- "style": {
- "navigationBarBackgroundColor": "#f7f7f7",
- "navigationBarTitleText": "%pages.setting.index%"
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.info%"
},
"needLogin": true
},
{
"path": "pages/member/personal",
"style": {
- "navigationBarBackgroundColor": "#f7f7f7",
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
"navigationBarTitleText": "%pages.member.personal%"
},
"needLogin": true
@@ -118,17 +189,51 @@
// #ifdef H5
"navigationStyle": "custom",
// #endif
- "navigationBarTitleText": "%pages.member.balance%"
+ "navigationBarTitleText": "%pages.member.point%"
},
"needLogin": true
},
{
- "path": "pages/member/balance",
+ "path": "pages/member/account",
"style": {
// #ifdef H5
"navigationStyle": "custom",
// #endif
- "navigationBarTitleText": "%pages.member.balance%"
+ "navigationBarTitleText": "%pages.member.account%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/member/account_edit",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.member.account_edit%"
+ },
+ "needLogin": true
+ },
+ {
+ "path": "pages/pay/browser",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "%pages.pay.browser%"
+ }
+ },
+ {
+ "path": "pages/pay/result",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "%pages.pay.result%"
+ }
+ },
+ {
+ "path": "pages/setting/index",
+ "style": {
+ // #ifdef H5
+ "navigationStyle": "custom",
+ // #endif
+ "navigationBarTitleText": "%pages.setting.index%"
},
"needLogin": true
},
@@ -140,20 +245,16 @@
// #endif
"navigationBarTitleText": "%pages.webview.index%"
}
- },
- {
- "path": "pages/pay/result",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/pay/browser",
- "style": {
- "navigationStyle": "custom"
- }
}
],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#ffffff",
+ "backgroundColor": "#F8F8F8",
+ "backgroundColorTop": "#F8F8F8",
+ "backgroundColorBottom": "#F8F8F8"
+ },
"tabBar": {
"list": [{
"pagePath": "pages/index/index"
@@ -166,16 +267,12 @@
}
]
},
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
"uniIdRouter": {},
"easycom": {
"custom": {
"^u-(.*)": "uview-plus/components/u-$1/u-$1.vue",
+ "diy-system-(\W.*)": "@/components/diy/system/$1/index.vue",
+ "diy-extend-(\W.*)": "@/components/diy/extend/$1/index.vue",
"diy-(\W.*)": "@/components/diy/$1/index.vue"
}
}
diff --git a/uni-app/pages/index/diy.vue b/uni-app/pages/index/diy.vue
index afc4ff229..68f7f5147 100644
--- a/uni-app/pages/index/diy.vue
+++ b/uni-app/pages/index/diy.vue
@@ -58,19 +58,19 @@
id: id.value,
name: name.value
}).then((res : any) => {
- if (res.code == 200) {
- let sources = JSON.parse(res.data.value);
- diyData.global = sources.global;
- diyData.value = sources.value;
- uni.setNavigationBarTitle({
- title: diyData.global.title
- })
+ if (res.data.value) {
+ let sources = JSON.parse(res.data.value);
+ diyData.global = sources.global;
+ diyData.value = sources.value;
+ uni.setNavigationBarTitle({
+ title: diyData.global.title
+ })
+ }
- let share = res.data.share ? JSON.parse(res.data.share) : null;
- setShare(share);
+ let share = res.data.share ? JSON.parse(res.data.share) : null;
+ setShare(share);
- loading.value = false;
- }
+ loading.value = false;
});
}
});
diff --git a/uni-app/pages/index/index.vue b/uni-app/pages/index/index.vue
index 8fdbf549f..268851c3b 100644
--- a/uni-app/pages/index/index.vue
+++ b/uni-app/pages/index/index.vue
@@ -53,17 +53,16 @@
getDiyInfo({
name: 'DIY_INDEX'
}).then((res : any) => {
- if (res.code == 200) {
- let sources = JSON.parse(res.data.value);
- diyData.global = sources.global;
- diyData.value = sources.value;
+ if (res.data.value) {
+ let sources = JSON.parse(res.data.value);
+ diyData.global = sources.global;
+ diyData.value = sources.value;
+ uni.setNavigationBarTitle({
+ title: diyData.global.title
+ })
+ }
- uni.setNavigationBarTitle({
- title: diyData.global.title
- })
-
- loading.value = false;
- }
+ loading.value = false;
});
}
diff --git a/uni-app/pages/member/account.vue b/uni-app/pages/member/account.vue
new file mode 100644
index 000000000..416bdca22
--- /dev/null
+++ b/uni-app/pages/member/account.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+ {{ item.account_type == 'bank' ? item.bank_name : t('alipayAccountNo') }}
+ {{ t('endNumber') }} {{ item.account_no.substring(item.account_no.length - 4) }}{{ t('bankCard') }}
+ {{ item.account_no }}
+
+
+
+
+ {{ accountType == 'bank' ? t('addBankCard') : t('addAlipayAccount') }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/account_edit.vue b/uni-app/pages/member/account_edit.vue
new file mode 100644
index 000000000..e6a29c9db
--- /dev/null
+++ b/uni-app/pages/member/account_edit.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+ {{ t('addBankCard') }}
+ {{ t('addBankCardTips') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('addAlipayAccount') }}
+ {{ t('addAlipayAccountTips') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/apply_cash_out.vue b/uni-app/pages/member/apply_cash_out.vue
new file mode 100644
index 000000000..80a24fdde
--- /dev/null
+++ b/uni-app/pages/member/apply_cash_out.vue
@@ -0,0 +1,278 @@
+
+
+
+
+ {{t('cashOutMoneyTip')}}
+
+ {{ t('currency') }}
+
+
+
+
+ {{t('money')}}:{{ t('currency') }}{{ moneyFormat(cashOutMoney) }}
+ {{t('allTx')}}
+
+
+ {{t('minWithdrawal')}}{{ t('currency') }}{{ moneyFormat(config.min) }}
+ ,{{t('commissionTo')}}{{ config.rate + '%' }}
+
+
+
+
+
+
+
+
+ {{ t('cashOutToWechat') }}
+ {{ t('cashOutToWechatTips') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('cashOutToAlipay') }}
+
+
+ {{ t('cashOutTo') }}{{ t('alipayAccountNo') }}{{ alipayAccountInfo.account_no }} {{ t('replace') }}
+
+
+ {{ t('cashOutToAlipayTips') }}
+
+
+
+
+ {{ t('toAdd') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('cashOutToBank') }}
+
+
+ {{ t('cashOutTo') }}{{ bankAccountInfo.bank_name }}{{ t('debitCard') }}{{ bankAccountInfo.account_no.substring(bankAccountInfo.account_no.length - 4) }} {{ t('replace') }}
+
+
+ {{ t('cashOutToBankTips') }}
+
+
+
+
+ {{ t('toAdd') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{t('cashOutList')}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/balance.vue b/uni-app/pages/member/balance.vue
index a4ecade1c..cc386c9c2 100644
--- a/uni-app/pages/member/balance.vue
+++ b/uni-app/pages/member/balance.vue
@@ -1,209 +1,147 @@
-
-
-
- {{t('availableBalance')}}
-
- {{memberStore.info ? moneyFormat(memberStore.info.balance) : 0.00 }}
-
-
-
-
-
-
-
-
-
- {{t('balanceDetail')}}
-
-
- {{item.from_type_name}}
- {{item.create_time}}
- {{item.account_data}}
-
-
-
-
+
+
+ {{t('balanceInfo')}}
+
+
+ {{ memberStore.info ? moneyFormat((parseFloat(memberStore.info.balance) + parseFloat(memberStore.info.money)).toString()) : 0.00 }}
+
+ {{t('accountBalance')}}
+
+
+
+ {{ moneyFormat(memberStore.info?.balance)|| '0.00' }}
+
+ {{ t('balance') }}
+
+
+
+ {{ moneyFormat(memberStore.info?.money)|| '0.00' }}
+
+ {{ t('money') }}
+
+
+
+
-
-
-
-
-
-
- 20元
-
-
- 30元
-
-
- 50元
-
-
- 100元
-
-
- 200元
-
-
- 300元
-
-
-
-
-
-
-
+
+
+
+ {{t('recharge')}}
+
+
+
+ {{t('cashOut')}}
+
+
-
-
+
+
+
+
+
+
+
+
+ {{item}}{{t('yuan')}}
+
+
+
+
+
+ {{t('rechargeRecord')}}
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/cash_out.vue b/uni-app/pages/member/cash_out.vue
new file mode 100644
index 000000000..2bdd18543
--- /dev/null
+++ b/uni-app/pages/member/cash_out.vue
@@ -0,0 +1,76 @@
+
+
+
+
+ {{item.transfer_type_name}}
+ {{t('applyTime')}}: {{item.create_time}}
+ {{ item.status != -1 ? currentStatusDesc(item.status) : item.refuse_reason}}
+
+ {{ item.apply_money > 0 ? '+' + item.apply_money : item.apply_money }}
+
+
+ {{ item.status_name }}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/pages/member/cash_out_detail.vue b/uni-app/pages/member/cash_out_detail.vue
new file mode 100644
index 000000000..7438858a2
--- /dev/null
+++ b/uni-app/pages/member/cash_out_detail.vue
@@ -0,0 +1,77 @@
+
+
+
+ -{{ cashOutInfo.apply_money }}
+ {{ cashOutInfo.status_name }}
+
+
+
+
+ {{t('cashOutNo')}}
+ {{ cashOutInfo.cash_out_no }}
+
+
+ {{t('serviceMoney')}}
+ ¥{{ cashOutInfo.service_money }}
+
+
+ {{t('createTime')}}
+ {{ cashOutInfo.create_time }}
+
+
+ {{t('auditTime')}}
+ {{ cashOutInfo.audit_time }}
+
+
+ {{t('transferBank')}}
+ {{ cashOutInfo.transfer_bank }}
+
+
+ {{t('transferAccount')}}
+ {{ cashOutInfo.transfer_account }}
+
+
+ {{t('refuseReason')}}
+ {{ cashOutInfo.refuse_reason }}
+
+
+ {{t('transferTypeName')}}
+ {{ cashOutInfo.transfer_type_name }}
+
+
+ {{t('transferTime')}}
+ {{ cashOutInfo.transfer_time }}
+
+
+
+
+
+
+
+
diff --git a/uni-app/pages/member/commission.vue b/uni-app/pages/member/commission.vue
new file mode 100644
index 000000000..872ad1f1e
--- /dev/null
+++ b/uni-app/pages/member/commission.vue
@@ -0,0 +1,53 @@
+
+
+
+
+ {{t('commissionInfo')}}
+
+
+ {{ memberStore.info ? moneyFormat(memberStore.info.commission) : 0.00 }}
+
+ {{t('accountCommission')}}
+
+
+
+ {{ moneyFormat(memberStore.info?.commission_get)|| '0.00' }}
+
+ {{ t('commission') }}
+
+
+
+ {{ moneyFormat(memberStore.info?.commission_cash_outing)|| '0.00' }}
+
+ {{ t('money') }}
+
+
+
+
+
+
+
+
+ {{t('cashOut')}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/detailed_account.vue b/uni-app/pages/member/detailed_account.vue
new file mode 100644
index 000000000..6331d78de
--- /dev/null
+++ b/uni-app/pages/member/detailed_account.vue
@@ -0,0 +1,83 @@
+
+
+
+
+ {{item.from_type_name}}
+ {{item.memo}}
+ {{item.create_time}}
+
+ {{ item.account_data > 0 ? '+' + item.account_data : item.account_data }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/index.vue b/uni-app/pages/member/index.vue
index d1235f95b..ad9c1cdaa 100644
--- a/uni-app/pages/member/index.vue
+++ b/uni-app/pages/member/index.vue
@@ -48,15 +48,15 @@
getDiyInfo({
name: 'DIY_MEMBER_INDEX'
}).then((res : any) => {
- if (res.code == 200) {
- let sources = JSON.parse(res.data.value);
- diyData.global = sources.global;
- diyData.value = sources.value;
- uni.setNavigationBarTitle({
- title: diyData.global.title
- })
- loading.value = false;
- }
+ if (res.data.value) {
+ let sources = JSON.parse(res.data.value);
+ diyData.global = sources.global;
+ diyData.value = sources.value;
+ uni.setNavigationBarTitle({
+ title: diyData.global.title
+ })
+ }
+ loading.value = false;
});
}
useMemberStore().getMemberInfo()
diff --git a/uni-app/pages/member/personal.vue b/uni-app/pages/member/personal.vue
index be1ebc10b..3095d6fbe 100644
--- a/uni-app/pages/member/personal.vue
+++ b/uni-app/pages/member/personal.vue
@@ -67,7 +67,7 @@
import { t } from '@/locale'
import useMemberStore from '@/stores/member'
import { img, mobileConceal } from '@/utils/common'
- import { updateMember } from '@/api/member'
+ import { modifyMember } from '@/api/member'
import { fetchBase64Image, uploadImage } from '@/api/system'
const memberStore = useMemberStore()
@@ -86,7 +86,7 @@
const updateNicknameConfirm = () => {
if (uni.$u.test.isEmpty(updateNickname.value)) { uni.showToast({ title: t('nicknamePlaceholder'), icon: 'none' }); return }
- updateMember({
+ modifyMember({
field: 'nickname',
value: updateNickname.value
}).then(res => {
@@ -106,7 +106,7 @@
]
})
const updateSex = (e) => {
- updateMember({
+ modifyMember({
field: 'sex',
value: e.value
}).then(res => {
@@ -123,7 +123,7 @@
encoding: 'base64', //编码格式
success: res => {
fetchBase64Image({ content: res.data }).then(uploadRes => {
- updateMember({
+ modifyMember({
field: 'headimg',
value: uploadRes.data.url
}).then(res => {
@@ -139,7 +139,7 @@
filePath: event.file.url,
name: 'file'
}).then(res => {
- updateMember({
+ modifyMember({
field: 'headimg',
value: res.data.url
}).then(() => {
@@ -154,7 +154,7 @@
*/
const birthdayPicker = ref(false)
const updateBirthday = (e) => {
- updateMember({
+ modifyMember({
field: 'birthday',
value: uni.$u.date(e.value, 'yyyy-mm-dd')
}).then(() => {
diff --git a/uni-app/pages/member/recharge_record.vue b/uni-app/pages/member/recharge_record.vue
new file mode 100644
index 000000000..e14497caa
--- /dev/null
+++ b/uni-app/pages/member/recharge_record.vue
@@ -0,0 +1,80 @@
+
+
+
+
+ {{item.from_type_name}}
+ {{item.memo}}
+ {{item.create_time}}
+
+ {{ item.account_data > 0 ? '+' + item.account_data : item.account_data }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/pages/member/recharge_record_detail.vue b/uni-app/pages/member/recharge_record_detail.vue
new file mode 100644
index 000000000..325b8535d
--- /dev/null
+++ b/uni-app/pages/member/recharge_record_detail.vue
@@ -0,0 +1,77 @@
+
+
+
+ -{{ cashOutInfo.apply_money }}
+ {{ cashOutInfo.status_name }}
+
+
+
+
+ {{t('cashOutNo')}}
+ {{ cashOutInfo.cash_out_no }}
+
+
+ {{t('serviceMoney')}}
+ ¥{{ cashOutInfo.service_money }}
+
+
+ {{t('createTime')}}
+ {{ cashOutInfo.create_time }}
+
+
+ {{t('auditTime')}}
+ {{ cashOutInfo.audit_time }}
+
+
+ {{t('transferBank')}}
+ {{ cashOutInfo.transfer_bank }}
+
+
+ {{t('transferAccount')}}
+ {{ cashOutInfo.transfer_account }}
+
+
+ {{t('refuseReason')}}
+ {{ cashOutInfo.refuse_reason }}
+
+
+ {{t('transferTypeName')}}
+ {{ cashOutInfo.transfer_type_name }}
+
+
+ {{t('transferTime')}}
+ {{ cashOutInfo.transfer_time }}
+
+
+
+
+
+
+
+
diff --git a/uni-app/static/logo.png b/uni-app/static/logo.png
deleted file mode 100644
index b5771e209..000000000
Binary files a/uni-app/static/logo.png and /dev/null differ
diff --git a/uni-app/stores/member.ts b/uni-app/stores/member.ts
index 3b0290175..44a71392c 100644
--- a/uni-app/stores/member.ts
+++ b/uni-app/stores/member.ts
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
-import { getToken, setToken, removeToken, redirect } from '@/utils/common'
+import { setToken, removeToken, redirect } from '@/utils/common'
import { getMemberInfo } from '@/api/member'
import { logout } from '@/api/auth'
@@ -11,7 +11,7 @@ interface Member {
const useMemberStore = defineStore('member', {
state: () : Member => {
return {
- token: getToken(),
+ token: uni.getStorageSync(import.meta.env.VITE_REQUEST_STORAGE_TOKEN_KEY),
info: null
}
},
@@ -26,12 +26,12 @@ const useMemberStore = defineStore('member', {
.then((res : any) => {
this.info = res.data
})
- .catch(() => {
- this.logout()
+ .catch(async () => {
+ await this.logout()
})
},
- logout(isRedirect : boolean = false) {
- logout().then(() => {
+ async logout(isRedirect : boolean = false) {
+ await logout().then(() => {
this.$reset()
removeToken()
isRedirect && redirect({ url: '/pages/index/index' })
diff --git a/uni-app/styles/account_info.scss b/uni-app/styles/account_info.scss
new file mode 100644
index 000000000..111ee033f
--- /dev/null
+++ b/uni-app/styles/account_info.scss
@@ -0,0 +1,41 @@
+.account-info-wrap{
+ @apply bg-[#F5F6FA] min-h-[100vh];
+ .account-info-head{
+ @apply relative h-40;
+ .name{
+ @apply ml-4 pt-7 text-white text-lg mb-3;
+ }
+ .content{
+ @apply absolute bg-white left-3 right-3 rounded-lg p-5;
+ .money{
+ @apply text-xl font-bold;
+ }
+ .text{
+ @apply text-xs text-slate-500 mt-2;
+ }
+ .money-wrap{
+ @apply mt-5 flex;
+ .money-item{
+ @apply flex-1;
+ }
+ .money{
+ @apply text-lg;
+ }
+ .text{
+ @apply mt-1;
+ }
+ }
+ }
+ }
+ .account-info-btn{
+ @apply flex mt-24 ml-3 mr-3;
+ .btn{
+ &:first-of-type{
+ @apply mr-1 rounded;
+ }
+ &:last-of-type{
+ @apply ml-1 rounded;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni-app/styles/iconfont.css b/uni-app/styles/iconfont.css
index b339072a7..3eede53a3 100644
--- a/uni-app/styles/iconfont.css
+++ b/uni-app/styles/iconfont.css
@@ -1,51 +1,98 @@
@font-face {
- font-family: "iconfont";
- /* Project id 3952239 */
- src: url('//at.alicdn.com/t/c/font_3952239_vfd4vlalsk.woff2?t=1680088109665') format('woff2'),
- url('//at.alicdn.com/t/c/font_3952239_vfd4vlalsk.woff?t=1680088109665') format('woff'),
- url('//at.alicdn.com/t/c/font_3952239_vfd4vlalsk.ttf?t=1680088109665') format('truetype');
+ font-family: "iconfont"; /* Project id 3952239 */
+ src: url('//at.alicdn.com/t/c/font_3952239_ukixio2ve7k.woff2?t=1684147503182') format('woff2'),
+ url('//at.alicdn.com/t/c/font_3952239_ukixio2ve7k.woff?t=1684147503182') format('woff'),
+ url('//at.alicdn.com/t/c/font_3952239_ukixio2ve7k.ttf?t=1684147503182') format('truetype');
}
.iconfont {
- font-family: "iconfont" !important;
- font-size: 16px;
- font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.iconcheckbox_nol:before {
+ content: "\e626";
+}
+
+.iconweixin1:before {
+ content: "\e878";
+}
+
+.iconyinlian:before {
+ content: "\e68b";
+}
+
+.iconzhifubaoxuanzhong:before {
+ content: "\e802";
+}
+
+.iconshuaxin:before {
+ content: "\e631";
+}
+
+.iconkefu:before {
+ content: "\e612";
+}
+
+.iconfenxiang:before {
+ content: "\e610";
+}
+
+.icondianzan:before {
+ content: "\ec7f";
+}
+
+.iconhuiyuanjiage:before {
+ content: "\e611";
+}
+
+.iconxiazai:before {
+ content: "\e69c";
+}
+
+.icondunpai:before {
+ content: "\e80b";
+}
+
+.icona-shejianchangguan:before {
+ content: "\e647";
}
.iconduigou:before {
- content: "\e632";
+ content: "\e632";
}
.iconzhifushibai:before {
- content: "\e663";
+ content: "\e663";
}
.iconweixinzhifu2:before {
- content: "\e62b";
+ content: "\e62b";
}
.iconalipay:before {
- content: "\e618";
+ content: "\e618";
}
.iconbalance:before {
- content: "\e73b";
+ content: "\e73b";
}
.iconwode-xian:before {
- content: "\e60f";
+ content: "\e60f";
}
.iconwodezixun:before {
- content: "\e645";
+ content: "\e645";
}
.iconshouye-zhihui:before {
- content: "\e61d";
+ content: "\e61d";
}
.iconshezhi:before {
- content: "\e600";
-}
\ No newline at end of file
+ content: "\e600";
+}
diff --git a/uni-app/styles/member_record_detail.scss b/uni-app/styles/member_record_detail.scss
new file mode 100644
index 000000000..56682a3a7
--- /dev/null
+++ b/uni-app/styles/member_record_detail.scss
@@ -0,0 +1,25 @@
+page{
+ background-color: #f5f6fa;
+ @apply pt-4;
+}
+.member-record-detail{
+ @apply m-4 mt-0 bg-white rounded-md px-4 py-6;
+ .money-wrap{
+ @apply flex items-center flex-col mb-6;
+ text:first-of-type{
+ @apply text-3xl font-bold mt-1;
+ }
+ text:last-of-type{
+ @apply text-sm mt-3;
+ }
+ }
+ .line-wrap{
+ @apply flex justify-between text-sm mt-3;
+ .label{
+ @apply text-[#878787];
+ }
+ .value{
+ @apply text-[#222];
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni-app/styles/member_record_list.scss b/uni-app/styles/member_record_list.scss
new file mode 100644
index 000000000..79dcab13a
--- /dev/null
+++ b/uni-app/styles/member_record_list.scss
@@ -0,0 +1,21 @@
+.member-record-list{
+ @apply min-h-[100vh];
+ .member-record-item{
+ @apply relative mx-4 border-solid border-t-0 border-l-0 border-r-0 border-b-1 border-[#ECEBEC] py-3;
+ .name{
+ @apply text-sm;
+ }
+ .desc{
+ @apply text-xs text-[#8D8C8D] mt-1;
+ }
+ .text-active{
+ color: #FF0D3E;
+ }
+ .money{
+ @apply absolute right-3 top-4 text-base font-bold;
+ }
+ .state{
+ @apply absolute right-3 top-11 text-[#8D8C8D] text-xs;
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni-app/utils/common.ts b/uni-app/utils/common.ts
index cfd0e11c9..e9e68bca6 100644
--- a/uni-app/utils/common.ts
+++ b/uni-app/utils/common.ts
@@ -1,5 +1,6 @@
import { getTabbarPages } from './pages'
import useDiyStore from '@/stores/diy'
+import useMemberStore from '@/stores/member'
/**
* 跳转页面
@@ -105,17 +106,14 @@ export const currShareRoute = () => {
// #endif
// 拼接参数
- let params = [];
+ let params = {};
for (let key in currentParam) {
- params.push(key + '=' + currentParam[key])
+ params[key] = currentParam[key]
}
let currentPath = '/' + currentRoute;
- let currentQuery = params.join('&');
- if (currentQuery) currentPath += '?' + currentQuery;
return {
path: currentPath,
- query: currentQuery,
params: params
}
}
@@ -125,7 +123,7 @@ export const currShareRoute = () => {
* @returns
*/
export function getToken() : null | string {
- return uni.getStorageSync(import.meta.env.VITE_REQUEST_STORAGE_TOKEN_KEY)
+ return useMemberStore().token
}
/**
diff --git a/uni-app/utils/interceptor.ts b/uni-app/utils/interceptor.ts
index 1965cb02c..dbfa01e2d 100644
--- a/uni-app/utils/interceptor.ts
+++ b/uni-app/utils/interceptor.ts
@@ -1,6 +1,7 @@
import { language } from '@/locale'
import { checkNeedLogin } from '@/utils/auth'
-import { urlDeconstruction } from '@/utils/common'
+import { urlDeconstruction, getToken } from '@/utils/common'
+import { memberLog } from '@/api/auth'
/**
* 页面跳转拦截器
@@ -12,10 +13,15 @@ export const redirectInterceptor = () => {
uni.addInterceptor(name, {
invoke(args) {
const route = urlDeconstruction(args.url)
+
// 加载语言包
language.loadLocaleMessages(route.path, uni.getLocale())
+
// 校验是否需要登录
checkNeedLogin(route)
+
+ // 添加会员访问日志
+ if (getToken()) memberLog({ route: route.path, params: JSON.stringify(route.query), pre_route: getCurrentPages()[0].route })
}
})
})
@@ -25,9 +31,11 @@ export const redirectInterceptor = () => {
* 应用初始化拦截器
*/
export const launchInterceptor = () => {
+ // 加载语言包
const launch = uni.getLaunchOptionsSync()
launch.path = `/${launch.path}`
language.loadLocaleMessages(launch.path, uni.getLocale())
+
// 校验是否需要登录
checkNeedLogin(launch)
@@ -38,6 +46,10 @@ export const launchInterceptor = () => {
// #ifdef H5
const match = location.href.match(/\/s(\d*)\//);
- if (match) uni.setStorageSync('site_id', match[1])
+ if (match) uni.setStorageSync('wap_site_id', match[1])
+ else uni.removeStorageSync('wap_site_id')
// #endif
+
+ // 添加会员访问日志
+ if (getToken()) memberLog({ route: launch.path, params: JSON.stringify(launch.query || {}), pre_route: '' })
}
\ No newline at end of file
diff --git a/uni-app/utils/request.ts b/uni-app/utils/request.ts
index fd4b9c815..e3d706df2 100644
--- a/uni-app/utils/request.ts
+++ b/uni-app/utils/request.ts
@@ -27,7 +27,7 @@ class Request {
this.config.header[import.meta.env.VITE_REQUEST_HEADER_SITEID_KEY] = import.meta.env.VITE_SITE_ID
// #endif
// #ifdef H5
- this.config.header[import.meta.env.VITE_REQUEST_HEADER_SITEID_KEY] = uni.getStorageSync('site_id') || import.meta.env.VITE_SITE_ID
+ this.config.header[import.meta.env.VITE_REQUEST_HEADER_SITEID_KEY] = uni.getStorageSync('wap_site_id') || import.meta.env.VITE_SITE_ID
// #endif
this.config.header[import.meta.env.VITE_REQUEST_HEADER_CHANNEL_KEY] = getAppChannel()
@@ -66,18 +66,18 @@ class Request {
*/
public upload(url : string, data : AnyObject = {}, config : RequestConfig = {}) {
this.requestInterceptors()
-
- Object.assign(this.config, {
+
+ const params = Object.assign(uni.$u.deepClone(this.config), {
url: this.baseUrl + url,
...data
})
-
+
return new Promise((resolve, reject) => {
uni.uploadFile({
- ...this.config,
+ ...params,
success: res => {
const data = JSON.parse(res.data)
- if (data.code == 200) {
+ if (data.code == 1) {
this.config.showSuccessMessage && uni.showToast({ title: data.msg, icon: 'none' })
resolve(data)
} else {
@@ -99,7 +99,7 @@ class Request {
private request(method : string, url : string, data ?: AnyObject) {
this.requestInterceptors()
- Object.assign(this.config, {
+ const params = Object.assign(uni.$u.deepClone(this.config), {
url: this.baseUrl + url,
method,
data
@@ -107,10 +107,10 @@ class Request {
return new Promise((resolve, reject) => {
uni.request({
- ...this.config,
+ ...params,
success: res => {
const data = res.data
- if (data.code == 200) {
+ if (data.code == 1) {
this.config.showSuccessMessage && uni.showToast({ title: data.msg, icon: 'none' })
resolve(data)
} else {
diff --git a/uni-app/utils/wechat.ts b/uni-app/utils/wechat.ts
index 3379ee2e0..b18447ecb 100644
--- a/uni-app/utils/wechat.ts
+++ b/uni-app/utils/wechat.ts
@@ -1,12 +1,15 @@
import wx from 'weixin-js-sdk'
import { getWechatSkdConfig } from '@/api/system'
+import { isWeixinBrowser } from '@/utils/common'
class Wechat {
constructor() {
- this.init()
+ // #ifdef H5
+ // isWeixinBrowser() && this.init()
+ // #endif
}
- private init() {
+ public init() {
getWechatSkdConfig({
url: uni.getSystemInfoSync().platform == 'ios' ? uni.getStorageSync('initUrl') : location.href
}).then((res : responseResult) => {