修改bug

This commit is contained in:
duan
2024-05-17 09:29:08 +08:00
parent 6ee3d6a8c9
commit ea60344f02
9 changed files with 351 additions and 301 deletions

View File

@@ -1,7 +1,10 @@
<template> <template>
<view class="onecontent flex-between"> <view class="onecontent flex-between">
<view class="onecontentleft"> <view class="onecontentleft">
现有{{bannervo.coupons==null?116:bannervo.coupons}}人已免单 现有<text style="color: #FC851E;font-size: 24rpx;">
{{bannervo.coupons==null?116:bannervo.coupons}}
</text>
已免单
</view> </view>
<view class="onecontentright flex-start"> <view class="onecontentright flex-start">
@@ -128,7 +131,7 @@
.onecontentleft { .onecontentleft {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 700;
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
@@ -147,7 +150,7 @@
.onecontentrightimage { .onecontentrightimage {
width: 90rpx; width: 65rpx;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
height: 28rpx; height: 28rpx;
@@ -155,7 +158,7 @@
.swiperPanel { .swiperPanel {
height: 28rpx; height: 28rpx;
width: 100%; width: 100rpx;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@@ -225,7 +228,7 @@
width: 100rpx; width: 100rpx;
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 20rpx;
color: #333333; color: #333333;
overflow: hidden; //超出的文本隐藏 overflow: hidden; //超出的文本隐藏
text-overflow: ellipsis; //溢出用省略号显示 text-overflow: ellipsis; //溢出用省略号显示

View File

@@ -205,7 +205,10 @@
.therecontent_box_itembox_itemviewthere { .therecontent_box_itembox_itemviewthere {
margin-top: 4rpx; margin-top: 4rpx;
align-items: flex-end; // align-items: flex-end;
// display: flex;
// align-items: center;
// justify-content: center;
text:nth-child(1) { text:nth-child(1) {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
@@ -220,6 +223,7 @@
font-size: 16rpx; font-size: 16rpx;
color: #999999; color: #999999;
text-decoration-line: line-through; text-decoration-line: line-through;
margin-top: 10rpx;
} }
} }
} }

View File

@@ -135,6 +135,7 @@
size: 10, //页容量 size: 10, //页容量
status: 'loadmore' status: 'loadmore'
}, },
type:''
}; };
}, },
onPageScroll(e) { onPageScroll(e) {

View File

@@ -72,7 +72,6 @@
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
</swiper> --> </swiper> -->
</view> </view>
</view> </view>

View File

@@ -74,7 +74,7 @@
{{item.shopName}} {{item.shopName}}
</view> </view>
<view> <view>
龙首.{{item.distances}}km {{item.districts}}{{item.distances}}
</view> </view>
</view> </view>
<view class="fivecontent_item_nav_lefttopstart flex-start"> <view class="fivecontent_item_nav_lefttopstart flex-start">
@@ -128,7 +128,7 @@
:day="item.end_times.d" :hour="item.end_times.h" :day="item.end_times.d" :hour="item.end_times.h"
:minute="item.end_times.m" :second="item.end_times.s" :minute="item.end_times.m" :second="item.end_times.s"
:indexs='index' color="#FFFFFF" border-color="#00B26A" :indexs='index' color="#FFFFFF" border-color="#00B26A"
splitorColor="#FFFFFF" :font-size="7"></uni-countdown> splitorColor="#FFFFFF" :font-size="8"></uni-countdown>
</view> </view>
@@ -385,7 +385,7 @@
this.seighT = data.windowHeight; this.seighT = data.windowHeight;
this.$u.getRect('.fourcontent').then(res => { this.$u.getRect('.fourcontent').then(res => {
console.log(res.top) console.log(res.top)
this.Topdistance = res.top - res.height -20 //滚动距离 this.Topdistance = res.top - res.height - 20 //滚动距离
}) })
} }
}) })
@@ -692,14 +692,14 @@
} }
.fourcontent { .fourcontent {
padding: 32rpx 28rpx 32rpx 28rpx; padding: 32rpx 28rpx;
overflow-x: auto; overflow-x: auto;
flex-wrap: nowrap; flex-wrap: nowrap;
.fourcontent_item { .fourcontent_item {
flex-wrap: nowrap; flex-wrap: nowrap;
margin-left: 22rpx; margin-left: 22rpx;
padding: 4rpx 14rpx; padding: 8rpx 28rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx; border-radius: 8rpx 8rpx 8rpx 8rpx;
@@ -762,6 +762,7 @@
.fivecontent { .fivecontent {
padding: 0 28rpx; padding: 0 28rpx;
height: 100vh; height: 100vh;
.fivecontent_item:nth-child(1) { .fivecontent_item:nth-child(1) {
margin-top: 0; margin-top: 0;
} }
@@ -844,8 +845,8 @@
text { text {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 700;
font-size: 24rpx; font-size: 28rpx;
color: #999999; color: #999999;
} }
@@ -856,7 +857,7 @@
white-space: nowrap; //溢出不换行white-space:nowrap; //溢出不换行 white-space: nowrap; //溢出不换行white-space:nowrap; //溢出不换行
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 32rpx;
color: #333333; color: #333333;
} }
} }
@@ -900,6 +901,8 @@
background: url(https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/qinggou.png) no-repeat; background: url(https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/qinggou.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.indexboxitemleftthereabsolute { .indexboxitemleftthereabsolute {
position: absolute; position: absolute;
top: 14rpx; top: 14rpx;
@@ -913,10 +916,15 @@
.indexboxitemlefttheretext { .indexboxitemlefttheretext {
// width: 100%; // width: 100%;
margin-top: 12rpx; margin-top: 12rpx;
align-items: flex-end;
display: flex;
justify-content: center;
align-items: center;
.fivecontent_item_boxitemlefthere_one { .fivecontent_item_boxitemlefthere_one {
align-items: flex-end; display: flex;
justify-content: center;
align-items: center;
.flex_startone { .flex_startone {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
@@ -946,6 +954,7 @@
.fivecontent_item_boxitemlefthere_there { .fivecontent_item_boxitemlefthere_there {
margin-left: 6rpx; margin-left: 6rpx;
line-height: 24rpx;
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 400;
font-size: 16rpx; font-size: 16rpx;

View File

@@ -20,7 +20,7 @@
{{item.shopName}} {{item.shopName}}
</view> </view>
</view> </view>
<view class="fivecontent_itemoneboxtow flex-start" @click="goMap"> <view class="fivecontent_itemoneboxtow flex-start" @click="goMap(item)">
<image class="fivecontent_itemoneboxtowimage" <image class="fivecontent_itemoneboxtowimage"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/dw.png" mode="widthFix"></image> src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/dw.png" mode="widthFix"></image>
<view class="fivecontent_itemoneboxtow_o"> <view class="fivecontent_itemoneboxtow_o">
@@ -81,11 +81,15 @@
this.distiricttopCommon() this.distiricttopCommon()
}, },
methods: { methods: {
goMap() { goMap(d) {
uni.openLocation({ uni.openLocation({
longitude: uni.cache.get('getLocationstorage').lng, longitude: (d.lng * 1),
latitude: uni.cache.get('getLocationstorage').lat latitude: (d.lat * 1)
}) })
// uni.openLocation({
// longitude: uni.cache.get('getLocationstorage').lng,
// latitude: uni.cache.get('getLocationstorage').lat
// })
}, },
init_fn(e) { init_fn(e) {
this.list = [] this.list = []

View File

@@ -52,7 +52,7 @@
<view class="agreement flex-start"> <view class="agreement flex-start">
<u-checkbox-group><u-checkbox shape="circle" @change="radioChange" <u-checkbox-group><u-checkbox shape="circle" @change="radioChange"
size="24"></u-checkbox></u-checkbox-group> size="24"></u-checkbox></u-checkbox-group>
<text>阅读并同意银收客</text> <text>阅读并同意{{uni.cache.set('NAME', '零点八零')}}</text>
<view class="agreement-Item" @click="Privacy(1)">用户协议</view> <view class="agreement-Item" @click="Privacy(1)">用户协议</view>
<view class="agreement-Item" @click="Privacy(2)">隐私政策</view> <view class="agreement-Item" @click="Privacy(2)">隐私政策</view>

View File

@@ -2,7 +2,7 @@
<view class="container"> <view class="container">
<view class="box flex-colum-start"> <view class="box flex-colum-start">
<text>您好</text> <text>您好</text>
<text>欢迎使用银收客</text> <text>欢迎使用{{uni.cache.set('NAME', '零点八零')}}</text>
</view> </view>
<view class="top_box" :style="h"> <view class="top_box" :style="h">
<view class="top_box_one"> <view class="top_box_one">
@@ -15,7 +15,8 @@
</view> </view>
<view class="top_box_one"> <view class="top_box_one">
<text class="top_box_one_text">密码</text> <text class="top_box_one_text">密码</text>
<input type="mobile" v-model="form.password" placeholder="8-16位密码" maxlength="16" :password="!showPassword" /> <input type="mobile" v-model="form.password" placeholder="8-16位密码" maxlength="16"
:password="!showPassword" />
<view class="repeat" @click="display"> <view class="repeat" @click="display">
<u-icon name="eye" v-if="showPassword"></u-icon> <u-icon name="eye" v-if="showPassword"></u-icon>
<u-icon v-else name="eye-off"></u-icon> <u-icon v-else name="eye-off"></u-icon>
@@ -25,10 +26,14 @@
<text class="top_box_one_text">验证码</text> <text class="top_box_one_text">验证码</text>
<input type="mobile" v-model="form.code" placeholder="请输入短信验证码" maxlength="6" /> <input type="mobile" v-model="form.code" placeholder="请输入短信验证码" maxlength="6" />
<view class="repeats"> <view class="repeats">
<view v-if="showText == true" class="yzm" style="padding: 8rpx 16rpx 6rpx 16rpx; background: #288efb; border-radius: 15rpx" @click="CodeRegister"> <view v-if="showText == true" class="yzm"
style="padding: 8rpx 16rpx 6rpx 16rpx; background: #288efb; border-radius: 15rpx"
@click="CodeRegister">
{{ Recapture }} {{ Recapture }}
</view> </view>
<view v-else style="color: #ccc; background-color: #f9f9f9; padding: 8rpx 16rpx 6rpx 16rpx; border-radius: 15rpx">{{ second }}s重新发送</view> <view v-else
style="color: #ccc; background-color: #f9f9f9; padding: 8rpx 16rpx 6rpx 16rpx; border-radius: 15rpx">
{{ second }}s重新发送</view>
</view> </view>
</view> </view>
<!-- <view class="top_box_one"> <!-- <view class="top_box_one">
@@ -40,7 +45,8 @@
</view> --> </view> -->
<view class="Register" @click="Register">注册</view> <view class="Register" @click="Register">注册</view>
<view class="agreement flex-start"> <view class="agreement flex-start">
<u-checkbox-group><u-checkbox shape="circle" @change="radioChange" size="12"></u-checkbox></u-checkbox-group> <u-checkbox-group><u-checkbox shape="circle" @change="radioChange"
size="12"></u-checkbox></u-checkbox-group>
<text>阅读并同意银收客</text> <text>阅读并同意银收客</text>
<view class="agreement-Item" @click="Privacy(1)">用户协议</view> <view class="agreement-Item" @click="Privacy(1)">用户协议</view>
@@ -51,7 +57,7 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
radioChangeItem: false, //单选框 radioChangeItem: false, //单选框
@@ -62,7 +68,7 @@ export default {
showText: true, showText: true,
Recapture: '发送验证码', Recapture: '发送验证码',
form: { form: {
nickName:'', nickName: '',
telephone: '', telephone: '',
password: '', password: '',
code: '', code: '',
@@ -133,12 +139,18 @@ export default {
let res = await this.api.agreementgetAgreementOne({ let res = await this.api.agreementgetAgreementOne({
discern: 0 discern: 0
}); });
uni.pro.navigateTo('my/about/agreement', { discern: 0, list: res.data.content }); uni.pro.navigateTo('my/about/agreement', {
discern: 0,
list: res.data.content
});
} else { } else {
let res3 = await this.api.agreementgetAgreementOne({ let res3 = await this.api.agreementgetAgreementOne({
discern: 3 discern: 3
}); });
uni.pro.navigateTo('my/about/agreement', { discern: 3, list: res3.data.content }); uni.pro.navigateTo('my/about/agreement', {
discern: 3,
list: res3.data.content
});
} }
}, },
async computed_h() { async computed_h() {
@@ -173,7 +185,8 @@ export default {
}); });
return false; return false;
} }
if (this.form.password == null || this.form.password == '' || uni.$u.trim(this.form.password, 'all') == '') { if (this.form.password == null || this.form.password == '' || uni.$u.trim(this.form.password, 'all') ==
'') {
uni.showToast({ uni.showToast({
title: '请输入密码或密码不能输入空格', title: '请输入密码或密码不能输入空格',
icon: 'none' icon: 'none'
@@ -227,27 +240,32 @@ export default {
// } // }
} }
} }
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
width: 100%; width: 100%;
background: linear-gradient(104deg, #4679ff 0%, #2868e8 47%, #2a94fc 100%); background: linear-gradient(104deg, #4679ff 0%, #2868e8 47%, #2a94fc 100%);
} }
.container {
.container {
position: relative; position: relative;
.top { .top {
position: absolute; position: absolute;
left: 64rpx; left: 64rpx;
.u-navbar--fixed { .u-navbar--fixed {
top: 88rpx; top: 88rpx;
} }
} }
.box { .box {
padding-top: 228rpx; padding-top: 228rpx;
padding-left: 64rpx; padding-left: 64rpx;
padding-bottom: 144rpx; padding-bottom: 144rpx;
text { text {
font-size: 40rpx; font-size: 40rpx;
font-family: Source Han Sans CN-Medium, Source Han Sans CN; font-family: Source Han Sans CN-Medium, Source Han Sans CN;
@@ -255,6 +273,7 @@ page {
color: #ffffff; color: #ffffff;
} }
} }
.top_box::after { .top_box::after {
position: absolute; position: absolute;
// content: url(@/static/icon.png); // content: url(@/static/icon.png);
@@ -264,6 +283,7 @@ page {
right: 32rpx; right: 32rpx;
z-index: 2; z-index: 2;
} }
.top_box { .top_box {
position: relative; position: relative;
width: 100%; width: 100%;
@@ -273,11 +293,13 @@ page {
align-items: center; align-items: center;
background: #ffffff; background: #ffffff;
border-radius: 40rpx 40rpx 0px 0px; border-radius: 40rpx 40rpx 0px 0px;
.top_box_one { .top_box_one {
position: relative; position: relative;
width: 85%; width: 85%;
margin-top: 64rpx; margin-top: 64rpx;
border-bottom: 6rpx solid #e5e5e5; border-bottom: 6rpx solid #e5e5e5;
.top_box_one_text { .top_box_one_text {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -286,9 +308,11 @@ page {
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
} }
input { input {
padding: 18rpx 0 20rpx 0; padding: 18rpx 0 20rpx 0;
} }
.repeat { .repeat {
position: absolute; position: absolute;
bottom: 26rpx; bottom: 26rpx;
@@ -296,6 +320,7 @@ page {
width: 25rpx; width: 25rpx;
height: 17rpx; height: 17rpx;
} }
.repeats { .repeats {
position: absolute; position: absolute;
bottom: 26rpx; bottom: 26rpx;
@@ -308,8 +333,10 @@ page {
border-radius: 12rpx; border-radius: 12rpx;
} }
} }
.top_box_tow { .top_box_tow {
width: 85%; width: 85%;
text { text {
margin-top: 34rpx; margin-top: 34rpx;
font-size: 24rpx; font-size: 24rpx;
@@ -318,6 +345,7 @@ page {
color: #666666; color: #666666;
} }
} }
.Register { .Register {
width: 75%; width: 75%;
margin-top: 112rpx; margin-top: 112rpx;
@@ -330,16 +358,18 @@ page {
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
} }
.agreement { .agreement {
margin-top: 14rpx; margin-top: 14rpx;
font-size: 20rpx; font-size: 20rpx;
font-family: Source Han Sans CN-Medium, Source Han Sans CN; font-family: Source Han Sans CN-Medium, Source Han Sans CN;
font-weight: 500; font-weight: 500;
color: #7c8e97; color: #7c8e97;
.agreement-Item { .agreement-Item {
color: #4ca1fc; color: #4ca1fc;
} }
} }
} }
} }
</style> </style>

View File

@@ -64,11 +64,11 @@
<view class="theretherecontent"> <view class="theretherecontent">
营业时间{{listdata.businessTime}} 营业时间{{listdata.businessTime}}
</view> </view>
<view class="fourtherecontent flex-start" @click="goMap"> <view class="fourtherecontent flex-start" @click="goMap(listdata)">
<image class="fourtherecontentimage" <image class="fourtherecontentimage"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/product/d.png" mode="aspectFill"></image> src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/product/d.png" mode="aspectFill"></image>
<view class="fourtherecontent_o"> <view class="fourtherecontent_o">
{{listdata.distances}}km {{listdata.distances}}
</view> </view>
<view class="fourtherecontent_t"> <view class="fourtherecontent_t">
{{listdata.address}} {{listdata.address}}
@@ -403,10 +403,10 @@
name name
}) })
}, },
goMap(){ goMap(d) {
uni.openLocation({ uni.openLocation({
longitude: uni.cache.get('getLocationstorage').lng, longitude: (d.lng * 1),
latitude: uni.cache.get('getLocationstorage').lat latitude: (d.lat * 1)
}) })
}, },
// 跳转 // 跳转