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
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 <view @click="goPath()"> 25 <view @click="goPath()">
26 <image />考点查询 26 <image />考点查询
27 </view> 27 </view>
28 <view @click="goPath()"> 28 <view @click="goPath('/webView/vipSystem')">
29 <image />会员系统 29 <image />会员系统
30 </view> 30 </view>
31 <view @click="goPath('/myCenter/index')"> 31 <view @click="goPath('/myCenter/index')">
......
This diff could not be displayed because it is too large.
1 <template>
2 <view class="box">
3 <view class="topBg">
4 <view class="userInfoBox">
5 <view class="headImg">
6 <image mode="aspectFill" :src="avatarUrl"></image>
7 </view>
8 <view class="nameBox">
9 {{ user.nickName }}
10 <view>{{ user.phonenumber }}</view>
11 </view>
12 </view>
13 </view>
14 <view class="rMainBox">
15 <uni-list :border="false" class="myList">
16 <!-- <uni-list-item :border="false" title="个人信息" showArrow :to="`./myInfo`">
17 <template v-slot:header>
18 <view class="slot-box">
19 <image class="slot-image" src="/static/user_icon03.png" mode="widthFix"></image>
20 </view>
21 </template>
22 </uni-list-item>
23 <uni-list-item :border="false" title="参赛队信息" showArrow :to="`./teamList`">
24 <template v-slot:header>
25 <view class="slot-box">
26 <image class="slot-image" src="/static/user_icon06.png" mode="widthFix"></image>
27 </view>
28 </template>
29 </uni-list-item>
30 <uni-list-item :border="false" title="会员充值" showArrow :to="`./mycard/renew`">
31 <template v-slot:header>
32 <view class="slot-box">
33 <image class="slot-image" src="/static/user_icon01.png" mode="widthFix"></image>
34 </view>
35 </template>
36 </uni-list-item>
37
38 <uni-list-item :border="false" title="场地订单" showArrow :to="`./bills`">
39 <template v-slot:header>
40 <view class="slot-box">
41 <image class="slot-image" src="/static/user_icon02.png" mode="widthFix"></image>
42 </view>
43 </template>
44 </uni-list-item> -->
45
46 <uni-list-item :border="false" title="我的培训" showArrow clickable @click="goPath('/myCenter/mytrain/mytrain')">
47 <template v-slot:header>
48 <view class="slot-box">
49 <image class="slot-image" mode="widthFix"></image>
50 </view>
51 </template>
52 </uni-list-item>
53
54 <!-- <uni-list-item :border="false" title="我的赛事" showArrow :to="`./match`">
55 <template v-slot:header>
56 <view class="slot-box">
57 <image class="slot-image" src="/static/user_icon04.png" mode="widthFix"></image>
58 </view>
59 </template>
60 </uni-list-item> -->
61 </uni-list>
62 </view>
63
64 </view>
65 </template>
66
67 <script setup>
68 import * as my from '@/myCenter/center_api.js';
69 import * as loginServer from '@/common/login.js';
70 import { ref } from 'vue';
71 import { onLoad, onShow } from '@dcloudio/uni-app';
72
73 const user = ref({});
74 const app = getApp();
75
76 onShow(() => {
77 if (app.globalData.isLogin) {
78 init();
79 } else {
80 app.firstLoadCallback = () => {
81 init();
82 };
83 }
84 });
85 function init() {
86 console.log(app.globalData.isLogin)
87 if(app.globalData.userInfo){
88 const currUser = app.globalData.userInfo
89 user.value = currUser;
90 } else {
91 loginServer.getInfo().then(res=>{
92 const currUser = app.globalData.userInfo
93 user.value = currUser
94 })
95 }
96 }
97
98 function goBack() {
99 uni.navigateBack({});
100 }
101 // function goQcode() {
102 // uni.scanCode({
103 // onlyFromCamera: true,
104 // success: function(res) {
105 // console.log('条码类型:' + res.scanType);
106 // console.log('条码内容:' + res.result);
107 // api.scanQrCode(res.result).then(res => {
108 // uni.showModal({
109 // title: '提示',
110 // content: res.msg,
111 // success: function(res) {
112 // if (res.confirm) {
113 // console.log('确定');
114 // } else if (res.cancel) {
115 // console.log('取消');
116 // }
117 // }
118 // });
119 // });
120 // }
121 // });
122 // }
123 function building() {
124 uni.showToast({
125 title: '暂未开放,敬请期待。',
126 icon: 'none',
127 duration: 2000
128 });
129 }
130 function goPath(path) {
131 if(path)
132 uni.navigateTo({
133 url: path
134 });
135 }
136 </script>
137
138 <style scoped lang="scss">
139 .box {
140 width: 100vw;
141 overflow: hidden;
142 }
143 .rMainBox {
144 box-sizing: border-box;
145 padding: 20rpx 25rpx 0;
146 margin: 25rpx;
147 }
148 .userInfoBox {
149 height: 200rpx;
150 }
151 .nameBox {
152 position: absolute;
153 left: 180rpx;
154 top: 70rpx;
155 font-size: 30rpx;
156 }
157 .nameBox view {
158 color: #7b7f83;
159 font-size: 26rpx;
160 margin-top: 10rpx;
161 }
162 .goback {
163 position: absolute;
164 color: #fff;
165 top: 100rpx;
166 left: 35rpx;
167 }
168 .forAdmin {
169 padding: 25rpx;
170 box-sizing: border-box;
171 }
172 .topBg {
173 }
174 .onlyCardBottom {
175 position: relative;
176 width: 660rpx;
177 margin: auto;
178 height: 90rpx;
179 .bbg {
180 height: 90rpx;
181 width: 660rpx;
182 }
183 .cardBottom {
184 width: 660rpx;
185 background: transparent;
186 height: 90rpx;
187 text {
188 font-size: 28rpx;
189 color: #925921;
190 }
191 .renewBtn {
192 background: #874f02;
193 color: #fff;
194 }
195 }
196 }
197 .headImg {
198 border-radius: 50%;
199 position: relative;
200 top: 50rpx;
201 overflow: hidden;
202 width: 100rpx;
203 height: 100rpx;
204 border: 4px solid #ffffff;
205 background: #c4f9cb;
206 left: 40rpx;
207 button {
208 display: block;
209 padding: 0;
210 }
211 image {
212 width: 100rpx;
213 height: 100rpx;
214 display: block;
215 }
216 }
217
218 .slot-image {
219 width: 50rpx;
220 position: relative;
221 top: -8rpx;
222 height: 50rpx;
223 margin-right: 30rpx;
224 }
225
226 .myList {
227 }
228 .funcBar {
229 display: flex;
230 background: #fff;
231 width: 700rpx;
232 height: 140rpx;
233 justify-content: space-around;
234 }
235 .funcBar view {
236 display: flex;
237 align-items: center;
238 font-size: 36rpx;
239 }
240 .funcBar image {
241 width: 80rpx;
242 height: 80rpx;
243 }
244 .topbgimg {
245 width: 100vw;
246 position: absolute;
247 z-index: -1;
248 }
249 .reportItembox {
250 overflow: hidden;
251 display: flex;
252 flex-wrap: wrap;
253 justify-content: space-between;
254 }
255 .reportItem {
256 background: #fff;
257 border-radius: 15rpx;
258 width: 340rpx;
259 margin-top: 25rpx;
260 .t {
261 border-bottom: 1px solid #e5e5e5;
262 height: 70rpx;
263 line-height: 70rpx;
264 color: #2b3133;
265 font-size: 30rpx;
266 padding-left: 36rpx;
267 }
268 .rbody {
269 display: flex;
270 padding: 36rpx;
271 box-sizing: border-box;
272 view {
273 font-size: 26rpx;
274 color: #888;
275 width: 40%;
276 }
277 text {
278 color: #00c176;
279 font-weight: bold;
280 font-size: 36rpx;
281 display: block;
282 margin-bottom: 20rpx;
283 }
284 }
285 }
286 .changephonepop {
287 width: 100%;
288 }
289 .changephonepop view {
290 width: 100%;
291 margin: 0 0 30rpx;
292 }
293 .changephonepop view input {
294 width: 100%;
295 background: #f4f4f4;
296 font-size: 30rpx;
297 height: 80rpx;
298 padding: 0 15rpx;
299 box-sizing: border-box;
300 line-height: 80rpx;
301 }
302 .changephonepop view.ffff {
303 display: flex;
304 }
305 .changephonepop view button {
306 font-size: 24rpx;
307 margin-left: 10rpx;
308 white-space: nowrap;
309 width: 260rpx;
310 line-height: 80rpx;
311 background: linear-gradient(90deg, #00c176, #3ed89b);
312 color: #fff;
313 padding: 0;
314 border: none;
315 }
316 </style>
1 <template> 1 <template>
2 <web-view src="https://newsystem.taekwondo.org.cn/#/authAccurate">
3
4 </web-view>
2 </template> 5 </template>
3 6
4 <script> 7 <script>
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
122 query.value.flag = current.value; 122 query.value.flag = current.value;
123 train.getTrainList(query.value).then(res=>{ 123 train.getTrainList(query.value).then(res=>{
124 list.value = res.rows; 124 list.value = res.rows;
125 total.value = res.rows; 125 total.value = res.total;
126 }) 126 })
127 } 127 }
128 128
...@@ -152,7 +152,8 @@ ...@@ -152,7 +152,8 @@
152 152
153 // 上拉加载 153 // 上拉加载
154 onReachBottom(async () => { 154 onReachBottom(async () => {
155 if (list.value.length == total.value) { 155 console.log(list.value.length,total.value)
156 if (list.value.length >= total.value) {
156 status.value = 'noMore'; 157 status.value = 'noMore';
157 return false; 158 return false;
158 } else { 159 } else {
......
1 {
2 "pages": [
3 "pages/index/index",
4 "pages/index/login",
5 "pages/index/register",
6 "pages/index/binding",
7 "pages/myCenter/myCenter",
8 "pages/webView/auth"
9 ],
10 "subPackages": [
11 {
12 "root": "training",
13 "pages": [
14 "trainList",
15 "detailPage",
16 "trainSignUp"
17 ]
18 },
19 {
20 "root": "match",
21 "pages": [
22 "index",
23 "single",
24 "singleLs",
25 "sign_single",
26 "matchBill",
27 "matchPayDone",
28 "choose_sportman",
29 "team_choose_sportman",
30 "choose_coach",
31 "add_coach",
32 "add_rank",
33 "choose_project",
34 "projectList"
35 ]
36 },
37 {
38 "root": "myCenter",
39 "pages": [
40 "index",
41 "mytrain/mytrain",
42 "mytrain/myBill",
43 "mytrain/orderDetail"
44 ]
45 },
46 {
47 "root": "webView",
48 "pages": [
49 "newList/newList",
50 "vipSystem"
51 ]
52 }
53 ],
54 "window": {
55 "navigationStyle": "default",
56 "navigationBarTextStyle": "black",
57 "navigationBarBackgroundColor": "#ffffff",
58 "navigationBarTitleText": "中国跆协"
59 },
60 "tabBar": {
61 "list": [
62 {
63 "pagePath": "pages/index/index",
64 "text": "首页"
65 },
66 {
67 "pagePath": "pages/webView/auth",
68 "text": "认证查询"
69 },
70 {
71 "pagePath": "pages/myCenter/myCenter",
72 "text": "我的"
73 }
74 ]
75 },
76 "preloadRule": {
77 "pages/index/index": {
78 "network": "all",
79 "packages": [
80 "training",
81 "match",
82 "myCenter",
83 "webView"
84 ]
85 }
86 },
87 "permission": {},
88 "usingComponents": {}
89 }
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
1 "use strict";
2 const common_vendor = require("../../common/vendor.js");
3 const _sfc_main = {
4 __name: "index",
5 setup(__props) {
6 const app = getApp();
7 common_vendor.ref(null);
8 common_vendor.ref([]);
9 common_vendor.onShow(() => {
10 if (app.globalData.isLogin) {
11 init();
12 } else {
13 app.firstLoadCallback = () => {
14 init();
15 };
16 }
17 });
18 common_vendor.onLoad((option) => {
19 });
20 function goPath(path) {
21 if (path)
22 common_vendor.index.navigateTo({
23 url: path
24 });
25 }
26 function init() {
27 common_vendor.index.showLoading({
28 title: "加载中"
29 });
30 common_vendor.index.hideLoading();
31 }
32 return (_ctx, _cache) => {
33 return {
34 a: common_vendor.o(($event) => goPath("/training/trainList")),
35 b: common_vendor.o(($event) => goPath("/match/index")),
36 c: common_vendor.o(($event) => goPath("/training/trainList")),
37 d: common_vendor.o(($event) => goPath()),
38 e: common_vendor.o(($event) => goPath()),
39 f: common_vendor.o(($event) => goPath()),
40 g: common_vendor.o(($event) => goPath("/webView/vipSystem")),
41 h: common_vendor.o(($event) => goPath("/myCenter/index"))
42 };
43 };
44 }
45 };
46 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/yangyang/ztx_wx_minapp/pages/index/index.vue"]]);
47 wx.createPage(MiniProgramPage);
1 /**
2 * 这里是uni-app内置的常用样式变量
3 *
4 * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
5 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
6 *
7 */
8 /**
9 * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
10 *
11 * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
12 */
13 /* 颜色变量 */
14 /* 行为相关颜色 */
15 /* 文字基本颜色 */
16 /* 背景颜色 */
17 /* 边框颜色 */
18 /* 尺寸变量 */
19 /* 文字尺寸 */
20 /* 图片尺寸 */
21 /* Border Radius */
22 /* 水平间距 */
23 /* 垂直间距 */
24 /* 透明度 */
25 /* 文章场景相关 */
26 .logotop.data-v-224dede7 {
27 width: 510rpx;
28 height: 215rpx;
29 margin: 5vh auto 40rpx;
30 display: block;
31 }
32 .ren1.data-v-224dede7 {
33 width: 300rpx;
34 height: 560rpx;
35 position: absolute;
36 right: 0;
37 top: 0;
38 }
39 .ren2.data-v-224dede7 {
40 width: 456rpx;
41 height: 600rpx;
42 position: relative;
43 top: 20rpx;
44 }
45 .retop.data-v-224dede7 {
46 position: relative;
47 z-index: 1;
48 }
49 .page-bg.data-v-224dede7 {
50 background: #044a9f;
51 background-size: cover;
52 height: 100vh;
53 overflow: hidden;
54 position: relative;
55 }
56 .formbox.data-v-224dede7 {
57 background: #fff;
58 width: 700rpx;
59 padding: 30rpx 50rpx;
60 margin: auto;
61 border-radius: 20rpx;
62 }
63 .formbox .nav.data-v-224dede7 {
64 text-align: center;
65 position: relative;
66 padding: 0 0 30rpx;
67 }
68 .formbox .nav.active.data-v-224dede7 {
69 font-size: 30rpx;
70 color: #AD181F;
71 }
72 .formbox .nav.active.data-v-224dede7::after {
73 content: "";
74 position: absolute;
75 width: 25rpx;
76 height: 4rpx;
77 background: #AD181F;
78 border-radius: 2rpx;
79 left: 0;
80 right: 0;
81 margin: auto;
82 bottom: 20rpx;
83 }
84 .flex-item.data-v-224dede7 {
85 display: flex;
86 justify-content: space-between;
87 margin: 30rpx 0;
88 font-size: 28rpx;
89 }
90 .flex-item image.data-v-224dede7 {
91 width: 30rpx;
92 height: 30rpx;
93 margin-right: 16rpx;
94 }
95 .member.data-v-224dede7 {
96 color: #4C5359;
97 display: flex;
98 align-items: center;
99 }
100 .center-item.data-v-224dede7 {
101 text-align: center;
102 margin: 30rpx 0 0;
103 font-size: 30rpx;
104 }
105 .center-item .btn-red.data-v-224dede7 {
106 border-radius: 40rpx;
107 width: 600rpx;
108 line-height: 80rpx;
109 font-size: 36rpx;
110 }
111 .btn-red.data-v-224dede7 {
112 background: #AD181F;
113 color: #fff;
114 }
115 .text-red.data-v-224dede7 {
116 color: #AD181F;
117 }
118 .round-input-item.data-v-224dede7 {
119 overflow: hidden;
120 background: RGBA(247, 247, 248, 1);
121 border-radius: 40rpx;
122 padding: 0 0 0 30rpx;
123 height: 80rpx;
124 margin-bottom: 30rpx;
125 display: flex;
126 align-items: center;
127 }
128 .round-input-item image.data-v-224dede7 {
129 width: 180rpx;
130 height: 80rpx;
131 }
132 .round-input-item image.icon.data-v-224dede7 {
133 width: 30rpx;
134 height: 30rpx;
135 margin-right: 16rpx;
136 }
137 .round-input-item input.data-v-224dede7 {
138 border-left: 1rpx solid RGBA(214, 216, 219, 1);
139 padding: 0 0 0 20rpx;
140 font-size: 30rpx;
141 }
142 .round-input-item input.data-v-224dede7::-webkit-input-placeholder {
143 color: RGBA(158, 166, 174, 1);
144 font-size: 30rpx;
145 }
146 .round-input-item input.data-v-224dede7::placeholder {
147 color: RGBA(158, 166, 174, 1);
148 font-size: 30rpx;
149 }
150 .round-input-item input.data-v-224dede7::-moz-placeholder {
151 color: RGBA(158, 166, 174, 1);
152 font-size: 30rpx;
153 }
154 .round-input-item text.data-v-224dede7 {
155 font-size: 28rpx;
156 padding: 0 20rpx;
157 color: #014A9F;
158 }
159 .fixedagree.data-v-224dede7 {
160 position: fixed;
161 bottom: 5vh;
162 color: rgba(255, 255, 255, 0.7);
163 display: flex;
164 font-size: 24rpx;
165 width: 100vw;
166 justify-content: center;
167 }
168 .fixedagree image.data-v-224dede7 {
169 width: 40rpx;
170 height: 40rpx;
171 margin-right: 20rpx;
172 }
...\ No newline at end of file ...\ No newline at end of file
1 "use strict";
2 const common_vendor = require("../../common/vendor.js");
3 const common_login = require("../../common/login.js");
4 require("../../common/request.js");
5 require("../../config.js");
6 require("../../common/aes.js");
7 if (!Array) {
8 const _easycom_uni_list_item2 = common_vendor.resolveComponent("uni-list-item");
9 const _easycom_uni_list2 = common_vendor.resolveComponent("uni-list");
10 (_easycom_uni_list_item2 + _easycom_uni_list2)();
11 }
12 const _easycom_uni_list_item = () => "../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js";
13 const _easycom_uni_list = () => "../../uni_modules/uni-list/components/uni-list/uni-list.js";
14 if (!Math) {
15 (_easycom_uni_list_item + _easycom_uni_list)();
16 }
17 const _sfc_main = {
18 __name: "myCenter",
19 setup(__props) {
20 const user = common_vendor.ref({});
21 const app = getApp();
22 common_vendor.onShow(() => {
23 if (app.globalData.isLogin) {
24 init();
25 } else {
26 app.firstLoadCallback = () => {
27 init();
28 };
29 }
30 });
31 function init() {
32 console.log(app.globalData.isLogin);
33 if (app.globalData.userInfo) {
34 const currUser = app.globalData.userInfo;
35 user.value = currUser;
36 } else {
37 common_login.getInfo().then((res) => {
38 const currUser = app.globalData.userInfo;
39 user.value = currUser;
40 });
41 }
42 }
43 function goPath(path) {
44 if (path)
45 common_vendor.index.navigateTo({
46 url: path
47 });
48 }
49 return (_ctx, _cache) => {
50 return {
51 a: _ctx.avatarUrl,
52 b: common_vendor.t(user.value.nickName),
53 c: common_vendor.t(user.value.phonenumber),
54 d: common_vendor.o(($event) => goPath("/myCenter/mytrain/mytrain")),
55 e: common_vendor.p({
56 border: false,
57 title: "我的培训",
58 showArrow: true,
59 clickable: true
60 }),
61 f: common_vendor.p({
62 border: false
63 })
64 };
65 };
66 }
67 };
68 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"]]);
69 wx.createPage(MiniProgramPage);
1 {
2 "navigationBarTitleText": "我的",
3 "enablePullDownRefresh": false,
4 "usingComponents": {
5 "uni-list-item": "../../uni_modules/uni-list/components/uni-list-item/uni-list-item",
6 "uni-list": "../../uni_modules/uni-list/components/uni-list/uni-list"
7 }
8 }
...\ No newline at end of file ...\ No newline at end of file
1 <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 ...\ No newline at end of file
1 /**
2 * 这里是uni-app内置的常用样式变量
3 *
4 * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
5 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
6 *
7 */
8 /**
9 * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
10 *
11 * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
12 */
13 /* 颜色变量 */
14 /* 行为相关颜色 */
15 /* 文字基本颜色 */
16 /* 背景颜色 */
17 /* 边框颜色 */
18 /* 尺寸变量 */
19 /* 文字尺寸 */
20 /* 图片尺寸 */
21 /* Border Radius */
22 /* 水平间距 */
23 /* 垂直间距 */
24 /* 透明度 */
25 /* 文章场景相关 */
26 .box.data-v-eea72321 {
27 width: 100vw;
28 overflow: hidden;
29 }
30 .rMainBox.data-v-eea72321 {
31 box-sizing: border-box;
32 padding: 20rpx 25rpx 0;
33 margin: 25rpx;
34 }
35 .userInfoBox.data-v-eea72321 {
36 height: 200rpx;
37 }
38 .nameBox.data-v-eea72321 {
39 position: absolute;
40 left: 180rpx;
41 top: 70rpx;
42 font-size: 30rpx;
43 }
44 .nameBox view.data-v-eea72321 {
45 color: #7b7f83;
46 font-size: 26rpx;
47 margin-top: 10rpx;
48 }
49 .goback.data-v-eea72321 {
50 position: absolute;
51 color: #fff;
52 top: 100rpx;
53 left: 35rpx;
54 }
55 .forAdmin.data-v-eea72321 {
56 padding: 25rpx;
57 box-sizing: border-box;
58 }
59 .onlyCardBottom.data-v-eea72321 {
60 position: relative;
61 width: 660rpx;
62 margin: auto;
63 height: 90rpx;
64 }
65 .onlyCardBottom .bbg.data-v-eea72321 {
66 height: 90rpx;
67 width: 660rpx;
68 }
69 .onlyCardBottom .cardBottom.data-v-eea72321 {
70 width: 660rpx;
71 background: transparent;
72 height: 90rpx;
73 }
74 .onlyCardBottom .cardBottom text.data-v-eea72321 {
75 font-size: 28rpx;
76 color: #925921;
77 }
78 .onlyCardBottom .cardBottom .renewBtn.data-v-eea72321 {
79 background: #874f02;
80 color: #fff;
81 }
82 .headImg.data-v-eea72321 {
83 border-radius: 50%;
84 position: relative;
85 top: 50rpx;
86 overflow: hidden;
87 width: 100rpx;
88 height: 100rpx;
89 border: 4px solid #ffffff;
90 background: #c4f9cb;
91 left: 40rpx;
92 }
93 .headImg button.data-v-eea72321 {
94 display: block;
95 padding: 0;
96 }
97 .headImg image.data-v-eea72321 {
98 width: 100rpx;
99 height: 100rpx;
100 display: block;
101 }
102 .slot-image.data-v-eea72321 {
103 width: 50rpx;
104 position: relative;
105 top: -8rpx;
106 height: 50rpx;
107 margin-right: 30rpx;
108 }
109 .funcBar.data-v-eea72321 {
110 display: flex;
111 background: #fff;
112 width: 700rpx;
113 height: 140rpx;
114 justify-content: space-around;
115 }
116 .funcBar view.data-v-eea72321 {
117 display: flex;
118 align-items: center;
119 font-size: 36rpx;
120 }
121 .funcBar image.data-v-eea72321 {
122 width: 80rpx;
123 height: 80rpx;
124 }
125 .topbgimg.data-v-eea72321 {
126 width: 100vw;
127 position: absolute;
128 z-index: -1;
129 }
130 .reportItembox.data-v-eea72321 {
131 overflow: hidden;
132 display: flex;
133 flex-wrap: wrap;
134 justify-content: space-between;
135 }
136 .reportItem.data-v-eea72321 {
137 background: #fff;
138 border-radius: 15rpx;
139 width: 340rpx;
140 margin-top: 25rpx;
141 }
142 .reportItem .t.data-v-eea72321 {
143 border-bottom: 1px solid #e5e5e5;
144 height: 70rpx;
145 line-height: 70rpx;
146 color: #2b3133;
147 font-size: 30rpx;
148 padding-left: 36rpx;
149 }
150 .reportItem .rbody.data-v-eea72321 {
151 display: flex;
152 padding: 36rpx;
153 box-sizing: border-box;
154 }
155 .reportItem .rbody view.data-v-eea72321 {
156 font-size: 26rpx;
157 color: #888;
158 width: 40%;
159 }
160 .reportItem .rbody text.data-v-eea72321 {
161 color: #00c176;
162 font-weight: bold;
163 font-size: 36rpx;
164 display: block;
165 margin-bottom: 20rpx;
166 }
167 .changephonepop.data-v-eea72321 {
168 width: 100%;
169 }
170 .changephonepop view.data-v-eea72321 {
171 width: 100%;
172 margin: 0 0 30rpx;
173 }
174 .changephonepop view input.data-v-eea72321 {
175 width: 100%;
176 background: #f4f4f4;
177 font-size: 30rpx;
178 height: 80rpx;
179 padding: 0 15rpx;
180 box-sizing: border-box;
181 line-height: 80rpx;
182 }
183 .changephonepop view.ffff.data-v-eea72321 {
184 display: flex;
185 }
186 .changephonepop view button.data-v-eea72321 {
187 font-size: 24rpx;
188 margin-left: 10rpx;
189 white-space: nowrap;
190 width: 260rpx;
191 line-height: 80rpx;
192 background: linear-gradient(90deg, #00c176, #3ed89b);
193 color: #fff;
194 padding: 0;
195 border: none;
196 }
...\ No newline at end of file ...\ No newline at end of file
1 "use strict";
2 const common_vendor = require("../../common/vendor.js");
3 const _sfc_main = {};
4 function _sfc_render(_ctx, _cache) {
5 return {};
6 }
7 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/huamingqi/projects/ztx/ztx_wx_minapp/pages/webView/auth.vue"]]);
8 wx.createPage(MiniProgramPage);
1 {
2 "navigationBarTitleText": "认证查询",
3 "enablePullDownRefresh": false,
4 "usingComponents": {}
5 }
...\ No newline at end of file ...\ No newline at end of file
1 <web-view src="https://newsystem.taekwondo.org.cn/#/authAccurate"></web-view>
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "appid": "wx523ee37fff4fea9d",
3 "compileType": "miniprogram",
4 "libVersion": "3.0.0",
5 "packOptions": {
6 "ignore": [],
7 "include": []
8 },
9 "setting": {
10 "coverView": true,
11 "es6": true,
12 "postcss": true,
13 "minified": true,
14 "enhance": true,
15 "showShadowRootInWxmlPanel": true,
16 "packNpmRelationList": [],
17 "babelSetting": {
18 "ignore": [],
19 "disablePlugins": [],
20 "outputPath": ""
21 },
22 "condition": false
23 },
24 "condition": {},
25 "editorSetting": {
26 "tabIndent": "insertSpaces",
27 "tabSize": 2
28 }
29 }
...\ No newline at end of file ...\ No newline at end of file
1 "use strict";
2 const common_vendor = require("../common/vendor.js");
3 const config = require("../config.js");
4 const training_train = require("./train.js");
5 require("../common/request.js");
6 require("../common/login.js");
7 require("../common/aes.js");
8 if (!Array) {
9 const _easycom_uni_search_bar2 = common_vendor.resolveComponent("uni-search-bar");
10 const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more");
11 (_easycom_uni_search_bar2 + _easycom_uni_load_more2)();
12 }
13 const _easycom_uni_search_bar = () => "../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js";
14 const _easycom_uni_load_more = () => "../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js";
15 if (!Math) {
16 (_easycom_uni_search_bar + common_vendor.unref(uniList) + _easycom_uni_load_more)();
17 }
18 const uniList = () => "./components/ulist/ulist.js";
19 const _sfc_main = {
20 __name: "trainList",
21 setup(__props) {
22 common_vendor.ref();
23 const items = common_vendor.ref(["全部", "报名中", "培训进行中", "已结束"]);
24 const current = common_vendor.ref(0);
25 const name = common_vendor.ref();
26 const Nindex = common_vendor.ref(0);
27 common_vendor.ref([
28 {
29 value: 1,
30 text: "全部"
31 },
32 {
33 value: 2,
34 text: "报名中"
35 },
36 {
37 value: 3,
38 text: "进行中"
39 },
40 {
41 value: 4,
42 text: "即将开始"
43 },
44 {
45 value: 5,
46 text: "报名未开始"
47 },
48 {
49 value: 6,
50 text: "培训未开始"
51 },
52 {
53 value: 7,
54 text: "已结束"
55 }
56 ]);
57 const list = common_vendor.ref();
58 const total = common_vendor.ref();
59 const status = common_vendor.ref("more");
60 common_vendor.ref();
61 const data = common_vendor.reactive({
62 query: {
63 flag: "",
64 pageSize: 10,
65 pageNum: 1
66 },
67 contentText: {
68 contentdown: "",
69 contentrefresh: "加载中",
70 contentnomore: "没有更多"
71 }
72 });
73 const {
74 query,
75 contentText
76 } = common_vendor.toRefs(data);
77 common_vendor.onLoad((option) => {
78 initData();
79 });
80 function initData() {
81 query.value.flag = current.value;
82 training_train.getTrainList(query.value).then((res) => {
83 list.value = res.rows;
84 total.value = res.total;
85 });
86 }
87 function detail(item) {
88 let path = `/training/detailPage?trainId=${item.id}`;
89 common_vendor.index.navigateTo({
90 url: path
91 });
92 }
93 function nvaText(index) {
94 Nindex.value = index;
95 current.value = index;
96 initData();
97 console.log(index);
98 }
99 common_vendor.onPullDownRefresh(() => {
100 query.value.flag = 0;
101 initData();
102 common_vendor.wx$1.stopPullDownRefresh();
103 });
104 common_vendor.onReachBottom(async () => {
105 console.log(list.value.length, total.value);
106 if (list.value.length >= total.value) {
107 status.value = "noMore";
108 return false;
109 } else {
110 status.value = "loading";
111 query.value.pageNum += 1;
112 let res = await training_train.getTrainList(query.value);
113 let arr = res.rows;
114 list.value = list.value.concat(arr);
115 total.value = res.total;
116 status.value = "noMore";
117 }
118 });
119 return (_ctx, _cache) => {
120 return {
121 a: common_vendor.o(initData),
122 b: common_vendor.o(initData),
123 c: common_vendor.o(initData),
124 d: common_vendor.o(($event) => name.value = $event),
125 e: common_vendor.p({
126 radius: "30",
127 placeholder: "搜索",
128 clearButton: "auto",
129 Button: "none",
130 cancelText: "",
131 bgColor: "#F4F6FA",
132 modelValue: name.value
133 }),
134 f: common_vendor.f(items.value, (item, index, i0) => {
135 return {
136 a: common_vendor.t(item),
137 b: common_vendor.o(($event) => nvaText(index), index),
138 c: Nindex.value == index ? 1 : "",
139 d: index
140 };
141 }),
142 g: common_vendor.f(list.value, (item, k0, i0) => {
143 return {
144 a: "75917cce-1-" + i0,
145 b: common_vendor.p({
146 pic: common_vendor.unref(config.config).trainUrl_api + item.cover.replaceAll("\\", "/"),
147 title: item.name,
148 card: item.signStatusStr,
149 tags: item.projectsStr,
150 timer: item.signTimeRange
151 }),
152 c: item.trainId,
153 d: common_vendor.o(($event) => detail(item), item.trainId)
154 };
155 }),
156 h: common_vendor.p({
157 status: status.value,
158 ["content-text"]: common_vendor.unref(contentText)
159 })
160 };
161 };
162 }
163 };
164 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/yangyang/ztx_wx_minapp/training/trainList.vue"]]);
165 _sfc_main.__runtimeHooks = 6;
166 wx.createPage(MiniProgramPage);
1 {
2 "navigationBarTitleText": "新闻",
3 "enablePullDownRefresh": false,
4 "usingComponents": {}
5 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "navigationBarTitleText": "会员系统",
3 "enablePullDownRefresh": false,
4 "navigationStyle": "custom",
5 "usingComponents": {}
6 }
...\ No newline at end of file ...\ No newline at end of file
1 <view><web-view src="http://192.168.1.194:5173"></web-view></view>
...\ No newline at end of file ...\ No newline at end of file
1 <template> 1 <template>
2 <view> 2 <view>
3 <web-view> 3 <web-view src="http://192.168.1.194:5173">
4 4
5 </web-view> 5 </web-view>
6 </view> 6 </view>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!