first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
view.data-v-c0c3deb4 {
line-height: 60rpx;
}
.uni-list.data-v-c0c3deb4 {
background-color: #ffffff;
position: relative;
width: 100%;
display: flex;
flex-direction: column;
}
.uni-list-cell.data-v-c0c3deb4 {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.uni-list-cell-left.data-v-c0c3deb4 {
white-space: nowrap;
font-size: 28rpx;
padding: 0 30rpx;
}
.uni-list-cell-db.data-v-c0c3deb4,
.uni-list-cell-right.data-v-c0c3deb4 {
flex: 1;
}
.uni-input-group.data-v-c0c3deb4 {
position: relative;
padding: 0;
border: 0;
background-color: #fff;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-c0c3deb4"><view class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><mp-html class="data-v-c0c3deb4" u-i="c0c3deb4-0" onVI="__l" u-p="{{a}}"></mp-html></view><view a:if="{{b}}" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;margin-top:30rpx"><view class="data-v-c0c3deb4">锁定中充电桩</view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view a:if="{{c}}" class="data-v-c0c3deb4"><view a:for="{{d}}" a:for-item="item" a:key="d" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="color:#909399;font-size:28rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-c0c3deb4">设备ID{{item.a}}</view><view class="data-v-c0c3deb4">{{item.b}}</view></view><view class="data-v-c0c3deb4" style="height:10rpx"></view><u-line class="data-v-c0c3deb4" u-i="{{item.c}}" onVI="__l"></u-line><view class="data-v-c0c3deb4" style="height:10rpx"></view></view></view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view a:if="{{e}}" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="color:#909399">当前数量{{f}}</view></view></view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view class="data-v-c0c3deb4" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx"><view class="data-v-c0c3deb4">当前状态</view><view class="data-v-c0c3deb4" style="height:10rpx"></view><view class="data-v-c0c3deb4">参与时间:{{g}}个月</view><view class="data-v-c0c3deb4" style="height:10rpx"></view><view class="data-v-c0c3deb4">有效期:{{h}}-{{i}}</view></view></view><view class="data-v-c0c3deb4" style="height:100rpx"></view></view></view>

View File

@@ -0,0 +1,62 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
(_easycom_mp_html2 + _easycom_u_line2)();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
const _easycom_u_line = () => "../../uni_modules/uview-plus/components/u-line/u-line.js";
if (!Math) {
(_easycom_mp_html + _easycom_u_line)();
}
const _sfc_main = {
__name: "detail513",
setup(__props) {
let info = common_vendor.ref({});
let type = common_vendor.ref("");
common_vendor.onLoad(async (options) => {
type.value = options.type;
var _res;
if (options.type == 2) {
_res = await api_api.activityUserInfo({ id: options.id });
} else {
_res = await api_api.activityInfo({ id: options.id });
}
if (_res.information) {
_res.information = JSON.parse(_res.information);
}
info.value = _res;
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
content: common_vendor.unref(info).detail
}),
b: common_vendor.unref(type) == 2
}, common_vendor.unref(type) == 2 ? common_vendor.e({
c: common_vendor.unref(info).deviceList
}, common_vendor.unref(info).deviceList ? {
d: common_vendor.f(common_vendor.unref(info).deviceList, (item, index, i0) => {
return {
a: common_vendor.t(item.id),
b: common_vendor.t(item.createTime),
c: "c0c3deb4-1-" + i0,
d: index
};
})
} : {}, {
e: common_vendor.unref(info).deviceList
}, common_vendor.unref(info).deviceList ? {
f: common_vendor.t(common_vendor.unref(info).deviceList.length)
} : {}, {
g: common_vendor.t(common_vendor.unref(info).freezeDate),
h: common_vendor.t(common_vendor.unref(info).confirmDate),
i: common_vendor.t(common_vendor.unref(info).expirationDate)
}) : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c0c3deb4"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "活动",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html",
"u-line": "../../uni_modules/uview-plus/components/u-line/u-line"
}
}

View File

@@ -0,0 +1,33 @@
view.data-v-393d6d4d {
line-height: 60rpx;
}
.uni-list.data-v-393d6d4d {
background-color: #ffffff;
position: relative;
width: 100%;
display: flex;
flex-direction: column;
}
.uni-list-cell.data-v-393d6d4d {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.uni-list-cell-left.data-v-393d6d4d {
white-space: nowrap;
font-size: 28rpx;
padding: 0 30rpx;
}
.uni-list-cell-db.data-v-393d6d4d,
.uni-list-cell-right.data-v-393d6d4d {
flex: 1;
}
.uni-input-group.data-v-393d6d4d {
position: relative;
padding: 0;
border: 0;
background-color: #fff;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-393d6d4d"><view class="data-v-393d6d4d"><view class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><mp-html class="data-v-393d6d4d" u-i="393d6d4d-0" onVI="__l" u-p="{{a}}"></mp-html></view><view a:if="{{b}}" class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;margin-top:30rpx"><view class="data-v-393d6d4d">赠送充电桩</view><view class="data-v-393d6d4d" style="height:20rpx"></view><view class="data-v-393d6d4d" style="color:#909399;font-size:28rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-393d6d4d">设备ID{{c}}</view><view class="data-v-393d6d4d">{{d}}</view></view></view><view a:if="{{e}}" class="data-v-393d6d4d"><view a:if="{{f}}" class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;display:flex;align-items:center;margin-top:30rpx"><view class="data-v-393d6d4d" style="margin-right:25rpx">下单日期</view><view class="data-v-393d6d4d" style="flex:1"><picker class="data-v-393d6d4d" mode="date" start="{{h}}" end="{{i}}" value="{{j}}" onChange="{{k}}"><view class="uni-input data-v-393d6d4d">{{g}}</view></picker></view></view><view class="data-v-393d6d4d" style="margin-top:30rpx"><up-button class="data-v-393d6d4d" u-s="{{['d']}}" onClick="{{l}}" u-i="393d6d4d-1" onVI="__l" u-p="{{m}}">认领</up-button></view></view><view class="data-v-393d6d4d" style="height:100rpx"></view></view></view>

View File

@@ -0,0 +1,94 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_mp_html2 + _easycom_up_button2)();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_mp_html + _easycom_up_button)();
}
const _sfc_main = {
__name: "detail813",
setup(__props) {
let info = common_vendor.ref({});
let type = common_vendor.ref("");
common_vendor.onLoad(async (options) => {
type.value = options.type;
var _res;
if (options.type == 2) {
_res = await api_api.activityUserInfo({ id: options.id });
} else {
_res = await api_api.activityInfo({ id: options.id });
}
info.value = _res;
});
const getDate = (type2) => {
const date2 = /* @__PURE__ */ new Date();
let year = date2.getFullYear();
let month = date2.getMonth() + 1;
let day = date2.getDate();
if (type2 === "start") {
year = year - 60;
} else if (type2 === "end") {
year = year + 2;
}
month = month > 9 ? month : "0" + month;
day = day > 9 ? day : "0" + day;
return `${year}-${month}-${day}`;
};
const bindDateChange = (e) => {
date.value = e.detail.value;
};
let startDate = common_vendor.computed(() => {
return getDate("start");
});
let endDate = common_vendor.computed(() => {
return getDate("end");
});
const currentDate = getDate({
format: true
});
let date = common_vendor.ref(currentDate);
let getActCreate = () => {
api_api.activityUserConfirm({
id: info.value.id,
orderDate: date.value
}).then((res) => {
common_vendor.index.showToast({ title: "认领成功", icon: "none" });
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
content: common_vendor.unref(info).detail
}),
b: common_vendor.unref(type) == 2
}, common_vendor.unref(type) == 2 ? {
c: common_vendor.t(common_vendor.unref(info).deviceId),
d: common_vendor.t(common_vendor.unref(info).createTime)
} : {}, {
e: common_vendor.unref(type) != 2
}, common_vendor.unref(type) != 2 ? common_vendor.e({
f: !_ctx.ac
}, !_ctx.ac ? {
g: common_vendor.t(common_vendor.unref(date)),
h: common_vendor.unref(startDate),
i: common_vendor.unref(endDate),
j: common_vendor.unref(date),
k: common_vendor.o(bindDateChange)
} : {}, {
l: common_vendor.o(common_vendor.unref(getActCreate)),
m: common_vendor.p({
color: "#4874e5",
type: "primary"
})
}) : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-393d6d4d"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "活动",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,3 @@
.xkl-com-bg.data-v-2c61ebca {
min-height: 100vh;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-2c61ebca"><view class="data-v-2c61ebca" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-2c61ebca">活动列表</view><navigator class="data-v-2c61ebca" url="/pages/activity/shop/index" style="color:#2b85e4">我的参与</navigator></view><view class="data-v-2c61ebca" style="height:20rpx"></view><navigator a:for="{{a}}" a:for-item="i" a:key="e" class="data-v-2c61ebca" url="{{i.f}}" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;margin-bottom:20rpx"><view class="data-v-2c61ebca"><view class="data-v-2c61ebca">{{i.a}}</view></view><up-divider class="data-v-2c61ebca" u-i="{{i.b}}" onVI="__l"></up-divider><view class="data-v-2c61ebca">活动时间:{{i.c}}-{{i.d}}</view></navigator></view>

View File

@@ -0,0 +1,39 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
if (!Array) {
const _easycom_up_divider2 = common_vendor.resolveComponent("up-divider");
_easycom_up_divider2();
}
const _easycom_up_divider = () => "../../uni_modules/uview-plus/components/u-divider/u-divider.js";
if (!Math) {
_easycom_up_divider();
}
const _sfc_main = {
__name: "index",
setup(__props) {
let dataList = common_vendor.ref([]);
common_vendor.onLoad(async () => {
let _res = await api_api.activityList();
dataList.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return {
a: common_vendor.t(i.title),
b: "2c61ebca-0-" + i0,
c: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.startTime).getTime(), "yyyy-mm-dd")),
d: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.endTime).getTime(), "yyyy-mm-dd")),
e: i,
f: `/pages/activity/detail${i.type == 1 ? "8" : "5"}13?id=${i.id}`
};
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2c61ebca"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "活动中心",
"usingComponents": {
"up-divider": "../../uni_modules/uview-plus/components/u-divider/u-divider"
}
}

View File

@@ -0,0 +1 @@
<view class="p30"><view><view a:for="{{a}}" a:for-item="item" a:key="c" onTap="{{item.d}}" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;margin-bottom:20rpx"><view>{{item.a}}</view><view style="height:10rpx"></view><view>活动参与时间:{{item.b}}</view></view></view></view>

View File

