diff --git a/App.vue b/App.vue
index 285ec8b..35702cc 100644
--- a/App.vue
+++ b/App.vue
@@ -28,6 +28,13 @@ export default {
// 启动完成
console.log(`App 启动耗时: ${Date.now() - startTime}ms`)
+
+ // 初始化埋点,进入支付宝模拟器首页
+ this.$apiUserEvent('all', {
+ type: 'event',
+ key: 'index',
+ value: "进入支付宝模拟器首页",
+ })
},
onShow: function () {
@@ -48,17 +55,17 @@ export default {
} catch (error) {
//TODO handle the exception
}
- // } else if (event == "jump") {
- // if (data == 'pages/index/index' || data == 'pages/contacts/index' || data ==
- // 'pages/discover/index' || data == 'pages/me/index') {
- // uni.switchTab({
- // url: '/' + data
- // });
- // } else {
- // uni.navigateTo({
- // url: '/' + data
- // });
- // }
+ } else if (event == "jump") {
+ if (data) {
+ let pages = getCurrentPages();
+ let currentPage = pages[pages.length - 1];
+ let currentUrl = currentPage.route;
+ if (currentUrl != data) {
+ uni.navigateTo({
+ url: '/' + data
+ });
+ }
+ }
} else if (event == 'wx_pay_result' || event == 'ios_pay_result') {
this.globalData.recentNativeEvent = event
@@ -77,7 +84,7 @@ export default {
// 关闭数据库
// #ifdef APP
// plus.sqlite.closeDatabase({ name: 'zyds' })
- uni.sendNativeEvent('unimp_stop', "stop", ret => {
+ uni.sendNativeEvent('unimp_stop_alipay', "stop", ret => {
// console.log('宿主App回传的数据:' + ret);
});
// #endif
diff --git a/common/main.css b/common/main.css
index dc7a312..ca4ce53 100644
--- a/common/main.css
+++ b/common/main.css
@@ -381,6 +381,11 @@
src: url("/static/font/WeChatSansStd-Light.otf");
}
+@font-face {
+ font-family: "sacramento";
+ src: url("/static/font/Sacramento-Regular.ttf");
+}
+
.alipay-font {
font-family: "alipayNumber";
}
@@ -395,4 +400,8 @@
.wx-font-light {
font-family: "wxNumberLight";
+}
+
+.sacramento-font {
+ font-family: "sacramento";
}
\ No newline at end of file
diff --git a/components/custom-tab/custom-tab.vue b/components/custom-tab/custom-tab.vue
new file mode 100644
index 0000000..6f03a00
--- /dev/null
+++ b/components/custom-tab/custom-tab.vue
@@ -0,0 +1,698 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ benefit.name }}
+
+
+
+
+
+
+
+ {{ benefit.name }}
+
+
+
+
+
+
+
+ {{ benefit.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/nav-bar/nav-bar.vue b/components/nav-bar/nav-bar.vue
index fca60e5..f31f9ed 100644
--- a/components/nav-bar/nav-bar.vue
+++ b/components/nav-bar/nav-bar.vue
@@ -103,6 +103,10 @@ const props = defineProps({
zIndex: {
type: Number,
default: 999
+ },
+ noBack: {
+ type: Boolean,
+ default: false
}
})
@@ -129,6 +133,7 @@ const openPopup = () => {
const onBack = () => {
emit('back')
// 默认返回上一页
+ if (props.noBack) return
uni.navigateBack()
}
diff --git a/main.js b/main.js
index 77a48d3..efaf17f 100644
--- a/main.js
+++ b/main.js
@@ -1,5 +1,6 @@
import App from './App'
import globalMethods from '@/utils/globalMethods.js';
+import pageData from "@/static/json/page.json"
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
@@ -22,10 +23,13 @@ import {
export function createApp() {
const app = createSSRApp(App)
// 从缓存读取系统信息(已在App.vue中获取)
+ app.config.globalProperties.$pageData = pageData
const systemInfo = uni.getStorageSync('systemInfo') || {}
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
app.config.globalProperties.$systemInfo = systemInfo
- uni.setStorageSync('version', '1.0.0')
+ uni.setStorageSync('version', '1.0.0.sp2')
+ app.config.globalProperties.$version = uni.getStorageSync('version')
+
app.use(globalMethods);
return {
app
diff --git a/pages.json b/pages.json
index 79832eb..3801605 100644
--- a/pages.json
+++ b/pages.json
@@ -70,6 +70,15 @@
}
}
]
+ }, {
+ "root": "pages/finance-management",
+ "pages": [{
+ "path": "index",
+ "style": {
+ "navigationBarTitleText": "理财首页",
+ "navigationStyle": "custom"
+ }
+ }]
},
{
"root": "pages/common",
diff --git a/pages/ant-credit-pay/index.vue b/pages/ant-credit-pay/index.vue
index ffd1328..7a5ca83 100644
--- a/pages/ant-credit-pay/index.vue
+++ b/pages/ant-credit-pay/index.vue
@@ -23,11 +23,11 @@
-
+
-
+
花呗
@@ -38,7 +38,8 @@
-
+
{{ huabeiInfo.mouth }}月应还(元)
{{ huabeiInfo.mouth }}月账单累计中(元)
@@ -46,6 +47,7 @@
{{ numberUtil.formatMoneyWithThousand(huabeiInfo.money) }}
+
立即还款
+
{{ huabeiInfo.descText }}
+
@@ -84,7 +88,7 @@
+ @touchstart="handleTouchStart" @touchend="handleTouchEnd">
@@ -130,16 +134,16 @@
总计额度
-
+
气泡文本
-
+
分期气泡
-
+
是否分期
editHuabeiInfo.isInstallment = e.detail.value" />
@@ -195,6 +199,7 @@ import {
} from '@dcloudio/uni-app';
const instance = getCurrentInstance();
+const { proxy } = instance;
const buttonGroup = [{
@@ -288,6 +293,12 @@ const onMonthChange = (e) => {
}
onLoad((option) => {
+ // 进入花呗页面埋点
+ proxy.$apiUserEvent('all', {
+ type: 'click',
+ key: 'huabei',
+ value: "花呗"
+ })
console.log(option)
// 读取缓存
let savedInfo = uni.getStorageSync(data.huabeiInfoStorageKey)
@@ -306,7 +317,9 @@ onLoad((option) => {
onShow(() => {
// #ifdef APP-PLUS
util.setAndroidSystemBarColor('#ffffff')
- plus.navigator.setStatusBarStyle("light");
+ setTimeout(() => {
+ plus.navigator.setStatusBarStyle("light");
+ }, 500)
// #endif
})
@@ -324,6 +337,14 @@ const closeDialog = () => {
// 确认修改
const confirmDialog = () => {
+ // 校验数据: 本月应还不能大于总计额度
+ if (Number(editHuabeiInfo.value.money) > Number(editHuabeiInfo.value.totalAmount)) {
+ uni.showToast({
+ title: '本月应还不能大于总计额度',
+ icon: 'none'
+ })
+ return
+ }
data.huabeiInfo = JSON.parse(JSON.stringify(editHuabeiInfo.value))
// 保存到缓存
uni.setStorageSync(data.huabeiInfoStorageKey, data.huabeiInfo)
@@ -403,8 +424,8 @@ const confirmImage = () => {
canvasId: 'crop-canvas',
width: canvasW,
height: canvasH,
- destWidth: canvasW * 2, // 导出更高清
- destHeight: canvasH * 2,
+ destWidth: sWidth, // 使用原图实际宽度,保持原图清晰度
+ destHeight: sHeight, // 使用原图实际高度,保持原图清晰度
success: (res) => {
console.log('crop success (temp)', res
.tempFilePath)
@@ -413,25 +434,18 @@ const confirmImage = () => {
uni.saveFile({
tempFilePath: res.tempFilePath,
success: (saveRes) => {
- console.log(
- 'save success (saved)',
- saveRes
- .savedFilePath)
- data.huabeiInfo.image =
- saveRes.savedFilePath
- selectedImage.value =
- '' // 隐藏编辑模式
-
+ console.log('save success (saved)', saveRes.savedFilePath)
+ data.huabeiInfo.image = saveRes.savedFilePath
+ selectedImage.value = '' // 隐藏编辑模式
+ setTimeout(() => {
+ plus.navigator.setStatusBarStyle("light");
+ }, 200)
// 保存到缓存
- uni.setStorageSync(data
- .huabeiInfoStorageKey,
- data.huabeiInfo)
+ uni.setStorageSync(data.huabeiInfoStorageKey, data.huabeiInfo)
uni.hideLoading()
},
fail: (err) => {
- console.error(
- 'saveFile fail',
- err)
+ console.error('saveFile fail', err)
uni.hideLoading()
uni.showToast({
title: '保存失败',
@@ -484,10 +498,36 @@ const chooseImage = () => {
success: (res) => {
selectedImage.value = res.tempFilePaths[0]
data.showMask = true
+ setTimeout(() => {
+ plus.navigator.setStatusBarStyle("dark");
+ }, 500)
}
})
}
+// 长按事件定时器
+let longPressTimer = null
+const handleTouchStart = () => {
+ longPressTimer = setTimeout(() => {
+ uni.vibrateShort()
+ chooseImage()
+ }, 1200) // 长按时间大于1s
+}
+
+const handleTouchEnd = () => {
+ if (longPressTimer) {
+ clearTimeout(longPressTimer)
+ longPressTimer = null
+ }
+}
+
+const closeImage = () => {
+ selectedImage.value = ''
+ data.showMask = false
+ plus.navigator.setStatusBarStyle("light");
+ return false
+}
+
const closeMask = () => {
data.showMask = false
}
@@ -516,11 +556,18 @@ const goBack = () => {
align-items: center;
padding: 0 20rpx;
+ .left {
+ display: flex;
+ align-items: center;
+ }
+
.title {
color: #ffffff;
font-size: 17px;
font-weight: 500;
text-align: center;
+ display: flex;
+ align-items: center;
}
.right {
diff --git a/pages/ant-credit-pay/overdue-payment/overdue-payment.vue b/pages/ant-credit-pay/overdue-payment/overdue-payment.vue
index 3197d2b..ef820b0 100644
--- a/pages/ant-credit-pay/overdue-payment/overdue-payment.vue
+++ b/pages/ant-credit-pay/overdue-payment/overdue-payment.vue
@@ -7,7 +7,7 @@
-
@@ -21,11 +21,11 @@
-
+
-
+
花呗
@@ -83,10 +83,10 @@
- 消费记录
+ 消费成功{{ Number(huabeiInfo.consumptionAmount).toFixed(2) }}元
- 2025/09/22
+ {{ huabeiInfo.consumptionDate }}
@@ -117,6 +117,20 @@
总计额度
+
+
+ 消费金额
+
+
+
+ 消费日期
+
+ {{ editHuabeiInfo.consumptionDate || '请选择日期' }}
+
+
-
-
-
+
{{ item.activity_type_name }}
-
@@ -284,594 +260,227 @@
\ No newline at end of file
diff --git a/pages/finance-management/index.vue b/pages/finance-management/index.vue
new file mode 100644
index 0000000..b19d0cd
--- /dev/null
+++ b/pages/finance-management/index.vue
@@ -0,0 +1,352 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+ 总资产(元)
+
+
+
+ 免费升级保障
+
+
+
+ 昨日收益
+
+
+
+
+ {{ financeInfo.totalMoney }}
+
+
+ {{ financeInfo.yesterdayIncome }}
+
+
+
+
+
+ 家庭保障
+
+
+ {{ financeInfo.familyProtection }}
+ 份
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ financeInfo.cardHolderName }}
+
+
+
+
+ {{ financeInfo.benefitsText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.nvue b/pages/index/index.nvue
index 330b96c..3434136 100644
--- a/pages/index/index.nvue
+++ b/pages/index/index.nvue
@@ -113,16 +113,16 @@ import {
import {
ref,
reactive,
- toRefs
+ toRefs,
+ getCurrentInstance
} from 'vue';
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
-import {
- getCurrentInstance
-} from 'vue'
+const instance = getCurrentInstance();
+const { proxy } = instance;
// 菜单列表
const menuList = [{
@@ -141,6 +141,7 @@ const menuList = [{
icon: "licaiheika",
name: "理财黑卡",
isHot: true,
+ // path: "/pages/finance-management/index"
path: ""
},
{
diff --git a/static/font/Sacramento-Regular.ttf b/static/font/Sacramento-Regular.ttf
new file mode 100644
index 0000000..b1972ff
Binary files /dev/null and b/static/font/Sacramento-Regular.ttf differ
diff --git a/static/image/finance-management/arrow-down.png b/static/image/finance-management/arrow-down.png
new file mode 100644
index 0000000..c3fc420
Binary files /dev/null and b/static/image/finance-management/arrow-down.png differ
diff --git a/static/image/finance-management/bg-vip1.png b/static/image/finance-management/bg-vip1.png
new file mode 100644
index 0000000..a56efbd
Binary files /dev/null and b/static/image/finance-management/bg-vip1.png differ
diff --git a/static/image/finance-management/eye.png b/static/image/finance-management/eye.png
new file mode 100644
index 0000000..59cb8c6
Binary files /dev/null and b/static/image/finance-management/eye.png differ
diff --git a/static/image/finance-management/safe.png b/static/image/finance-management/safe.png
new file mode 100644
index 0000000..13d1886
Binary files /dev/null and b/static/image/finance-management/safe.png differ
diff --git a/static/image/finance-management/search/search-left.png b/static/image/finance-management/search/search-left.png
new file mode 100644
index 0000000..79ca33f
Binary files /dev/null and b/static/image/finance-management/search/search-left.png differ
diff --git a/static/image/finance-management/search/search-right.png b/static/image/finance-management/search/search-right.png
new file mode 100644
index 0000000..eda37dc
Binary files /dev/null and b/static/image/finance-management/search/search-right.png differ
diff --git a/static/image/finance-management/v1/arrow.png b/static/image/finance-management/v1/arrow.png
new file mode 100644
index 0000000..6c93875
Binary files /dev/null and b/static/image/finance-management/v1/arrow.png differ
diff --git a/static/image/finance-management/v1/bg.png b/static/image/finance-management/v1/bg.png
new file mode 100644
index 0000000..baf72af
Binary files /dev/null and b/static/image/finance-management/v1/bg.png differ
diff --git a/static/image/finance-management/v1/card-holder.png b/static/image/finance-management/v1/card-holder.png
new file mode 100644
index 0000000..d6c6046
Binary files /dev/null and b/static/image/finance-management/v1/card-holder.png differ
diff --git a/static/image/finance-management/v1/logo.png b/static/image/finance-management/v1/logo.png
new file mode 100644
index 0000000..a325357
Binary files /dev/null and b/static/image/finance-management/v1/logo.png differ
diff --git a/static/image/finance-management/v2/arrow.png b/static/image/finance-management/v2/arrow.png
new file mode 100644
index 0000000..6c93875
Binary files /dev/null and b/static/image/finance-management/v2/arrow.png differ
diff --git a/static/image/finance-management/v2/bg.png b/static/image/finance-management/v2/bg.png
new file mode 100644
index 0000000..0e4b205
Binary files /dev/null and b/static/image/finance-management/v2/bg.png differ
diff --git a/static/image/finance-management/v2/logo.png b/static/image/finance-management/v2/logo.png
new file mode 100644
index 0000000..8167d85
Binary files /dev/null and b/static/image/finance-management/v2/logo.png differ
diff --git a/static/image/finance-management/v3/arrow.png b/static/image/finance-management/v3/arrow.png
new file mode 100644
index 0000000..6c93875
Binary files /dev/null and b/static/image/finance-management/v3/arrow.png differ
diff --git a/static/image/finance-management/v3/bg.png b/static/image/finance-management/v3/bg.png
new file mode 100644
index 0000000..37ef2f6
Binary files /dev/null and b/static/image/finance-management/v3/bg.png differ
diff --git a/static/image/finance-management/v3/logo.png b/static/image/finance-management/v3/logo.png
new file mode 100644
index 0000000..1b8c27c
Binary files /dev/null and b/static/image/finance-management/v3/logo.png differ
diff --git a/static/image/recharge/214/bannar.png b/static/image/recharge/214/bannar.png
new file mode 100644
index 0000000..a9b1066
Binary files /dev/null and b/static/image/recharge/214/bannar.png differ
diff --git a/static/image/recharge/214/icon1.png b/static/image/recharge/214/icon1.png
new file mode 100644
index 0000000..dd2d5ff
Binary files /dev/null and b/static/image/recharge/214/icon1.png differ
diff --git a/static/image/recharge/214/icon10.png b/static/image/recharge/214/icon10.png
new file mode 100644
index 0000000..3e11b68
Binary files /dev/null and b/static/image/recharge/214/icon10.png differ
diff --git a/static/image/recharge/214/icon11.png b/static/image/recharge/214/icon11.png
new file mode 100644
index 0000000..285750a
Binary files /dev/null and b/static/image/recharge/214/icon11.png differ
diff --git a/static/image/recharge/214/icon12.png b/static/image/recharge/214/icon12.png
new file mode 100644
index 0000000..c573648
Binary files /dev/null and b/static/image/recharge/214/icon12.png differ
diff --git a/static/image/recharge/214/icon13.png b/static/image/recharge/214/icon13.png
new file mode 100644
index 0000000..f661083
Binary files /dev/null and b/static/image/recharge/214/icon13.png differ
diff --git a/static/image/recharge/214/icon14.png b/static/image/recharge/214/icon14.png
new file mode 100644
index 0000000..f6fd626
Binary files /dev/null and b/static/image/recharge/214/icon14.png differ
diff --git a/static/image/recharge/214/icon15.png b/static/image/recharge/214/icon15.png
new file mode 100644
index 0000000..ecca677
Binary files /dev/null and b/static/image/recharge/214/icon15.png differ
diff --git a/static/image/recharge/214/icon16.png b/static/image/recharge/214/icon16.png
new file mode 100644
index 0000000..cf8e6d9
Binary files /dev/null and b/static/image/recharge/214/icon16.png differ
diff --git a/static/image/recharge/214/icon17.png b/static/image/recharge/214/icon17.png
new file mode 100644
index 0000000..602f06e
Binary files /dev/null and b/static/image/recharge/214/icon17.png differ
diff --git a/static/image/recharge/214/icon18.png b/static/image/recharge/214/icon18.png
new file mode 100644
index 0000000..eb38403
Binary files /dev/null and b/static/image/recharge/214/icon18.png differ
diff --git a/static/image/recharge/214/icon19.png b/static/image/recharge/214/icon19.png
new file mode 100644
index 0000000..ecc1c2e
Binary files /dev/null and b/static/image/recharge/214/icon19.png differ
diff --git a/static/image/recharge/214/icon2.png b/static/image/recharge/214/icon2.png
new file mode 100644
index 0000000..b1d62dc
Binary files /dev/null and b/static/image/recharge/214/icon2.png differ
diff --git a/static/image/recharge/214/icon20.png b/static/image/recharge/214/icon20.png
new file mode 100644
index 0000000..147b45a
Binary files /dev/null and b/static/image/recharge/214/icon20.png differ
diff --git a/static/image/recharge/214/icon21.png b/static/image/recharge/214/icon21.png
new file mode 100644
index 0000000..37dc47b
Binary files /dev/null and b/static/image/recharge/214/icon21.png differ
diff --git a/static/image/recharge/214/icon3.png b/static/image/recharge/214/icon3.png
new file mode 100644
index 0000000..d4503a3
Binary files /dev/null and b/static/image/recharge/214/icon3.png differ
diff --git a/static/image/recharge/214/icon4.png b/static/image/recharge/214/icon4.png
new file mode 100644
index 0000000..52a14c7
Binary files /dev/null and b/static/image/recharge/214/icon4.png differ
diff --git a/static/image/recharge/214/icon5.png b/static/image/recharge/214/icon5.png
new file mode 100644
index 0000000..e8e2d7e
Binary files /dev/null and b/static/image/recharge/214/icon5.png differ
diff --git a/static/image/recharge/214/icon6.png b/static/image/recharge/214/icon6.png
new file mode 100644
index 0000000..f2cb5eb
Binary files /dev/null and b/static/image/recharge/214/icon6.png differ
diff --git a/static/image/recharge/214/icon7.png b/static/image/recharge/214/icon7.png
new file mode 100644
index 0000000..99882f0
Binary files /dev/null and b/static/image/recharge/214/icon7.png differ
diff --git a/static/image/recharge/214/icon8.png b/static/image/recharge/214/icon8.png
new file mode 100644
index 0000000..a1723b5
Binary files /dev/null and b/static/image/recharge/214/icon8.png differ
diff --git a/static/image/recharge/214/icon9.png b/static/image/recharge/214/icon9.png
new file mode 100644
index 0000000..ef5902a
Binary files /dev/null and b/static/image/recharge/214/icon9.png differ
diff --git a/static/image/recharge/aili.png b/static/image/recharge/aili.png
new file mode 100644
index 0000000..11d84f1
Binary files /dev/null and b/static/image/recharge/aili.png differ
diff --git a/static/image/recharge/banner1.png b/static/image/recharge/banner1.png
index 8cdab38..bb77566 100644
Binary files a/static/image/recharge/banner1.png and b/static/image/recharge/banner1.png differ
diff --git a/static/image/recharge/chunjie/0.png b/static/image/recharge/chunjie/0.png
new file mode 100644
index 0000000..d057231
Binary files /dev/null and b/static/image/recharge/chunjie/0.png differ
diff --git a/static/image/recharge/chunjie/2.png b/static/image/recharge/chunjie/2.png
new file mode 100644
index 0000000..1c818cd
Binary files /dev/null and b/static/image/recharge/chunjie/2.png differ
diff --git a/static/image/recharge/chunjie/6.png b/static/image/recharge/chunjie/6.png
new file mode 100644
index 0000000..3610e51
Binary files /dev/null and b/static/image/recharge/chunjie/6.png differ
diff --git a/static/image/recharge/chunjie/bannar.png b/static/image/recharge/chunjie/bannar.png
new file mode 100644
index 0000000..7910363
Binary files /dev/null and b/static/image/recharge/chunjie/bannar.png differ
diff --git a/static/image/recharge/chunjie/bao.png b/static/image/recharge/chunjie/bao.png
new file mode 100644
index 0000000..3719177
Binary files /dev/null and b/static/image/recharge/chunjie/bao.png differ
diff --git a/static/image/recharge/chunjie/fu.png b/static/image/recharge/chunjie/fu.png
new file mode 100644
index 0000000..749e4af
Binary files /dev/null and b/static/image/recharge/chunjie/fu.png differ
diff --git a/static/image/recharge/chunjie/gong.png b/static/image/recharge/chunjie/gong.png
new file mode 100644
index 0000000..e02469d
Binary files /dev/null and b/static/image/recharge/chunjie/gong.png differ
diff --git a/static/image/recharge/chunjie/he.png b/static/image/recharge/chunjie/he.png
new file mode 100644
index 0000000..1b98b51
Binary files /dev/null and b/static/image/recharge/chunjie/he.png differ
diff --git a/static/image/recharge/chunjie/jin.png b/static/image/recharge/chunjie/jin.png
new file mode 100644
index 0000000..c73d4f5
Binary files /dev/null and b/static/image/recharge/chunjie/jin.png differ
diff --git a/static/image/recharge/chunjie/li.png b/static/image/recharge/chunjie/li.png
new file mode 100644
index 0000000..298f8d7
Binary files /dev/null and b/static/image/recharge/chunjie/li.png differ
diff --git a/static/image/recharge/chunjie/ma.png b/static/image/recharge/chunjie/ma.png
new file mode 100644
index 0000000..bd44eff
Binary files /dev/null and b/static/image/recharge/chunjie/ma.png differ
diff --git a/static/image/recharge/chunjie/mo.png b/static/image/recharge/chunjie/mo.png
new file mode 100644
index 0000000..76c6d43
Binary files /dev/null and b/static/image/recharge/chunjie/mo.png differ
diff --git a/static/image/recharge/chunjie/nian.png b/static/image/recharge/chunjie/nian.png
new file mode 100644
index 0000000..6dab1a0
Binary files /dev/null and b/static/image/recharge/chunjie/nian.png differ
diff --git a/static/image/recharge/chunjie/song.png b/static/image/recharge/chunjie/song.png
new file mode 100644
index 0000000..23968de
Binary files /dev/null and b/static/image/recharge/chunjie/song.png differ
diff --git a/static/image/recharge/chunjie/wei.png b/static/image/recharge/chunjie/wei.png
new file mode 100644
index 0000000..6200349
Binary files /dev/null and b/static/image/recharge/chunjie/wei.png differ
diff --git a/static/image/recharge/chunjie/xiao.png b/static/image/recharge/chunjie/xiao.png
new file mode 100644
index 0000000..8ae8d2f
Binary files /dev/null and b/static/image/recharge/chunjie/xiao.png differ
diff --git a/static/image/recharge/chunjie/xin.png b/static/image/recharge/chunjie/xin.png
new file mode 100644
index 0000000..d959a78
Binary files /dev/null and b/static/image/recharge/chunjie/xin.png differ
diff --git a/static/image/recharge/chunjie/xing.png b/static/image/recharge/chunjie/xing.png
new file mode 100644
index 0000000..6ea4540
Binary files /dev/null and b/static/image/recharge/chunjie/xing.png differ
diff --git a/static/image/recharge/chunjie/yue.png b/static/image/recharge/chunjie/yue.png
new file mode 100644
index 0000000..a27bc0b
Binary files /dev/null and b/static/image/recharge/chunjie/yue.png differ
diff --git a/static/image/recharge/chunjie/zhu.png b/static/image/recharge/chunjie/zhu.png
new file mode 100644
index 0000000..0182e76
Binary files /dev/null and b/static/image/recharge/chunjie/zhu.png differ
diff --git a/static/image/recharge/comment-header/header1.jpg b/static/image/recharge/comment-header/header1.jpg
new file mode 100644
index 0000000..463595c
Binary files /dev/null and b/static/image/recharge/comment-header/header1.jpg differ
diff --git a/static/image/recharge/comment-header/header2.jpg b/static/image/recharge/comment-header/header2.jpg
new file mode 100644
index 0000000..2916b8a
Binary files /dev/null and b/static/image/recharge/comment-header/header2.jpg differ
diff --git a/static/image/recharge/comment-header/header3.jpg b/static/image/recharge/comment-header/header3.jpg
new file mode 100644
index 0000000..36ce17f
Binary files /dev/null and b/static/image/recharge/comment-header/header3.jpg differ
diff --git a/static/image/recharge/huise/icon11.png b/static/image/recharge/huise/icon11.png
new file mode 100644
index 0000000..77af3e6
Binary files /dev/null and b/static/image/recharge/huise/icon11.png differ
diff --git a/static/image/recharge/huise/icon13.png b/static/image/recharge/huise/icon13.png
new file mode 100644
index 0000000..ad888e7
Binary files /dev/null and b/static/image/recharge/huise/icon13.png differ
diff --git a/static/image/recharge/huise/icon14.png b/static/image/recharge/huise/icon14.png
new file mode 100644
index 0000000..ff4992d
Binary files /dev/null and b/static/image/recharge/huise/icon14.png differ
diff --git a/static/image/recharge/huise/icon15.png b/static/image/recharge/huise/icon15.png
new file mode 100644
index 0000000..a70b707
Binary files /dev/null and b/static/image/recharge/huise/icon15.png differ
diff --git a/static/image/recharge/huise/icon16.png b/static/image/recharge/huise/icon16.png
new file mode 100644
index 0000000..ee239b3
Binary files /dev/null and b/static/image/recharge/huise/icon16.png differ
diff --git a/static/image/recharge/huise/icon17.png b/static/image/recharge/huise/icon17.png
new file mode 100644
index 0000000..35c9b34
Binary files /dev/null and b/static/image/recharge/huise/icon17.png differ
diff --git a/static/image/recharge/huise/icon21.png b/static/image/recharge/huise/icon21.png
new file mode 100644
index 0000000..72e405b
Binary files /dev/null and b/static/image/recharge/huise/icon21.png differ
diff --git a/static/image/recharge/huise/icon8.png b/static/image/recharge/huise/icon8.png
new file mode 100644
index 0000000..5e13a08
Binary files /dev/null and b/static/image/recharge/huise/icon8.png differ
diff --git a/static/image/recharge/icon13.png b/static/image/recharge/icon13.png
new file mode 100644
index 0000000..abe2da6
Binary files /dev/null and b/static/image/recharge/icon13.png differ
diff --git a/static/image/recharge/icon14.png b/static/image/recharge/icon14.png
new file mode 100644
index 0000000..cc1808b
Binary files /dev/null and b/static/image/recharge/icon14.png differ
diff --git a/static/image/recharge/icon15.png b/static/image/recharge/icon15.png
new file mode 100644
index 0000000..5641240
Binary files /dev/null and b/static/image/recharge/icon15.png differ
diff --git a/static/image/recharge/icon16.png b/static/image/recharge/icon16.png
new file mode 100644
index 0000000..5869ce3
Binary files /dev/null and b/static/image/recharge/icon16.png differ
diff --git a/static/image/recharge/icon17.png b/static/image/recharge/icon17.png
new file mode 100644
index 0000000..255b851
Binary files /dev/null and b/static/image/recharge/icon17.png differ
diff --git a/static/image/recharge/icon18.png b/static/image/recharge/icon18.png
new file mode 100644
index 0000000..5e722d5
Binary files /dev/null and b/static/image/recharge/icon18.png differ
diff --git a/static/image/recharge/icon19.png b/static/image/recharge/icon19.png
new file mode 100644
index 0000000..4570a56
Binary files /dev/null and b/static/image/recharge/icon19.png differ
diff --git a/static/image/recharge/icon20.png b/static/image/recharge/icon20.png
new file mode 100644
index 0000000..125cd76
Binary files /dev/null and b/static/image/recharge/icon20.png differ
diff --git a/static/image/recharge/icon21.png b/static/image/recharge/icon21.png
new file mode 100644
index 0000000..62a81d5
Binary files /dev/null and b/static/image/recharge/icon21.png differ
diff --git a/static/image/recharge/qy.png b/static/image/recharge/qy.png
new file mode 100644
index 0000000..1d9d9c9
Binary files /dev/null and b/static/image/recharge/qy.png differ
diff --git a/static/image/recharge/qydb.png b/static/image/recharge/qydb.png
new file mode 100644
index 0000000..b7dd230
Binary files /dev/null and b/static/image/recharge/qydb.png differ
diff --git a/static/image/recharge/tabBg.png b/static/image/recharge/tabBg.png
new file mode 100644
index 0000000..85b820c
Binary files /dev/null and b/static/image/recharge/tabBg.png differ
diff --git a/static/image/recharge/tytq.png b/static/image/recharge/tytq.png
new file mode 100644
index 0000000..d866e12
Binary files /dev/null and b/static/image/recharge/tytq.png differ
diff --git a/static/image/recharge/vip.png b/static/image/recharge/vip.png
new file mode 100644
index 0000000..16e0046
Binary files /dev/null and b/static/image/recharge/vip.png differ
diff --git a/static/image/recharge/weixin.png b/static/image/recharge/weixin.png
new file mode 100644
index 0000000..03689ae
Binary files /dev/null and b/static/image/recharge/weixin.png differ
diff --git a/static/image/template/close.png b/static/image/template/close.png
new file mode 100644
index 0000000..56fb0d0
Binary files /dev/null and b/static/image/template/close.png differ
diff --git a/static/json/page.json b/static/json/page.json
index 4eb7c3f..4a1f701 100644
--- a/static/json/page.json
+++ b/static/json/page.json
@@ -1,3 +1,12 @@
{
-
+ "pages/index/index": "支付宝模拟器首页",
+ "pages/balance/index": "余额",
+ "pages/bill/bill-list/bill-list": "账单列表",
+ "pages/bill/add-bill/add-bill": "新增账单",
+ "pages/bill/bill-detail/bill-detail": "账单详情",
+ "pages/ant-credit-pay/index": "花呗",
+ "pages/ant-credit-pay/overdue-payment/overdue-payment": "花呗逾期",
+ "pages/finance-management/index": "理财",
+ "pages/common/alipay-annual-bill/alipay-annual-bill": "支付宝年度账单",
+ "pages/common/recharge/index": "充值"
}
\ No newline at end of file
diff --git a/utils/globalMethods.js b/utils/globalMethods.js
index 4eda3a6..40812fd 100644
--- a/utils/globalMethods.js
+++ b/utils/globalMethods.js
@@ -19,12 +19,10 @@ export default {
}
app.config.globalProperties.$apiUserEvent = async (type, adminData, uniData) => {
- let AppUser = uni.getStorageSync('AppUser')
if (type != 'uni') {
-
await postJson('a', 'api/user/event', {
type: adminData.type,
- key: adminData.type + ".uni." + adminData.key,
+ key: adminData.type + ".uni.alipay." + adminData.key,
value: adminData.value,
extra: JSON.stringify({
uni_version: app.config.globalProperties.$version,
@@ -32,55 +30,46 @@ export default {
}),
})
}
- if (type != 'admin') {
- // 公共
- let ggData = {
- app_id: AppUser.app_id,
- user_name: AppUser.name, //宿主用户id
- uni_version: app.config.globalProperties.$version, //uni版本号
- app_version: plus.runtime.version, //宿主版本号
- }
- uni.report(uniData.type, {
- ...ggData,
- ...uniData.data
- })
- }
+ }
+
+ app.config.globalProperties.$toFiexd = (num, index = 2) => { //保留小数
+ return Number(num).toFixed(index)
}
// 跳转页面方法
app.config.globalProperties.$goRechargePage = (type) => { //保留小数
- // let pages = getCurrentPages();
- // let currentPage = pages[pages.length - 1];
- // let currentUrl = currentPage.route;
- // currentUrl = pageData[currentUrl]
- // // 点击水印
- // app.config.globalProperties.$apiUserEvent('all', {
- // type: "click",
- // key: type,
- // value: type != "watermark" ? "关闭水印" : "点击右下角水印图标",
- // extra: {
- // page: currentUrl
- // }
- // }, {
- // type: 'click_' + type,
- // data: {
- // page: currentUrl
- // }
- // })
- // // 进入页面
- // app.config.globalProperties.$apiUserEvent('all', {
- // type: "event",
- // key: "payment_onload",
- // value: "进入充值页面",
- // extra: {
- // from: currentUrl
- // }
- // }, {
- // type: 'payment_onload',
- // data: {
- // from: currentUrl
- // }
- // })
+ let pages = getCurrentPages();
+ let currentPage = pages[pages.length - 1];
+ let currentUrl = currentPage.route;
+ currentUrl = pageData[currentUrl]
+ // 点击水印
+ app.config.globalProperties.$apiUserEvent('all', {
+ type: "click",
+ key: type,
+ value: type != "watermark" ? "关闭水印" : "点击右下角水印图标",
+ extra: {
+ page: currentUrl
+ }
+ }, {
+ type: 'click_' + type,
+ data: {
+ page: currentUrl
+ }
+ })
+ // 进入页面
+ app.config.globalProperties.$apiUserEvent('all', {
+ type: "event",
+ key: "payment_onload",
+ value: "进入充值页面",
+ extra: {
+ from: currentUrl
+ }
+ }, {
+ type: 'payment_onload',
+ data: {
+ from: currentUrl
+ }
+ })
uni.navigateTo({
url: '/pages/common/recharge/index'
});
diff --git a/utils/requests.js b/utils/requests.js
index 92d84fb..ca621d0 100644
--- a/utils/requests.js
+++ b/utils/requests.js
@@ -7,13 +7,11 @@ import CryptoJS from "crypto-js";
// import pageData from "@/static/json/page.json"
async function apiUserEvent(type, adminData, uniData) {
- let orderData = uni.getStorageSync("UserEventOrder")
- let uni_version = uni.getStorageSync("uni_version")
- let AppUser = uni.getStorageSync('AppUser')
+ let uni_version = uni.getStorageSync("version")
if (type != 'uni') {
await postJson('a', 'api/user/event', {
type: adminData.type,
- key: adminData.type + ".uni." + adminData.key,
+ key: adminData.type + ".uni.alipay." + adminData.key,
value: adminData.value,
extra: JSON.stringify({
uni_version: uni_version,
@@ -21,20 +19,6 @@ async function apiUserEvent(type, adminData, uniData) {
}),
})
}
- if (type != 'admin') {
- // 公共
- let ggData = {
- app_id: AppUser.app_id,
- user_name: AppUser.name, //宿主用户id
- uni_version: uni_version, //uni版本号
- app_version: plus.runtime.version, //宿主版本号
- }
- uni.report(uniData.type, {
- ...ggData,
- ...uniData.data,
- ...orderData
- })
- }
}
// 辅助函数:参数编码
function encodeParam(data) {