no message
Showing
25 changed files
with
667 additions
and
26 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -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.
pages/myCenter/myCenter.vue
0 → 100644
| 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> |
| ... | @@ -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 { | ... | ... |
| ... | @@ -6,9 +6,9 @@ if (!Math) { | ... | @@ -6,9 +6,9 @@ if (!Math) { |
| 6 | "./pages/index/index.js"; | 6 | "./pages/index/index.js"; |
| 7 | "./pages/index/login.js"; | 7 | "./pages/index/login.js"; |
| 8 | "./pages/index/register.js"; | 8 | "./pages/index/register.js"; |
| 9 | "./webView/vipSystem.js"; | ||
| 10 | "./pages/index/binding.js"; | 9 | "./pages/index/binding.js"; |
| 11 | "./webView/newList/newList.js"; | 10 | "./pages/myCenter/myCenter.js"; |
| 11 | "./pages/webView/auth.js"; | ||
| 12 | "./training/trainList.js"; | 12 | "./training/trainList.js"; |
| 13 | "./training/detailPage.js"; | 13 | "./training/detailPage.js"; |
| 14 | "./training/trainSignUp.js"; | 14 | "./training/trainSignUp.js"; |
| ... | @@ -29,6 +29,8 @@ if (!Math) { | ... | @@ -29,6 +29,8 @@ if (!Math) { |
| 29 | "./myCenter/mytrain/mytrain.js"; | 29 | "./myCenter/mytrain/mytrain.js"; |
| 30 | "./myCenter/mytrain/myBill.js"; | 30 | "./myCenter/mytrain/myBill.js"; |
| 31 | "./myCenter/mytrain/orderDetail.js"; | 31 | "./myCenter/mytrain/orderDetail.js"; |
| 32 | "./webView/newList/newList.js"; | ||
| 33 | "./webView/vipSystem.js"; | ||
| 32 | } | 34 | } |
| 33 | const _sfc_main = { | 35 | const _sfc_main = { |
| 34 | onLaunch: function(options) { | 36 | onLaunch: function(options) { | ... | ... |
| ... | @@ -3,9 +3,9 @@ | ... | @@ -3,9 +3,9 @@ |
| 3 | "pages/index/index", | 3 | "pages/index/index", |
| 4 | "pages/index/login", | 4 | "pages/index/login", |
| 5 | "pages/index/register", | 5 | "pages/index/register", |
| 6 | "webView/vipSystem", | ||
| 7 | "pages/index/binding", | 6 | "pages/index/binding", |
| 8 | "webView/newList/newList" | 7 | "pages/myCenter/myCenter", |
| 8 | "pages/webView/auth" | ||
| 9 | ], | 9 | ], |
| 10 | "subPackages": [ | 10 | "subPackages": [ |
| 11 | { | 11 | { |
| ... | @@ -42,6 +42,13 @@ | ... | @@ -42,6 +42,13 @@ |
| 42 | "mytrain/myBill", | 42 | "mytrain/myBill", |
| 43 | "mytrain/orderDetail" | 43 | "mytrain/orderDetail" |
| 44 | ] | 44 | ] |
| 45 | }, | ||
| 46 | { | ||
| 47 | "root": "webView", | ||
| 48 | "pages": [ | ||
| 49 | "newList/newList", | ||
| 50 | "vipSystem" | ||
| 51 | ] | ||
| 45 | } | 52 | } |
| 46 | ], | 53 | ], |
| 47 | "window": { | 54 | "window": { |
| ... | @@ -57,11 +64,11 @@ | ... | @@ -57,11 +64,11 @@ |
| 57 | "text": "首页" | 64 | "text": "首页" |
| 58 | }, | 65 | }, |
| 59 | { | 66 | { |
| 60 | "pagePath": "webView/auth", | 67 | "pagePath": "pages/webView/auth", |
| 61 | "text": "认证查询" | 68 | "text": "认证查询" |
| 62 | }, | 69 | }, |
| 63 | { | 70 | { |
| 64 | "pagePath": "myCenter/index", | 71 | "pagePath": "pages/myCenter/myCenter", |
| 65 | "text": "我的" | 72 | "text": "我的" |
| 66 | } | 73 | } |
| 67 | ] | 74 | ] |
| ... | @@ -72,7 +79,8 @@ | ... | @@ -72,7 +79,8 @@ |
| 72 | "packages": [ | 79 | "packages": [ |
| 73 | "training", | 80 | "training", |
| 74 | "match", | 81 | "match", |
| 75 | "myCenter" | 82 | "myCenter", |
| 83 | "webView" | ||
| 76 | ] | 84 | ] |
| 77 | } | 85 | } |
| 78 | }, | 86 | }, | ... | ... |
| ... | @@ -19570,23 +19570,23 @@ const pages = [ | ... | @@ -19570,23 +19570,23 @@ const pages = [ |
| 19570 | } | 19570 | } |
| 19571 | }, | 19571 | }, |
| 19572 | { | 19572 | { |
| 19573 | path: "webView/vipSystem", | 19573 | path: "pages/index/binding", |
| 19574 | style: { | 19574 | style: { |
| 19575 | navigationBarTitleText: "会员系统", | 19575 | navigationBarTitleText: "账号绑定", |
| 19576 | enablePullDownRefresh: false | 19576 | enablePullDownRefresh: false |
| 19577 | } | 19577 | } |
| 19578 | }, | 19578 | }, |
| 19579 | { | 19579 | { |
| 19580 | path: "pages/index/binding", | 19580 | path: "pages/myCenter/myCenter", |
| 19581 | style: { | 19581 | style: { |
| 19582 | navigationBarTitleText: "账号绑定", | 19582 | navigationBarTitleText: "我的", |
| 19583 | enablePullDownRefresh: false | 19583 | enablePullDownRefresh: false |
| 19584 | } | 19584 | } |
| 19585 | }, | 19585 | }, |
| 19586 | { | 19586 | { |
| 19587 | path: "webView/newList/newList", | 19587 | path: "pages/webView/auth", |
| 19588 | style: { | 19588 | style: { |
| 19589 | navigationBarTitleText: "新闻资讯", | 19589 | navigationBarTitleText: "认证查询", |
| 19590 | enablePullDownRefresh: false | 19590 | enablePullDownRefresh: false |
| 19591 | } | 19591 | } |
| 19592 | } | 19592 | } |
| ... | @@ -19785,6 +19785,26 @@ const subPackages = [ | ... | @@ -19785,6 +19785,26 @@ const subPackages = [ |
| 19785 | } | 19785 | } |
| 19786 | } | 19786 | } |
| 19787 | ] | 19787 | ] |
| 19788 | }, | ||
| 19789 | { | ||
| 19790 | root: "webView", | ||
| 19791 | pages: [ | ||
| 19792 | { | ||
| 19793 | path: "newList/newList", | ||
| 19794 | style: { | ||
| 19795 | navigationBarTitleText: "新闻", | ||
| 19796 | enablePullDownRefresh: false | ||
| 19797 | } | ||
| 19798 | }, | ||
| 19799 | { | ||
| 19800 | path: "vipSystem", | ||
| 19801 | style: { | ||
| 19802 | navigationBarTitleText: "会员系统", | ||
| 19803 | enablePullDownRefresh: false, | ||
| 19804 | navigationStyle: "custom" | ||
| 19805 | } | ||
| 19806 | } | ||
| 19807 | ] | ||
| 19788 | } | 19808 | } |
| 19789 | ]; | 19809 | ]; |
| 19790 | const preloadRule = { | 19810 | const preloadRule = { |
| ... | @@ -19793,7 +19813,8 @@ const preloadRule = { | ... | @@ -19793,7 +19813,8 @@ const preloadRule = { |
| 19793 | packages: [ | 19813 | packages: [ |
| 19794 | "training", | 19814 | "training", |
| 19795 | "match", | 19815 | "match", |
| 19796 | "myCenter" | 19816 | "myCenter", |
| 19817 | "webView" | ||
| 19797 | ] | 19818 | ] |
| 19798 | } | 19819 | } |
| 19799 | }; | 19820 | }; |
| ... | @@ -19804,11 +19825,11 @@ const tabBar = { | ... | @@ -19804,11 +19825,11 @@ const tabBar = { |
| 19804 | text: "首页" | 19825 | text: "首页" |
| 19805 | }, | 19826 | }, |
| 19806 | { | 19827 | { |
| 19807 | pagePath: "webView/auth", | 19828 | pagePath: "pages/webView/auth", |
| 19808 | text: "认证查询" | 19829 | text: "认证查询" |
| 19809 | }, | 19830 | }, |
| 19810 | { | 19831 | { |
| 19811 | pagePath: "myCenter/index", | 19832 | pagePath: "pages/myCenter/myCenter", |
| 19812 | text: "我的" | 19833 | text: "我的" |
| 19813 | } | 19834 | } |
| 19814 | ] | 19835 | ] | ... | ... |
| ... | @@ -37,7 +37,7 @@ const _sfc_main = { | ... | @@ -37,7 +37,7 @@ const _sfc_main = { |
| 37 | d: common_vendor.o(($event) => goPath()), | 37 | d: common_vendor.o(($event) => goPath()), |
| 38 | e: common_vendor.o(($event) => goPath()), | 38 | e: common_vendor.o(($event) => goPath()), |
| 39 | f: common_vendor.o(($event) => goPath()), | 39 | f: common_vendor.o(($event) => goPath()), |
| 40 | g: common_vendor.o(($event) => goPath()), | 40 | g: common_vendor.o(($event) => goPath("/webView/vipSystem")), |
| 41 | h: common_vendor.o(($event) => goPath("/myCenter/index")) | 41 | h: common_vendor.o(($event) => goPath("/myCenter/index")) |
| 42 | }; | 42 | }; |
| 43 | }; | 43 | }; | ... | ... |
This diff could not be displayed because it is too large.
| 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/yangyang/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/yangyang/ztx_wx_minapp/pages/webView/auth.vue"]]); | ||
| 8 | wx.createPage(MiniProgramPage); |
| 1 | <web-view src="https://newsystem.taekwondo.org.cn/#/authAccurate"></web-view> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
File mode changed
| ... | @@ -81,7 +81,7 @@ const _sfc_main = { | ... | @@ -81,7 +81,7 @@ const _sfc_main = { |
| 81 | query.value.flag = current.value; | 81 | query.value.flag = current.value; |
| 82 | training_train.getTrainList(query.value).then((res) => { | 82 | training_train.getTrainList(query.value).then((res) => { |
| 83 | list.value = res.rows; | 83 | list.value = res.rows; |
| 84 | total.value = res.rows; | 84 | total.value = res.total; |
| 85 | }); | 85 | }); |
| 86 | } | 86 | } |
| 87 | function detail(item) { | 87 | function detail(item) { |
| ... | @@ -102,7 +102,8 @@ const _sfc_main = { | ... | @@ -102,7 +102,8 @@ const _sfc_main = { |
| 102 | common_vendor.wx$1.stopPullDownRefresh(); | 102 | common_vendor.wx$1.stopPullDownRefresh(); |
| 103 | }); | 103 | }); |
| 104 | common_vendor.onReachBottom(async () => { | 104 | common_vendor.onReachBottom(async () => { |
| 105 | if (list.value.length == total.value) { | 105 | console.log(list.value.length, total.value); |
| 106 | if (list.value.length >= total.value) { | ||
| 106 | status.value = "noMore"; | 107 | status.value = "noMore"; |
| 107 | return false; | 108 | return false; |
| 108 | } else { | 109 | } else { | ... | ... |
| 1 | { | 1 | { |
| 2 | "navigationBarTitleText": "会员系统", | 2 | "navigationBarTitleText": "会员系统", |
| 3 | "enablePullDownRefresh": false, | 3 | "enablePullDownRefresh": false, |
| 4 | "navigationStyle": "custom", | ||
| 4 | "usingComponents": {} | 5 | "usingComponents": {} |
| 5 | } | 6 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment