From ae08a735c561038fc1babfa662a597bd742da079 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 11 九月 2023 11:11:03 +0800 Subject: [PATCH] 操作指引修改,增加重置密码和修改密码 --- pages/driver-page/driver-index/driver-index.vue | 123 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 110 insertions(+), 13 deletions(-) diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue index 13f4f87..e94b2b9 100644 --- a/pages/driver-page/driver-index/driver-index.vue +++ b/pages/driver-page/driver-index/driver-index.vue @@ -2,9 +2,28 @@ <view class=""> <view class="driver-index"> <view class="driver-index-body"> - <!-- 寰呴鍙栨彁鐓ゅ崟 --> + <!-- 寰呴鍙栭�氱煡鍗� --> <view class="wait-collection" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/diverbanner.png') no-repeat;background-size:contain"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/diverbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }"> + </view> + <!-- 寮曞椤� --> + <view class="noob-tour" + v-if="roleType===3&&isFirstLogin"> + <combined-title title="鎿嶄綔鎸囧紩"></combined-title> + <u-cell-group> + <u-cell title="鏂版墜鎸囧紩" + name='1' + :clickable="true" + @click="noobTour"> + <u-badge type="primary" + value="01" + slot='icon'></u-badge> + <u-icon slot="value" + name="arrow-right" + size="30" + color="#b8b8b8"></u-icon> + </u-cell> + </u-cell-group> </view> <view class="collection-form"> <view class="collection-form-item" @@ -71,9 +90,9 @@ @cancel="qiangDanCancel"></u-modal> </view> - <!-- 寰呴绾︽彁鐓ゅ崟 --> + <!-- 寰呴绾﹂�氱煡鍗� --> <view class="wait-appointment"> - <combined-title title="寰呴绾︽彁鐓ゅ崟"></combined-title> + <combined-title title="寰呴绾﹂�氱煡鍗�"></combined-title> <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" @@ -149,9 +168,9 @@ </view> </view> - <!-- 宸查绾︽彁鐓ゅ崟 --> + <!-- 宸查绾﹂�氱煡鍗� --> <view class="Reserved"> - <combined-title title="宸查绾︽彁鐓ゅ崟"></combined-title> + <combined-title title="宸查绾﹂�氱煡鍗�"></combined-title> <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" @@ -226,6 +245,12 @@ </view> <view class="white-block"></view> </view> + <!-- 鍥剧墖棰勮寮瑰嚭妗� --> + <view class="previewImage-container"> + <previewImage ref="previewImage" + :imgs="driverTourImgList" + :saveBtn='false'></previewImage> + </view> </view> </view> </view> @@ -234,10 +259,14 @@ <script> import { customerId } from '@/utils/status'; import combinedTitle from '@/components/combined-title/combined-title.vue'; - + import { onlineurl } from '@/api/request.js' + import { BaseUrl } from '@/api/publicInterface.js' + import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; + import { mapState } from 'vuex' export default { components: { - combinedTitle + combinedTitle, + previewImage }, props: { indexdriverBillOfLoadingData: { @@ -252,7 +281,13 @@ }, deep: true, immediate: true - } + }, + }, + computed: { + ...mapState(['driverTourImgList']), + roleType() { + return uni.getStorageSync('roleType'); + }, }, data() { return { @@ -269,8 +304,14 @@ fleetId: '', xsUserId: '', customerId: '', - coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚'] + coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '楠岃川瀹屾垚'], + onlineurl, + phone: "", + isFirstLogin: true //鏄惁鏄涓�娆$櫥褰� }; + }, + onLoad() { + this.TourImgList = TourImgList }, onShow() { this.init(); @@ -286,6 +327,7 @@ }, init() { this.qiangDanList(); + this.getLogOn() }, // 鍙告満棣栭〉鍒楄〃 qiangDanList() { @@ -346,7 +388,7 @@ url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${value.id}&yyId=${value.yyId}` }); }, - // 鎻愮叅鍗曡鎯� + // 閫氱煡鍗曡鎯� cardBodyClick(name) { uni.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${name}` @@ -357,7 +399,29 @@ uni.navigateTo({ url: `/pages/driver-page/appointment/appointment?takeCoalId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}` }); - } + }, + noobTour() { + this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj1.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> @@ -441,6 +505,16 @@ } } + .fade-enter-active, + .fade-leave-active { + transition: opacity 0.5s; + } + + .fade-enter, + .fade-leave-to { + opacity: 0; + } + .exceedHide { white-space: nowrap; overflow: hidden; @@ -455,7 +529,7 @@ .driver-index-body { // margin-bottom: vww(56); - // 寰呴鍙栨彁鐓ゅ崟 + // 寰呴鍙栭�氱煡鍗� .wait-collection { width: 100%; height: 600rpx; @@ -846,6 +920,29 @@ margin-top: vww(10); } } + + .noob-tour { + margin-bottom: vww(10); + position: relative; + top: -240rpx; + } + + .u-popup { + .u-transition { + .u-popup__content { + .editDriverPopup-container-box {} + + //closeIcon + .u-popup__content__close--top-right { + .u-icon { + .u-icon__icon { + font-size: vww(20) !important; + } + } + } + } + } + } } } </style> \ No newline at end of file -- Gitblit v1.9.1