diff --git a/components/fuyu-MixSwiper/fuyu-MixSwiper.vue b/components/fuyu-MixSwiper/fuyu-MixSwiper.vue index 9aec6b3..23d6f3e 100644 --- a/components/fuyu-MixSwiper/fuyu-MixSwiper.vue +++ b/components/fuyu-MixSwiper/fuyu-MixSwiper.vue @@ -1,7 +1,7 @@ @@ -229,15 +239,15 @@ export default { }; }, onLoad(option) { - // this.list = [] - // this.page = 1 - // if (option?.status) { - // this.selected = option.status - // this.getList(option.status); - // } else { - // this.getList('0'); - // } - this.getHotList(this.status); + this.list = [] + this.page = 1 + if (option?.status) { + this.selected = option.status + this.getHotList(option.status); + } else { + this.getHotList('0'); + } + }, // onReachBottom() { @@ -318,6 +328,37 @@ export default { url: "/pages/center/detail?id=" + id, }); }, + toHexiao(){ + // 小程序内调用扫码API + let that = this; + wx.scanCode({ + success(res) { + if (res.path) { // 扫描的是小程序码 + const sceneValue = decodeURIComponent(res.path.split('=')[1]); + that.navigateToVerifyPage(sceneValue); + } else if (res.result.startsWith('https://wxaurl.cn')) { // 扫描短链接 + that.navigateToVerifyPage(res.result); + } + } + }); + }, + + // 跳转核销页面并解密场景值 + navigateToVerifyPage(e) { + console.log(e); + let urlParams = this.parseQueryString(e.split('?')[1]); + console.log(urlParams); + uni.navigateTo({ + url: '/packageA/my/cancelActivity?code='+urlParams.code+'&id='+urlParams.id + }); + }, + parseQueryString(query) { + return query.split('&').reduce((obj, pair) => { + const [key, value] = pair.split('='); + obj[key] = decodeURIComponent(value || ''); // 处理空值和URI编码 + return obj; + }, {}); + }, // 取消支付 Cancel(order_no) { console.log(order_no); @@ -882,6 +923,7 @@ export default { .hot { // margin-top: 30rpx; margin-bottom: 70rpx; + min-height: 100vh; .hot-top { // padding-bottom: 12rpx; @@ -929,6 +971,7 @@ export default { .right { margin-left: 24rpx; width: 100%; + padding: 20rpx 0; .title { width: 95%; @@ -1030,7 +1073,7 @@ export default { .bottom { margin: 32rpx 0 32rpx 24rpx; - width: 626rpx; + width: 666rpx; .number { font-family: Source Han Sans CN, Source Han Sans CN; @@ -1038,7 +1081,7 @@ export default { font-size: 26rpx; color: #3d3d3d; line-height: 30rpx; - width: 242rpx; + width: 150rpx; margin-left: 20rpx; } @@ -1068,13 +1111,25 @@ export default { } } .part { - width: 180rpx; + width: 168rpx; height: 70rpx; background: url(@/static/index/shangche.png); background-size: 168rpx 70rpx; + background-repeat: no-repeat; font-family: "YouSheBiaoTiHei"; font-weight: 400; font-size: 42rpx; color: #bbfc5b; } +.part1 { + width: 168rpx; + height: 70rpx; + background: url(@/static/index/hexiao.png); + background-size: 168rpx 70rpx; + background-repeat: no-repeat; + font-family: "YouSheBiaoTiHei"; + font-weight: 400; + font-size: 42rpx; + color: #323232; +} diff --git a/packageA/my/pendinPay.vue b/packageA/my/pendinPay.vue index 4ba0614..4207555 100644 --- a/packageA/my/pendinPay.vue +++ b/packageA/my/pendinPay.vue @@ -11,7 +11,7 @@ {{detail.title}} - + {{ detailAny.user.nickname }} {{ detailAny.join_info.people_number }}人玩过 @@ -845,7 +845,7 @@ if (res.errMsg == "requestPayment:ok") { that.order_no = '' uni.redirectTo({ - url: "/packageA/my/orderList?status=" + 3 + url: "/packageA/my/exercise?status=" + 3 }) console.log('支付成功', res) } else { diff --git a/packageA/my/pendinPayDetail.vue b/packageA/my/pendinPayDetail.vue index b622589..bb6b24a 100644 --- a/packageA/my/pendinPayDetail.vue +++ b/packageA/my/pendinPayDetail.vue @@ -14,8 +14,7 @@ {{ detailAny.user.nickname }} - {{ detailAny.join_info.people_number }}人玩过 - #{{ items_t }} + {{ detailAny.join_info.people_number }}人玩过 ¥{{detailAny.totalprice}} @@ -31,6 +30,7 @@ @@ -43,11 +43,36 @@ + + + 核销二维码 + + + + + + + + + + + + + 订单状态 - {{detailAny.status == 0 ? '待支付' : '' }} + 待核销 订单编号 @@ -271,6 +296,7 @@ titleStyle: { color: '#FFFFFF' }, + qrcodesurl:'' //二维码地址 }; }, @@ -303,15 +329,14 @@ this.getShare() }, - methods: { - + methods: { //星期 dateWeeks(timestamp) { return dateWeek(timestamp) }, //完整时间 formattime(e){ - return dayjs(e).format('YYYY-MM-DD HH:mm:ss') + return dayjs(e*1000).format('YYYY-MM-DD HH:mm:ss') }, overlayShow() { @@ -458,6 +483,7 @@ }).then(res => { if (res.code == 1) { this.detail = res.data.detail.detail; + this.qrcodesurl = res.data.detail.ordercode[0].miniurl; this.detailAny = res.data.detail; } else { uni.showToast({ @@ -931,8 +957,7 @@ color: #7A7A7A; span { - // width: 600rpx; - // height: 40rpx; + // height: 80rpx; font-family: Source Han Sans CN, Source Han Sans CN; font-weight: 400; font-size: 26rpx; @@ -979,8 +1004,32 @@ background: #ffffff; margin-top:20rpx; border-radius: 44rpx; + .third-top{ + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 36rpx; + color: #323232; + line-height: 50rpx; + margin-top: 30rpx; + margin-left:30rpx; + position: relative; + z-index: 10; + + span{ + position: relative; + .icons{ + width: 37rpx; + height: 20rpx; + position: absolute; + left: 0; + bottom: 0; + z-index: -1; + } + } + } .third-center { padding: 30rpx; + position: relative; .hui { font-family: PingFang SC, PingFang SC; font-weight: 500; diff --git a/packageA/my/pendinPayStatus.vue b/packageA/my/pendinPayStatus.vue new file mode 100644 index 0000000..3d6f97a --- /dev/null +++ b/packageA/my/pendinPayStatus.vue @@ -0,0 +1,893 @@ + + + + + + \ No newline at end of file diff --git a/packageA/my/person-detail.vue b/packageA/my/person-detail.vue index e962a14..206d3e5 100644 --- a/packageA/my/person-detail.vue +++ b/packageA/my/person-detail.vue @@ -23,107 +23,51 @@ - 姓名 + 银行卡 - - - - - - 性别 - - - - - - 出生日期 - - - - - - - - - - - 职业 - - - - - - - - - 手机号 - - - - - + + - + 退出账号 + 保存 - + - + 更换 - + 更换 - + 更换 - + 更换 @@ -145,6 +89,7 @@ export default { data() { return { + typeop: '', avatarStyle: { display: 'flex', alignItems: 'center', @@ -179,13 +124,13 @@ style: { width: '690rpx', height: '90rpx', - borderRadius: '59rpx', - background: '#008CFF', - fontSize: '34rpx', - color: '#fff', - fontWeight: 'bold', - lineHeight: '166rpx', - border: 'none' + borderRadius: '148rpx', + background: '#323232', + fontSize: '36rpx', + color: '#BBFC5B', + lineHeight: '90rpx', + border: 'none', + fontFamily: "YouSheBiaoTiHei" }, niName: '', realname: '', @@ -253,7 +198,10 @@ ] } }, - onLoad() { + onLoad(options) { + if (options) { + this.typeop = options.type; + } const userInfo = uni.getStorageSync('userInfo') this.phoneNumber = userInfo.mobile this.niName = userInfo.nickname @@ -264,15 +212,21 @@ this.getDetail() }, methods: { + out(){ + uni.clearStorageSync() + uni.reLaunch({ + url: '/pages/my/index' + }) + }, submit() { console.log(this.avatar,'this.avatar') uni.$u.http.post('/api/user/profile', { avatar: this.avatar, nickname: this.niName, - work: this.zhiYe, - birthday: this.birthday, - realname: this.realname, - gender: this.gender == '男' ? '1' : '0', + // work: this.zhiYe, + // birthday: this.birthday, + // realname: this.realname, + // gender: this.gender == '男' ? '1' : '0', update_fields: ['nickname', 'birthday', 'realname', 'gender', 'work','avatar'] }).then(res => { if (res.code == 1) { @@ -404,13 +358,13 @@ clickAvatar(index) { let avatar = '' if (index == 0) { - avatar = 'https://testy.hschool.com.cn//uploads/20241218/dea7681e46c3a2efbf3bdbab35ea2f66.png' + avatar = 'https://naweigetetest2.hschool.com.cn/dyqc/img1.png' } else if (index == 1) { - avatar = 'https://testy.hschool.com.cn//uploads/20241218/961fef0bae1a3cc5381cec0bbffa5ea6.png' + avatar = 'https://naweigetetest2.hschool.com.cn/dyqc/img2.png' } else if (index == 2) { - avatar = 'https://testy.hschool.com.cn//uploads/20241218/051a964f45acfaa9a4a7a9f2a8d7440c.png' + avatar = 'https://naweigetetest2.hschool.com.cn/dyqc/img3.png' } else if (index == 3) { - avatar = 'https://testy.hschool.com.cn/uploads/20241218/1d0e2d8aabcd99a192dc3073c9bd7edb.png' + avatar = 'https://naweigetetest2.hschool.com.cn/dyqc/img4.png' } this.avatar = avatar console.log(this.avatar,'this.avatar') @@ -613,6 +567,7 @@ height: 166rpx; background: #FFFFFF; box-shadow: 0rpx -2rpx 4rpx 0rpx rgba(186, 189, 199, 0.2); + } .avatar_choose { @@ -632,6 +587,7 @@ width: 150rpx; height: 150rpx; margin-bottom: 20rpx; + border-radius: 50%; } .choose_btn { diff --git a/pages.json b/pages.json index f907abc..2b25112 100644 --- a/pages.json +++ b/pages.json @@ -213,6 +213,12 @@ "navigationBarTitleText": "待核销订单" } }, + { + "path": "my/pendinPayStatus", + "style": { + "navigationBarTitleText": "已完成订单" + } + }, { "path": "my/cancel", diff --git a/pages/activity/index.vue b/pages/activity/index.vue index 4eacc9f..1287142 100644 --- a/pages/activity/index.vue +++ b/pages/activity/index.vue @@ -10,14 +10,19 @@ 搜索 --> - - + + - + + + + 暂无活动消息~ + + + 已 结 束 + 报 名 - - + --> + + @@ -171,7 +177,7 @@ \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 4610c90..225819b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -10,7 +10,9 @@ - + + + 搜索 + @@ -71,7 +74,7 @@ {{ item.title }} - {{ item.user.nickname }} + {{ item.user.nickname }} #{{ items_t }} @@ -89,9 +92,9 @@ {{ '报名中' }} - {{ '进行中' }} - {{ dateWeeks(item.sign_start_time) }}| - {{ item.address_detail }} + + {{ dateWeeks(item.start_time) }}| + {{ item.address_detail }} @@ -104,7 +107,7 @@ - + - @@ -158,22 +161,27 @@ - 全部标签 - - - - - {{ item.name }} - - - + 全部标签 + + + + + + + {{ item.name }} + + + + + + - + @@ -411,7 +419,7 @@ export default { page: 1, limit: 6, order: "normal", - status: "2,3,4",//5 已结束 + status: "2",//5 已结束 auth_status: 1 //审核通过的 }, }) @@ -608,12 +616,21 @@ export default { margin-top: 10rpx; margin-bottom: 30rpx; position: relative; + .u-search{ + background: rgba($color: #FFFFFF, $alpha: 0.6); + ::v-deep .u-search__content{ + background: rgba($color: #FFFFFF, $alpha: 0.6); + } + ::v-deep .u-search__content__input{ + background: rgba($color: #FFFFFF, $alpha: 0.6); + } + } .searchBtn{ position:absolute; width: 133rpx; height: 100%; background: #323232 ; - border-radius: 30rpx; + border-radius: 40rpx; font-family: PingFang SC, PingFang SC; font-weight: 400; font-size: 26rpx; @@ -628,7 +645,7 @@ export default { .hot { // margin-top: 30rpx; - margin-bottom: 70rpx; + margin-bottom: 100rpx; } } @@ -648,13 +665,13 @@ export default { } .right { - margin-left: 24rpx; + margin-left: 30rpx; width: 100%; .title { width: 95%; font-family: PingFang SC, PingFang SC; - font-weight: 500; + font-weight: bold; font-size: 30rpx; color: #323232; } @@ -733,8 +750,9 @@ export default { font-weight: 400; font-size: 24rpx; color: #323232; - line-height: 42rpx; - text-align: center; + display: flex; + justify-content: center; + align-items: center; } .time_texs{ background: #FF4810; @@ -745,7 +763,7 @@ export default { .imgs_con{ width: 202rpx; height: 202rpx; - margin-right: 20rpx; + margin-right: 12rpx; &:first-child{ border-radius: 18rpx 0 0 18rpx; } @@ -758,7 +776,7 @@ export default { .bottom { margin: 32rpx 0 32rpx 24rpx; - width: 626rpx; + width: 655rpx; .toptext{ width: 480rpx; .smalld{ @@ -894,7 +912,7 @@ export default { } .part { - width: 180rpx; + width: 162rpx; height: 70rpx; background: url(@/static/index/shangche.png); background-size: 162rpx 70rpx; @@ -905,7 +923,7 @@ export default { color: #BBFC5B; } .part1{ - width: 180rpx; + width: 162rpx; height: 70rpx; background: url(@/static/index/shangchew.png); background-size: 162rpx 70rpx; @@ -924,28 +942,31 @@ export default { display: flex; flex-direction: column; align-items: center; - height: 1304rpx; + height: 1040rpx; position: relative; img { position: absolute; width: 750rpx; - height: 1304rpx; + height: 1040rpx; top: -164rpx; z-index: 0; } .bqlist{ - margin-top: 160rpx; + margin-top: 130rpx; z-index: 1; margin-left: 80rpx; .allmybqs{ flex-wrap: wrap; width: 720rpx; + margin-top:20rpx ; } .allbqs{ - overflow: scroll; + display: flex; + overflow-y: scroll; flex-wrap: wrap; height: 620rpx; - width: 720rpx; + width: 692rpx; + margin-top:20rpx ; } .bqpiece{ width: 210rpx; diff --git a/pages/my/index.vue b/pages/my/index.vue index b612529..703ee34 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -3,20 +3,23 @@ - - + + - - {{userName}} - + + + {{userName}} + + 带着热爱,在搭子圈里撒野~ + + style="width: 50rpx; height: 50rpx;position: absolute;right: 0;" @click="clickTop(2)"> - + @@ -69,7 +72,7 @@ > {{ item.title }} - {{ item.user.nickname }} + {{ item.user.nickname }} #{{ items_t }} @@ -88,10 +91,10 @@ {{ '报名中' }} - {{ dateWeeks(item.sign_start_time) }} |{{ item.address_detail }} @@ -104,8 +107,8 @@ - - + + - + {{ Number(item.join_info.people_number)+"人已上车" }} @@ -374,7 +377,10 @@ onShow() { this.getStatus() - this.token = uni.getStorageSync('token') + this.token = uni.getStorageSync('token'); + if (this.token) { + this.getUserInfo(); + } this.unread_number = this.number const userinfo = uni.getStorageSync('userInfo') const activityInfo = uni.getStorageSync('activityInfo') @@ -388,8 +394,10 @@ } this.actives = activityInfo.join_num; this.pushActives = activityInfo.release_num; + this.avatar = uni.getStorageSync('userInfo').avatar || '../../static/moren.png'; - let openidInfo = uni.getStorageSync('openidInfo') + let openidInfo = uni.getStorageSync('openidInfo'); + let _this = this; if (!openidInfo) { _this.miniLogin(); @@ -397,6 +405,7 @@ this.number(); this.getinit(); this.getHotList(); + }, created() { const systemInfo = uni.getSystemInfoSync(); @@ -425,9 +434,9 @@ .get("/api/school.new_activity/activity_list", { params: { page: 1, - limit: 1, - order: "normal", - status: "2,3,4", //5已结束 + limit: 3, + order: "hot", + status: "2", //5已结束 auth_status: 1, }, }) @@ -760,6 +769,11 @@ uni.setStorageSync('token', res.data.token) _this.getUserInfo() this.token = res.data.token + uni.showToast({ + title: '登陆成功', + icon: 'none', + duration: 2000 + }) // _this.$api.setCache('token', res.data.token); } else { uni.showToast({ @@ -786,15 +800,10 @@ uni.setStorageSync('userInfo', res.data.user_info) uni.setStorageSync('settleInfo', res.data.settle_info) uni.setStorageSync('activityInfo', res.data.activity_info) - uni.showToast({ - title: '登陆成功', - icon: 'none', - duration: 2000 - }) + this.showPopup = false this.userName = res.data.user_info.nickname; this.avatar = res.data.user_info.avatar; - this.actives = res.data.activity_info.join_num; this.pushActives = res.data.activity_info.release_num; @@ -859,7 +868,7 @@ // }, - clickTop() { + clickTop(val) { // uni.navigateTo({ // url: '/packageA/my/person-detail' // }) @@ -869,7 +878,7 @@ this.showPopup = true } else { uni.navigateTo({ - url: "/packageA/my/person-detail", + url: "/packageA/my/person-detail?type="+val, }) } }, @@ -929,7 +938,7 @@ .box { border-radius: 8rpx 8rpx 8rpx 8rpx; // padding-top: env(safe-area-inset-top); - padding-top: 170rpx; + padding-top: 200rpx; /* 顶部安全距离 */ .backImg { @@ -979,14 +988,15 @@ justify-content: space-between; .hea-left { - + width: 100%; + position: relative; .avatar { - width: 120rpx; - height: 120rpx; + width: 140rpx; + height: 140rpx; border-radius: 50%; } - margin-left: 20rpx; + .first-header { margin-left: 18rpx; @@ -996,7 +1006,7 @@ font-weight: 800; font-size: 34rpx; color: #181818; - line-height: 26rpx; + // line-height: 26rpx; } } @@ -1017,7 +1027,9 @@ } } - .hea-right {} + .hea-right { + // width: 20%; + } .line {} @@ -1026,7 +1038,7 @@ .top_box{ width: 690rpx; - margin-top: 52rpx; + margin-top: 32rpx; view{ background: #FFFFFF; border-radius: 18rpx; @@ -1043,7 +1055,7 @@ .p1{ width: 100%; font-family: PingFang SC, PingFang SC; - font-weight: 400; + font-weight: bold; font-size: 30rpx; color: #323232; } @@ -1177,7 +1189,7 @@ } } .service{ - margin-top: 42rpx; + margin-top: 30rpx; height: 206rpx; background: url("https://naweigetetest2.hschool.com.cn/dyqc/zhuliren.png"); background-size: 690rpx 206rpx; @@ -1185,37 +1197,33 @@ } .hot { // margin-top: 30rpx; - margin-bottom: 70rpx; + margin-bottom: 100rpx; - .hot-top { - // padding-bottom: 12rpx; - // border-bottom: 2rpx solid red; - .left { - background-image: url("/static/footer.png"); - background-repeat: no-repeat; - background-position: bottom; - - span { - width: 160rpx; - font-family: Source Han Sans CN, Source Han Sans CN; - font-weight: bold; - font-size: 40rpx; - color: #222222; - line-height: 47rpx; - } - } - - .more { - width: 104rpx; - height: 40rpx; - font-family: Source Han Sans CN, Source Han Sans CN; - font-weight: 400; - font-size: 26rpx; - color: #222222; - line-height: 30rpx; - } - } + } + + .part { + width: 162rpx; + height: 70rpx; + background: url(@/static/index/shangche.png); + background-size: 162rpx 70rpx ; + background-repeat: no-repeat; + font-family: 'YouSheBiaoTiHei'; + font-weight: 400; + font-size: 42rpx; + color: #BBFC5B; + } + .part1{ + width: 162rpx; + height: 70rpx; + background: url(@/static/index/shangchew.png); + background-size: 162rpx 70rpx; + background-repeat: no-repeat; + font-family: 'YouSheBiaoTiHei'; + font-weight: 400; + font-size: 42rpx; + color: #9C9C9C; +} .content { // height: 462rpx; // overflow-x: auto; @@ -1226,18 +1234,18 @@ .bbb { background: #ffffff; - margin-top: 30rpx; + margin-top: 24rpx; border-radius: 36rpx; } .right { - margin-left: 24rpx; + margin-left: 30rpx; width: 100%; .title { width: 95%; font-family: PingFang SC, PingFang SC; - font-weight: 500; + font-weight: bold; font-size: 30rpx; color: #323232; } @@ -1307,27 +1315,33 @@ font-size: 26rpx; color: #323232 ; line-height: 30rpx; - .time_tex{ - width: 116rpx; - height: 42rpx; - background: #BBFC5B; - border-radius: 159rpx; - font-weight: 400; + + .time_tex{ + width: 116rpx; + height: 42rpx; + background: #BBFC5B; + border-radius: 159rpx; + font-weight: 400; font-size: 24rpx; - color: #323232; - line-height: 42rpx; - text-align: center; - } + color: #323232; + display: flex; + justify-content: center; + align-items: center; + } + .time_texs{ + background: #FF4810; + color: #ffffff; + } + } .imgs_con{ width: 202rpx; height: 202rpx; - margin-right: 20rpx; + margin-right: 12rpx; &:first-child{ border-radius: 18rpx 0 0 18rpx; - } - &:nth-child(3){ + &:nth-child(3){ border-radius: 0 18rpx 18rpx 0; } } @@ -1336,9 +1350,13 @@ .bottom { margin: 32rpx 0 32rpx 24rpx; - - width: 626rpx; - + width: 655rpx; + .toptext{ + width: 480rpx; + .smalld{ + margin-left: 0 !important; + } + } .number { font-family: Source Han Sans CN, Source Han Sans CN; font-weight: 400; @@ -1374,14 +1392,4 @@ margin-right: 24rpx; } } - .part { - width: 180rpx; - height: 70rpx; - background: url(@/static/index/shangche.png); - background-size: 168rpx 70rpx ; - font-family: 'YouSheBiaoTiHei'; - font-weight: 400; - font-size: 42rpx; - color: #BBFC5B; - } \ No newline at end of file diff --git a/pages/tail.vue b/pages/tail.vue index 5476ee5..da740da 100644 --- a/pages/tail.vue +++ b/pages/tail.vue @@ -1,7 +1,7 @@ @@ -94,7 +94,8 @@ export default { right: 40rpx; width: 120rpx; height: 60rpx; - border-radius: 8rpx; + font-size: 26rpx; + border-radius: 40rpx; background-color: rgba(0, 0, 0, 0.6); color: #fff; text-align: center; diff --git a/static/index/hexiao.png b/static/index/hexiao.png new file mode 100644 index 0000000..ccf4324 Binary files /dev/null and b/static/index/hexiao.png differ diff --git a/static/message/activen.png b/static/message/activen.png new file mode 100644 index 0000000..2c708e0 Binary files /dev/null and b/static/message/activen.png differ diff --git a/static/message/message.png b/static/message/message.png new file mode 100644 index 0000000..838f811 Binary files /dev/null and b/static/message/message.png differ diff --git a/uni_modules/cc-protocolBox/components/cc-protocolBox/cc-protocolBox.vue b/uni_modules/cc-protocolBox/components/cc-protocolBox/cc-protocolBox.vue index 25ff373..4133811 100644 --- a/uni_modules/cc-protocolBox/components/cc-protocolBox/cc-protocolBox.vue +++ b/uni_modules/cc-protocolBox/components/cc-protocolBox/cc-protocolBox.vue @@ -1,12 +1,12 @@