This commit is contained in:
王创世 2025-06-14 14:03:49 +08:00
commit eef6220af6
2 changed files with 13 additions and 9 deletions

View File

@ -13,18 +13,18 @@
<view style="min-height: 100vh;margin-top: 80rpx;"> <view style="min-height: 100vh;margin-top: 80rpx;">
<view class="flex hdkuai flex-column" v-for="(item, index) in list" :key="index"> <view class="flex hdkuai flex-column" v-for="(item, index) in list" :key="index">
<view style="margin:0 30rpx;"> <view style="margin:30rpx;">
<span class="text_h">活动时间 <span class="text_h">活动时间
{{ dateWeeks(item.detail.start_time) + '-'+dateWeekends(item.detail.end_time)}}</span> {{ dateWeeks(item.detail.start_time) + '-'+dateWeekends(item.detail.end_time)}}</span>
</view> </view>
<span class="line"></span> <span class="line"></span>
<view style="margin:0 30rpx;" class="flex" @click="toInfo(item.activity_id)"> <view style="margin:30rpx;" class="flex" @click="toInfo(item.activity_id)">
<image class="tut" :src="item.detail.images[0]"></image> <image class="tut" :src="item.detail.images[0]"></image>
<view style="margin-left: 20rpx;width: 80%;"> <view style="margin-left: 20rpx;width: 80%;">
<view> <view>
<span>{{ item.detail.title }}</span> <span>{{ item.detail.title }}</span>
</view> </view>
<view style="margin-top: 40rpx;" class="flex flex-between align-items"> <view style="margin-top: 30rpx;" class="flex flex-between align-items">
<span style="font-size: 32rpx;">{{ item.totalprice }}</span> <span style="font-size: 32rpx;">{{ item.totalprice }}</span>
<span style="font-size: 26rpx;color: #9C9C9C;">购买数量{{ item.num }}</span> <span style="font-size: 26rpx;color: #9C9C9C;">购买数量{{ item.num }}</span>
</view> </view>
@ -485,8 +485,8 @@
.hdkuai { .hdkuai {
background: #FFFFFF; background: #FFFFFF;
width: 690rpx; width: 690rpx;
height: 360rpx; // height: 360rpx;
justify-content: space-around; // justify-content: space-around;
margin: 30rpx; margin: 30rpx;
border-radius: 18rpx; border-radius: 18rpx;
@ -509,7 +509,7 @@
} }
.foot_btn { .foot_btn {
margin: 0 30rpx; margin: 30rpx;
justify-content: space-between; justify-content: space-between;
font-size: 28rpx; font-size: 28rpx;
color: #323232; color: #323232;

View File

@ -23,7 +23,7 @@
@delete="deletePic" @oversize="oversize" :maxSize="1 * 1024 * 1024" @delete="deletePic" @oversize="oversize" :maxSize="1 * 1024 * 1024"
:maxCount="1"> :maxCount="1">
<view style="width: 330rpx;height: 100px;"> <view style="width: 330rpx;height: 100px;">
<image v-if="form.back_img==''" src="/static/index/bei.png" style="width: 100%;" mode="widthFix"></image> <image v-if="form.back_img == ''" src="/static/index/bei.png" style="width: 100%;" mode="widthFix"></image>
<image v-else :src="imgUrl+form.back_img" style="width: 330rpx;height: 100px;" mode="aspectFit"></image> <image v-else :src="imgUrl+form.back_img" style="width: 330rpx;height: 100px;" mode="aspectFit"></image>
</view> </view>
</u-upload> </u-upload>
@ -64,7 +64,7 @@
@click="protocolClick" @clickOne="protocolClick" ></cc-protocolBox> @click="protocolClick" @clickOne="protocolClick" ></cc-protocolBox>
</view> </view>
<view v-if="agree" class="btn_1" @click="save()">提交信息</view> <view v-if="agree" class="btn_1" @click="save()">提交信息</view>
<view v-if="!agree" class="btn_2">提交信息</view> <view v-if="!agree" class="btn_2s">提交信息</view>
</view> </view>
<u-popup @touchmove.native.stop.prevent :closeable="false" :show="show" :round="10" mode="center" <u-popup @touchmove.native.stop.prevent :closeable="false" :show="show" :round="10" mode="center"
@ -121,6 +121,10 @@
this.getAgreement(); this.getAgreement();
}, },
methods: { methods: {
oversize(e) {
this.$u.toast("请传1MB以内大小的图片");
return false;
},
protocolClick(tag) { protocolClick(tag) {
this.show=true; this.show=true;
}, },
@ -261,7 +265,7 @@
margin: 0 auto; margin: 0 auto;
margin-top: 50rpx; margin-top: 50rpx;
} }
.btn_2 { .btn_2s {
width: 95%; width: 95%;
height: 90rpx; height: 90rpx;
background: #C1C1C1; background: #C1C1C1;