From ae08a735c561038fc1babfa662a597bd742da079 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 11 九月 2023 11:11:03 +0800
Subject: [PATCH] 操作指引修改,增加重置密码和修改密码
---
pages/customer-page/customer-index/customer-index.vue | 55 +++++++++++++++++++++++++++++++++++--------------------
1 files changed, 35 insertions(+), 20 deletions(-)
diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index b1c1aff..95fd954 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -6,9 +6,10 @@
<view class="wait-collection"
:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }">
</view>
+ <view style="height: 382rpx;width: 100%;"></view>
<!-- 寮曞椤� -->
<view class="noob-tour"
- v-if="roleType===4">
+ v-if="roleType===4&&isFirstLogin">
<combined-title title="鎿嶄綔鎸囧紩"></combined-title>
<u-cell-group>
<u-cell title="鏂版墜鎸囧紩"
@@ -25,7 +26,7 @@
</u-cell>
</u-cell-group>
</view>
- <view style="position: relative;top: -120px;">
+ <view style="position: relative;">
<u-empty mode="data"
icon="http://cdn.uviewui.com/uview/empty/data.png"
textSize="30"
@@ -161,7 +162,7 @@
<view class="previewImage-container">
<view class="previewImage-container">
<previewImage ref="previewImage"
- :imgs="TourImgList"
+ :imgs="customerTourImgList"
:saveBtn='false'></previewImage>
</view>
</view>
@@ -193,6 +194,8 @@
import combinedTitle from '@/components/combined-title/combined-title.vue';
import { customerId } from '@/utils/status';
import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
+ import { BaseUrl } from '@/api/publicInterface.js'
+ import { mapState } from 'vuex'
export default {
props: {
orderPlanDataStore: {
@@ -214,6 +217,7 @@
}
},
computed: {
+ ...mapState(['customerTourImgList']),
roleType() {
return uni.getStorageSync('roleType');
},
@@ -247,16 +251,8 @@
onlineurl,
previewImageShow: false,
previewImageSrc: '',
- TourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg',
- 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality02.jpg',
- 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality03.jpg',
- 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality04.jpg',
- 'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality05.jpg'
- ],
- imgIndex: 0,
- startX: 0, // 瑙︽懜璧峰鐐圭殑X鍧愭爣
- endX: 0, // 瑙︽懜缁撴潫鐐圭殑X鍧愭爣
- transition: false
+ phone: "",
+ isFirstLogin: true
};
},
onLoad() {},
@@ -268,6 +264,7 @@
this.GetOrderPlan();
this.getJhOrderPlanDataPage();
this.onlineurl = onlineurl;
+ this.getLogOn()
},
// 鑾峰彇鍙戣繍璁″垝鍒楄〃
GetOrderPlan() {
@@ -391,8 +388,27 @@
.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` });
},
noobTour(v) {
- this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg')
- }
+ this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg')
+ },
+ getLogOn() {
+ this.$reqGet('getUserEntity').then(res => {
+ this.phone = res.data.phone
+ }).then(() => {
+ uni.request({
+ url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`,
+ success: res => {
+ // res.data.data 涓�1 浠h〃绗竴娆$櫥褰� 涓�0鍙栨秷瀛︿範鎸囧紩 涓�2浠h〃瀛樺湪
+ if (res.data.data === 1) {
+ this.noobTour()
+ } else if (res.data.data === 2) {
+ this.isFirstLogin = true
+ } else {
+ this.isFirstLogin = false
+ }
+ }
+ });
+ })
+ },
}
};
</script>
@@ -408,7 +424,7 @@
.wait-collection {
width: 100%;
height: 600rpx;
- position: relative;
+ position: fixed;
top: vww(-10);
z-index: 0;
}
@@ -432,7 +448,7 @@
.history-numbers {
width: 100%;
position: relative;
- top: vww(-110);
+ // top: vww(-110);
.history-information {
width: 690rpx;
@@ -526,9 +542,8 @@
}
.noob-tour {
- margin-bottom: vww(10);
+ margin-bottom: vww(30);
position: relative;
- top: -120px;
}
.u-popup {
@@ -558,7 +573,7 @@
width: vww(345);
margin: 0 vww(15);
position: relative;
- top: vww(-144);
+ // top: vww(-144);
.collection-form-item {
width: 690rpx;
--
Gitblit v1.9.1