ff
This commit is contained in:
5
.env
5
.env
@@ -1,7 +1,7 @@
|
||||
# 开发环境 - 本地后端服务器(使用 HTTP,不要使用 HTTPS,除非后端配置了 SSL 证书)
|
||||
VITE_API_URL=http://127.0.0.1:8888
|
||||
# VITE_API_URL=http://127.0.0.1:8888
|
||||
# 生产环境 - 取消下面的注释并注释掉上面的开发环境配置
|
||||
# VITE_API_URL=https://www.onecha.cn
|
||||
VITE_API_URL=https://www.onecha.cn
|
||||
|
||||
|
||||
VITE_API_PREFIX=/api/v1
|
||||
@@ -17,6 +17,7 @@ VITE_WECHAT_APP_ID=wx442ee1ac1ee75917
|
||||
VITE_CHAT_AES_KEY=qw5w6SFE2D1jmxyd
|
||||
VITE_CHAT_AES_IV=345GDFED433223DF
|
||||
|
||||
|
||||
VITE_SHARE_TITLE=一查查|大数据风险报告查询与代理平台,支持个人和企业多场景风控应用
|
||||
VITE_SHARE_DESC=提供个人信用评估、入职背调、信贷风控、企业风险监测等服务
|
||||
VITE_SHARE_IMG=https://www.onecha.cn/logo.png
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"navigationBarTitleText": "一查查"
|
||||
},
|
||||
"pages": [
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: MP-WEIXIN
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: H5 || MP-WEIXIN
|
||||
{
|
||||
"path": "pages/index",
|
||||
"type": "home",
|
||||
@@ -220,7 +220,7 @@
|
||||
"backgroundColor": "#fff",
|
||||
"borderStyle": "black",
|
||||
"list": [
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: MP-WEIXIN
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: H5 || MP-WEIXIN
|
||||
{
|
||||
"pagePath": "pages/index",
|
||||
"text": "首页",
|
||||
|
||||
@@ -131,24 +131,34 @@ function toRegister() {
|
||||
<view v-if="isAgent" class="relative rounded-xl shadow-lg mb-3 bg-white overflow-hidden">
|
||||
<view class="relative p-5 pb-0">
|
||||
<view class="flex items-center mb-4">
|
||||
<wd-icon name="chart-trending" class="text-lg mr-2" color="#1989fa" />
|
||||
<wd-icon name="chart-bar" class="text-lg mr-2" color="#07c160" />
|
||||
<!-- <wd-icon name="chart-trending" class="text-lg mr-2" color="#1989fa" /> -->
|
||||
<text class="text-lg font-bold text-gray-800">我的转化率</text>
|
||||
</view>
|
||||
<view class="absolute top-3 right-3 flex p-1 rounded-2xl bg-blue-500">
|
||||
<view class="absolute top-3 right-2 flex p-0.5 rounded-lg bg-blue-500">
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', myConversionActiveTab === 'daily' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
myConversionActiveTab === 'daily'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="myConversionActiveTab = 'daily'"
|
||||
>
|
||||
日
|
||||
</button>
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', myConversionActiveTab === 'weekly' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
myConversionActiveTab === 'weekly'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="myConversionActiveTab = 'weekly'"
|
||||
>
|
||||
周
|
||||
</button>
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', myConversionActiveTab === 'monthly' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
myConversionActiveTab === 'monthly'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="myConversionActiveTab = 'monthly'"
|
||||
>
|
||||
月
|
||||
@@ -170,8 +180,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-3 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
@@ -187,8 +197,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-1 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
@@ -204,8 +214,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-1 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
@@ -226,21 +236,30 @@ function toRegister() {
|
||||
<wd-icon name="chart-bar" class="text-lg mr-2" color="#07c160" />
|
||||
<text class="text-lg font-bold text-gray-800">我的下级转化率</text>
|
||||
</view>
|
||||
<view class="absolute top-3 right-3 flex p-1 rounded-2xl bg-blue-500">
|
||||
<view class="absolute top-3 right-2 flex p-0.5 rounded-lg bg-blue-500">
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', subordinateConversionActiveTab === 'daily' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
subordinateConversionActiveTab === 'daily'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="subordinateConversionActiveTab = 'daily'"
|
||||
>
|
||||
日
|
||||
</button>
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', subordinateConversionActiveTab === 'weekly' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
subordinateConversionActiveTab === 'weekly'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="subordinateConversionActiveTab = 'weekly'"
|
||||
>
|
||||
周
|
||||
</button>
|
||||
<button
|
||||
:class="['px-6 py-2 text-sm font-medium rounded-lg mx-1', subordinateConversionActiveTab === 'monthly' ? 'bg-white text-gray-900' : 'text-gray-900']"
|
||||
:class="['px-4 py-1.5 text-xs font-medium rounded-md mx-0.5 transition-all duration-200',
|
||||
subordinateConversionActiveTab === 'monthly'
|
||||
? 'bg-white text-gray-900 shadow-sm'
|
||||
: 'bg-blue-500 text-white']"
|
||||
@click="subordinateConversionActiveTab = 'monthly'"
|
||||
>
|
||||
月
|
||||
@@ -262,8 +281,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-3 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
@@ -279,8 +298,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-1 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
@@ -296,8 +315,8 @@ function toRegister() {
|
||||
:key="item.period_label"
|
||||
class="p-4 flex items-center border-b border-gray-200"
|
||||
>
|
||||
<view class="text-lg font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-6 text-base text-blue-600">
|
||||
<view class="text-sm font-semibold mr-4 text-gray-800">{{ item.period_label }}</view>
|
||||
<view class="flex items-center gap-1 text-base text-blue-600">
|
||||
<text>{{ item.query_user_count || 0 }}人查询</text>
|
||||
<text>{{ item.paid_user_count || 0 }}人付费</text>
|
||||
<text>总金额: {{ (item.total_amount || 0).toFixed(2) }}</text>
|
||||
|
||||
@@ -154,6 +154,9 @@ async function handleRegister() {
|
||||
})
|
||||
}
|
||||
uni.showToast({ title: '注册成功', icon: 'success' })
|
||||
// 获取用户信息和代理信息
|
||||
await getUser()
|
||||
await getAgentInformation()
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({ url: '/pages/index' })
|
||||
}, 500)
|
||||
|
||||
@@ -95,7 +95,7 @@ function toCooperation() {
|
||||
<template>
|
||||
<view class="box-border min-h-screen from-blue-100 to-white bg-gradient-to-b">
|
||||
<view class="relative">
|
||||
<image class="h-full w-full block" mode="widthFix" src="/static/index/banner_1.png" />
|
||||
<image class="h-full w-full block" mode="widthFix" src="/static/promote/p1.jpg" />
|
||||
</view>
|
||||
<view class="px-4 mt-2">
|
||||
<SectionTitle title="推广报告" />
|
||||
@@ -167,25 +167,12 @@ function toCooperation() {
|
||||
class="mt-1 rounded-lg px-1.5 py-1 text-xs text-white shadow-xl flex items-center"
|
||||
:style="`background-color: ${item.goColor}`"
|
||||
>
|
||||
GO
|
||||
<text class="ml-0.5">›</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 我的历史查询记录 -->
|
||||
<view
|
||||
class="mt-4 box-border h-14 w-full flex items-center rounded-lg shadow-lg bg-white text-gray-700 px-4"
|
||||
@click="toHistory"
|
||||
>
|
||||
<image class="w-10 h-10 mr-4" src="/static/promote/wdbg.png" mode="aspectFit" />
|
||||
<view class="flex-1">
|
||||
<view class="text-gray-800">我的历史查询记录</view>
|
||||
<view class="text-xs text-gray-500">查询记录有效期为30天</view>
|
||||
</view>
|
||||
<text class="text-gray-400 text-xl">›</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
BIN
src/static/promote/p1.jpg
Normal file
BIN
src/static/promote/p1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 95 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 220 KiB After Width: | Height: | Size: 77 KiB |
Reference in New Issue
Block a user