e6080644 by 华明祺

Merge branch 'dev' of https://code.itechtop.cn/yangyang/ztx_wx_minapp into dev

# Conflicts:
#	unpackage/dist/dev/mp-weixin/app.js
#	unpackage/dist/dev/mp-weixin/app.json
#	unpackage/dist/dev/mp-weixin/common/vendor.js
#	unpackage/dist/dev/mp-weixin/pages/index/index.js
#	unpackage/dist/dev/mp-weixin/pages/index/register.wxss
#	unpackage/dist/dev/mp-weixin/project.config.json
#	unpackage/dist/dev/mp-weixin/training/trainList.js
#	unpackage/dist/dev/mp-weixin/webView/newList/newList.json
#	unpackage/dist/dev/mp-weixin/webView/vipSystem.json
#	unpackage/dist/dev/mp-weixin/webView/vipSystem.wxml
2 parents 57ba76a0 6c11a383
......@@ -24,30 +24,27 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path" : "webView/vipSystem",
"style" :
{
"navigationBarTitleText" : "会员系统",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/index/binding",
"style" :
{
"navigationBarTitleText" : "账号绑定",
"enablePullDownRefresh" : false
}
},
{
"path" : "webView/newList/newList",
"style" :
{
"navigationBarTitleText" : "新闻资讯",
"enablePullDownRefresh" : false
}
},
{
"path": "pages/index/binding",
"style": {
"navigationBarTitleText": "账号绑定",
"enablePullDownRefresh": false
}
},
{
"path": "pages/myCenter/myCenter",
"style": {
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
},
{
"path": "pages/webView/auth",
"style": {
"navigationBarTitleText": "认证查询",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
......@@ -56,209 +53,218 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "中国跆协"
},
"subPackages": [
{
"root": "training",
"pages":[{
"path" : "trainList",
"style" :
{
"navigationBarTitleText" : "培训列表",
"enablePullDownRefresh" : false
}
},
{
"path" : "detailPage",
"style" :
{
"navigationBarTitleText" : "培训详情",
"enablePullDownRefresh" : false
}
},
{
"path" : "trainSignUp",
"style" :
{
"navigationBarTitleText" : "培训报名",
"enablePullDownRefresh" : false
}
}]
},{
"root": "match",
"pages": [{
"path": "index",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "赛事报名",
"enablePullDownRefresh": false
}
}, {
"path": "single",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "赛事详情",
"enablePullDownRefresh": false
}
}, {
"path": "singleLs",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "联赛详情",
"enablePullDownRefresh": false
}
}, {
"path": "sign_single",
"style": {
"navigationBarTitleText": "个人报名",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "matchBill",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "费用明细",
"enablePullDownRefresh": true,
"backgroundColor": "#ffffff"
}
}, {
"path": "matchPayDone",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "报名完成",
"enablePullDownRefresh": true,
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_sportman",
"style": {
"navigationBarTitleText": "选择运动员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "team_choose_sportman",
"style": {
"navigationBarTitleText": "配置运动员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_coach",
"style": {
"navigationBarTitleText": "选择人员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "add_coach",
"style": {
"navigationBarTitleText": "新建人员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "add_rank",
"style": {
"navigationBarTitleText": "新建队伍",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_project",
"style": {
"navigationBarTitleText": "选择参赛项目",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "projectList",
"style": {
"navigationBarTitleText": "选择参赛项目",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}]
},{
"root": "myCenter",
"pages": [{
"path" : "index",
"style" :
{
"navigationBarTitleText" : "个人中心",
"enablePullDownRefresh" : false
}
},
{
"path" : "mytrain/mytrain",
"style" :
{
"navigationBarTitleText" : "我的培训",
"enablePullDownRefresh" : false
}
},
{
"path" : "mytrain/myBill",
"style" :
{
"navigationBarTitleText" : "培训订单",
"enablePullDownRefresh" : false
}
},
{
"path" : "mytrain/orderDetail",
"style" :
{
"navigationBarTitleText" : "订单详情",
"enablePullDownRefresh" : false
}
}]
}
],
"subPackages": [{
"root": "training",
"pages": [{
"path": "trainList",
"style": {
"navigationBarTitleText": "培训列表",
"enablePullDownRefresh": false
}
},
{
"path": "detailPage",
"style": {
"navigationBarTitleText": "培训详情",
"enablePullDownRefresh": false
}
},
{
"path": "trainSignUp",
"style": {
"navigationBarTitleText": "培训报名",
"enablePullDownRefresh": false
}
}
]
}, {
"root": "match",
"pages": [{
"path": "index",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "赛事报名",
"enablePullDownRefresh": false
}
}, {
"path": "single",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "赛事详情",
"enablePullDownRefresh": false
}
}, {
"path": "singleLs",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "联赛详情",
"enablePullDownRefresh": false
}
}, {
"path": "sign_single",
"style": {
"navigationBarTitleText": "个人报名",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "matchBill",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "费用明细",
"enablePullDownRefresh": true,
"backgroundColor": "#ffffff"
}
}, {
"path": "matchPayDone",
"style": {
"navigationStyle": "default",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "报名完成",
"enablePullDownRefresh": true,
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_sportman",
"style": {
"navigationBarTitleText": "选择运动员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "team_choose_sportman",
"style": {
"navigationBarTitleText": "配置运动员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_coach",
"style": {
"navigationBarTitleText": "选择人员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "add_coach",
"style": {
"navigationBarTitleText": "新建人员",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "add_rank",
"style": {
"navigationBarTitleText": "新建队伍",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "choose_project",
"style": {
"navigationBarTitleText": "选择参赛项目",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}, {
"path": "projectList",
"style": {
"navigationBarTitleText": "选择参赛项目",
"navigationBarBackgroundColor": "#F7F8FA",
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff"
}
}]
}, {
"root": "myCenter",
"pages": [{
"path": "index",
"style": {
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": false
}
},
{
"path": "mytrain/mytrain",
"style": {
"navigationBarTitleText": "我的培训",
"enablePullDownRefresh": false
}
},
{
"path": "mytrain/myBill",
"style": {
"navigationBarTitleText": "培训订单",
"enablePullDownRefresh": false
}
},
{
"path": "mytrain/orderDetail",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
}
}
]
}, {
"root": "webView",
"pages": [{
"path": "newList/newList",
"style": {
"navigationBarTitleText": "新闻",
"enablePullDownRefresh": false
}
}, {
"path": "vipSystem",
"style": {
"navigationBarTitleText": "会员系统",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}]
}],
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": ["training","match","myCenter"]
"packages": ["training", "match", "myCenter", "webView"]
}
},
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "首页"
},{
"pagePath": "webView/auth",
"text": "认证查询"
},{
"pagePath": "myCenter/index",
"text": "我的"
}]
},
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "首页"
}, {
"pagePath": "pages/webView/auth",
"text": "认证查询"
}, {
"pagePath": "pages/myCenter/myCenter",
"text": "我的"
}]
}
}
\ No newline at end of file
......
......@@ -25,7 +25,7 @@
<view @click="goPath()">
<image />考点查询
</view>
<view @click="goPath()">
<view @click="goPath('/webView/vipSystem')">
<image />会员系统
</view>
<view @click="goPath('/myCenter/index')">
......
This diff could not be displayed because it is too large.
<template>
<view class="box">
<view class="topBg">
<view class="userInfoBox">
<view class="headImg">
<image mode="aspectFill" :src="avatarUrl"></image>
</view>
<view class="nameBox">
{{ user.nickName }}
<view>{{ user.phonenumber }}</view>
</view>
</view>
</view>
<view class="rMainBox">
<uni-list :border="false" class="myList">
<!-- <uni-list-item :border="false" title="个人信息" showArrow :to="`./myInfo`">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="/static/user_icon03.png" mode="widthFix"></image>
</view>
</template>
</uni-list-item>
<uni-list-item :border="false" title="参赛队信息" showArrow :to="`./teamList`">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="/static/user_icon06.png" mode="widthFix"></image>
</view>
</template>
</uni-list-item>
<uni-list-item :border="false" title="会员充值" showArrow :to="`./mycard/renew`">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="/static/user_icon01.png" mode="widthFix"></image>
</view>
</template>
</uni-list-item>
<uni-list-item :border="false" title="场地订单" showArrow :to="`./bills`">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="/static/user_icon02.png" mode="widthFix"></image>
</view>
</template>
</uni-list-item> -->
<uni-list-item :border="false" title="我的培训" showArrow clickable @click="goPath('/myCenter/mytrain/mytrain')">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" mode="widthFix"></image>
</view>
</template>
</uni-list-item>
<!-- <uni-list-item :border="false" title="我的赛事" showArrow :to="`./match`">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="/static/user_icon04.png" mode="widthFix"></image>
</view>
</template>
</uni-list-item> -->
</uni-list>
</view>
</view>
</template>
<script setup>
import * as my from '@/myCenter/center_api.js';
import * as loginServer from '@/common/login.js';
import { ref } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
const user = ref({});
const app = getApp();
onShow(() => {
if (app.globalData.isLogin) {
init();
} else {
app.firstLoadCallback = () => {
init();
};
}
});
function init() {
console.log(app.globalData.isLogin)
if(app.globalData.userInfo){
const currUser = app.globalData.userInfo
user.value = currUser;
} else {
loginServer.getInfo().then(res=>{
const currUser = app.globalData.userInfo
user.value = currUser
})
}
}
function goBack() {
uni.navigateBack({});
}
// function goQcode() {
// uni.scanCode({
// onlyFromCamera: true,
// success: function(res) {
// console.log('条码类型:' + res.scanType);
// console.log('条码内容:' + res.result);
// api.scanQrCode(res.result).then(res => {
// uni.showModal({
// title: '提示',
// content: res.msg,
// success: function(res) {
// if (res.confirm) {
// console.log('确定');
// } else if (res.cancel) {
// console.log('取消');
// }
// }
// });
// });
// }
// });
// }
function building() {
uni.showToast({
title: '暂未开放,敬请期待。',
icon: 'none',
duration: 2000
});
}
function goPath(path) {
if(path)
uni.navigateTo({
url: path
});
}
</script>
<style scoped lang="scss">
.box {
width: 100vw;
overflow: hidden;
}
.rMainBox {
box-sizing: border-box;
padding: 20rpx 25rpx 0;
margin: 25rpx;
}
.userInfoBox {
height: 200rpx;
}
.nameBox {
position: absolute;
left: 180rpx;
top: 70rpx;
font-size: 30rpx;
}
.nameBox view {
color: #7b7f83;
font-size: 26rpx;
margin-top: 10rpx;
}
.goback {
position: absolute;
color: #fff;
top: 100rpx;
left: 35rpx;
}
.forAdmin {
padding: 25rpx;
box-sizing: border-box;
}
.topBg {
}
.onlyCardBottom {
position: relative;
width: 660rpx;
margin: auto;
height: 90rpx;
.bbg {
height: 90rpx;
width: 660rpx;
}
.cardBottom {
width: 660rpx;
background: transparent;
height: 90rpx;
text {
font-size: 28rpx;
color: #925921;
}
.renewBtn {
background: #874f02;
color: #fff;
}
}
}
.headImg {
border-radius: 50%;
position: relative;
top: 50rpx;
overflow: hidden;
width: 100rpx;
height: 100rpx;
border: 4px solid #ffffff;
background: #c4f9cb;
left: 40rpx;
button {
display: block;
padding: 0;
}
image {
width: 100rpx;
height: 100rpx;
display: block;
}
}
.slot-image {
width: 50rpx;
position: relative;
top: -8rpx;
height: 50rpx;
margin-right: 30rpx;
}
.myList {
}
.funcBar {
display: flex;
background: #fff;
width: 700rpx;
height: 140rpx;
justify-content: space-around;
}
.funcBar view {
display: flex;
align-items: center;
font-size: 36rpx;
}
.funcBar image {
width: 80rpx;
height: 80rpx;
}
.topbgimg {
width: 100vw;
position: absolute;
z-index: -1;
}
.reportItembox {
overflow: hidden;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.reportItem {
background: #fff;
border-radius: 15rpx;
width: 340rpx;
margin-top: 25rpx;
.t {
border-bottom: 1px solid #e5e5e5;
height: 70rpx;
line-height: 70rpx;
color: #2b3133;
font-size: 30rpx;
padding-left: 36rpx;
}
.rbody {
display: flex;
padding: 36rpx;
box-sizing: border-box;
view {
font-size: 26rpx;
color: #888;
width: 40%;
}
text {
color: #00c176;
font-weight: bold;
font-size: 36rpx;
display: block;
margin-bottom: 20rpx;
}
}
}
.changephonepop {
width: 100%;
}
.changephonepop view {
width: 100%;
margin: 0 0 30rpx;
}
.changephonepop view input {
width: 100%;
background: #f4f4f4;
font-size: 30rpx;
height: 80rpx;
padding: 0 15rpx;
box-sizing: border-box;
line-height: 80rpx;
}
.changephonepop view.ffff {
display: flex;
}
.changephonepop view button {
font-size: 24rpx;
margin-left: 10rpx;
white-space: nowrap;
width: 260rpx;
line-height: 80rpx;
background: linear-gradient(90deg, #00c176, #3ed89b);
color: #fff;
padding: 0;
border: none;
}
</style>
<template>
<web-view src="https://newsystem.taekwondo.org.cn/#/authAccurate">
</web-view>
</template>
<script>
......
......@@ -122,7 +122,7 @@
query.value.flag = current.value;
train.getTrainList(query.value).then(res=>{
list.value = res.rows;
total.value = res.rows;
total.value = res.total;
})
}
......@@ -152,7 +152,8 @@
// 上拉加载
onReachBottom(async () => {
if (list.value.length == total.value) {
console.log(list.value.length,total.value)
if (list.value.length >= total.value) {
status.value = 'noMore';
return false;
} else {
......
{
"pages": [
"pages/index/index",
"pages/index/login",
"pages/index/register",
"pages/index/binding",
"pages/myCenter/myCenter",
"pages/webView/auth"
],
"subPackages": [
{
"root": "training",
"pages": [
"trainList",
"detailPage",
"trainSignUp"
]
},
{
"root": "match",
"pages": [
"index",
"single",
"singleLs",
"sign_single",
"matchBill",
"matchPayDone",
"choose_sportman",
"team_choose_sportman",
"choose_coach",
"add_coach",
"add_rank",
"choose_project",
"projectList"
]
},
{
"root": "myCenter",
"pages": [
"index",
"mytrain/mytrain",
"mytrain/myBill",
"mytrain/orderDetail"
]
},
{
"root": "webView",
"pages": [
"newList/newList",
"vipSystem"
]
}
],
"window": {
"navigationStyle": "default",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "中国跆协"
},
"tabBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "pages/webView/auth",
"text": "认证查询"
},
{
"pagePath": "pages/myCenter/myCenter",
"text": "我的"
}
]
},
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": [
"training",
"match",
"myCenter",
"webView"
]
}
},
"permission": {},
"usingComponents": {}
}
\ No newline at end of file
This diff could not be displayed because it is too large.
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "index",
setup(__props) {
const app = getApp();
common_vendor.ref(null);
common_vendor.ref([]);
common_vendor.onShow(() => {
if (app.globalData.isLogin) {
init();
} else {
app.firstLoadCallback = () => {
init();
};
}
});
common_vendor.onLoad((option) => {
});
function goPath(path) {
if (path)
common_vendor.index.navigateTo({
url: path
});
}
function init() {
common_vendor.index.showLoading({
title: "加载中"
});
common_vendor.index.hideLoading();
}
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => goPath("/training/trainList")),
b: common_vendor.o(($event) => goPath("/match/index")),
c: common_vendor.o(($event) => goPath("/training/trainList")),
d: common_vendor.o(($event) => goPath()),
e: common_vendor.o(($event) => goPath()),
f: common_vendor.o(($event) => goPath()),
g: common_vendor.o(($event) => goPath("/webView/vipSystem")),
h: common_vendor.o(($event) => goPath("/myCenter/index"))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/yangyang/ztx_wx_minapp/pages/index/index.vue"]]);
wx.createPage(MiniProgramPage);
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.logotop.data-v-224dede7 {
width: 510rpx;
height: 215rpx;
margin: 5vh auto 40rpx;
display: block;
}
.ren1.data-v-224dede7 {
width: 300rpx;
height: 560rpx;
position: absolute;
right: 0;
top: 0;
}
.ren2.data-v-224dede7 {
width: 456rpx;
height: 600rpx;
position: relative;
top: 20rpx;
}
.retop.data-v-224dede7 {
position: relative;
z-index: 1;
}
.page-bg.data-v-224dede7 {
background: #044a9f;
background-size: cover;
height: 100vh;
overflow: hidden;
position: relative;
}
.formbox.data-v-224dede7 {
background: #fff;
width: 700rpx;
padding: 30rpx 50rpx;
margin: auto;
border-radius: 20rpx;
}
.formbox .nav.data-v-224dede7 {
text-align: center;
position: relative;
padding: 0 0 30rpx;
}
.formbox .nav.active.data-v-224dede7 {
font-size: 30rpx;
color: #AD181F;
}
.formbox .nav.active.data-v-224dede7::after {
content: "";
position: absolute;
width: 25rpx;
height: 4rpx;
background: #AD181F;
border-radius: 2rpx;
left: 0;
right: 0;
margin: auto;
bottom: 20rpx;
}
.flex-item.data-v-224dede7 {
display: flex;
justify-content: space-between;
margin: 30rpx 0;
font-size: 28rpx;
}
.flex-item image.data-v-224dede7 {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.member.data-v-224dede7 {
color: #4C5359;
display: flex;
align-items: center;
}
.center-item.data-v-224dede7 {
text-align: center;
margin: 30rpx 0 0;
font-size: 30rpx;
}
.center-item .btn-red.data-v-224dede7 {
border-radius: 40rpx;
width: 600rpx;
line-height: 80rpx;
font-size: 36rpx;
}
.btn-red.data-v-224dede7 {
background: #AD181F;
color: #fff;
}
.text-red.data-v-224dede7 {
color: #AD181F;
}
.round-input-item.data-v-224dede7 {
overflow: hidden;
background: RGBA(247, 247, 248, 1);
border-radius: 40rpx;
padding: 0 0 0 30rpx;
height: 80rpx;
margin-bottom: 30rpx;
display: flex;
align-items: center;
}
.round-input-item image.data-v-224dede7 {
width: 180rpx;
height: 80rpx;
}
.round-input-item image.icon.data-v-224dede7 {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.round-input-item input.data-v-224dede7 {
border-left: 1rpx solid RGBA(214, 216, 219, 1);
padding: 0 0 0 20rpx;
font-size: 30rpx;
}
.round-input-item input.data-v-224dede7::-webkit-input-placeholder {
color: RGBA(158, 166, 174, 1);
font-size: 30rpx;
}
.round-input-item input.data-v-224dede7::placeholder {
color: RGBA(158, 166, 174, 1);
font-size: 30rpx;
}
.round-input-item input.data-v-224dede7::-moz-placeholder {
color: RGBA(158, 166, 174, 1);
font-size: 30rpx;
}
.round-input-item text.data-v-224dede7 {
font-size: 28rpx;
padding: 0 20rpx;
color: #014A9F;
}
.fixedagree.data-v-224dede7 {
position: fixed;
bottom: 5vh;
color: rgba(255, 255, 255, 0.7);
display: flex;
font-size: 24rpx;
width: 100vw;
justify-content: center;
}
.fixedagree image.data-v-224dede7 {
width: 40rpx;
height: 40rpx;
margin-right: 20rpx;
}
\ No newline at end of file
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_login = require("../../common/login.js");
require("../../common/request.js");
require("../../config.js");
require("../../common/aes.js");
if (!Array) {
const _easycom_uni_list_item2 = common_vendor.resolveComponent("uni-list-item");
const _easycom_uni_list2 = common_vendor.resolveComponent("uni-list");
(_easycom_uni_list_item2 + _easycom_uni_list2)();
}
const _easycom_uni_list_item = () => "../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js";
const _easycom_uni_list = () => "../../uni_modules/uni-list/components/uni-list/uni-list.js";
if (!Math) {
(_easycom_uni_list_item + _easycom_uni_list)();
}
const _sfc_main = {
__name: "myCenter",
setup(__props) {
const user = common_vendor.ref({});
const app = getApp();
common_vendor.onShow(() => {
if (app.globalData.isLogin) {
init();
} else {
app.firstLoadCallback = () => {
init();
};
}
});
function init() {
console.log(app.globalData.isLogin);
if (app.globalData.userInfo) {
const currUser = app.globalData.userInfo;
user.value = currUser;
} else {
common_login.getInfo().then((res) => {
const currUser = app.globalData.userInfo;
user.value = currUser;
});
}
}
function goPath(path) {
if (path)
common_vendor.index.navigateTo({
url: path
});
}
return (_ctx, _cache) => {
return {
a: _ctx.avatarUrl,
b: common_vendor.t(user.value.nickName),
c: common_vendor.t(user.value.phonenumber),
d: common_vendor.o(($event) => goPath("/myCenter/mytrain/mytrain")),
e: common_vendor.p({
border: false,
title: "我的培训",
showArrow: true,
clickable: true
}),
f: common_vendor.p({
border: false
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eea72321"], ["__file", "/Users/huamingqi/projects/ztx/ztx_wx_minapp/pages/myCenter/myCenter.vue"]]);
wx.createPage(MiniProgramPage);
{
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false,
"usingComponents": {
"uni-list-item": "../../uni_modules/uni-list/components/uni-list-item/uni-list-item",
"uni-list": "../../uni_modules/uni-list/components/uni-list/uni-list"
}
}
\ No newline at end of file
<view class="box data-v-eea72321"><view class="topBg data-v-eea72321"><view class="userInfoBox data-v-eea72321"><view class="headImg data-v-eea72321"><image class="data-v-eea72321" mode="aspectFill" src="{{a}}"></image></view><view class="nameBox data-v-eea72321">{{b}} <view class="data-v-eea72321">{{c}}</view></view></view></view><view class="rMainBox data-v-eea72321"><uni-list wx:if="{{f}}" u-s="{{['d']}}" class="myList data-v-eea72321" u-i="eea72321-0" bind:__l="__l" u-p="{{f}}"><uni-list-item wx:if="{{e}}" class="data-v-eea72321" u-s="{{['header']}}" bindclick="{{d}}" u-i="eea72321-1,eea72321-0" bind:__l="__l" u-p="{{e}}"><view class="slot-box data-v-eea72321" slot="header"><image class="slot-image data-v-eea72321" mode="widthFix"></image></view></uni-list-item></uni-list></view></view>
\ No newline at end of file
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.box.data-v-eea72321 {
width: 100vw;
overflow: hidden;
}
.rMainBox.data-v-eea72321 {
box-sizing: border-box;
padding: 20rpx 25rpx 0;
margin: 25rpx;
}
.userInfoBox.data-v-eea72321 {
height: 200rpx;
}
.nameBox.data-v-eea72321 {
position: absolute;
left: 180rpx;
top: 70rpx;
font-size: 30rpx;
}
.nameBox view.data-v-eea72321 {
color: #7b7f83;
font-size: 26rpx;
margin-top: 10rpx;
}
.goback.data-v-eea72321 {
position: absolute;
color: #fff;
top: 100rpx;
left: 35rpx;
}
.forAdmin.data-v-eea72321 {
padding: 25rpx;
box-sizing: border-box;
}
.onlyCardBottom.data-v-eea72321 {
position: relative;
width: 660rpx;
margin: auto;
height: 90rpx;
}
.onlyCardBottom .bbg.data-v-eea72321 {
height: 90rpx;
width: 660rpx;
}
.onlyCardBottom .cardBottom.data-v-eea72321 {
width: 660rpx;
background: transparent;
height: 90rpx;
}
.onlyCardBottom .cardBottom text.data-v-eea72321 {
font-size: 28rpx;
color: #925921;
}
.onlyCardBottom .cardBottom .renewBtn.data-v-eea72321 {
background: #874f02;
color: #fff;
}
.headImg.data-v-eea72321 {
border-radius: 50%;
position: relative;
top: 50rpx;
overflow: hidden;
width: 100rpx;
height: 100rpx;
border: 4px solid #ffffff;
background: #c4f9cb;
left: 40rpx;
}
.headImg button.data-v-eea72321 {
display: block;
padding: 0;
}
.headImg image.data-v-eea72321 {
width: 100rpx;
height: 100rpx;
display: block;
}
.slot-image.data-v-eea72321 {
width: 50rpx;
position: relative;
top: -8rpx;
height: 50rpx;
margin-right: 30rpx;
}
.funcBar.data-v-eea72321 {
display: flex;
background: #fff;
width: 700rpx;
height: 140rpx;
justify-content: space-around;
}
.funcBar view.data-v-eea72321 {
display: flex;
align-items: center;
font-size: 36rpx;
}
.funcBar image.data-v-eea72321 {
width: 80rpx;
height: 80rpx;
}
.topbgimg.data-v-eea72321 {
width: 100vw;
position: absolute;
z-index: -1;
}
.reportItembox.data-v-eea72321 {
overflow: hidden;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.reportItem.data-v-eea72321 {
background: #fff;
border-radius: 15rpx;
width: 340rpx;
margin-top: 25rpx;
}
.reportItem .t.data-v-eea72321 {
border-bottom: 1px solid #e5e5e5;
height: 70rpx;
line-height: 70rpx;
color: #2b3133;
font-size: 30rpx;
padding-left: 36rpx;
}
.reportItem .rbody.data-v-eea72321 {
display: flex;
padding: 36rpx;
box-sizing: border-box;
}
.reportItem .rbody view.data-v-eea72321 {
font-size: 26rpx;
color: #888;
width: 40%;
}
.reportItem .rbody text.data-v-eea72321 {
color: #00c176;
font-weight: bold;
font-size: 36rpx;
display: block;
margin-bottom: 20rpx;
}
.changephonepop.data-v-eea72321 {
width: 100%;
}
.changephonepop view.data-v-eea72321 {
width: 100%;
margin: 0 0 30rpx;
}
.changephonepop view input.data-v-eea72321 {
width: 100%;
background: #f4f4f4;
font-size: 30rpx;
height: 80rpx;
padding: 0 15rpx;
box-sizing: border-box;
line-height: 80rpx;
}
.changephonepop view.ffff.data-v-eea72321 {
display: flex;
}
.changephonepop view button.data-v-eea72321 {
font-size: 24rpx;
margin-left: 10rpx;
white-space: nowrap;
width: 260rpx;
line-height: 80rpx;
background: linear-gradient(90deg, #00c176, #3ed89b);
color: #fff;
padding: 0;
border: none;
}
\ No newline at end of file
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/huamingqi/projects/ztx/ztx_wx_minapp/pages/webView/auth.vue"]]);
wx.createPage(MiniProgramPage);
{
"navigationBarTitleText": "认证查询",
"enablePullDownRefresh": false,
"usingComponents": {}
}
\ No newline at end of file
<web-view src="https://newsystem.taekwondo.org.cn/#/authAccurate"></web-view>
\ No newline at end of file
{
"appid": "wx523ee37fff4fea9d",
"compileType": "miniprogram",
"libVersion": "3.0.0",
"packOptions": {
"ignore": [],
"include": []
},
"setting": {
"coverView": true,
"es6": true,
"postcss": true,
"minified": true,
"enhance": true,
"showShadowRootInWxmlPanel": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"condition": false
},
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}
\ No newline at end of file
"use strict";
const common_vendor = require("../common/vendor.js");
const config = require("../config.js");
const training_train = require("./train.js");
require("../common/request.js");
require("../common/login.js");
require("../common/aes.js");
if (!Array) {
const _easycom_uni_search_bar2 = common_vendor.resolveComponent("uni-search-bar");
const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more");
(_easycom_uni_search_bar2 + _easycom_uni_load_more2)();
}
const _easycom_uni_search_bar = () => "../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js";
const _easycom_uni_load_more = () => "../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js";
if (!Math) {
(_easycom_uni_search_bar + common_vendor.unref(uniList) + _easycom_uni_load_more)();
}
const uniList = () => "./components/ulist/ulist.js";
const _sfc_main = {
__name: "trainList",
setup(__props) {
common_vendor.ref();
const items = common_vendor.ref(["全部", "报名中", "培训进行中", "已结束"]);
const current = common_vendor.ref(0);
const name = common_vendor.ref();
const Nindex = common_vendor.ref(0);
common_vendor.ref([
{
value: 1,
text: "全部"
},
{
value: 2,
text: "报名中"
},
{
value: 3,
text: "进行中"
},
{
value: 4,
text: "即将开始"
},
{
value: 5,
text: "报名未开始"
},
{
value: 6,
text: "培训未开始"
},
{
value: 7,
text: "已结束"
}
]);
const list = common_vendor.ref();
const total = common_vendor.ref();
const status = common_vendor.ref("more");
common_vendor.ref();
const data = common_vendor.reactive({
query: {
flag: "",
pageSize: 10,
pageNum: 1
},
contentText: {
contentdown: "",
contentrefresh: "加载中",
contentnomore: "没有更多"
}
});
const {
query,
contentText
} = common_vendor.toRefs(data);
common_vendor.onLoad((option) => {
initData();
});
function initData() {
query.value.flag = current.value;
training_train.getTrainList(query.value).then((res) => {
list.value = res.rows;
total.value = res.total;
});
}
function detail(item) {
let path = `/training/detailPage?trainId=${item.id}`;
common_vendor.index.navigateTo({
url: path
});
}
function nvaText(index) {
Nindex.value = index;
current.value = index;
initData();
console.log(index);
}
common_vendor.onPullDownRefresh(() => {
query.value.flag = 0;
initData();
common_vendor.wx$1.stopPullDownRefresh();
});
common_vendor.onReachBottom(async () => {
console.log(list.value.length, total.value);
if (list.value.length >= total.value) {
status.value = "noMore";
return false;
} else {
status.value = "loading";
query.value.pageNum += 1;
let res = await training_train.getTrainList(query.value);
let arr = res.rows;
list.value = list.value.concat(arr);
total.value = res.total;
status.value = "noMore";
}
});
return (_ctx, _cache) => {
return {
a: common_vendor.o(initData),
b: common_vendor.o(initData),
c: common_vendor.o(initData),
d: common_vendor.o(($event) => name.value = $event),
e: common_vendor.p({
radius: "30",
placeholder: "搜索",
clearButton: "auto",
Button: "none",
cancelText: "",
bgColor: "#F4F6FA",
modelValue: name.value
}),
f: common_vendor.f(items.value, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.o(($event) => nvaText(index), index),
c: Nindex.value == index ? 1 : "",
d: index
};
}),
g: common_vendor.f(list.value, (item, k0, i0) => {
return {
a: "75917cce-1-" + i0,
b: common_vendor.p({
pic: common_vendor.unref(config.config).trainUrl_api + item.cover.replaceAll("\\", "/"),
title: item.name,
card: item.signStatusStr,
tags: item.projectsStr,
timer: item.signTimeRange
}),
c: item.trainId,
d: common_vendor.o(($event) => detail(item), item.trainId)
};
}),
h: common_vendor.p({
status: status.value,
["content-text"]: common_vendor.unref(contentText)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/yangyang/ztx_wx_minapp/training/trainList.vue"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
{
"navigationBarTitleText": "新闻",
"enablePullDownRefresh": false,
"usingComponents": {}
}
\ No newline at end of file
{
"navigationBarTitleText": "会员系统",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": {}
}
\ No newline at end of file
<view><web-view src="http://192.168.1.194:5173"></web-view></view>
\ No newline at end of file
<template>
<view>
<web-view>
<web-view src="http://192.168.1.194:5173">
</web-view>
</view>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!