This commit is contained in:
王创世 2025-06-16 15:55:27 +08:00
parent 81f41f8067
commit b5da9d5dde
12 changed files with 120 additions and 90 deletions

View File

@ -1,13 +1,23 @@
<template> <template>
<view class="page-total"> <view class="page-total">
<view :class="isOverall ? 'tab-list_ip' : 'tab-list' "> <view :class="isOverall ? 'tab-list_ip' : 'tab-list' ">
<view class="list" v-for="(item,index) in TabBarList" @click="onTabBar(item,index)" :key="index" > <view class="list" v-for="(item,index) in TabBarList" @click="onTabBar(item,index)" :key="index">
<view v-if="item.index!=2">
<image :src="item.acImg" mode="widthFix" v-show="tabBarShow === index"></image> <image :src="item.acImg" mode="widthFix" v-show="tabBarShow === index"></image>
<image :src="item.img" mode="widthFix" v-show="tabBarShow != index" ></image> <image :src="item.img" mode="widthFix" v-show="tabBarShow != index"></image>
<!-- background: (index == 2) ? 'red' : '' --> <!-- background: (index == 2) ? 'red' : '' -->
<text :class="(tabBarShow === index) ? 'action' :''">{{item.name}}</text> <view :class="(tabBarShow === index) ? 'action' :'no'">{{item.name}}</view>
</view> </view>
<view v-if="item.index==2" style="position: absolute;bottom: 0rpx;text-align: center;">
<image :src="item.acImg" mode="widthFix" v-show="tabBarShow === index"
style="border-radius: 50%;width: 90rpx;height: 90rpx"></image>
<image :src="item.img" mode="widthFix" v-show="tabBarShow != index"
style="border-radius: 50%;width: 90rpx;height: 90rpx;"></image>
<!-- background: (index == 2) ? 'red' : '' -->
<view :class="(tabBarShow === index) ? 'action' :'no'" style="height: 64rpx;line-height: 64rpx;">{{item.name}}</view>
</view>
</view>
<view style="height: 100rpx;position: fixed;bottom: 0;width: 100%;background-color: #ffffff;"></view>
<!-- <span class="badge" v-if="number != 0"> <!-- <span class="badge" v-if="number != 0">
<u-badge type="warning " max="99" :value="number"></u-badge> <u-badge type="warning " max="99" :value="number"></u-badge>
</span> --> </span> -->
@ -25,7 +35,7 @@
}, },
data() { data() {
return { return {
TabBarList:[], TabBarList: [],
TabBarList1: [{ TabBarList1: [{
index: 0, index: 0,
name: '首页', name: '首页',
@ -41,8 +51,8 @@
{ {
index: 2, index: 2,
name: '发布', name: '发布',
img: '/static/center.png', img: '/static/home_add.png',
acImg: '/static/center1.png', acImg: '/static/home_add.png',
}, },
{ {
index: 3, index: 3,
@ -81,7 +91,7 @@
codeheight: 0, codeheight: 0,
isOverall: 0, isOverall: 0,
phoneModel: '', phoneModel: '',
initFb:'' initFb: ''
}; };
}, },
@ -150,7 +160,7 @@
onTabBar(item, index) { onTabBar(item, index) {
this.$emit('tabBarShow', index); this.$emit('tabBarShow', index);
console.log('index', index); console.log('index', index);
if(this.initFb == 1){ if (this.initFb == 1) {
switch (index) { switch (index) {
case 0: case 0:
@ -184,7 +194,7 @@
}) })
} }
}else{ } else {
switch (index) { switch (index) {
case 0: case 0:
@ -225,7 +235,6 @@
bottom: 0; bottom: 0;
width: 100%; width: 100%;
z-index: 10; z-index: 10;
// height: 166rpx;
} }
.tab-list { .tab-list {
@ -233,11 +242,12 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 128rpx; height: 100rpx;
padding-bottom: 27rpx; padding-bottom: 0;
background-color: #FFFFFF; background: url('/static/bottom_tab.png') no-repeat;
box-sizing:border-box; background-size: 100%;
box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; box-sizing: border-box;
.list { .list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -246,7 +256,7 @@
width: 200rpx; width: 200rpx;
height: 130rpx; height: 130rpx;
position: relative; position: relative;
z-index: 1000;
image { image {
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;
@ -254,10 +264,15 @@
margin-top: 12rpx; margin-top: 12rpx;
} }
text {
}
}
.no {
color: #C1C1C1; color: #C1C1C1;
font-size: 20rpx; font-size: 20rpx;
margin-top: 14rpx;
} }
.action { .action {
@ -265,8 +280,7 @@
font-weight: 400; font-weight: 400;
font-size: 20rpx; font-size: 20rpx;
} }
}
}
.tab-list_ip { .tab-list_ip {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -274,9 +288,12 @@
width: 100%; width: 100%;
height: 160rpx; height: 160rpx;
padding-bottom: 50rpx; padding-bottom: 50rpx;
background-color: #FFFFFF; background: url('/static/bottom_tab.png') no-repeat;
box-sizing:border-box; background-size: 100%;
box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; box-sizing: border-box;
z-index: 100;
// box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE;
.list { .list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -285,7 +302,7 @@
width: 200rpx; width: 200rpx;
height: 130rpx; height: 130rpx;
position: relative; position: relative;
z-index: 1000;
image { image {
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;

View File

@ -7,7 +7,7 @@
<view class="box flex justify-start flex-column align-items" :class="overlay ? 'no-scroll' : ''"> <view class="box flex justify-start flex-column align-items" :class="overlay ? 'no-scroll' : ''">
<view class="swiper"> <view class="swiper">
<u-swiper :list="detail.images" indicator indicatorInactiveColor="#D8D8D8" indicatorActiveColor="#323232" indicatorMode="dot" <u-swiper :list="detail.images" indicator indicatorInactiveColor="#D8D8D8" indicatorActiveColor="#323232" indicatorMode="dot"
:indicator-style="{ bottom: '60rpx', zIndex: 999 }" :height="height_sw" circular></u-swiper> :indicator-style="{ bottom: '60rpx', zIndex: 999 }" :height="height_sw" circular @click="swiperImg"></u-swiper>
</view> </view>
<view class="con-center w-100 flex justify-center flex-column align-items flex-start"> <view class="con-center w-100 flex justify-center flex-column align-items flex-start">
@ -430,6 +430,12 @@
}, },
methods: { methods: {
swiperImg(index){
uni.previewImage({
current:index,
urls: this.detail.images,
});
},
openImg(img) { openImg(img) {
uni.previewImage({ uni.previewImage({
urls: [img], urls: [img],

View File

@ -8,7 +8,7 @@
<view class="swiper"> <view class="swiper">
<u-swiper :list="detail.images" indicator indicatorInactiveColor="#D8D8D8" <u-swiper :list="detail.images" indicator indicatorInactiveColor="#D8D8D8"
indicatorActiveColor="#323232" indicatorMode="dot" :indicator-style="{ bottom: '60rpx', zIndex: 999 }" indicatorActiveColor="#323232" indicatorMode="dot" :indicator-style="{ bottom: '60rpx', zIndex: 999 }"
height="580rpx" circular></u-swiper> height="580rpx" circular @click="swiperImg"></u-swiper>
</view> </view>
<view class="con-center w-100 flex justify-center flex-column align-items flex-start"> <view class="con-center w-100 flex justify-center flex-column align-items flex-start">
@ -172,7 +172,7 @@
<image src="@/static/detail/fenxiangsys.png" style="width: 100%;height: 100%;" mode="widthFix"> <image src="@/static/detail/fenxiangsys.png" style="width: 100%;height: 100%;" mode="widthFix">
</image> </image>
</view> </view>
<view class="footer-right" @click="cancelsOpen"> <view v-if="detail.status != -3" class="footer-right" @click="cancelsOpen">
取消活动 取消活动
</view> </view>
</view> </view>
@ -382,6 +382,12 @@ export default {
}, },
methods: { methods: {
swiperImg(index){
uni.previewImage({
current:index,
urls: this.detail.images,
});
},
async afterRead(item) { async afterRead(item) {
const result = await this.uploadFilePromise(item.file.url, 'user'); const result = await this.uploadFilePromise(item.file.url, 'user');
console.log(result); console.log(result);

View File

@ -12,8 +12,8 @@
<span class="first-name">{{detail.title}}</span> <span class="first-name">{{detail.title}}</span>
</view> </view>
<view class="first-image flex align-items white-space" style="margin-top: 25rpx;"> <view class="first-image flex align-items white-space" style="margin-top: 25rpx;">
<image :src="detailAny.user.avatar" mode="" style="width: 36rpx;height: 36rpx;"></image> <image :src="detailAny.user.avatar" mode="" style="width: 36rpx;height: 36rpx;border-radius: 50%;"></image>
<span style="color:#9C9C9C;">{{ detailAny.user.nickname }}</span> <span style="color:#9C9C9C;padding-left: 10rpx;">{{ detailAny.user.nickname }}</span>
<span <span
style="color:#9C9C9C;margin-left: 20rpx;">{{ detailAny.join_info.people_number }}人玩过</span> style="color:#9C9C9C;margin-left: 20rpx;">{{ detailAny.join_info.people_number }}人玩过</span>
@ -25,7 +25,7 @@
</view> </view>
<span class="line"></span> <span class="line"></span>
<span class="first-image flex align-items" style="margin-top: 20rpx;"> <span class="first-image flex align-items" style="padding: 20rpx 0rpx;">
<image src="../../static/center/Alarm.png" mode="" class="icon-size"></image> <image src="../../static/center/Alarm.png" mode="" class="icon-size"></image>
<span>{{formattedTime.formattedTime}}</span> <span>{{formattedTime.formattedTime}}</span>
</span> </span>
@ -35,7 +35,7 @@
@click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)"> @click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)">
<view> <view>
<image src="/static/center/address.png" mode="" class="icon-size"></image> <image src="/static/center/address.png" mode="" class="icon-size"></image>
<span class="white-space">{{detail.address_detail}}</span> <span class="white-space">{{detail.address}}{{detail.address_detail}}</span>
</view> </view>
<image src="/static/detail/daohang.png" class="icon-size" style="width: 50rpx; height: 50rpx;"> <image src="/static/detail/daohang.png" class="icon-size" style="width: 50rpx; height: 50rpx;">
</image> </image>
@ -50,11 +50,11 @@
<view class="flex w-100 space-between hui align-items" style="margin-top: 8rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 8rpx;">
<span>订单编号</span> <span>订单编号</span>
<span>{{detailAny.order_no}}</span> <span style="color: #000000;">{{detailAny.order_no}}</span>
</view> </view>
<view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;">
<span>报名人昵称</span> <span>报名人昵称</span>
<span>{{ detailAny.user.nickname }}</span> <span style="color: #000000;">{{ detailAny.user.nickname }}</span>
</view> </view>
<view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;">
<span>核销/报名人数</span> <span>核销/报名人数</span>
@ -368,7 +368,7 @@
width: 690rpx; width: 690rpx;
background: #FFFFFF; background: #FFFFFF;
padding: 30rpx; padding: 30rpx;
border-radius: 18rpx; border-radius: 44rpx;
box-sizing: border-box; box-sizing: border-box;
.head_img { .head_img {

View File

@ -220,23 +220,30 @@
list: [], list: [],
show: false, show: false,
qrcode: '', qrcode: '',
count: 0 count: 0,
option:{},
isInitialized:false,
}; };
}, },
onLoad(option) { onLoad(option) {
this.list = []
this.page = 1 console.log(1);
if (option?.status) { if (option?.status) {
this.selected = option.status this.selected = option.status
this.getList(option.status); this.getList(option.status);
} else { } else {
this.getList('-3,0,2,3,4,5,6,7,9'); this.getList('-3,0,2,3,4,5,6,7,9');
} }
this.isInitialized = true; //
}, },
onShow() { onShow() {
this.page = 1; console.log(2);
this.list = []; if (!this.isInitialized) return; //
setTimeout(()=>{
this.list = []
this.page = 1
this.getList(this.selected); this.getList(this.selected);
},500)
}, },
onPullDownRefresh() { onPullDownRefresh() {
uni.showLoading({ uni.showLoading({

View File

@ -12,8 +12,8 @@
<span class="first-name">{{detail.title}}</span> <span class="first-name">{{detail.title}}</span>
</view> </view>
<view class="first-image flex align-items white-space" style="margin-top: 25rpx;"> <view class="first-image flex align-items white-space" style="margin-top: 25rpx;">
<image :src="detailAny.user.avatar" mode="" style="width: 36rpx;height: 36rpx;"></image> <image :src="detailAny.user.avatar" mode="" style="width: 36rpx;height: 36rpx;border-radius: 50%;"></image>
<span style="color:#9C9C9C;">{{ detailAny.user.nickname }}</span> <span style="color:#9C9C9C;margin-left: 10rpx;">{{ detailAny.user.nickname }}</span>
<span <span
style="color:#0CA013;margin-left: 20rpx;">{{ detailAny.join_info.people_number }}人玩过</span> style="color:#0CA013;margin-left: 20rpx;">{{ detailAny.join_info.people_number }}人玩过</span>
<span style="color:#0CA013;margin-left: 20rpx;" <span style="color:#0CA013;margin-left: 20rpx;"
@ -26,7 +26,7 @@
</view> </view>
<span class="line"></span> <span class="line"></span>
<span class="first-image flex align-items" style="margin-top: 20rpx;"> <span class="first-image flex align-items" style="padding: 20rpx 0rpx;">
<image src="../../static/center/Alarm.png" mode="" class="icon-size"></image> <image src="../../static/center/Alarm.png" mode="" class="icon-size"></image>
<span>{{formattedTime.formattedTime}}</span> <span>{{formattedTime.formattedTime}}</span>
</span> </span>
@ -36,7 +36,7 @@
@click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)"> @click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)">
<view> <view>
<image src="/static/center/address.png" mode="" class="icon-size"></image> <image src="/static/center/address.png" mode="" class="icon-size"></image>
<span>{{detail.address_detail}}</span> <span>{{detail.address}}{{detail.address_detail}}</span>
</view> </view>
<view> <view>
<image src="/static/detail/daohang.png" class="icon-size" style="width: 50rpx; height: 50rpx;"> <image src="/static/detail/daohang.png" class="icon-size" style="width: 50rpx; height: 50rpx;">
@ -72,7 +72,7 @@
</view> </view>
<view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 30rpx;">
<span>付款时间</span> <span>付款时间</span>
<span>{{ formattime(detailAny.createtime)}}</span> <span>{{ formattime(detailAny.paytime)}}</span>
</view> </view>
</view> </view>
</view> </view>
@ -843,7 +843,7 @@
width: 690rpx; width: 690rpx;
background: #FFFFFF; background: #FFFFFF;
padding: 30rpx; padding: 30rpx;
border-radius: 18rpx; border-radius: 44rpx;
box-sizing: border-box; box-sizing: border-box;
.head_img { .head_img {

View File

@ -13,7 +13,7 @@
</view> </view>
<view class="first-image flex align-items" style="margin-top: 25rpx;"> <view class="first-image flex align-items" style="margin-top: 25rpx;">
<image :src="detailAny.user.avatar" mode="" <image :src="detailAny.user.avatar" mode=""
style="width: 36rpx;height: 36rpx;border-radius: 80rpx ;"></image> style="width: 36rpx;height: 36rpx;border-radius:50%;"></image>
<text style="color:#9C9C9C;">{{ detailAny.user.nickname }}</text> <text style="color:#9C9C9C;">{{ detailAny.user.nickname }}</text>
<text style="color:#9C9C9C;margin-left: 20rpx;">{{ detailAny.join_info.people_number <text style="color:#9C9C9C;margin-left: 20rpx;">{{ detailAny.join_info.people_number
}}人玩过</text> }}人玩过</text>
@ -35,7 +35,7 @@
@click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)"> @click.stop="toMap(detail.latitude, detail.longitude, detail.address_detail)">
<view class="flex"> <view class="flex">
<image src="/static/center/address.png" mode="" class="icon-size"></image> <image src="/static/center/address.png" mode="" class="icon-size"></image>
<text>{{ detail.address_detail }}</text> <text>{{ detail.address }}{{ detail.address_detail }}</text>
</view> </view>
<image src="/static/detail/daohang.png" class="icon-size" style="width: 48rpx; height: 48rpx;"> <image src="/static/detail/daohang.png" class="icon-size" style="width: 48rpx; height: 48rpx;">
</image> </image>
@ -90,7 +90,7 @@
</view> </view>
<view class="flex w-100 space-between hui align-items" style="margin-top: 40rpx;"> <view class="flex w-100 space-between hui align-items" style="margin-top: 40rpx;">
<text>付款时间</text> <text>付款时间</text>
<text style="color: #323232;">{{ formattime(detailAny.createtime) }}</text> <text style="color: #323232;">{{ formattime(detailAny.paytime) }}</text>
</view> </view>
</view> </view>
</view> </view>

View File

@ -1276,14 +1276,14 @@ export default {
} }
// //
if (this.form.price == '') { // if (this.form.price == '') {
uni.showToast({ // uni.showToast({
title: '请输入金额!', // title: '',
icon: 'none', // icon: 'none',
duration: 2000 // duration: 2000
}); // });
return; // return;
} // }
// 退 // 退
if (this.form.refund_id == '') { if (this.form.refund_id == '') {
uni.showToast({ uni.showToast({
@ -1394,18 +1394,16 @@ export default {
} }
} else { } else {
if (res.data.errcode == '1001100') { this.$u.toast(res.msg);
this.cardShow = true; // uni.showToast({
} // title: res.msg,
uni.showToast({ // icon: 'none',
title: res.msg, // duration: 2000
icon: 'none', // });
duration: 2000
});
} }
}).catch(error => { }).catch(error => {
uni.showToast({ uni.showToast({
title: '请求失败,请稍后再试', title: error.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
@ -1436,7 +1434,7 @@ export default {
overflow: visible; overflow: visible;
/* 允许内容溢出 */ /* 允许内容溢出 */
margin-top: 200rpx; margin-top: 200rpx;
margin-bottom: 360rpx; margin-bottom: 420rpx;
} }
.title_logo { .title_logo {
@ -1639,7 +1637,7 @@ export default {
background: #FFFFFF; background: #FFFFFF;
// box-shadow: 0rpx -6rpx 12rpx 0rpx rgba(111, 190, 255, 0.1); // box-shadow: 0rpx -6rpx 12rpx 0rpx rgba(111, 190, 255, 0.1);
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
bottom: 128rpx; bottom: 162rpx;
position: fixed; position: fixed;
z-index: 10; z-index: 10;

View File

@ -1050,6 +1050,7 @@ export default {
.bbb { .bbb {
background: #ffffff; background: #ffffff;
border-radius: 36rpx; border-radius: 36rpx;
margin-bottom: 30rpx;
} }
.right { .right {
@ -1413,7 +1414,7 @@ export default {
} }
::v-deep .u-search__content__input { ::v-deep .u-search__content__input {
background-color: rgba($color: #FFFFFF, $alpha: 0.6) !important; background-color: rgba($color: #FFFFFF, $alpha: 0) !important;
} }
::v-deep .u-icon__img { ::v-deep .u-icon__img {

View File

@ -665,15 +665,15 @@
// _this.miniLogin(); // _this.miniLogin();
// return false; // return false;
// } // }
var openidInfo = uni.getStorageSync('openidInfo');
//console.log(333)
//if (!openidInfo) {
_this.miniLogin(); _this.miniLogin();
//if (!openidInfo) {
uni.showLoading({ uni.showLoading({
title: '获取信息中...' title: '获取信息中...'
}); });
setTimeout(() => { setTimeout(() => {
var openidInfo = uni.getStorageSync('openidInfo');
//console.log(333)
uni.hideLoading(); uni.hideLoading();
_this.decodeMobile({ _this.decodeMobile({
encryptedData: e.detail.encryptedData, encryptedData: e.detail.encryptedData,
@ -681,12 +681,7 @@
sessionKey: openidInfo.session_key, sessionKey: openidInfo.session_key,
}, openidInfo); }, openidInfo);
}, 2000) }, 2000)
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 2000
// })
// this.$api.toast('');
return false; return false;
//} //}

BIN
static/bottom_tab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
static/home_add.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB