From 36f5a552738ff64d35e5508a1db8c2249b9187b0 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期四, 27 六月 2024 14:25:33 +0800
Subject: [PATCH] update1
---
sub_pages/farmer/flower-manage/flower-manage.vue | 4 +-
common/self.scss | 10 ++++-
pages/user/user-info/user-info.vue | 7 +--
pages/user/user.scss | 4 ++
sub_pages/farmer/farmer-reg/farmer-reg.vue | 5 +-
sub_pages/farmer/order-sale/order-sale.vue | 4 +-
common/global.scss | 11 +++++
pages/login/farmer-login.vue | 19 +++++----
manifest.json | 12 ++----
pages/user/farmer-user.vue | 29 +++++++-------
pages/login/login.scss | 5 +-
pages/home/farmer-home.vue | 8 ++--
12 files changed, 70 insertions(+), 48 deletions(-)
diff --git a/common/global.scss b/common/global.scss
index c06dcfa..7e6edbf 100644
--- a/common/global.scss
+++ b/common/global.scss
@@ -62,6 +62,17 @@
background: #fff;
}
+.component-bg{
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ top: 0;
+ width: 100%;
+ height: 100;
+ height: 100%;
+ z-index: -1;
+}
.component-popup_input{
margin: 0 auto;
margin-top: calc(50% + 200rpx);
diff --git a/common/self.scss b/common/self.scss
index 37008e5..6943eaa 100644
--- a/common/self.scss
+++ b/common/self.scss
@@ -1,5 +1,5 @@
/* $self-gray: #9a9da2; */
-:root {
+:root,page {
--selfgray: #9a9da2;
--self_light_gray: #dce3e9;
--title_font_size: 60rpx;
@@ -21,11 +21,17 @@
font-family: PingFangSC-Regular, PingFang SC;
}
.topic-font{
- color: var(--topicolor);
+ color: var(--topicolor) !important;
+}
+.flex-wrap-normal{
+ flex-wrap: nowrap;
}
.topic-gray{
color: var(--topicgray);
}
+.relative{
+ position: relative;
+}
.t-red{
color: #CE3C39 !important;
}
diff --git a/manifest.json b/manifest.json
index 8df2487..529c0ee 100644
--- a/manifest.json
+++ b/manifest.json
@@ -49,17 +49,13 @@
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
- "appid" : "wxafc5aaa0fc79532b",
+ "appid" : "wx3203fd935a6ffe09",
"setting" : {
- "urlCheck" : false
+ "urlCheck" : false,
+ "es6" : true
},
"usingComponents" : true,
- "plugins" : {
- "kdPlugin" : {
- "version" : "1.1.2",
- "provider" : "wx6885acbedba59c14"
- }
- }
+ "plugins" : {}
},
"vueVersion" : "2"
}
diff --git a/pages/home/farmer-home.vue b/pages/home/farmer-home.vue
index 458f928..dde7daf 100644
--- a/pages/home/farmer-home.vue
+++ b/pages/home/farmer-home.vue
@@ -9,15 +9,15 @@
首页
</view>
- <view class="flex m-t-20 user-info" v-if="currentInfo&&(currentInfo.id)">
+ <view class="flex user-info" v-if="currentInfo&&(currentInfo.id)">
<!-- 头像 -->
<image class="user-icon" v-if="!currentInfo.picture" src="../../static/imgs/home/home-shop-top-icon.png"
mode="aspectFit"></image>
<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
- <view class="name" style="margin-top: 12rpx;">
- <view class="t1">{{currentInfo.nickName || '-'}}</view>
- <view class="t2 m-t-12">{{currentInfo.tel || '暂无电话'}}</view>
+ <view class="name" >
+ <view class="t1" >{{currentInfo.nickName || '-'}}</view>
+ <view class="t2">{{currentInfo.tel || '暂无电话'}}</view>
</view>
</view>
diff --git a/pages/login/farmer-login.vue b/pages/login/farmer-login.vue
index e26f158..c348801 100644
--- a/pages/login/farmer-login.vue
+++ b/pages/login/farmer-login.vue
@@ -1,6 +1,8 @@
<template>
- <view class="main-container login-container img100" style="margin-top: 0rpx;">
+ <view class="main-container login-container img100 relative" style="margin-top: 0rpx;">
+ <!-- background-image:url('@/static/images/farmer/login/bg.png') -->
+ <image class="component-bg" src="/static/images/farmer/login/bg.png" mode="scaleToFill" />
<view class="t-login top-bg">
<view class="nav-title">登录</view>
<view class="login">
@@ -26,7 +28,7 @@
<view class="t-a input" v-if="loginType=='code'">
- <input type="text" name="userName" placeholder="请输入手机验证码" v-model="smsCode" />
+ <input type="text" name="userName" placeholder="请输入手机验证码" v-model="smsCode" />
</view>
<button @tap="login()" class="bottom-button">登 录</button>
@@ -34,7 +36,7 @@
<view class="flex">
<view class="topic-font" v-if="loginType=='pwd'" @click="loginType='code'">手机验证码登录</view>
<view class="topic-font" v-if="loginType=='code'" @click="loginType='pwd'">账号密码登录</view>
-
+
<view class="topic-font m-l-a m-r-0" @click="toReg">前往注册</view>
</view>
</form>
@@ -54,10 +56,10 @@
password: '123456',
// userName: '',
// password: '',
-
+
phoneNumber: '',
- smsCode:'',
-
+ smsCode: '',
+
checked: false,
loginType: 'pwd', //pwd和code,密码和验证码登录
pcfvalue: undefined,
@@ -260,10 +262,11 @@
.t-login .t-a {
position: relative;
- .get-code{
+
+ .get-code {
position: absolute;
right: 40rpx;
- top: 20rpx;
+ top: 25rpx;
}
}
diff --git a/pages/login/login.scss b/pages/login/login.scss
index d975945..472fe3e 100644
--- a/pages/login/login.scss
+++ b/pages/login/login.scss
@@ -1,6 +1,7 @@
.login-container{
- min-height: 99vh;
- background-image: url('@/static/images/farmer/login/bg.png');
+ min-height: 99vh;
+ // background-image: url('@/static/images/farmer/login/bg.png');
+
.nav-title{
font-weight: 400;
font-size: 32rpx;
diff --git a/pages/user/farmer-user.vue b/pages/user/farmer-user.vue
index b08912d..825be69 100644
--- a/pages/user/farmer-user.vue
+++ b/pages/user/farmer-user.vue
@@ -4,23 +4,24 @@
我的
</view> -->
<!-- 背景图 -->
- <view class="top-bg img100" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
+ <view class="top-bg img100 relative" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
+ <image class="component-bg" src="/static/images/farmer/user/bg.png" mode="scaleToFill" />
+
<view class="title" style="position: relative;">
我的
</view>
- <view class="flex m-t-20 user-info" v-if="currentInfo&&(currentInfo.id)">
+ <view class="flex user-info" v-if="currentInfo&&(currentInfo.id)">
<!-- 头像 -->
<image class="user-icon" v-if="!currentInfo.picture" src="../../static/imgs/home/home-shop-top-icon.png"
mode="aspectFit"></image>
<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
- <view class="name" style="margin-top: 12rpx;">
+ <view class="name">
<view class="t1">{{currentInfo.nickName || '-'}}</view>
- <view class="t2 m-t-12">{{currentInfo.tel || '暂无电话'}}</view>
+ <view class="t2">{{currentInfo.tel || '暂无电话'}}</view>
</view>
</view>
-
</view>
<view class="user-utils m-20">
@@ -62,7 +63,7 @@
</view>
<farmer-footer flg="1"></farmer-footer>
-
+
</view>
</template>
@@ -75,35 +76,35 @@
tcode: '',
inviterName: '',
// StatusBar:0,
- tel:'1386785374'
+ tel: '1386785374'
};
},
-
+
onLoad(options) {
const url = options.q ? decodeURIComponent(options.q) : '';
- const urlcode = options.url&&decodeURIComponent(options.url) || ''
+ const urlcode = options.url && decodeURIComponent(options.url) || ''
},
created() {
},
methods: {
-
+
async clearlogout() {
await this.$message.confirm('是否退出登录?')
- this.$store.commit('updateLogin',false)
-
+ this.$store.commit('updateLogin', false)
+
uni.reLaunch({
url: '/pages/login/farmer-login'
})
},
- async callTel(){
+ async callTel() {
await this.$message.confirm('是否拨打客服电话')
uni.makePhoneCall({
phoneNumber: this.tel //仅为示例
});
}
-
+
}
}
</script>
diff --git a/pages/user/user-info/user-info.vue b/pages/user/user-info/user-info.vue
index fc82505..7f90ded 100644
--- a/pages/user/user-info/user-info.vue
+++ b/pages/user/user-info/user-info.vue
@@ -101,7 +101,7 @@
this.dto.picture = picture
}
- // #ifdef MP
+
const {
code
} = await this.$http.request('post', "/api/current/user/update", {
@@ -111,7 +111,7 @@
// fullName: this.dto.nickName
}
})
- // #endif
+
// // #ifndef MP
// if (!!this.dto.email) {
// if (!this.$util.isEmail(this.dto.email)) {
@@ -131,14 +131,13 @@
// // #endif
this.$message.hideLoading()
- // #ifdef MP
if (code == 0) {
this.$message.showToast('更新成功')
// this.$store.commit('updateInfo',this.dto)
// }
await this.$store.dispatch('getCurrentInfo');
}
- // #endif
+
},
diff --git a/pages/user/user.scss b/pages/user/user.scss
index 9d4488b..6fc2444 100644
--- a/pages/user/user.scss
+++ b/pages/user/user.scss
@@ -56,6 +56,7 @@
.user-info{
padding: 28rpx 24rpx;
+ padding-bottom: 0rpx;
// background: #FFFFFF;
border-radius: 16rpx;
// line-height: 116rpx;
@@ -63,6 +64,9 @@
font-weight: 600;
font-size: 32rpx;
color: #000000;
+ .t1{
+ line-height: 50rpx;
+ }
}
.user-icon{
width: 116rpx;
diff --git a/sub_pages/farmer/farmer-reg/farmer-reg.vue b/sub_pages/farmer/farmer-reg/farmer-reg.vue
index 7313558..e17cf3c 100644
--- a/sub_pages/farmer/farmer-reg/farmer-reg.vue
+++ b/sub_pages/farmer/farmer-reg/farmer-reg.vue
@@ -1,5 +1,6 @@
<template>
- <view class="main-container login-container img100" style="margin-top: 0rpx;">
+ <view class="main-container login-container img100 relative" style="margin-top: 0rpx;">
+ <image class="component-bg" src="/static/images/farmer/login/bg.png" mode="scaleToFill" />
<view class="t-login top-bg">
<view class="nav-title">注册</view>
@@ -255,7 +256,7 @@
.get-code {
position: absolute;
right: 40rpx;
- top: 20rpx;
+ top: 25rpx;
}
}
diff --git a/sub_pages/farmer/flower-manage/flower-manage.vue b/sub_pages/farmer/flower-manage/flower-manage.vue
index 8d16711..7187f3c 100644
--- a/sub_pages/farmer/flower-manage/flower-manage.vue
+++ b/sub_pages/farmer/flower-manage/flower-manage.vue
@@ -90,7 +90,7 @@
</view>
<!-- 输入框-->
- <view class="flex w-fit">
+ <view class="flex w-fit ">
<u-input v-model="content" :placeholder="inputplaceholder" type="digit"
style="max-width: 390rpx;background-color: #F2F2F2;" v-if="currentInputKey=='price'" />
@@ -102,7 +102,7 @@
</view>
<!-- 提交按钮 -->
<view class="line-gray" style="margin-bottom: 0px;"></view>
- <view class="flex">
+ <view class="flex flex-wrap-normal">
<u-button type="default" class="w-fit flex1 " text="取消"
@click="()=>{$refs.popup_input.close()}"></u-button>
<view class="component-line-vert"></view>
diff --git a/sub_pages/farmer/order-sale/order-sale.vue b/sub_pages/farmer/order-sale/order-sale.vue
index e533847..8b14112 100644
--- a/sub_pages/farmer/order-sale/order-sale.vue
+++ b/sub_pages/farmer/order-sale/order-sale.vue
@@ -92,7 +92,7 @@
.order-sale-list {
.order-sale-item {
margin-bottom: 20rpx;
- padding: 28rpx;
+ padding: 22rpx;
.title {
font-weight: 600;
@@ -109,7 +109,7 @@
.form {
display: flex;
-
+ flex-wrap: wrap;
.form-item {
flex: 1;
min-width: 40%;
--
Gitblit v1.9.3