@@ -0,0 +1,33 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_api = require("../../../api/api.js");
require("../../../uni_modules/uview-plus/index.js");
const uni_modules_uviewPlus_libs_function_index = require("../../../uni_modules/uview-plus/libs/function/index.js");
const _sfc_main = {
__name: "index",
setup(__props) {
let dataList = common_vendor.ref([]);
common_vendor.onLoad(async () => {
let _res = await api_api.activityUserList();
dataList.value = _res;
});
const toUrl = (e) => {
common_vendor.index.navigateTo({
url: e
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd")),
c: index,
d: common_vendor.o(($event) => toUrl(`/pages/activity/detail${item.type == 1 ? "8" : "5"}13?id=${item.id}&type=2`))
};
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,4 @@
{
"defaultTitle": "参与记录",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="p30"><mp-html u-i="47679100-0" onVI="__l" u-p="{{a}}"/><view style="height:100rpx"></view></view>

View File

@@ -0,0 +1,29 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
_easycom_mp_html2();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
if (!Math) {
_easycom_mp_html();
}
const _sfc_main = {
__name: "agreement",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options) => {
let _res = await api_api.selectProtocolInfo({ id: options.id });
info.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
content: common_vendor.unref(info).protocolContent
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1,103 @@
.shopList.data-v-1cf27b2a {
display: flex;
align-items: center;
flex-direction: column;
justify-content: content;
}
.shopList_img.data-v-1cf27b2a {
width: 308rpx;
height: 44rpx;
margin-bottom: 50rpx;
}
.shopList_list.data-v-1cf27b2a {
width: 690rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.shopList_list_view.data-v-1cf27b2a {
border-radius: 8rpx 8rpx 8rpx 8rpx;
width: 334rpx;
background-color: #fff;
margin-bottom: 30rpx;
padding-bottom: 20rpx;
}
.shopList_list_view_img.data-v-1cf27b2a {
width: 334rpx;
height: 334rpx;
border-radius: 8rpx 8rpx 0rpx 0rpx;
}
.shopList_list_view_tit.data-v-1cf27b2a {
padding: 10rpx 20rpx 0;
display: -webkit-box;
-webkit-line-clamp: 2;
/* 限制显示的行数 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
font-weight: bold;
font-size: 30rpx;
color: #232323;
}
.shopList_list_view_mon.data-v-1cf27b2a {
padding: 0rpx 20rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.shopList_list_view_mon_left.data-v-1cf27b2a {
font-weight: bold;
font-size: 30rpx;
color: #4874e5;
}
.shopList_list_view_mon_right.data-v-1cf27b2a {
width: 80rpx;
height: 40rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
font-size: 26rpx;
background-color: #4874e5;
color: #fff;
font-weight: bold;
border-radius: 20rpx;
}
.home_notice.data-v-1cf27b2a {
background-color: #fff;
border-radius: 25rpx;
padding: 30rpx 40rpx;
}
.home_notice_title.data-v-1cf27b2a {
font-size: 30rpx;
font-weight: bold;
color: #4874e5;
text-align: center;
margin-bottom: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.home_notice_view.data-v-1cf27b2a {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
padding-bottom: 20rpx;
}
.home_notice_view view.data-v-1cf27b2a {
max-width: 600rpx;
white-space: nowrap;
/*超出的空白区域不换行*/
overflow: hidden;
/*超出隐藏*/
text-overflow: ellipsis;
/*文本超出显示省略号*/
}
.homeIndex ::deep .u-grid-item.data-v-1cf27b2a {
margin-top: 0;
}
.homeIndex button.data-v-1cf27b2a::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="p30 homeIndex data-v-1cf27b2a" style="padding-bottom:150rpx"><status-bar class="data-v-1cf27b2a" u-i="1cf27b2a-0" onVI="__l"/><up-swiper class="data-v-1cf27b2a" onClick="{{a}}" u-i="1cf27b2a-1" onVI="__l" u-p="{{b}}"></up-swiper><view class="mt30 data-v-1cf27b2a"><up-grid class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="1cf27b2a-2" onVI="__l" u-p="{{e}}"><up-grid-item a:for="{{c}}" a:for-item="item" a:key="e" class="data-v-1cf27b2a" u-s="{{['d']}}" onClick="{{item.f}}" u-i="{{item.g}}" onVI="__l" u-p="{{d}}"><button class="data-v-1cf27b2a" open-type="{{item.d}}" style="all:unset;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column"><view class="data-v-1cf27b2a" style="height:35rpx"></view><up-icon class="data-v-1cf27b2a" u-i="{{item.a}}" onVI="__l" u-p="{{item.b}}"></up-icon><text class="data-v-1cf27b2a" style="font-size:24rpx;color:#333;margin-top:10rpx">{{item.c}}</text><view class="data-v-1cf27b2a" style="height:15rpx"></view></button></up-grid-item></up-grid></view><view class="mt30 data-v-1cf27b2a"><view class="home_notice data-v-1cf27b2a"><view class="home_notice_title data-v-1cf27b2a"><view class="data-v-1cf27b2a">系统公告</view><view style="font-size:28rpx" onTap="{{g}}" class="u-flex-y-center data-v-1cf27b2a"> 更多 <up-icon class="data-v-1cf27b2a" u-i="1cf27b2a-5" onVI="__l" u-p="{{f}}"></up-icon></view></view><view a:for="{{h}}" a:for-item="item" a:key="d" class="data-v-1cf27b2a"><navigator a:if="{{item.a}}" url="{{item.c}}" class="home_notice_view data-v-1cf27b2a"><view class="data-v-1cf27b2a">{{item.b}}</view></navigator></view></view></view><image class="data-v-1cf27b2a" onTap="{{i}}" src="{{j}}" style="width:690rpx;margin:30rpx 0" mode="widthFix"></image><view class="shopList data-v-1cf27b2a"><image class="shopList_img data-v-1cf27b2a" src="{{k}}" mode="widthFix"></image><view class="shopList_list data-v-1cf27b2a"><view a:for="{{l}}" a:for-item="i" a:key="d" class="shopList_list_view data-v-1cf27b2a" onTap="{{i.e}}"><image class="shopList_list_view_img data-v-1cf27b2a" src="{{i.a}}" mode="aspectFit"></image><view class="shopList_list_view_tit data-v-1cf27b2a">{{i.b}}</view><view class="shopList_list_view_mon data-v-1cf27b2a"><view class="shopList_list_view_mon_left data-v-1cf27b2a">¥{{i.c}} 元</view></view></view></view></view><tabbar class="data-v-1cf27b2a" u-i="1cf27b2a-6" onVI="__l" u-p="{{m}}"></tabbar></view>

View File

@@ -0,0 +1,226 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_statusBar2 + _easycom_up_swiper2 + _easycom_up_icon2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_tabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_up_swiper + _easycom_up_icon + _easycom_up_grid_item + _easycom_up_grid + _easycom_tabbar)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
common_vendor.reactive([
"https://cdn.uviewui.com/uview/swiper/swiper1.png",
"https://cdn.uviewui.com/uview/swiper/swiper2.png",
"https://cdn.uviewui.com/uview/swiper/swiper3.png"
]);
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
common_vendor.ref([]);
let banner = common_vendor.ref([]);
let contentList = common_vendor.ref([]);
common_vendor.onShow(async () => {
common_vendor.index.hideTabBar();
});
common_vendor.onLoad(async (options) => {
common_vendor.index.hideTabBar();
if (options.q) {
const q = decodeURIComponent(options.q);
const query = getUrlParam(q);
if (query.num) {
common_vendor.index.setStorageSync("invite_code", query.num);
}
}
bannerList();
let _res = await api_api.getContentList({
cid: 1
});
contentList.value = _res.records;
getList();
});
function getList() {
api_api.shopPage().then((res) => {
dataList.value = res.records;
});
}
function getUrlParam(url, paramName) {
let pattern = /([^?&=]+)=([^&]+)/g;
let params = {};
let match;
while ((match = pattern.exec(url)) !== null) {
let key = decodeURIComponent(match[1]);
let value = decodeURIComponent(match[2]);
if (params[key]) {
if (Array.isArray(params[key])) {
params[key].push(value);
} else {
params[key] = [params[key], value];
}
} else {
params[key] = value;
}
}
if (!paramName) {
return params;
} else {
if (params[paramName]) {
return params[paramName];
} else {
return "";
}
}
}
let bannerList = async () => {
let _res = await api_api.bannerInfo();
banner.value = _res;
};
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const baseList = common_vendor.reactive([
{
img: "/static/icon/dz.png",
name: "我的电桩",
path: "/pages/piles/piles",
login: true
},
{
img: "/static/icon/zd.png",
name: "我的账单",
path: "/pages/mine/balanceIncome",
login: true
},
{
img: "/static/icon/hd.png",
name: "活动",
path: "/pages/activity/index",
login: false
},
{
img: "/static/icon/kf.png",
name: "联系客服",
call: true
}
]);
let toShop = (e) => {
common_vendor.index.navigateTo({
url: "/pages/shop/shop?id=" + e.id
});
};
let bannerClick = (e) => {
let data = banner.value[e];
if (data.jumpUrl) {
common_vendor.index.navigateTo({
url: data.jumpUrl
});
}
};
let changeTab = () => {
common_vendor.index.switchTab({
url: "/pages/market/market"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(common_vendor.unref(bannerClick)),
b: common_vendor.p({
list: common_vendor.unref(banner),
keyName: "imageUrl",
height: "388rpx",
indicator: true
}),
c: common_vendor.f(baseList, (item, index, i0) => {
return {
a: "1cf27b2a-4-" + i0 + "," + ("1cf27b2a-3-" + i0),
b: common_vendor.p({
imgMode: "widthFix",
name: item.img,
size: 27
}),
c: common_vendor.t(item.name),
d: item.openType,
e: index,
f: common_vendor.o(($event) => common_vendor.unref(navTo)(item.path, item.login, item.call)),
g: "1cf27b2a-3-" + i0 + ",1cf27b2a-2"
};
}),
d: common_vendor.p({
bgColor: "#fff"
}),
e: common_vendor.p({
border: false,
col: "4"
}),
f: common_vendor.p({
name: "arrow-right",
color: "#4874e5",
size: "14"
}),
g: common_vendor.o((...args) => common_vendor.unref(changeTab) && common_vendor.unref(changeTab)(...args)),
h: common_vendor.f(common_vendor.unref(contentList), (item, index, i0) => {
return common_vendor.e({
a: index <= 2
}, index <= 2 ? {
b: common_vendor.t(item.title),
c: `/pages/market/detail?id=${item.id}`
} : {}, {
d: index
});
}),
i: common_vendor.o(($event) => common_vendor.unref(nav)({
path: "/pages/setMealList/setMealList"
})),
j: common_assets._imports_0,
k: common_assets._imports_1,
l: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return {
a: JSON.parse(i.picture)[0],
b: common_vendor.t(i.goodsName),
c: common_vendor.t(i.salePrice),
d: i,
e: common_vendor.o(($event) => common_vendor.unref(toShop)(i))
};
}),
m: common_vendor.p({
path: "/pages/index/index"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,13 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,43 @@
.login.data-v-d23ab30f {
padding: 0 60rpx;
}
.login_bei.data-v-d23ab30f {
position: fixed;
right: 0;
top: 0;
width: 608rpx;
height: 424rpx;
}
.login_logo.data-v-d23ab30f {
margin-top: 150rpx;
}
.login_logo_img.data-v-d23ab30f {
width: 152rpx;
height: 106rpx;
border-radius: 28rpx 28rpx 28rpx 28rpx;
margin-bottom: 20rpx;
}
.login_logo_tit.data-v-d23ab30f {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.login_btn.data-v-d23ab30f {
width: 474rpx;
height: 78rpx;
background: #4874e5;
border-radius: 54rpx 54rpx 54rpx 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}
.orderdetail_header.data-v-d23ab30f {
width: 750rpx;
position: fixed;
left: 0;
top: 0;
z-index: 99;
}

View File

@@ -0,0 +1 @@
<view class="login data-v-d23ab30f"><view class="orderdetail_header p30 data-v-d23ab30f"><view class="data-v-d23ab30f" style="{{'height:' + a}}"></view><view class="data-v-d23ab30f" style="height:44px;display:flex;align-items:center"><up-icon class="data-v-d23ab30f" onClick="{{b}}" u-i="d23ab30f-0" onVI="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-d23ab30f" src="{{d}}"></image><status-bar class="data-v-d23ab30f" u-i="d23ab30f-1" onVI="__l"/><view class="login_logo data-v-d23ab30f"><image class="login_logo_img data-v-d23ab30f" src="{{e}}"></image><view class="login_logo_tit data-v-d23ab30f">欢迎来到星动能源</view></view><view class="data-v-d23ab30f" style="margin-top:150rpx"><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input class="data-v-d23ab30f" u-i="d23ab30f-2" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input class="data-v-d23ab30f" u-i="d23ab30f-3" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input class="data-v-d23ab30f" u-i="d23ab30f-4" onVI="__l" onUpdateModelValue="{{j}}" u-p="{{k}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input class="data-v-d23ab30f" u-i="d23ab30f-5" onVI="__l" onUpdateModelValue="{{l}}" u-p="{{m}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input class="data-v-d23ab30f" u-i="d23ab30f-6" onVI="__l" onUpdateModelValue="{{n}}" u-p="{{o}}"></up-input><up-code class="data-v-d23ab30f" ref="__r" u-r="{{p}}" onChange="{{q}}" u-i="d23ab30f-7" onVI="__l" u-p="{{r}}"></up-code><text class="data-v-d23ab30f" onTap="{{t}}" text="{{v}}" style="font-size:28rpx;color:#4874e5">{{s}}</text></view></view><view class="data-v-d23ab30f" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-d23ab30f" onTap="{{w}}">确认</view></view></view>

View File

@@ -0,0 +1,148 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
if (!Math) {
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code)();
}
const _sfc_main = {
__name: "getBack",
setup(__props) {
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
let dataFrom = common_vendor.reactive({
userName: "",
passwd: "",
phone: "",
smsCode: "",
confirmPasswd: ""
});
let codeChange2 = (text) => {
tips.value = text;
};
let getCode2 = () => {
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: dataFrom.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let submit = async () => {
if (!dataFrom.userName)
return common_vendor.index.showToast({ title: "请输入用户名", icon: "none" });
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (dataFrom.phone.length != 11)
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
if (!dataFrom.passwd)
return common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
if (!dataFrom.confirmPasswd)
return common_vendor.index.showToast({ title: "请再次输入密码", icon: "none" });
if (dataFrom.passwd != dataFrom.confirmPasswd)
return common_vendor.index.showToast({ title: "两次密码输入不一致", icon: "none" });
await api_api.forgotPassword(dataFrom);
common_vendor.index.showToast({ title: "修改成功", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 200);
};
let back = () => {
common_vendor.index.navigateBack();
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(common_vendor.unref(back)),
c: common_vendor.p({
name: "arrow-left",
bold: true,
color: "#000"
}),
d: common_assets._imports_0$2,
e: common_assets._imports_1$1,
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
g: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的用户名",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).userName
}),
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
i: common_vendor.p({
fontSize: "30rpx",
type: "password",
placeholder: "请输入您的密码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).passwd
}),
j: common_vendor.o(($event) => common_vendor.unref(dataFrom).confirmPasswd = $event),
k: common_vendor.p({
fontSize: "30rpx",
type: "password",
placeholder: "请再次输入您的密码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).confirmPasswd
}),
l: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
m: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的手机号",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).phone
}),
n: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
o: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入验证码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
p: () => ({
r: uCode,
k: "uCode"
}),
q: common_vendor.o(common_vendor.unref(codeChange2)),
r: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
s: common_vendor.t(common_vendor.unref(tips)),
t: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
v: common_vendor.unref(tips),
w: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d23ab30f"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"status-bar": "../../components/statusBar/statusBar",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code"
}
}

View File

@@ -0,0 +1,43 @@
.login.data-v-07a163b6 {
padding: 0 60rpx;
}
.login_bei.data-v-07a163b6 {
position: fixed;
right: 0;
top: 0;
width: 608rpx;
height: 424rpx;
}
.login_logo.data-v-07a163b6 {
margin-top: 150rpx;
}
.login_logo_img.data-v-07a163b6 {
width: 152rpx;
height: 106rpx;
border-radius: 28rpx 28rpx 28rpx 28rpx;
margin-bottom: 20rpx;
}
.login_logo_tit.data-v-07a163b6 {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.login_btn.data-v-07a163b6 {
width: 474rpx;
height: 78rpx;
background: #4874e5;
border-radius: 54rpx 54rpx 54rpx 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}
.orderdetail_header.data-v-07a163b6 {
width: 750rpx;
position: fixed;
left: 0;
top: 0;
z-index: 99;
}

View File

@@ -0,0 +1 @@
<view class="login data-v-07a163b6"><view class="orderdetail_header p30 data-v-07a163b6"><view class="data-v-07a163b6" style="{{'height:' + a}}"></view><view class="data-v-07a163b6" style="height:44px;display:flex;align-items:center"><up-icon class="data-v-07a163b6" onClick="{{b}}" u-i="07a163b6-0" onVI="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-07a163b6" src="{{d}}"></image><status-bar class="data-v-07a163b6" u-i="07a163b6-1" onVI="__l"/><view class="login_logo data-v-07a163b6"><image class="login_logo_img data-v-07a163b6" src="{{e}}"></image><view class="login_logo_tit data-v-07a163b6">欢迎来到星动能源</view></view><view class="data-v-07a163b6" style="margin-top:150rpx"><view class="data-v-07a163b6" style="margin-bottom:30rpx"><up-input class="data-v-07a163b6" u-i="07a163b6-2" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-07a163b6" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input class="data-v-07a163b6" u-i="07a163b6-3" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input><up-code class="data-v-07a163b6" ref="__r" u-r="{{j}}" onChange="{{k}}" u-i="07a163b6-4" onVI="__l" u-p="{{l}}"></up-code><text class="data-v-07a163b6" onTap="{{n}}" text="{{o}}" style="font-size:28rpx;color:#4874e5">{{m}}</text></view></view><view class="data-v-07a163b6" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-07a163b6" onTap="{{p}}">确认</view></view></view>

View File

@@ -0,0 +1,137 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
if (!Math) {
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code)();
}
const _sfc_main = {
__name: "getBackAccout",
setup(__props) {
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
let dataFrom = common_vendor.reactive({
phone: "",
smsCode: ""
});
let codeChange2 = (text) => {
tips.value = text;
};
let getCode2 = () => {
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: dataFrom.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let submit = async () => {
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (dataFrom.phone.length != 11)
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
let _res = await api_api.forgotUserName(dataFrom);
if (_res.userNames.length == 0) {
common_vendor.index.showModal({
title: "提示",
content: "该手机号还未注册",
showCancel: false,
confirmText: "我知道了"
});
} else {
common_vendor.index.showModal({
title: "已找回的用户名",
content: _res.userNames.join(","),
showCancel: false,
confirmText: "确认",
success: () => {
common_vendor.index.setClipboardData({
data: _res.userNames.join(","),
//要被复制的内容
success: () => {
common_vendor.index.showToast({
//提示
title: "已复制用户名"
});
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
}
});
}
});
}
};
let back = () => {
common_vendor.index.navigateBack();
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(common_vendor.unref(back)),
c: common_vendor.p({
name: "arrow-left",
bold: true,
color: "#000"
}),
d: common_assets._imports_0$2,
e: common_assets._imports_1$1,
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
g: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的手机号",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).phone
}),
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
i: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入验证码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
j: () => ({
r: uCode,
k: "uCode"
}),
k: common_vendor.o(common_vendor.unref(codeChange2)),
l: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
m: common_vendor.t(common_vendor.unref(tips)),
n: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
o: common_vendor.unref(tips),
p: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-07a163b6"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"status-bar": "../../components/statusBar/statusBar",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code"
}
}

View File

@@ -0,0 +1,43 @@
.login.data-v-e4e4508d {
padding: 0 60rpx;
}
.login_bei.data-v-e4e4508d {
position: fixed;
right: 0;
top: 0;
width: 608rpx;
height: 424rpx;
}
.login_logo.data-v-e4e4508d {
margin-top: 150rpx;
}
.login_logo_img.data-v-e4e4508d {
width: 152rpx;
height: 106rpx;
border-radius: 28rpx 28rpx 28rpx 28rpx;
margin-bottom: 20rpx;
}
.login_logo_tit.data-v-e4e4508d {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.login_btn.data-v-e4e4508d {
width: 474rpx;
height: 78rpx;
background: #4874e5;
border-radius: 54rpx 54rpx 54rpx 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}
.orderdetail_header.data-v-e4e4508d {
width: 750rpx;
position: fixed;
left: 0;
top: 0;
z-index: 99;
}

View File

@@ -0,0 +1 @@
<view class="login data-v-e4e4508d"><view class="orderdetail_header p30 data-v-e4e4508d"><view class="data-v-e4e4508d" style="{{'height:' + a}}"></view><view class="data-v-e4e4508d" style="height:44px;display:flex;align-items:center"><up-icon class="data-v-e4e4508d" onClick="{{b}}" u-i="e4e4508d-0" onVI="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-e4e4508d" src="{{d}}"></image><status-bar class="data-v-e4e4508d" u-i="e4e4508d-1" onVI="__l"/><view class="login_logo data-v-e4e4508d"><image class="login_logo_img data-v-e4e4508d" src="{{e}}"></image><view class="login_logo_tit data-v-e4e4508d">欢迎来到星动能源</view></view><view class="data-v-e4e4508d" style="margin-top:150rpx"><view class="data-v-e4e4508d" style="margin-bottom:50rpx"><up-input class="data-v-e4e4508d" u-i="e4e4508d-2" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-e4e4508d"><up-input class="data-v-e4e4508d" u-i="e4e4508d-3" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input></view></view><view class="data-v-e4e4508d" style="font-size:28rpx;color:#666;margin-top:20rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-e4e4508d"> 忘记账号? <text class="data-v-e4e4508d" style="color:#4874e5" onTap="{{j}}">找回用户名</text></view><view class="data-v-e4e4508d"><text class="data-v-e4e4508d" style="color:#4874e5" onTap="{{k}}">忘记密码</text></view></view><view class="data-v-e4e4508d" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-e4e4508d" onTap="{{l}}">登录</view></view><view class="data-v-e4e4508d" style="display:flex;justify-content:center;margin-top:40rpx;opacity:0.5"><view class="login_btn data-v-e4e4508d" onTap="{{m}}">还没有账号?立即注册</view></view></view>

View File

@@ -0,0 +1,99 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const store_index = require("../../store/index.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
if (!Math) {
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input)();
}
const _sfc_main = {
__name: "login",
setup(__props) {
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
common_vendor.ref("");
let dataFrom = common_vendor.reactive({
userName: "",
passwd: "",
uuid: "",
captcha: ""
});
let back = () => {
common_vendor.index.navigateBack();
};
let toRegister = () => {
common_vendor.index.navigateTo({
url: "/pages/login/register"
});
};
let getBackAccout = () => {
common_vendor.index.navigateTo({
url: "./getBackAccout"
});
};
let toGetBack = () => {
common_vendor.index.navigateTo({
url: "/pages/login/getBack"
});
};
let login = async () => {
try {
const { code } = await common_vendor.index.login();
let _res = await api_api.loginApi(dataFrom);
common_vendor.index.setStorageSync("token", _res.token);
common_vendor.index.setStorageSync("user", _res);
store_index.store.commit("setToken", _res.token);
let saveOpenId = await api_api.saveOpenIdByZfbCode({ loginCode: code });
common_vendor.index.showToast({ title: "登录成功", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 200);
} catch (err) {
}
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(common_vendor.unref(back)),
c: common_vendor.p({
name: "arrow-left",
bold: true,
color: "#000"
}),
d: common_assets._imports_0$2,
e: common_assets._imports_1$1,
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
g: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的用户名",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).userName
}),
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
i: common_vendor.p({
fontSize: "30rpx",
type: "password",
placeholder: "请输入您的密码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).passwd
}),
j: common_vendor.o((...args) => common_vendor.unref(getBackAccout) && common_vendor.unref(getBackAccout)(...args)),
k: common_vendor.o((...args) => common_vendor.unref(toGetBack) && common_vendor.unref(toGetBack)(...args)),
l: common_vendor.o((...args) => common_vendor.unref(login) && common_vendor.unref(login)(...args)),
m: common_vendor.o((...args) => common_vendor.unref(toRegister) && common_vendor.unref(toRegister)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e4e4508d"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,10 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"status-bar": "../../components/statusBar/statusBar",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
}
}

View File

@@ -0,0 +1,40 @@
.login_bei.data-v-838b72c9 {
position: fixed;
right: 0;
top: 0;
width: 608rpx;
height: 424rpx;
}
.login_logo.data-v-838b72c9 {
margin-top: 150rpx;
}
.login_logo_img.data-v-838b72c9 {
width: 152rpx;
height: 106rpx;
border-radius: 28rpx 28rpx 28rpx 28rpx;
margin-bottom: 20rpx;
}
.login_logo_tit.data-v-838b72c9 {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.login_btn.data-v-838b72c9 {
width: 474rpx;
height: 78rpx;
background: #4874e5;
border-radius: 54rpx 54rpx 54rpx 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}
.orderdetail_header.data-v-838b72c9 {
width: 750rpx;
position: fixed;
left: 0;
top: 0;
z-index: 99;
}

View File

@@ -0,0 +1 @@
<view class="login data-v-838b72c9"><view class="orderdetail_header p30 data-v-838b72c9"><view class="data-v-838b72c9" style="{{'height:' + a}}"></view><view class="data-v-838b72c9" style="height:44px;display:flex;align-items:center"><up-icon class="data-v-838b72c9" onClick="{{b}}" u-i="838b72c9-0" onVI="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-838b72c9" src="{{d}}"></image><view class="data-v-838b72c9" style="padding:0 60rpx"><status-bar class="data-v-838b72c9" u-i="838b72c9-1" onVI="__l"/><view class="login_logo data-v-838b72c9"><image class="login_logo_img data-v-838b72c9" src="{{e}}"></image><view class="login_logo_tit data-v-838b72c9">欢迎来到星动能源</view></view><view class="data-v-838b72c9" style="margin-top:100rpx"><view class="data-v-838b72c9"><up-input class="data-v-838b72c9" u-i="838b72c9-2" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-838b72c9" style="font-size:26rpx;color:#ff9900;margin:10rpx 0 10rpx;padding-left:9px">用户名由字母或数字组成长度6-32</view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input class="data-v-838b72c9" u-i="838b72c9-3" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input></view><view class="data-v-838b72c9" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input class="data-v-838b72c9" u-i="838b72c9-4" onVI="__l" onUpdateModelValue="{{j}}" u-p="{{k}}"></up-input><up-code class="data-v-838b72c9" ref="__r" u-r="{{l}}" onChange="{{m}}" u-i="838b72c9-5" onVI="__l" u-p="{{n}}"></up-code><text class="data-v-838b72c9" onTap="{{p}}" text="{{q}}" style="font-size:28rpx;color:#4874e5">{{o}}</text></view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input class="data-v-838b72c9" u-i="838b72c9-6" onVI="__l" onUpdateModelValue="{{r}}" u-p="{{s}}"></up-input></view><view class="data-v-838b72c9"><up-input class="data-v-838b72c9" u-i="838b72c9-7" onVI="__l" onUpdateModelValue="{{t}}" u-p="{{v}}"></up-input></view><view class="data-v-838b72c9" style="font-size:26rpx;color:#ff9900;margin:10rpx 0 10rpx;padding-left:9px">密码必须包含字母、数字长度8-32</view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input class="data-v-838b72c9" u-i="838b72c9-8" onVI="__l" onUpdateModelValue="{{w}}" u-p="{{x}}"></up-input></view></view><view class="data-v-838b72c9" style="font-size:28rpx;color:#666;margin-top:20rpx"> 已有账号? <text class="data-v-838b72c9" style="color:#4874e5" onTap="{{y}}">立即登录</text></view><view class="data-v-838b72c9" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-838b72c9" onTap="{{z}}">注册</view></view></view><view class="data-v-838b72c9" style="display:flex;flex-wrap:wrap;justify-content:center;margin-top:20rpx;font-size:26rpx;align-items:center"><up-checkbox class="data-v-838b72c9" onChange="{{A}}" u-i="838b72c9-9" onVI="__l" u-p="{{B}}"></up-checkbox> 已阅读并同意 <navigator class="data-v-838b72c9" url="/pages/agreement/agreement?id=9" style="color:#4874e5">《用户注册服务协议》</navigator> 和 <navigator class="data-v-838b72c9" url="/pages/agreement/agreement?id=10" style="color:#4874e5">《隐私政策》</navigator></view><view class="data-v-838b72c9" style="height:150rpx"></view></view>

View File

@@ -0,0 +1,186 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2 + _easycom_up_checkbox2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
if (!Math) {
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code + _easycom_up_checkbox)();
}
const _sfc_main = {
__name: "register",
setup(__props) {
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
common_vendor.ref("");
let dataFrom = common_vendor.reactive({
userName: "",
passwd: "",
shareCode: "",
phone: "",
platform: 1,
smsCode: "",
confirmPasswd: ""
});
let xieyi = common_vendor.ref(false);
common_vendor.onLoad(() => {
const invite_code = common_vendor.index.getStorageSync("invite_code");
if (invite_code) {
dataFrom.shareCode = invite_code;
}
});
let changeChex = (e) => {
xieyi.value = e;
};
let toLogin = () => {
common_vendor.index.navigateBack();
};
let codeChange2 = (text) => {
tips.value = text;
};
let getCode2 = () => {
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: dataFrom.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let submit = async () => {
if (!xieyi.value)
return common_vendor.index.showToast({ title: "请先阅读并勾选隐私政策和用户注册服务协议", icon: "none" });
if (!dataFrom.userName)
return common_vendor.index.showToast({ title: "请输入用户名", icon: "none" });
if (!dataFrom.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (dataFrom.phone.length != 11)
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
if (!dataFrom.shareCode)
return common_vendor.index.showToast({ title: "请输入邀请码", icon: "none" });
if (!dataFrom.passwd)
return common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
if (!dataFrom.confirmPasswd)
return common_vendor.index.showToast({ title: "请再次输入密码", icon: "none" });
if (dataFrom.passwd != dataFrom.confirmPasswd)
return common_vendor.index.showToast({ title: "两次密码输入不一致", icon: "none" });
await api_api.registerApi(dataFrom);
common_vendor.index.showToast({ title: "注册成功", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 200);
};
let back = () => {
common_vendor.index.navigateBack();
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(common_vendor.unref(back)),
c: common_vendor.p({
name: "arrow-left",
bold: true,
color: "#000"
}),
d: common_assets._imports_0$2,
e: common_assets._imports_1$1,
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
g: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的用户名",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).userName
}),
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
i: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的手机号",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).phone
}),
j: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
k: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入验证码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
l: () => ({
r: uCode,
k: "uCode"
}),
m: common_vendor.o(common_vendor.unref(codeChange2)),
n: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
o: common_vendor.t(common_vendor.unref(tips)),
p: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
q: common_vendor.unref(tips),
r: common_vendor.o(($event) => common_vendor.unref(dataFrom).shareCode = $event),
s: common_vendor.p({
fontSize: "30rpx",
placeholder: "请输入您的邀请码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).shareCode
}),
t: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
v: common_vendor.p({
fontSize: "30rpx",
type: "password",
placeholder: "请输入您的密码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).passwd
}),
w: common_vendor.o(($event) => common_vendor.unref(dataFrom).confirmPasswd = $event),
x: common_vendor.p({
fontSize: "30rpx",
type: "password",
placeholder: "请再次输入您的密码",
border: "bottom",
clearable: true,
modelValue: common_vendor.unref(dataFrom).confirmPasswd
}),
y: common_vendor.o((...args) => common_vendor.unref(toLogin) && common_vendor.unref(toLogin)(...args)),
z: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args)),
A: common_vendor.o(common_vendor.unref(changeChex)),
B: common_vendor.p({
customStyle: {
marginRight: "15rpx",
marginBotton: 0
}
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-838b72c9"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,12 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"status-bar": "../../components/statusBar/statusBar",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox"
}
}

View File

View File

@@ -0,0 +1 @@
<view class="p30"><view style="font-size:34rpx">{{a}}</view><view style="height:20rpx"></view><view style="color:#999;font-size:30rpx">发布时间:{{b}}</view><view style="height:20rpx"></view><video a:if="{{c}}" src="{{d}}" style="width:100%"></video><view style="height:20rpx"></view><mp-html u-i="006554ff-0" onVI="__l" u-p="{{e}}"/><view style=""></view></view>

View File

@@ -0,0 +1,35 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
_easycom_mp_html2();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
if (!Math) {
_easycom_mp_html();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options) => {
let _res = await api_api.getContentInfo({ id: options.id });
info.value = _res;
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(info).title),
b: common_vendor.t(common_vendor.unref(info).createTime),
c: common_vendor.unref(info).video
}, common_vendor.unref(info).video ? {
d: common_vendor.unref(info).video
} : {}, {
e: common_vendor.p({
content: common_vendor.unref(info).detail
})
});
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1,29 @@
.order_list_header.data-v-8b43de22 {
width: 100%;
height: 100rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 36rpx;
color: #232323;
}
.order_list_header_view.data-v-8b43de22 {
position: relative;
margin-right: 50rpx;
}
.order_list_header_view view.data-v-8b43de22 {
position: relative;
z-index: 99;
}
.order_list_header_view_dian.data-v-8b43de22 {
position: absolute !important;
bottom: 0rpx;
right: 20rpx;
width: 66rpx;
height: 20rpx;
background-color: #4874e5;
border-radius: 10rpx;
z-index: 1 !important;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-8b43de22" style="padding-bottom:150rpx"><z-paging class="data-v-8b43de22" u-s="{{['d']}}" ref="__r" u-r="{{d}}" onQuery="{{e}}" u-i="8b43de22-0" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"><status-bar class="data-v-8b43de22" u-s="{{['d']}}" u-i="8b43de22-1,8b43de22-0" onVI="__l"><up-tabs class="data-v-8b43de22" onClick="{{a}}" u-i="8b43de22-2,8b43de22-1" onVI="__l" u-p="{{b}}"></up-tabs></status-bar><view a:for="{{c}}" a:for-item="i" a:key="d" class="order_view data-v-8b43de22" onTap="{{i.e}}"><image a:if="{{i.a}}" class="data-v-8b43de22" src="{{i.b}}" mode="aspectFill" style="width:690rpx;height:248rpx;margin-top:30rpx;border-radius:10rpx"></image><view a:else class="mt30 data-v-8b43de22" style="display:flex;align-items:center;height:80rpx;background-color:#fff;padding:0 30rpx;justify-content:space-between"><view class="data-v-8b43de22">{{i.c}}</view></view></view></z-paging><tabbar class="data-v-8b43de22" u-i="8b43de22-3" onVI="__l" u-p="{{h}}"></tabbar></view>

View File

@@ -0,0 +1,117 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_up_tabs2 + _easycom_statusBar2 + _easycom_z_paging2 + _easycom_tabbar2)();
}
const _easycom_up_tabs = () => "../../uni_modules/uview-plus/components/u-tabs/u-tabs.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_up_tabs + _easycom_statusBar + _easycom_z_paging + _easycom_tabbar)();
}
const _sfc_main = {
__name: "market",
setup(__props) {
const query = common_vendor.reactive({
cid: 4
//1-最近;2-空闲较多
});
let list = common_vendor.ref();
common_vendor.onLoad(async () => {
common_vendor.index.hideTabBar();
let _res = await api_api.getContentCategoryList();
list.value = _res.records;
query.cid = list.value[0].id;
paging.value.reload();
});
common_vendor.onShow(async () => {
common_vendor.index.hideTabBar();
});
let tabChange = (e) => {
console.log(e);
query.cid = e.id;
paging.value.reload();
};
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize,
...query
};
api_api.getContentList(params).then((res) => {
paging.value.complete(res.records);
}).catch((res) => {
paging.value.complete(false);
});
};
let nav = (e) => {
common_vendor.index.navigateTo({
url: e
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(common_vendor.unref(tabChange)),
b: common_vendor.p({
list: common_vendor.unref(list)
}),
c: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return common_vendor.e({
a: i.cover
}, i.cover ? {
b: i.cover
} : {
c: common_vendor.t(i.title)
}, {
d: i,
e: common_vendor.o(($event) => common_vendor.unref(nav)(`/pages/market/detail?id=${i.id}`))
});
}),
d: () => ({
r: paging,
k: "paging"
}),
e: common_vendor.o(queryList),
f: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
g: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
}),
h: common_vendor.p({
path: "/pages/market/market"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8b43de22"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-tabs": "../../uni_modules/uview-plus/components/u-tabs/u-tabs",
"status-bar": "../../components/statusBar/statusBar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,139 @@
.wallet_pall.data-v-2aa157bd {
height: 200rpx;
border-radius: 16rpx 16rpx 0rpx 0rpx;
padding: 40rpx;
background: linear-gradient(179deg, #5082ff 0%, #4278ff 100%);
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
border-bottom: 1rpx solid rgba(153, 153, 153, 0.6);
}
.wallet_pall_header.data-v-2aa157bd {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-2aa157bd {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-2aa157bd:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #fff;
}
.wallet_pall_ye view.data-v-2aa157bd:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #fff;
}
.wallet_pall_view.data-v-2aa157bd {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.wallet_pall_view view.data-v-2aa157bd:nth-child(1) {
font-weight: bold;
font-size: 45rpx;
color: #fff;
margin-bottom: 30rpx;
}
.wallet_pall_view view.data-v-2aa157bd:nth-child(2) {
font-size: 28rpx;
color: #fff;
}
.wallet_list.data-v-2aa157bd {
width: 690rpx;
height: 120rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-2aa157bd:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-2aa157bd:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-2aa157bd {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}
.mine_block.data-v-2aa157bd {
padding: 24rpx;
background-color: #fff;
border-radius: 12rpx 12rpx 12rpx 12rpx;
margin-bottom: 20rpx;
}
.mine_block_tit.data-v-2aa157bd {
display: flex;
align-items: center;
justify-content: space-between;
}
.mine_block_tit_left.data-v-2aa157bd {
font-weight: bold;
font-size: 28rpx;
color: #232323;
}
.mine_block_tit_right.data-v-2aa157bd {
display: flex;
align-items: center;
font-size: 24rpx;
color: #cbd73b;
}
.mine_block_tit_right image.data-v-2aa157bd {
width: 13rpx;
height: 22rpx;
margin-left: 15rpx;
margin-top: 6rpx;
}
.mine_block_view.data-v-2aa157bd {
width: 100%;
min-height: 120rpx;
border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid rgba(55, 112, 174, 0.1);
margin-top: 16rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: #232323;
padding: 20rpx 30rpx;
text-align: center;
}
.mine_block_view image.data-v-2aa157bd {
width: 48rpx;
height: 48rpx;
margin-right: 25rpx;
}
.u-flex-y-center.data-v-2aa157bd {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
align-items: center;
}
.u-flex-between.data-v-2aa157bd {
justify-content: space-between;
}
.u-flex-fill.data-v-2aa157bd {
flex: 1 1 auto;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,161 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
(_easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_icon2)();
}
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
if (!Math) {
(_easycom_up_grid_item + _easycom_up_grid + _easycom_up_icon)();
}
const _sfc_main = {
__name: "balanceIncome",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let getInfo = common_vendor.ref({});
common_vendor.ref({});
let devices = common_vendor.ref(0);
let wallet = common_vendor.ref(0);
let income = common_vendor.ref(0);
let money_list = common_vendor.ref([
{
name: "收益统计",
type: "收益",
data: {}
},
{
name: "推广统计",
type: "推广",
data: {}
},
{
name: "邀请统计",
type: "邀请",
data: {}
}
]);
common_vendor.ref(1);
common_vendor.onShow(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
userStatCou();
let _data = await api_api.freezeTotal();
income.value = _data.income;
wallet.value = _data.wallet;
});
let userStatCou = async () => {
let _res = await api_api.userStat();
devices.value = _res.devices;
money_list.value.map((item, index) => {
if (item.type == "推广") {
item.data = {
day_money: _res.ordersToday,
week_money1: _res.ordersLastWeek,
week_money0: _res.ordersThisWeek,
total_money: _res.orders30Days
};
}
if (item.type == "收益") {
item.data = {
day_money: _res.pointDeviceToday,
week_money1: _res.pointDeviceLastWeek,
week_money0: _res.pointDeviceThisWeek,
total_money: _res.pointDevice30Days
};
}
if (item.type == "邀请") {
item.data = {
day_money: _res.usersDay,
week_money1: _res.usersLastWeek,
week_money0: _res.usersThisWeek,
total_money: _res.users30Days
};
}
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
b: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/topUp`, true)),
d: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdraw`, true)),
e: common_assets._imports_0$3,
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
g: common_vendor.p({
bgColor: "#fff"
}),
h: common_assets._imports_1$2,
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
j: common_vendor.p({
bgColor: "#fff"
}),
k: common_assets._imports_1$2,
l: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser`, true)),
m: common_vendor.p({
bgColor: "#fff"
}),
n: common_assets._imports_2,
o: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
p: common_vendor.p({
bgColor: "#fff"
}),
q: common_vendor.p({
border: false,
col: "4"
}),
r: common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1
}, common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1 ? {
s: common_assets._imports_1$2,
t: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser2`, true)),
v: common_vendor.p({
bgColor: "#fff"
}),
w: common_vendor.p({
border: false,
col: "4"
})
} : {}, {
x: common_vendor.t(common_vendor.unref(wallet)),
y: common_vendor.p({
name: "arrow-right",
color: "#2979ff",
size: "16"
}),
z: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/freezeMoney`, true)),
A: common_vendor.t(common_vendor.unref(income)),
B: common_vendor.p({
name: "arrow-right",
color: "#2979ff",
size: "16"
}),
C: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/freezeEarnings`, true)),
D: common_vendor.t(common_vendor.unref(devices) || 0),
E: common_vendor.f(common_vendor.unref(money_list), (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.data.day_money || 0),
c: common_vendor.t(item.type),
d: common_vendor.t(item.data.week_money1 || 0),
e: common_vendor.t(item.type),
f: common_vendor.t(item.data.week_money0 || 0),
g: common_vendor.t(item.type),
h: common_vendor.t(item.data.total_money || 0),
i: common_vendor.t(item.type),
j: index
};
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2aa157bd"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "",
"usingComponents": {
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon"
}
}

View File

@@ -0,0 +1,60 @@
.wallet_pall.data-v-77725727 {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
}
.wallet_pall_header.data-v-77725727 {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-77725727 {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-77725727:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
.wallet_pall_ye view.data-v-77725727:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
.wallet_list.data-v-77725727 {
width: 690rpx;
height: 120rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-77725727:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-77725727:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-77725727 {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-77725727"><z-paging class="data-v-77725727" u-s="{{['d']}}" ref="__r" u-r="{{n}}" onQuery="{{o}}" u-i="77725727-0" onVI="__l" onUpdateModelValue="{{p}}" u-p="{{q}}"><view class="wallet_pall data-v-77725727"><view class="wallet_pall_header data-v-77725727">当前收益(元)</view><view class="wallet_pall_ye data-v-77725727"><view class="data-v-77725727">{{a}}</view><view class="data-v-77725727" onTap="{{b}}">转入余额</view></view></view><view class="mt30 data-v-77725727"><up-grid class="data-v-77725727" u-s="{{['d']}}" u-i="77725727-1,77725727-0" onVI="__l" u-p="{{k}}"><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{d}}" u-i="77725727-2,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{c}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">收支明细</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{f}}" u-i="77725727-3,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{e}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">提现明细</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{h}}" u-i="77725727-4,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{g}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">提现</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{j}}" u-i="77725727-5,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{i}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">银行卡</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item></up-grid></view><view class="mt30 data-v-77725727"><uni-section class="data-v-77725727" u-i="77725727-6,77725727-0" onVI="__l" u-p="{{l}}"></uni-section></view><view a:for="{{m}}" a:for-item="item" a:key="d" class="mt30 wallet_list data-v-77725727"><view class="wallet_list_left data-v-77725727"><view class="data-v-77725727">{{item.a}}</view><view class="data-v-77725727">{{item.b}}</view></view><view class="wallet_list_right data-v-77725727">{{item.c}}元</view></view></z-paging></view>

View File

@@ -0,0 +1,117 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
const money = require("../../money.js");
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
if (!Array) {
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_uni_section2 + _easycom_z_paging2)();
}
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
(_easycom_up_grid_item + _easycom_up_grid + _easycom_uni_section + _easycom_z_paging)();
}
const _sfc_main = {
__name: "earnings",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let getInfo = common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let num = common_vendor.ref(1);
common_vendor.onShow(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
if (num.value != 1) {
paging.value.reload();
}
num.value++;
});
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
let { id } = common_vendor.index.getStorageSync("user");
const params = {
current: pageNo,
pageSize,
userId: id
};
api_api.getUsersPoint1Info(params).then((res) => {
paging.value.complete(res.records);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
b: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
c: common_assets._imports_0$3,
d: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
e: common_assets._imports_2,
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
g: common_assets._imports_2$1,
h: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdraw`, true)),
i: common_assets._imports_3,
j: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/bankCard`, true)),
k: common_vendor.p({
border: false,
col: "4"
}),
l: common_vendor.p({
title: "最新记录",
type: "line",
titleFontSize: "32rpx"
}),
m: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(common_vendor.unref(money.moneyJson).find((val) => val.id == item.type).name),
b: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd hh:MM")),
c: common_vendor.t(item.points),
d: index
};
}),
n: () => ({
r: paging,
k: "paging"
}),
o: common_vendor.o(queryList),
p: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
q: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-77725727"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "收益",
"usingComponents": {
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
"uni-section": "../../uni_modules/uni-section/components/uni-section/uni-section",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1,45 @@
page {
background: linear-gradient(180deg, #dbe5ff 0%, #f7f7f7 15%, #f7f7f7 81%, #f7f7f7 100%);
}
.mine_header.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.mine_header_img.data-v-7c2ebfa5 {
width: 152rpx;
height: 152rpx;
margin-right: 22rpx;
border-radius: 50%;
}
.mine_header_text.data-v-7c2ebfa5 {
flex: 1;
}
.mine_header_text_nick.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 40rpx;
color: #232323;
margin-bottom: 15rpx;
}
.mine_header_text_acc.data-v-7c2ebfa5 {
font-weight: bold;
font-size: 32rpx;
color: #232323;
}
.mine_header_sz.data-v-7c2ebfa5 {
width: 44rpx;
height: 38rpx;
}
.mine ::deep .u-grid-item.data-v-7c2ebfa5 {
margin-top: 0;
}
.mine button.data-v-7c2ebfa5::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="mine p30 data-v-7c2ebfa5" style="padding-bottom:150rpx"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" onVI="__l"/><view class="mine_header data-v-7c2ebfa5" onTap="{{n}}"><image class="mine_header_img data-v-7c2ebfa5" src="{{a}}"></image><view a:if="{{b}}" class="mine_header_text data-v-7c2ebfa5"><view class="mine_header_text_nick data-v-7c2ebfa5"><view a:if="{{c}}" class="data-v-7c2ebfa5" style="margin-right:15rpx">{{d}}</view><up-tag a:if="{{e}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" onVI="__l" u-p="{{f}}"></up-tag><up-tag a:if="{{g}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" onVI="__l" u-p="{{h}}"></up-tag><up-tag a:if="{{i}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-3" onVI="__l" u-p="{{j}}"></up-tag></view><view class="mine_header_text_acc data-v-7c2ebfa5">{{k}}</view></view><view a:else class="mine_header_text data-v-7c2ebfa5"><view class="mine_header_text_nick data-v-7c2ebfa5">点击登录</view></view><image a:if="{{l}}" class="mine_header_sz data-v-7c2ebfa5" src="{{m}}"></image></view><view class="mt30 data-v-7c2ebfa5"><up-grid class="data-v-7c2ebfa5" u-s="{{['d']}}" u-i="7c2ebfa5-4" onVI="__l" u-p="{{v}}"><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{p}}" u-i="7c2ebfa5-5,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{o}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">增值收益</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{r}}" u-i="7c2ebfa5-6,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{q}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">基础收益</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{t}}" u-i="7c2ebfa5-7,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{s}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">充电桩</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item></up-grid></view><view a:if="{{w}}" class="mt30 data-v-7c2ebfa5" style="width:100%;background-color:#fff;padding:25rpx;font-size:30rpx">邀请人:{{x}}</view><view class="data-v-7c2ebfa5" style="height:25rpx"></view><view class="data-v-7c2ebfa5" style="background-color:#fff"><up-grid class="data-v-7c2ebfa5" u-s="{{['d']}}" u-i="7c2ebfa5-8" onVI="__l" u-p="{{A}}"><up-grid-item a:for="{{y}}" a:for-item="item" a:key="e" class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{item.f}}" u-i="{{item.g}}" onVI="__l" u-p="{{z}}"><button class="data-v-7c2ebfa5" open-type="{{item.d}}" style="all:unset;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column"><view class="data-v-7c2ebfa5" style="height:35rpx"></view><up-icon class="data-v-7c2ebfa5" u-i="{{item.a}}" onVI="__l" u-p="{{item.b}}"></up-icon><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">{{item.c}}</text><view class="data-v-7c2ebfa5" style="height:20rpx"></view></button></up-grid-item></up-grid></view><view class="data-v-7c2ebfa5" style="height:50rpx"></view><view a:if="{{B}}" class="data-v-7c2ebfa5" style="background-color:#f6faff;padding:30rpx;border-radius:10rpx"><view a:if="{{C}}" class="data-v-7c2ebfa5" style="color:#999999"> 暂无推广权限 </view><view a:else class="data-v-7c2ebfa5"><view class="data-v-7c2ebfa5" style="font-size:30rpx;color:#999999;text-align:center;margin-bottom:20rpx"> 邀请码:{{D}} <text class="data-v-7c2ebfa5" style="text-decoration:underline;margin-left:30rpx" onTap="{{E}}">复制</text></view><view class="u-flex u-flex-xy-center data-v-7c2ebfa5"><up-image class="data-v-7c2ebfa5" u-i="7c2ebfa5-11" onVI="__l" u-p="{{F}}"></up-image></view><view class="data-v-7c2ebfa5" style="height:10rpx"></view><view class="data-v-7c2ebfa5" style="font-size:30rpx;color:#999999;text-align:center">长按保存或者转发</view></view></view><view class="data-v-7c2ebfa5" style="height:50rpx"></view><tabbar class="data-v-7c2ebfa5" u-i="7c2ebfa5-12" onVI="__l" u-p="{{G}}"></tabbar></view>

View File

@@ -0,0 +1,218 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_statusBar2 + _easycom_up_tag2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_icon2 + _easycom_up_image2 + _easycom_tabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_up_tag + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_icon + _easycom_up_image + _easycom_tabbar)();
}
const _sfc_main = {
__name: "mine",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let getInfo = common_vendor.ref({});
let loginTan = common_vendor.ref(true);
common_vendor.onLoad(() => {
common_vendor.index.hideTabBar();
});
const baseList = common_vendor.reactive([
{
img: "/static/icon/dd.png",
name: "订单",
path: "/pages/order/order",
login: true
},
// {
// img: '/static/icon/ye.png',
// name: '余额',
// path: '/pages/wallet/wallet',
// login: true
// },
// {
// img: '/static/icon/zd.png',
// name: '账单',
// path: '/pages/mine/balanceIncome',
// login: true
// },
{
img: "/static/icon/zb.png",
name: "邀请记录",
path: "/pages/shareList/shareList",
login: true
},
{
img: "/static/icon/dz.png",
name: "充电桩",
path: "/pages/piles/piles",
login: true
},
{
img: "/static/icon/kf.png",
name: "联系客服",
call: true
// call: true
}
// {
// img: '/static/icon/bz.png',
// name: '帮助中心',
// login: false
// },
// {
// img: '/static/icon/share.png',
// name: '分享海报',
// login: true,
// path: '/pages/mine/share'
// }
]);
common_vendor.onShow(() => {
common_vendor.index.hideTabBar();
let Authorization = common_vendor.index.getStorageSync("token") || "";
if (Authorization) {
getUserInfo();
loginTan.value = true;
} else {
getInfo.value = {};
loginTan.value = false;
}
});
let getUserInfo = async () => {
try {
let _res = await api_api.userInfo();
getInfo.value = _res;
common_vendor.index.setStorageSync("user", _res);
} catch (err) {
console.log(123456);
getInfo.value = {};
loginTan.value = false;
}
};
let copy = (e) => {
common_vendor.index.setClipboardData({
data: e,
success: function() {
}
});
};
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f;
return common_vendor.e({
a: common_vendor.unref(getInfo).avatar || "/static/icon/avatar.png",
b: common_vendor.unref(loginTan)
}, common_vendor.unref(loginTan) ? common_vendor.e({
c: common_vendor.unref(getInfo).nickName
}, common_vendor.unref(getInfo).nickName ? {
d: common_vendor.t(common_vendor.unref(getInfo).nickName || "")
} : {}, {
e: common_vendor.unref(getInfo).level == 1
}, common_vendor.unref(getInfo).level == 1 ? {
f: common_vendor.p({
text: "运营中心",
plain: true,
size: "mini",
borderColor: "#fa7d02",
color: "#fa7d02"
})
} : {}, {
g: common_vendor.unref(getInfo).level == 2
}, common_vendor.unref(getInfo).level == 2 ? {
h: common_vendor.p({
text: "合伙人",
plain: true,
size: "mini",
borderColor: "#fa7d02",
color: "#fa7d02"
})
} : {}, {
i: common_vendor.unref(getInfo).level == 3
}, common_vendor.unref(getInfo).level == 3 ? {
j: common_vendor.p({
text: "省分公司",
plain: true,
size: "mini",
borderColor: "#fa7d02",
color: "#fa7d02"
})
} : {}, {
k: common_vendor.t(common_vendor.unref(getInfo).userName || "")
}) : {}, {
l: common_vendor.unref(loginTan)
}, common_vendor.unref(loginTan) ? {
m: common_assets._imports_0$1
} : {}, {
n: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/setting", true)),
o: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
p: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/balanceIncome`, true)),
q: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
r: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/balanceIncome`, true)),
s: common_vendor.t(common_vendor.unref(getInfo).deviceNum || 0),
t: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/piles/piles`, true)),
v: common_vendor.p({
border: false,
col: "3"
}),
w: (_b = (_a = common_vendor.unref(getInfo)) == null ? void 0 : _a.formUsersInfo) == null ? void 0 : _b.userName
}, ((_d = (_c = common_vendor.unref(getInfo)) == null ? void 0 : _c.formUsersInfo) == null ? void 0 : _d.userName) ? {
x: common_vendor.t((_f = (_e = common_vendor.unref(getInfo)) == null ? void 0 : _e.formUsersInfo) == null ? void 0 : _f.userName)
} : {}, {
y: common_vendor.f(baseList, (item, index, i0) => {
return {
a: "7c2ebfa5-10-" + i0 + "," + ("7c2ebfa5-9-" + i0),
b: common_vendor.p({
imgMode: "widthFix",
name: item.img,
size: 27
}),
c: common_vendor.t(item.name),
d: item.openType,
e: index,
f: common_vendor.o(($event) => common_vendor.unref(navTo)(item.path, item.login, item.call)),
g: "7c2ebfa5-9-" + i0 + ",7c2ebfa5-8"
};
}),
z: common_vendor.p({
bgColor: "#fff"
}),
A: common_vendor.p({
border: false,
col: "4"
}),
B: common_vendor.unref(getInfo).qrCode
}, common_vendor.unref(getInfo).qrCode ? common_vendor.e({
C: common_vendor.unref(getInfo).pemType == 0
}, common_vendor.unref(getInfo).pemType == 0 ? {} : {
D: common_vendor.t(common_vendor.unref(getInfo).shareCode),
E: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(getInfo).shareCode)),
F: common_vendor.p({
src: common_vendor.unref(getInfo).qrCode,
radius: "20rpx",
width: "440rpx",
height: "440rpx",
mode: "widthFix"
})
}) : {}, {
G: common_vendor.p({
path: "/pages/mine/mine"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,14 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,32 @@
.addBankCard_input.data-v-bad7965c {
width: 690rpx;
height: 100rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
margin-bottom: 30rpx;
padding: 0 30rpx;
}
.addBankCard_input_tit.data-v-bad7965c {
width: 100%;
font-weight: bold;
font-size: 26rpx;
color: #232323;
margin-bottom: 20rpx;
}
.addBankCard_btn.data-v-bad7965c {
width: 488rpx;
height: 86rpx;
background: #4874e5;
border-radius: 44rpx 44rpx 44rpx 44rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
font-weight: bold;
font-size: 28rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view class="addBankCard p30 data-v-bad7965c"><view class="data-v-bad7965c" style="height:30rpx"></view><view class="data-v-bad7965c"><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入手机号:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-0" onVI="__l" onUpdateModelValue="{{a}}" u-p="{{b}}"></up-input></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入验证码:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-1" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input><view class="data-v-bad7965c" style="width:250rpx"><up-code class="data-v-bad7965c" ref="__r" u-r="{{e}}" onChange="{{f}}" u-i="bad7965c-2" onVI="__l" u-p="{{g}}"></up-code><up-button class="data-v-bad7965c" u-s="{{['d']}}" onClick="{{i}}" u-i="bad7965c-3" onVI="__l" u-p="{{j}}">{{h}}</up-button></view></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入新手机号:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-4" onVI="__l" onUpdateModelValue="{{k}}" u-p="{{l}}"></up-input></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入新手机号验证码:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-5" onVI="__l" onUpdateModelValue="{{m}}" u-p="{{n}}"></up-input><view class="data-v-bad7965c" style="width:250rpx"><up-code class="data-v-bad7965c" ref="__r" u-r="{{o}}" onChange="{{p}}" u-i="bad7965c-6" onVI="__l" u-p="{{q}}"></up-code><up-button class="data-v-bad7965c" u-s="{{['d']}}" onClick="{{s}}" u-i="bad7965c-7" onVI="__l" u-p="{{t}}">{{r}}</up-button></view></view></view></view><view class="data-v-bad7965c" style="height:50rpx"></view><view class="data-v-bad7965c" style="display:flex;justify-content:center"><view class="addBankCard_btn data-v-bad7965c" onTap="{{v}}">确定</view></view></view>

View File

@@ -0,0 +1,143 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
}
const _sfc_main = {
__name: "phone",
setup(__props) {
let _getInfo = common_vendor.ref({});
let tips1 = common_vendor.ref("");
let tips2 = common_vendor.ref("");
let uCode1 = common_vendor.ref(null);
let uCode2 = common_vendor.ref(null);
let enterprise = common_vendor.reactive({
newPhone: "",
newPhoneSmsCode: "",
oldPhoneSmsCode: ""
});
common_vendor.onLoad(async (options) => {
_getInfo.value = await api_api.userInfo();
});
let addBank = async () => {
await api_api.updatePhone(enterprise);
common_vendor.index.showToast({ title: "修改成功", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
};
let codeChange1 = (text) => {
tips1.value = text;
};
let codeChange2 = (text) => {
tips2.value = text;
};
let getCode1 = (e) => {
if (!e)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode1.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: e
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode1.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let getCode2 = (e) => {
if (!e)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode2.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: e
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode2.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => common_vendor.unref(_getInfo).phone = $event),
b: common_vendor.p({
border: false,
disabledColor: "#fff",
placeholder: "请输入",
disabled: true,
modelValue: common_vendor.unref(_getInfo).phone
}),
c: common_vendor.o(($event) => common_vendor.unref(enterprise).oldPhoneSmsCode = $event),
d: common_vendor.p({
border: false,
placeholder: "请输入",
modelValue: common_vendor.unref(enterprise).oldPhoneSmsCode
}),
e: () => ({
r: uCode1,
k: "uCode1"
}),
f: common_vendor.o(common_vendor.unref(codeChange1)),
g: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
h: common_vendor.t(common_vendor.unref(tips1)),
i: common_vendor.o(($event) => common_vendor.unref(getCode1)(common_vendor.unref(_getInfo).phone)),
j: common_vendor.p({
color: "#4874e5"
}),
k: common_vendor.o(($event) => common_vendor.unref(enterprise).newPhone = $event),
l: common_vendor.p({
border: false,
placeholder: "请输入",
modelValue: common_vendor.unref(enterprise).newPhone
}),
m: common_vendor.o(($event) => common_vendor.unref(enterprise).newPhoneSmsCode = $event),
n: common_vendor.p({
border: false,
placeholder: "请输入",
modelValue: common_vendor.unref(enterprise).newPhoneSmsCode
}),
o: () => ({
r: uCode2,
k: "uCode2"
}),
p: common_vendor.o(common_vendor.unref(codeChange2)),
q: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
r: common_vendor.t(common_vendor.unref(tips2)),
s: common_vendor.o(($event) => common_vendor.unref(getCode2)(common_vendor.unref(enterprise).newPhone)),
t: common_vendor.p({
color: "#4874e5"
}),
v: common_vendor.o((...args) => common_vendor.unref(addBank) && common_vendor.unref(addBank)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bad7965c"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,60 @@
view.data-v-0bb48146 {
box-sizing: border-box;
}
.means-a.data-v-0bb48146 {
width: 100%;
background: #ffffff;
border-radius: 15rpx;
padding: 25rpx;
}
.means-a .means-a-list.data-v-0bb48146 {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
min-height: 100rpx;
background-color: #ffffff;
padding: 0;
border: 0;
}
.means-a .means-a-list .tit.data-v-0bb48146 {
font-size: 30rpx;
color: #999999;
}
.means-a .means-a-list .header.data-v-0bb48146 {
width: 140rpx;
height: 140rpx;
margin-bottom: 20rpx;
border-radius: 50%;
}
.means-a .means-a-list .nickname.data-v-0bb48146 {
font-size: 30rpx;
color: #222222;
}
.means-a .means-a-list .means-zhuomi.data-v-0bb48146 {
display: flex;
align-items: center;
}
.means-a .means-a-list .means-zhuomi .zuomi.data-v-0bb48146 {
width: 189rpx;
height: 36rpx;
border: 1rpx solid #4d4590;
border-radius: 5rpx;
text-align: center;
line-height: 36rpx;
color: #4d4590;
font-size: 22rpx;
}
.means-a .means-a-list .means-zhuomi .means-zhuomi-tit.data-v-0bb48146 {
margin: 0 30rpx;
font-size: 28rpx;
color: #999999;
margin-right: 15rpx;
}
.means-a .means-a-list .means-zhuomi image.data-v-0bb48146 {
width: 11rpx;
height: 21rpx;
}
button.data-v-0bb48146::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-0bb48146"><view class="data-v-0bb48146" style="padding-top:30rpx"><view class="means-a data-v-0bb48146"><view class="means-a-list data-v-0bb48146" style="justify-content:center;padding-top:30rpx"><button class="data-v-0bb48146" style="all:unset" open-type="chooseAvatar" onChooseAvatar="{{e}}"><image a:if="{{a}}" src="{{b}}" class="header data-v-0bb48146" mode="widthFix" onTap="{{c}}"></image><image a:else class="header data-v-0bb48146" src="{{d}}" mode="widthFix"></image></button></view><view class="means-a-list data-v-0bb48146" style="justify-content:center" onTap="{{g}}"><view class="nickname data-v-0bb48146">{{f}}</view></view><view class="means-a-list data-v-0bb48146"><view class="tit data-v-0bb48146">用户名</view><view class="means-zhuomi data-v-0bb48146"><view a:if="{{h}}" class="means-zhuomi-tit data-v-0bb48146">{{i}}</view><up-icon class="data-v-0bb48146" u-i="0bb48146-0" onVI="__l" u-p="{{j}}"></up-icon></view></view><view class="means-a-list data-v-0bb48146" onTap="{{n}}"><view class="tit data-v-0bb48146">手机号</view><view class="means-zhuomi data-v-0bb48146"><view a:if="{{k}}" class="means-zhuomi-tit data-v-0bb48146">{{l}}</view><up-icon class="data-v-0bb48146" u-i="0bb48146-1" onVI="__l" u-p="{{m}}"></up-icon></view></view></view></view><view class="data-v-0bb48146" style="height:80rpx"></view><u-button class="data-v-0bb48146" onClick="{{o}}" u-i="0bb48146-2" onVI="__l" u-p="{{p}}"></u-button><uni-popup class="data-v-0bb48146" u-s="{{['d']}}" ref="__r" u-r="{{t}}" u-i="0bb48146-3" onVI="__l" u-p="{{v}}"><uni-popup-dialog class="data-v-0bb48146" ref="__r" u-r="{{q}}" onConfirm="{{r}}" u-i="0bb48146-4,0bb48146-3" onVI="__l" u-p="{{s}}"></uni-popup-dialog></uni-popup></view>

View File

@@ -0,0 +1,121 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
const common_js_user = require("../../common/js/user.js");
const store_index = require("../../store/index.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_u_button2 = common_vendor.resolveComponent("u-button");
const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_up_icon2 + _easycom_u_button2 + _easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_u_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_uni_popup_dialog = () => "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_up_icon + _easycom_u_button + _easycom_uni_popup_dialog + _easycom_uni_popup)();
}
const _sfc_main = {
__name: "setting",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let getInfo = common_vendor.ref();
common_vendor.ref(false);
let inputDialog = common_vendor.ref(null);
common_vendor.onShow(() => {
getUserInfo();
});
let getUserInfo = async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
};
let dialogInputConfirm = async (e) => {
await api_api.updateUserInfo({
nickName: e
});
getUserInfo();
console.log(e);
};
let chooseavatar = async (e) => {
const { avatarUrl } = e.detail;
let _url = await common_js_user.uploadFiles(avatarUrl);
await api_api.updateUserInfo({
avatar: _url
});
getUserInfo();
};
let logout = () => {
common_vendor.index.clearStorageSync();
store_index.store.commit("setToken", "");
common_vendor.index.showToast({
title: "退出登录成功",
icon: "success"
});
common_vendor.index.switchTab({
url: "/pages/index/index"
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(getInfo).avatar
}, common_vendor.unref(getInfo).avatar ? {
b: common_vendor.unref(getInfo).avatar,
c: common_vendor.o((...args) => _ctx.infoHeader && _ctx.infoHeader(...args))
} : {
d: common_assets._imports_0$5
}, {
e: common_vendor.o((...args) => common_vendor.unref(chooseavatar) && common_vendor.unref(chooseavatar)(...args)),
f: common_vendor.t(common_vendor.unref(getInfo).nickName || "默认用户"),
g: common_vendor.o(($event) => common_vendor.unref(inputDialog).open()),
h: common_vendor.unref(getInfo).userName
}, common_vendor.unref(getInfo).userName ? {
i: common_vendor.t(common_vendor.unref(getInfo).userName)
} : {}, {
j: common_vendor.p({
color: "#999999",
name: "arrow-right",
size: "35rpx"
}),
k: common_vendor.unref(getInfo).phone
}, common_vendor.unref(getInfo).phone ? {
l: common_vendor.t(common_vendor.unref(getInfo).phone)
} : {}, {
m: common_vendor.p({
color: "#999999",
name: "arrow-right",
size: "35rpx"
}),
n: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/phone", true)),
o: common_vendor.o(($event) => common_vendor.unref(logout)()),
p: common_vendor.p({
text: "退出登录",
size: "normal",
type: "error"
}),
q: () => ({
r: inputClose
}),
r: common_vendor.o(common_vendor.unref(dialogInputConfirm)),
s: common_vendor.p({
inputType: "text",
mode: "input",
title: "请输入昵称",
placeholder: "请输入昵称"
}),
t: () => ({
r: inputDialog,
k: "inputDialog"
}),
v: common_vendor.p({
type: "dialog"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0bb48146"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"u-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"uni-popup-dialog": "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1,48 @@
page {
background: linear-gradient(180deg, #dbe5ff 0%, #f7f7f7 15%, #f7f7f7 81%, #f7f7f7 100%);
}
.mine.data-v-66f7dc32 {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100vh;
}
.mine_header.data-v-66f7dc32 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.mine_header_img.data-v-66f7dc32 {
width: 152rpx;
height: 152rpx;
margin-right: 22rpx;
border-radius: 50%;
}
.mine_header_text.data-v-66f7dc32 {
flex: 1;
}
.mine_header_text_nick.data-v-66f7dc32 {
font-weight: bold;
font-size: 40rpx;
color: #232323;
margin-bottom: 15rpx;
}
.mine_header_text_acc.data-v-66f7dc32 {
font-weight: bold;
font-size: 32rpx;
color: #232323;
}
.mine_header_sz.data-v-66f7dc32 {
width: 44rpx;
height: 38rpx;
}
.mine ::deep .u-grid-item.data-v-66f7dc32 {
margin-top: 0;
}
.mine button.data-v-66f7dc32::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="mine p30 data-v-66f7dc32"><view a:if="{{a}}" class="data-v-66f7dc32" style="background-color:#f6faff;padding:30rpx;border-radius:10rpx"><view class="data-v-66f7dc32" style="font-size:30rpx;color:#999999;text-align:center;margin-bottom:20rpx"> 邀请码:{{b}} <text class="data-v-66f7dc32" style="text-decoration:underline;margin-left:30rpx" onTap="{{c}}">复制</text></view><view class="u-flex u-flex-xy-center data-v-66f7dc32"><up-image class="data-v-66f7dc32" u-i="66f7dc32-0" onVI="__l" u-p="{{d}}"></up-image></view><view class="data-v-66f7dc32" style="height:10rpx"></view><view class="data-v-66f7dc32" style="font-size:30rpx;color:#999999;text-align:center">长按保存或者转发</view></view></view>

View File

@@ -0,0 +1,56 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../store/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
_easycom_up_image();
}
const _sfc_main = {
__name: "share",
setup(__props) {
let getInfo = common_vendor.ref({});
let loginTan = common_vendor.ref(true);
common_vendor.onShow(() => {
let Authorization = common_vendor.index.getStorageSync("token") || "";
if (Authorization) {
getUserInfo();
loginTan.value = true;
} else {
loginTan.value = false;
}
});
let getUserInfo = async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
};
let copy = (e) => {
common_vendor.index.setClipboardData({
data: e,
success: function() {
}
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(getInfo).qrCode
}, common_vendor.unref(getInfo).qrCode ? {
b: common_vendor.t(common_vendor.unref(getInfo).shareCode),
c: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(getInfo).shareCode)),
d: common_vendor.p({
src: common_vendor.unref(getInfo).qrCode,
radius: "20rpx",
width: "440rpx",
height: "440rpx",
mode: "widthFix"
})
} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-66f7dc32"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "邀请码",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}

View File

@@ -0,0 +1,83 @@
.withdraw_k.data-v-24a13c27 {
width: 100%;
height: 74rpx;
padding: 0 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30rpx;
}
.withdraw_k_tit.data-v-24a13c27 {
font-weight: bold;
font-size: 24rpx;
color: #232323;
margin-right: 100rpx;
}
.withdraw_k_input.data-v-24a13c27 {
flex: 1;
text-align: right;
font-size: 28rpx;
}
.withdraw_k_img.data-v-24a13c27 {
width: 44rpx;
height: 44rpx;
}
.withdraw_mon.data-v-24a13c27 {
padding: 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.withdraw_mon_tit.data-v-24a13c27 {
font-weight: bold;
font-size: 24rpx;
color: #232323;
}
.withdraw_mon_input.data-v-24a13c27 {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #cccccc;
padding: 15rpx 0;
margin-bottom: 20rpx;
}
.withdraw_mon_input_fu.data-v-24a13c27 {
font-weight: bold;
font-size: 66rpx;
color: #232323;
}
.withdraw_mon_input_note.data-v-24a13c27 {
font-weight: bold;
font-size: 24rpx;
color: #ff7777;
}
.withdraw_mon_note.data-v-24a13c27 {
font-weight: 400;
font-size: 24rpx;
color: #232323;
margin-bottom: 10rpx;
}
.withdraw_note.data-v-24a13c27 {
margin-top: 30rpx;
padding: 0 15rpx;
}
.withdraw_note view.data-v-24a13c27 {
margin-bottom: 15rpx;
font-weight: 400;
font-size: 26rpx;
color: #232323;
line-height: 40rpx;
}
.affirm_btn.data-v-24a13c27 {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view class="withdraw p30 data-v-24a13c27"><view class="data-v-24a13c27" style="height:30rpx"></view><view class="data-v-24a13c27" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-24a13c27">当前基础收益 ¥{{a}}最低转赠¥1</view></view><view class="data-v-24a13c27" style="height:30rpx"></view><view class="withdraw_mon data-v-24a13c27"><view class="withdraw_mon_input data-v-24a13c27"><view class="withdraw_mon_input_fu data-v-24a13c27">¥</view><view class="data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-0" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-input></view><view class="withdraw_mon_input_note data-v-24a13c27" onTap="{{d}}">全部转赠</view></view><view class="data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-input></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-2" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="data-v-24a13c27" style="width:250rpx"><up-code class="data-v-24a13c27" ref="__r" u-r="{{i}}" onChange="{{j}}" u-i="24a13c27-3" onVI="__l" u-p="{{k}}"></up-code><up-button class="data-v-24a13c27" u-s="{{['d']}}" onClick="{{m}}" u-i="24a13c27-4" onVI="__l" u-p="{{n}}">{{l}}</up-button></view></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-5" onVI="__l" onUpdateModelValue="{{o}}" u-p="{{p}}"></up-input></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-6" onVI="__l" onUpdateModelValue="{{q}}" u-p="{{r}}"></up-input></view></view><view class="data-v-24a13c27" style="height:20rpx"></view><view class="data-v-24a13c27" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-24a13c27" style="color:#f29100">温馨提示</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27" style="font-size:28rpx;color:#909399"><view class="data-v-24a13c27">1.基础收益转赠给团队成员(直线上级、直线下级);</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27">2.转赠金额实时到账,不扣手续费;</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27">3.转赠成功后实时生效,不支持撤回。</view></view></view><view class="data-v-24a13c27" style="height:50rpx"></view><view class="data-v-24a13c27" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-24a13c27" onTap="{{s}}">确认</view></view><view class="data-v-24a13c27" style="height:50rpx"></view></view>

View File

@@ -0,0 +1,132 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
}
const _sfc_main = {
__name: "toUser",
setup(__props) {
common_vendor.ref();
let getInfo = common_vendor.ref({});
let appConfig = common_vendor.ref([]);
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
let dataFrom = common_vendor.reactive({
rechargeMoney: "",
smsCode: "",
toUserName: "",
toPhone: ""
});
common_vendor.ref();
common_vendor.onLoad(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
appConfig.value = JSON.parse(configValue);
});
let codeChange2 = (text) => {
tips.value = text;
};
let getCode = () => {
if (!getInfo.value.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: getInfo.value.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let payOrder = async () => {
if (!dataFrom.rechargeMoney)
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
if (!dataFrom.toUserName)
return common_vendor.index.showToast({ title: "请输入转赠用户名", icon: "none" });
if (!dataFrom.toPhone)
return common_vendor.index.showToast({ title: "请输入转赠手机号", icon: "none" });
await api_api.giveWallet(dataFrom);
common_vendor.index.showModal({
title: "提示",
content: "转赠成功",
showCancel: false,
success() {
common_vendor.index.navigateBack();
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(getInfo).points1),
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
c: common_vendor.p({
fontSize: "36rpx",
placeholder: "请输入转赠金额",
border: false,
modelValue: common_vendor.unref(dataFrom).rechargeMoney
}),
d: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points1),
e: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
f: common_vendor.p({
border: false,
disabled: true,
modelValue: common_vendor.unref(getInfo).phone
}),
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
h: common_vendor.p({
placeholder: "请输入验证码",
border: false,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
i: () => ({
r: uCode,
k: "uCode"
}),
j: common_vendor.o(common_vendor.unref(codeChange2)),
k: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
l: common_vendor.t(common_vendor.unref(tips)),
m: common_vendor.o(common_vendor.unref(getCode)),
n: common_vendor.p({
color: "#4874e5"
}),
o: common_vendor.o(($event) => common_vendor.unref(dataFrom).toUserName = $event),
p: common_vendor.p({
placeholder: "转赠用户名",
border: false,
modelValue: common_vendor.unref(dataFrom).toUserName
}),
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).toPhone = $event),
r: common_vendor.p({
placeholder: "转赠手机号",
border: false,
modelValue: common_vendor.unref(dataFrom).toPhone
}),
s: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-24a13c27"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "基础收益转赠",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,83 @@
.withdraw_k.data-v-ec7b646f {
width: 100%;
height: 74rpx;
padding: 0 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30rpx;
}
.withdraw_k_tit.data-v-ec7b646f {
font-weight: bold;
font-size: 24rpx;
color: #232323;
margin-right: 100rpx;
}
.withdraw_k_input.data-v-ec7b646f {
flex: 1;
text-align: right;
font-size: 28rpx;
}
.withdraw_k_img.data-v-ec7b646f {
width: 44rpx;
height: 44rpx;
}
.withdraw_mon.data-v-ec7b646f {
padding: 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.withdraw_mon_tit.data-v-ec7b646f {
font-weight: bold;
font-size: 24rpx;
color: #232323;
}
.withdraw_mon_input.data-v-ec7b646f {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #cccccc;
padding: 15rpx 0;
margin-bottom: 20rpx;
}
.withdraw_mon_input_fu.data-v-ec7b646f {
font-weight: bold;
font-size: 66rpx;
color: #232323;
}
.withdraw_mon_input_note.data-v-ec7b646f {
font-weight: bold;
font-size: 24rpx;
color: #ff7777;
}
.withdraw_mon_note.data-v-ec7b646f {
font-weight: 400;
font-size: 24rpx;
color: #232323;
margin-bottom: 10rpx;
}
.withdraw_note.data-v-ec7b646f {
margin-top: 30rpx;
padding: 0 15rpx;
}
.withdraw_note view.data-v-ec7b646f {
margin-bottom: 15rpx;
font-weight: 400;
font-size: 26rpx;
color: #232323;
line-height: 40rpx;
}
.affirm_btn.data-v-ec7b646f {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view class="withdraw p30 data-v-ec7b646f"><view class="data-v-ec7b646f" style="height:30rpx"></view><view class="data-v-ec7b646f" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-ec7b646f">当前增值收益 ¥{{a}}最低转赠¥1</view></view><view class="data-v-ec7b646f" style="height:30rpx"></view><view class="withdraw_mon data-v-ec7b646f"><view class="withdraw_mon_input data-v-ec7b646f"><view class="withdraw_mon_input_fu data-v-ec7b646f">¥</view><view class="data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-0" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-input></view><view class="withdraw_mon_input_note data-v-ec7b646f" onTap="{{d}}">全部转赠</view></view><view class="data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-input></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-2" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="data-v-ec7b646f" style="width:250rpx"><up-code class="data-v-ec7b646f" ref="__r" u-r="{{i}}" onChange="{{j}}" u-i="ec7b646f-3" onVI="__l" u-p="{{k}}"></up-code><up-button class="data-v-ec7b646f" u-s="{{['d']}}" onClick="{{m}}" u-i="ec7b646f-4" onVI="__l" u-p="{{n}}">{{l}}</up-button></view></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-5" onVI="__l" onUpdateModelValue="{{o}}" u-p="{{p}}"></up-input></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-6" onVI="__l" onUpdateModelValue="{{q}}" u-p="{{r}}"></up-input></view></view><view class="data-v-ec7b646f" style="height:20rpx"></view><view class="data-v-ec7b646f" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-ec7b646f" style="color:#f29100">温馨提示</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f" style="font-size:28rpx;color:#909399"><view class="data-v-ec7b646f">1.增值收益转赠给团队成员(直线上级、直线下级);</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f">2.转赠金额实时到账,不扣手续费;</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f">3.转赠成功后实时生效,不支持撤回。</view></view></view><view class="data-v-ec7b646f" style="height:50rpx"></view><view class="data-v-ec7b646f" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-ec7b646f" onTap="{{s}}">确认</view></view><view class="data-v-ec7b646f" style="height:50rpx"></view></view>

View File

@@ -0,0 +1,132 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
}
const _sfc_main = {
__name: "toUser2",
setup(__props) {
common_vendor.ref();
let getInfo = common_vendor.ref({});
let appConfig = common_vendor.ref([]);
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
let dataFrom = common_vendor.reactive({
rechargeMoney: "",
smsCode: "",
toUserName: "",
toPhone: ""
});
common_vendor.ref();
common_vendor.onLoad(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
appConfig.value = JSON.parse(configValue);
});
let codeChange2 = (text) => {
tips.value = text;
};
let getCode = () => {
if (!getInfo.value.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: getInfo.value.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let payOrder = async () => {
if (!dataFrom.rechargeMoney)
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
if (!dataFrom.toUserName)
return common_vendor.index.showToast({ title: "请输入转赠用户名", icon: "none" });
if (!dataFrom.toPhone)
return common_vendor.index.showToast({ title: "请输入转赠手机号", icon: "none" });
await api_api.giveWallet2(dataFrom);
common_vendor.index.showModal({
title: "提示",
content: "转赠成功",
showCancel: false,
success() {
common_vendor.index.navigateBack();
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(getInfo).points2),
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
c: common_vendor.p({
fontSize: "36rpx",
placeholder: "请输入转赠金额",
border: false,
modelValue: common_vendor.unref(dataFrom).rechargeMoney
}),
d: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points2),
e: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
f: common_vendor.p({
border: false,
disabled: true,
modelValue: common_vendor.unref(getInfo).phone
}),
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
h: common_vendor.p({
placeholder: "请输入验证码",
border: false,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
i: () => ({
r: uCode,
k: "uCode"
}),
j: common_vendor.o(common_vendor.unref(codeChange2)),
k: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
l: common_vendor.t(common_vendor.unref(tips)),
m: common_vendor.o(common_vendor.unref(getCode)),
n: common_vendor.p({
color: "#4874e5"
}),
o: common_vendor.o(($event) => common_vendor.unref(dataFrom).toUserName = $event),
p: common_vendor.p({
placeholder: "转赠用户名",
border: false,
modelValue: common_vendor.unref(dataFrom).toUserName
}),
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).toPhone = $event),
r: common_vendor.p({
placeholder: "转赠手机号",
border: false,
modelValue: common_vendor.unref(dataFrom).toPhone
}),
s: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ec7b646f"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "增值收益转赠",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,12 @@
.affirm_btn.data-v-29ef0b49 {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-29ef0b49"><view class="data-v-29ef0b49" style="height:50rpx"></view><view class="data-v-29ef0b49"><view class="data-v-29ef0b49" style="font-size:30rpx;color:#949494">当前余额 ¥{{a}},最低充值¥{{b}}</view><view class="data-v-29ef0b49" style="height:20rpx"></view><up-input class="data-v-29ef0b49" u-i="29ef0b49-0" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="data-v-29ef0b49" style="height:20rpx"></view><view class="data-v-29ef0b49" style="background-color:#fff;padding:30rpx;border-radius:10rpx"><view class="data-v-29ef0b49" style="font-size:28rpx">支付方式</view><view class="data-v-29ef0b49" style="height:20rpx"></view><up-radio-group class="data-v-29ef0b49" u-s="{{['d']}}" u-i="29ef0b49-1" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"><up-radio class="data-v-29ef0b49" u-s="{{['d']}}" u-i="29ef0b49-2,29ef0b49-1" onVI="__l" u-p="{{f}}"><view class="data-v-29ef0b49" style="display:flex;align-items:center"><up-icon class="data-v-29ef0b49" u-i="29ef0b49-3,29ef0b49-2" onVI="__l" u-p="{{e}}"/><view class="data-v-29ef0b49" style="width:20rpx"></view><view class="data-v-29ef0b49"><view class="data-v-29ef0b49" style="font-size:30rpx">支付宝支付</view><view class="data-v-29ef0b49" style="font-size:28rpx;color:#909399">支付宝快捷支付</view></view></view></up-radio></up-radio-group></view><view class="data-v-29ef0b49" style="height:100rpx"></view><view class="data-v-29ef0b49" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-29ef0b49" onTap="{{i}}">立即支付</view></view><up-modal class="data-v-29ef0b49" onConfirm="{{j}}" onClose="{{k}}" onCancel="{{l}}" u-i="29ef0b49-4" onVI="__l" u-p="{{m}}"></up-modal></view>

View File

@@ -0,0 +1,129 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
(_easycom_up_input2 + _easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_modal2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
if (!Math) {
(_easycom_up_input + _easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_modal)();
}
const _sfc_main = {
__name: "topUp",
setup(__props) {
let getInfo = common_vendor.ref({});
let dataForm = common_vendor.reactive({
plamType: 1
});
let appConfig = common_vendor.ref({});
let paynoticeshow = common_vendor.ref(false);
common_vendor.onLoad(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
appConfig.value = JSON.parse(configValue);
});
let naVback = () => {
common_vendor.index.navigateBack();
};
let payOrder = async () => {
if (appConfig.value.minMoney > dataForm.money)
return common_vendor.index.showModal({
title: "提示",
content: `最低充值${appConfig.value.minMoney}`,
showCancel: false
});
let _res = await api_api.userRechargeByLkl({ rechargeMoney: dataForm.money });
const { prepay_id } = _res.data.acc_resp_fields;
common_vendor.index.requestPayment({
provider: "alipay",
orderInfo: prepay_id,
success: function(res) {
console.log(res, "支付");
if (res.resultCode == 9e3) {
common_vendor.index.showModal({
title: "提示",
content: "充值成功",
showCancel: false,
success: function(res2) {
if (res2.confirm) {
common_vendor.index.navigateBack();
} else if (res2.cancel) {
console.log("用户点击取消");
}
}
});
} else {
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
},
fail: (err) => {
this.payState = false;
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
b: common_vendor.t(common_vendor.unref(appConfig).minMoney),
c: common_vendor.o(($event) => common_vendor.unref(dataForm).money = $event),
d: common_vendor.p({
customStyle: {
backgroundColor: "#ffffff"
},
type: "number",
placeholder: "请输入充值金额",
border: "surround",
modelValue: common_vendor.unref(dataForm).money
}),
e: common_vendor.p({
name: "/static/icon/zfb.png",
imgMode: "widthFix",
size: "50rpx"
}),
f: common_vendor.p({
name: 1
}),
g: common_vendor.o(($event) => common_vendor.unref(dataForm).plamType = $event),
h: common_vendor.p({
iconPlacement: "right",
borderBottom: true,
placement: "column",
modelValue: common_vendor.unref(dataForm).plamType
}),
i: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args)),
j: common_vendor.o(common_vendor.unref(naVback)),
k: common_vendor.o(($event) => common_vendor.isRef(paynoticeshow) ? paynoticeshow.value = false : paynoticeshow = false),
l: common_vendor.o(($event) => common_vendor.isRef(paynoticeshow) ? paynoticeshow.value = false : paynoticeshow = false),
m: common_vendor.p({
show: common_vendor.unref(paynoticeshow),
content: "未检测到支付结果",
showCancelButton: true,
confirmText: "查看余额",
cancelText: "取消",
closeOnClickOverlay: true
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-29ef0b49"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,10 @@
{
"defaultTitle": "增值收益充值",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
}
}

View File

@@ -0,0 +1,83 @@
.withdraw_k.data-v-55c70154 {
width: 100%;
height: 74rpx;
padding: 0 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30rpx;
}
.withdraw_k_tit.data-v-55c70154 {
font-weight: bold;
font-size: 24rpx;
color: #232323;
margin-right: 100rpx;
}
.withdraw_k_input.data-v-55c70154 {
flex: 1;
text-align: right;
font-size: 28rpx;
}
.withdraw_k_img.data-v-55c70154 {
width: 44rpx;
height: 44rpx;
}
.withdraw_mon.data-v-55c70154 {
padding: 20rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.withdraw_mon_tit.data-v-55c70154 {
font-weight: bold;
font-size: 24rpx;
color: #232323;
}
.withdraw_mon_input.data-v-55c70154 {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #cccccc;
padding: 15rpx 0;
margin-bottom: 20rpx;
}
.withdraw_mon_input_fu.data-v-55c70154 {
font-weight: bold;
font-size: 66rpx;
color: #232323;
}
.withdraw_mon_input_note.data-v-55c70154 {
font-weight: bold;
font-size: 24rpx;
color: #ff7777;
}
.withdraw_mon_note.data-v-55c70154 {
font-weight: 400;
font-size: 24rpx;
color: #232323;
margin-bottom: 10rpx;
}
.withdraw_note.data-v-55c70154 {
margin-top: 30rpx;
padding: 0 15rpx;
}
.withdraw_note view.data-v-55c70154 {
margin-bottom: 15rpx;
font-weight: 400;
font-size: 26rpx;
color: #232323;
line-height: 40rpx;
}
.affirm_btn.data-v-55c70154 {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view class="withdraw p30 data-v-55c70154"><view class="data-v-55c70154" style="height:30rpx"></view><view class="data-v-55c70154" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-55c70154"><view class="data-v-55c70154">当前增值收益 ¥{{a}}</view><view class="data-v-55c70154">可转换基础收益¥{{b}}</view></view><view class="data-v-55c70154" style="height:20rpx"></view><view class="data-v-55c70154">基础收益转换为增值收益</view></view><view class="data-v-55c70154" style="height:30rpx"></view><view class="withdraw_mon data-v-55c70154"><view class="withdraw_mon_tit data-v-55c70154">转换金额</view><view class="withdraw_mon_input data-v-55c70154"><view class="withdraw_mon_input_fu data-v-55c70154">¥</view><view class="data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-0" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="withdraw_mon_input_note data-v-55c70154" onTap="{{e}}">全部转换</view></view><view class="data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-1" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="withdraw_mon_input data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-2" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input><view class="data-v-55c70154" style="width:250rpx"><up-code class="data-v-55c70154" ref="__r" u-r="{{j}}" onChange="{{k}}" u-i="55c70154-3" onVI="__l" u-p="{{l}}"></up-code><up-button class="data-v-55c70154" u-s="{{['d']}}" onClick="{{n}}" u-i="55c70154-4" onVI="__l" u-p="{{o}}">{{m}}</up-button></view></view></view><view class="data-v-55c70154" style="height:20rpx"></view><view class="data-v-55c70154" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-55c70154" style="color:#f29100">温馨提示</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154" style="font-size:28rpx;color:#909399"><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">1.基础收益转换为增值收益;</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">2.转换金额实时到账,不扣手续费;</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">3.转换成功后实时生效,不支持撤回。</view></view></view><view class="data-v-55c70154" style="height:50rpx"></view><view class="data-v-55c70154" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-55c70154" onTap="{{p}}">确认</view></view><view class="data-v-55c70154" style="height:50rpx"></view></view>

View File

@@ -0,0 +1,115 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
}
const _sfc_main = {
__name: "transferBalance",
setup(__props) {
common_vendor.ref();
let getInfo = common_vendor.ref({});
let appConfig = common_vendor.ref([]);
let tips = common_vendor.ref("");
let uCode = common_vendor.ref(null);
let dataFrom = common_vendor.reactive({
rechargeMoney: "",
smsCode: ""
});
common_vendor.ref();
common_vendor.onLoad(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
appConfig.value = JSON.parse(configValue);
});
let codeChange2 = (text) => {
tips.value = text;
};
let getCode = () => {
if (!getInfo.value.phone)
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
if (uCode.value.canGetCode) {
common_vendor.index.showLoading({
title: "正在获取验证码"
});
api_api.smsCode({
phone: getInfo.value.phone
}).then((res) => {
common_vendor.index.hideLoading();
common_vendor.index.$u.toast("验证码已发送");
uCode.value.start();
});
} else {
common_vendor.index.$u.toast("倒计时结束后再发送");
}
};
let payOrder = async () => {
if (!dataFrom.rechargeMoney)
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
if (!dataFrom.smsCode)
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
await api_api.userPointRecharge(dataFrom);
common_vendor.index.showModal({
title: "提示",
content: "提交成功",
showCancel: false,
success() {
common_vendor.index.navigateBack();
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(getInfo).points2),
b: common_vendor.t(common_vendor.unref(getInfo).points1),
c: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
d: common_vendor.p({
fontSize: "36rpx",
placeholder: "请输入转换金额",
border: false,
modelValue: common_vendor.unref(dataFrom).rechargeMoney
}),
e: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points1),
f: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
g: common_vendor.p({
border: false,
disabled: true,
modelValue: common_vendor.unref(getInfo).phone
}),
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
i: common_vendor.p({
placeholder: "请输入验证码",
border: false,
modelValue: common_vendor.unref(dataFrom).smsCode
}),
j: () => ({
r: uCode,
k: "uCode"
}),
k: common_vendor.o(common_vendor.unref(codeChange2)),
l: common_vendor.p({
["keep-running"]: true,
["start-text"]: "点我获取验证码"
}),
m: common_vendor.t(common_vendor.unref(tips)),
n: common_vendor.o(common_vendor.unref(getCode)),
o: common_vendor.p({
color: "#4874e5"
}),
p: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-55c70154"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "转入增值收益",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,289 @@
/* 订单状态 */
.order-status.data-v-2b5cbeae {
width: 100%;
height: 200rpx;
}
.order-status .status.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100rpx;
}
.order-status .status text.data-v-2b5cbeae {
font-size: 38rpx;
color: #ffffff;
}
.order-status .status .iconfont.data-v-2b5cbeae {
margin-right: 20rpx;
}
.order-status .reason.data-v-2b5cbeae {
display: flex;
justify-content: center;
width: 100%;
height: 80rpx;
}
.order-status .reason text.data-v-2b5cbeae {
font-size: 28rpx;
color: #f6f6f6;
}
/* 收货地址 */
.shipping-address.data-v-2b5cbeae {
width: 100%;
height: 200rpx;
background-color: #ffffff;
border-radius: 20rpx;
margin: -20rpx auto 20rpx;
}
.shipping-address .name-phone.data-v-2b5cbeae {
display: flex;
align-items: center;
padding: 0 4%;
height: 80rpx;
}
.shipping-address .name-phone text.data-v-2b5cbeae {
font-size: 28rpx;
font-weight: bold;
color: #222222;
margin-right: 20rpx;
}
.shipping-address .address.data-v-2b5cbeae {
display: flex;
padding: 0 4%;
height: 100rpx;
margin-left: 50rpx;
}
.shipping-address .address text.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
/* 订单商品 */
.order-goods.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
}
.order-goods .goods-list.data-v-2b5cbeae {
padding: 25rpx;
}
.order-goods .goods-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
min-height: 200rpx;
}
.order-goods .goods-list .list .thumb.data-v-2b5cbeae {
display: flex;
width: 30%;
}
.order-goods .goods-list .list .thumb image.data-v-2b5cbeae {
width: 160rpx;
height: 160rpx;
border-radius: 10rpx;
}
.order-goods .goods-list .list .item.data-v-2b5cbeae {
width: 70%;
height: 100%;
}
.order-goods .goods-list .list .item .title.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .title text.data-v-2b5cbeae {
font-size: 26rpx;
color: #222222;
}
.order-goods .goods-list .list .item .num-size.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .num-size text.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
margin-right: 20rpx;
}
.order-goods .goods-list .list .item .num-size text.data-v-2b5cbeae:last-child {
margin-right: 0;
}
.order-goods .goods-list .list .item .price.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .price text.data-v-2b5cbeae {
font-size: 28rpx;
font-weight: bold;
color: #222222;
}
.order-goods .goods-list .list .item .order-btn.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 100rpx;
}
.order-goods .goods-list .list .item .order-btn .btn.data-v-2b5cbeae {
padding: 10rpx 30rpx;
color: #555555;
font-size: 26rpx;
border: 2rpx solid #eeeeee;
border-radius: 100rpx;
}
.order-goods .goods-list .list .item .order-btn.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 100rpx;
}
.order-goods .goods-list .list .item .order-btn .btn.data-v-2b5cbeae {
padding: 10rpx 30rpx;
color: #555555;
font-size: 26rpx;
border: 2rpx solid #eeeeee;
border-radius: 100rpx;
}
.order-goods .contact.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
width: 100%;
height: 100rpx;
background-color: #ffffff;
box-shadow: 0 0 20rpx #eeeeee;
border-radius: 0 0 20rpx 20rpx;
}
.order-goods .contact text.data-v-2b5cbeae {
font-size: 28rpx;
color: #555555;
}
.order-goods .contact .iconfont.data-v-2b5cbeae {
font-size: 34rpx;
margin-right: 20rpx;
}
/* 订单信息 */
.order-info.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
margin: 20rpx auto;
}
.order-info .info-list.data-v-2b5cbeae {
padding: 0 4%;
}
.order-info .info-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 100rpx;
border-bottom: 2rpx solid #f6f6f6;
}
.order-info .info-list .list .title.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
.order-info .info-list .list .content.data-v-2b5cbeae {
display: flex;
align-items: center;
margin-left: 20rpx;
}
.order-info .info-list .list .content text.data-v-2b5cbeae {
font-size: 26rpx;
font-weight: bold;
color: #222222;
}
.order-info .info-list .list .content .btn.data-v-2b5cbeae {
padding: 6rpx 20rpx;
background-color: #eeeeee;
color: #555555;
font-size: 24rpx;
border-radius: 50rpx;
margin-left: 40rpx;
}
/* 订单明细 */
.order-details.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
margin: 20rpx auto;
}
.order-details .details-list.data-v-2b5cbeae {
padding: 0 4%;
}
.order-details .details-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100rpx;
border-bottom: 2rpx solid #f6f6f6;
}
.order-details .details-list .list .title.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
.order-details .details-list .list .price.data-v-2b5cbeae {
font-size: 26rpx;
font-weight: bold;
}
.order-details .details-list .action.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
}
.order-details .details-list .action .price.data-v-2b5cbeae {
font-size: 32rpx;
font-weight: bold;
}
.footer-btn.data-v-2b5cbeae {
position: fixed;
left: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100rpx;
background-color: #ffffff;
border-top: 2rpx solid #eeeeee;
padding: 0 4%;
}
.footer-btn .del.data-v-2b5cbeae {
display: flex;
align-items: center;
}
.footer-btn .del text.data-v-2b5cbeae {
padding: 10rpx 30rpx;
font-size: 24rpx;
font-weight: bold;
}
.footer-btn .btn.data-v-2b5cbeae {
display: flex;
align-items: center;
}
.footer-btn .btn text.data-v-2b5cbeae {
padding: 10rpx 30rpx;
font-size: 24rpx;
border: 2rpx solid #c0c0c0;
border-radius: 100rpx;
color: #c0c0c0;
margin-left: 20rpx;
}
.footer-btn .btn .action.data-v-2b5cbeae {
color: #ffffff;
border: 2rpx solid #ffffff;
}
button.data-v-2b5cbeae::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-2b5cbeae"><view class="order-goods data-v-2b5cbeae"><view class="goods-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="thumb data-v-2b5cbeae"><image class="data-v-2b5cbeae" src="{{a}}" mode="aspectFill"></image></view><view class="item data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="one-omit data-v-2b5cbeae">{{b}}</text></view><view class="num-size data-v-2b5cbeae"><text class="data-v-2b5cbeae">数量:{{c}}</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae" style="color:#ff2e24">¥{{d}}</text></view></view></view></view><view class="contact data-v-2b5cbeae"><view class="data-v-2b5cbeae" onTap="{{e}}"> 联系客服 </view></view></view><view class="order-info data-v-2b5cbeae"><view class="info-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">订单编号:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{f}}</text><text class="btn data-v-2b5cbeae" onTap="{{g}}">复制</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">下单时间:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{h}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">订单状态:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{i}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">支付方式:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{j}}</text></view></view></view></view><view class="order-details data-v-2b5cbeae"><view class="details-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="data-v-2b5cbeae">订单总额</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae">¥{{k}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="data-v-2b5cbeae">实付金额</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae">¥{{l}}</text></view></view></view></view></view>

View File

@@ -0,0 +1,51 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const _sfc_main = {
__name: "details",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options2) => {
let _res = await api_api.orderInfo({ id: options2.id });
info.value = _res;
});
common_vendor.onPullDownRefresh(async () => {
let _res = await api_api.orderInfo({ id: options.id });
info.value = _res;
setTimeout(() => {
common_vendor.index.stopPullDownRefresh();
}, 500);
});
let copy = (e) => {
common_vendor.index.setClipboardData({
data: e,
success: function() {
console.log("success");
}
});
};
let call = () => {
common_vendor.index.makePhoneCall({
phoneNumber: "17707569278"
});
};
return (_ctx, _cache) => {
return {
a: JSON.parse(common_vendor.unref(info).picture)[0],
b: common_vendor.t(common_vendor.unref(info).goodName),
c: common_vendor.t(common_vendor.unref(info).num),
d: common_vendor.t(common_vendor.unref(info).amount),
e: common_vendor.o((...args) => common_vendor.unref(call) && common_vendor.unref(call)(...args)),
f: common_vendor.t(common_vendor.unref(info).orderNo),
g: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(info).orderNo)),
h: common_vendor.t(common_vendor.unref(info).createTime),
i: common_vendor.t(common_vendor.unref(info).status == -1 ? "已取消" : common_vendor.unref(info).status == 0 ? "待支付" : common_vendor.unref(info).status == -2 ? "退款" : common_vendor.unref(info).status == 1 ? "支付成功" : ""),
j: common_vendor.t(common_vendor.unref(info).orderPlatform == 3 ? "支付宝" : common_vendor.unref(info).orderPlatform == 2 ? "微信" : common_vendor.unref(info).orderPlatform == 1 ? "钱包" : "-"),
k: common_vendor.t(common_vendor.unref(info).amount),
l: common_vendor.t(common_vendor.unref(info).realAmount)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2b5cbeae"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,5 @@
{
"defaultTitle": "订单详情",
"pullRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,49 @@
.order_view.data-v-93207a4f {
background: #ffffff;
border-radius: 16rpx;
padding: 25rpx;
margin-bottom: 30rpx;
}
.order_view_info.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.order_view_info_img.data-v-93207a4f {
width: 208rpx;
height: 208rpx;
margin-right: 15rpx;
border-radius: 10rpx;
}
.order_view_info_right.data-v-93207a4f {
flex: 1;
font-size: 28rpx;
color: #232323;
}
.order_view_info_right_tit.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 15rpx;
}
.order_view_info_right_num.data-v-93207a4f {
margin-bottom: 15rpx;
}
.order_view_info_right_mon.data-v-93207a4f {
margin-bottom: 15rpx;
}
.order_view_info_right_mon text.data-v-93207a4f {
color: #ff2e24;
}
.order_view_dd.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 15rpx;
}

View File

@@ -0,0 +1 @@
<view class="order data-v-93207a4f"><z-paging class="data-v-93207a4f" u-s="{{['d']}}" ref="__r" u-r="{{h}}" onQuery="{{i}}" u-i="93207a4f-0" onVI="__l" onUpdateModelValue="{{j}}" u-p="{{k}}"><up-dropdown class="data-v-93207a4f" u-s="{{['d']}}" u-i="93207a4f-1,93207a4f-0" onVI="__l"><up-dropdown-item class="data-v-93207a4f" onChange="{{a}}" u-i="93207a4f-2,93207a4f-1" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-dropdown-item><up-dropdown-item class="data-v-93207a4f" onChange="{{d}}" u-i="93207a4f-3,93207a4f-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-dropdown-item></up-dropdown><view class="p30 data-v-93207a4f"><view a:for="{{g}}" a:for-item="i" a:key="E" class="order_view data-v-93207a4f" onTap="{{i.F}}"><view class="order_view_dd data-v-93207a4f"><view class="data-v-93207a4f"><text class="data-v-93207a4f" style="font-weight:500">订单号</text> :{{i.a}}</view><view class="data-v-93207a4f"><up-tag a:if="{{i.b}}" class="data-v-93207a4f" u-i="{{i.c}}" onVI="__l" u-p="{{i.d}}"></up-tag><up-tag a:if="{{i.e}}" class="data-v-93207a4f" u-i="{{i.f}}" onVI="__l" u-p="{{i.g}}"></up-tag><up-tag a:if="{{i.h}}" class="data-v-93207a4f" u-i="{{i.i}}" onVI="__l" u-p="{{i.j}}"></up-tag><up-tag a:if="{{i.k}}" class="data-v-93207a4f" u-i="{{i.l}}" onVI="__l" u-p="{{i.m}}"></up-tag></view></view><view class="order_view_info data-v-93207a4f"><image class="order_view_info_img data-v-93207a4f" src="{{i.n}}" mode="aspectFit"></image><view class="order_view_info_right data-v-93207a4f"><view class="order_view_info_right_tit data-v-93207a4f"><view class="data-v-93207a4f" style="display:flex;align-items:center"><up-tag class="data-v-93207a4f" u-i="{{i.o}}" onVI="__l" u-p="{{i.p}}"></up-tag><view class="data-v-93207a4f" style="margin-left:15rpx">{{i.q}}</view></view></view><view class="order_view_info_right_num data-v-93207a4f" style="display:flex;align-items:center;justify-content:space-between">数量:{{i.r}}</view><view class="order_view_info_right_mon data-v-93207a4f"> 订单金额: <text class="data-v-93207a4f" style="color:crimson">¥{{i.s}}</text></view></view></view><view class="data-v-93207a4f" style="display:flex;align-items:center;justify-content:space-between;border-top:1rpx solid rgba(153, 153, 153, 0.5);margin-top:15rpx;padding-top:15rpx"><view class="data-v-93207a4f" style="font-size:28rpx">{{i.t}}</view><view class="data-v-93207a4f"><up-tag a:if="{{i.v}}" class="data-v-93207a4f" u-i="{{i.w}}" onVI="__l" u-p="{{i.x}}"></up-tag><up-tag a:if="{{i.y}}" class="data-v-93207a4f" u-i="{{i.z}}" onVI="__l" u-p="{{i.A}}"></up-tag><up-tag a:if="{{i.B}}" class="data-v-93207a4f" u-i="{{i.C}}" onVI="__l" u-p="{{i.D}}"></up-tag></view></view></view></view></z-paging></view>

View File

@@ -0,0 +1,230 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
require("../../uni_modules/uview-plus/index.js");
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
if (!Array) {
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_tag2 + _easycom_z_paging2)();
}
const _easycom_up_dropdown_item = () => "../../uni_modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
const _easycom_up_dropdown = () => "../../uni_modules/uview-plus/components/u-dropdown/u-dropdown.js";
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
(_easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_tag + _easycom_z_paging)();
}
const _sfc_main = {
__name: "order",
setup(__props) {
const { navTo } = hooks_useNav.useNav();
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let dataFrom = common_vendor.reactive({
status: "",
businessPayType: "",
sourceType: ""
});
common_vendor.ref([
{
label: "商品",
value: 1
},
{
label: "套餐",
value: 2
}
]);
let options2 = common_vendor.ref([
{
label: "微信",
value: 1
},
{
label: "支付宝",
value: 2
},
{
label: "钱包",
value: 3
}
]);
let options3 = common_vendor.ref([
{
label: "待支付",
value: 0
},
{
label: "支付成功",
value: 1
},
{
label: "取消",
value: -1
},
{
label: "退款",
value: -2
}
]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const upChange = (e) => {
console.log(dataFrom);
paging.value.reload();
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.getStorageSync("user");
const params = {
current: pageNo,
pageSize,
...dataFrom
};
api_api.orderPage(params).then((res) => {
paging.value.complete(res.records);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(upChange),
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).businessPayType = $event),
c: common_vendor.p({
title: "支付类型",
options: common_vendor.unref(options2),
modelValue: common_vendor.unref(dataFrom).businessPayType
}),
d: common_vendor.o(upChange),
e: common_vendor.o(($event) => common_vendor.unref(dataFrom).status = $event),
f: common_vendor.p({
title: "状态",
options: common_vendor.unref(options3),
modelValue: common_vendor.unref(dataFrom).status
}),
g: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(i.orderNo),
b: i.status == 0
}, i.status == 0 ? {
c: "93207a4f-4-" + i0 + ",93207a4f-0",
d: common_vendor.p({
size: "mini",
text: "待支付",
plain: true
})
} : {}, {
e: i.status == -1
}, i.status == -1 ? {
f: "93207a4f-5-" + i0 + ",93207a4f-0",
g: common_vendor.p({
size: "mini",
text: "已取消",
type: "warning",
plain: true
})
} : {}, {
h: i.status == 1
}, i.status == 1 ? {
i: "93207a4f-6-" + i0 + ",93207a4f-0",
j: common_vendor.p({
size: "mini",
text: "支付成功",
type: "success",
plain: true
})
} : {}, {
k: i.status == -2
}, i.status == -2 ? {
l: "93207a4f-7-" + i0 + ",93207a4f-0",
m: common_vendor.p({
size: "mini",
text: "退款",
type: "error",
plain: true
})
} : {}, {
n: JSON.parse(i.picture)[0],
o: "93207a4f-8-" + i0 + ",93207a4f-0",
p: common_vendor.p({
size: "mini",
text: i.sourceType == 1 ? "商品" : "套餐",
bgColor: "#4874e5",
borderColor: "#4874e5"
}),
q: common_vendor.t(i.goodName),
r: common_vendor.t(i.num),
s: common_vendor.t(i.amount),
t: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.createTime).getTime(), "yyyy-mm-dd hh:MM")),
v: i.orderPlatform == 3
}, i.orderPlatform == 3 ? {
w: "93207a4f-9-" + i0 + ",93207a4f-0",
x: common_vendor.p({
size: "mini",
text: "支付宝",
plain: true
})
} : {}, {
y: i.orderPlatform == 2
}, i.orderPlatform == 2 ? {
z: "93207a4f-10-" + i0 + ",93207a4f-0",
A: common_vendor.p({
size: "mini",
text: "微信",
type: "success",
plain: true
})
} : {}, {
B: i.orderPlatform == 1
}, i.orderPlatform == 1 ? {
C: "93207a4f-11-" + i0 + ",93207a4f-0",
D: common_vendor.p({
size: "mini",
text: "钱包",
type: "warning",
plain: true
})
} : {}, {
E: i,
F: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/order/details?id=${i.id}`))
});
}),
h: () => ({
r: paging,
k: "paging"
}),
i: common_vendor.o(queryList),
j: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
k: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-93207a4f"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "订单",
"usingComponents": {
"up-dropdown-item": "../../uni_modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
"up-dropdown": "../../uni_modules/uview-plus/components/u-dropdown/u-dropdown",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1,12 @@
.affirm_btn {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view><view style="height:20rpx"></view><view style="background-color:#ffffff;border-radius:10rpx;padding:30rpx;text-align:center"><view style="color:#fa3534"><text style="font-size:30rpx">¥</text><text style="font-size:36rpx;font-weight:700">{{a}}</text></view><view style="color:#909399;font-size:28rpx">支付金额</view></view><view style="height:20rpx"></view><view style="background-color:#fff;padding:30rpx;border-radius:10rpx"><view style="font-size:28rpx">支付方式</view><view style="height:20rpx"></view><up-radio-group u-s="{{['d']}}" u-i="e3f22c3c-0" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"><up-radio u-s="{{['d']}}" u-i="e3f22c3c-1,e3f22c3c-0" onVI="__l" u-p="{{d}}"><view style="display:flex;align-items:center"><up-icon u-i="e3f22c3c-2,e3f22c3c-1" onVI="__l" u-p="{{b}}"/><view style="width:20rpx"></view><view><view style="font-size:30rpx">余额支付</view><view style="font-size:28rpx;color:#909399">当前余额:¥{{c}}</view></view></view></up-radio><up-radio u-s="{{['d']}}" u-i="e3f22c3c-3,e3f22c3c-0" onVI="__l" u-p="{{f}}"><view style="display:flex;align-items:center"><up-icon u-i="e3f22c3c-4,e3f22c3c-3" onVI="__l" u-p="{{e}}"/><view style="width:20rpx"></view><view><view style="font-size:30rpx;display:flex;align-items:center"> 支付宝支付 <view style="padding:4rpx 15rpx;margin-left:10rpx;border-radius:25rpx;background-color:#e03737;font-size:24rpx;color:#fff"> 随机立减0.01-20元 </view></view><view style="font-size:28rpx;color:#909399">支付宝快捷支付</view></view></view></up-radio></up-radio-group></view><view style="height:100rpx"></view><view style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn" onTap="{{i}}">确认支付</view></view></view>

View File

@@ -0,0 +1,109 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
(_easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group)();
}
const _sfc_main = {
__name: "pay",
setup(__props) {
let orderId = common_vendor.ref("");
let amount = common_vendor.ref(0);
let money = common_vendor.ref(0);
let type = common_vendor.ref(1);
common_vendor.onLoad(async (options) => {
orderId.value = options.id;
amount.value = options.amount;
type.value = options.type;
let { id } = common_vendor.index.getStorageSync("user");
let { points2 } = await api_api.userInfo({ id });
money.value = points2;
});
common_vendor.onShow(async () => {
});
let dataFrom = common_vendor.reactive({
pay_type: 3
});
let payOrder = async () => {
let _res;
if (dataFrom.pay_type == 1 || dataFrom.pay_type == 2) {
_res = type.value == 1 ? await api_api.lklPaymentGoods({ id: orderId.value }) : await api_api.lklPaymentPackages({ id: orderId.value });
const { prepay_id } = _res.data.acc_resp_fields;
common_vendor.index.requestPayment({
provider: "alipay",
orderInfo: prepay_id,
//微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
success: function(res) {
if (res.resultCode == 9e3) {
common_vendor.index.redirectTo({
url: `/pages/order/success?id=${orderId.value}&amount=${_res.amount}&orderNo=${prepay_id}`
});
} else {
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
},
fail: (err) => {
this.payState = false;
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
});
}
if (dataFrom.pay_type == 3) {
_res = type.value == 1 ? await api_api.walletPaymentGoods({ id: orderId.value }) : await api_api.walletPaymentPackages({ id: orderId.value });
common_vendor.index.redirectTo({
url: `/pages/order/success?id=${orderId.value}&amount=${_res.amount}&orderNo=${_res.orderNo ? _res.orderNo : ""}&createTime=${_res.createTime ? _res.createTime : ""}`
});
}
console.log(_res);
return;
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(amount)),
b: common_vendor.p({
name: "/static/icon/money.png",
imgMode: "widthFix",
size: "50rpx"
}),
c: common_vendor.t(common_vendor.unref(money)),
d: common_vendor.p({
name: 3
}),
e: common_vendor.p({
name: "/static/icon/zfb.png",
imgMode: "widthFix",
size: "50rpx"
}),
f: common_vendor.p({
name: 2
}),
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).pay_type = $event),
h: common_vendor.p({
iconPlacement: "right",
borderBottom: true,
placement: "column",
modelValue: common_vendor.unref(dataFrom).pay_type
}),
i: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "确认订单",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group"
}
}

Some files were not shown because too many files have changed in this diff Show More