zhangdan 4 rokov pred
rodič
commit
1a32060dab

+ 2 - 2
pages/agreement/agreement.vue

@@ -2,10 +2,10 @@
 	<view class="content">
 		<view class="page-content">
 			<view class="page-care agreement">
-				<view class="title">-分类垃圾录入端用户服务协议(声明)-</view>
+				<view class="title">-乐色超人端用户服务协议(声明)-</view>
 				<view class="xy-cons">
 					<view class="MsoNormal">
-						“分类垃圾录入端用户小程序”(以下简称“用户小程序”)由陕西智享亿家环保科技有限公司(以下简称“本公司”)提供。用户在登录用户小程序时,均被视为已经仔细阅读本条款并完全同意。凡以任何方式登录本用户小程序,包括但不限于接受用户小程序服务、直接或间接使用本用户小程序资料、第三方链接等,均被视为自愿接受本用户小程序相关声明和用户服务协议的约束。
+						“乐色超人端用户小程序”(以下简称“用户小程序”)由陕西智享亿家环保科技有限公司(以下简称“本公司”)提供。用户在登录用户小程序时,均被视为已经仔细阅读本条款并完全同意。凡以任何方式登录本用户小程序,包括但不限于接受用户小程序服务、直接或间接使用本用户小程序资料、第三方链接等,均被视为自愿接受本用户小程序相关声明和用户服务协议的约束。
 					</view>
 					<view class="MsoNormal">
 						一、用户小程序使用

+ 35 - 34
pages/index/index.vue

@@ -9,7 +9,7 @@
 			<!-- 预约 -->
 			<u-button :custom-style="yuYueBtn" :hair-line="false" @click="gotoYueYu">一键预约</u-button>
 			<!-- 接单信息 -->
-			<view class="bottom-new-notice">
+			<view class="bottom-new-notice" v-if="orderStatusText">
 				<view class="notice-content">
 					<view class="notice-content-item"><span class="t-icon t-icon-home_icon_bells"></span><span class="item-title">最新通知</span></view>
 					<view class="notice-content-item">骑手<span>{{orderStatusText ? orderStatusText :''}},</span>请耐心等待</view>
@@ -114,6 +114,7 @@
 				this.getBanner()
 				this.geRubbishTypeList()
 				this.getOrderStatus()
+				this.checkUpdate()
 			},
 			// 获取banner图
 			getBanner(){
@@ -167,37 +168,37 @@
 			},
 			// 检查更新
 			checkUpdate(){
-				// if (uni.canIUse('getUpdateManager')) {
-				//       const updateManager = uni.getUpdateManager()
-				//       updateManager.onCheckForUpdate(function (res) {
-				//         console.log('onCheckForUpdate====', res)
-				//         // 请求完新版本信息的回调
-				//         if (res.hasUpdate) {
-				//           console.log('res.hasUpdate====')
-				//           updateManager.onUpdateReady(function () {
-				//             uni.showModal({
-				//               title: '更新提示',
-				//               content: '新版本已经准备好,是否重启应用?',
-				//               success: function (res) {
-				//                 console.log('success====', res)
-				//                 // res: {errMsg: "showModal: ok", cancel: false, confirm: true}
-				//                 if (res.confirm) {
-				//                   // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
-				//                   updateManager.applyUpdate()
-				//                 }
-				//               }
-				//             })
-				//           })
-				//           updateManager.onUpdateFailed(function () {
-				//             // 新的版本下载失败
-				//             uni.showModal({
-				//               title: '已经有新版本了哟~',
-				//               content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
-				//             })
-				//           })
-				//         }
-				//       })
-				//     }
+				if (uni.canIUse('getUpdateManager')) {
+				      const updateManager = uni.getUpdateManager()
+				      updateManager.onCheckForUpdate(function (res) {
+				        console.log('onCheckForUpdate====', res)
+				        // 请求完新版本信息的回调
+				        if (res.hasUpdate) {
+				          console.log('res.hasUpdate====')
+				          updateManager.onUpdateReady(function () {
+				            uni.showModal({
+				              title: '更新提示',
+				              content: '新版本已经准备好,是否重启应用?',
+				              success: function (res) {
+				                console.log('success====', res)
+				                // res: {errMsg: "showModal: ok", cancel: false, confirm: true}
+				                if (res.confirm) {
+				                  // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
+				                  updateManager.applyUpdate()
+				                }
+				              }
+				            })
+				          })
+				          updateManager.onUpdateFailed(function () {
+				            // 新的版本下载失败
+				            uni.showModal({
+				              title: '已经有新版本了哟~',
+				              content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
+				            })
+				          })
+				        }
+				      })
+				    }
 			},
 			// scroll-view到底部加载更多
 			onreachBottom() {
@@ -280,7 +281,7 @@
 				.bottom-new-notice{
 					background-image: url('../../static/home_bg_expressage.png');
 					height:220upx;
-					margin: 30upx 0;
+					margin-top: 30upx;
 					display: flex;
 					justify-content: space-between;
 					align-items: center;
@@ -314,7 +315,7 @@
 					}
 				}
 				.bottom-zhiyin{
-					margin-bottom: 30upx;
+					margin: 30upx 0;
 				}
 				.statistics-title{
 					font-size: 36upx;

+ 4 - 58
pages/index/userInfo.vue

@@ -86,6 +86,7 @@
 		onLoad(option) {
 			console.log(option,option.id,'ppppppppp')
 			this.getDetailData()
+			uni.$emit()
 			// 查看
 			// if(option && option.id){
 			// 	this.isView = true
@@ -105,7 +106,6 @@
 			getDetailData(){
 				userDetail().then(res=>{
 					if(res.status==200){
-						this.form.info=res.data.contactName
 						this.userDetailInfo=res.data
 						this.form.contactMobile=res.data.contactMobile
 						this.form.contactName=res.data.contactName
@@ -240,9 +240,10 @@
 						console.log(params,'--------用户信息')
 						userInfoSave(params).then(res=>{
 							if(res.status==200){
+								uni.$emit('add', {data: 'userInfo' })
 								setTimeout(()=>{
-									wx.navigateTo({
-										url: '/pages/index/yuyue'
+									uni.navigateBack({
+										
 									})
 								},300)
 							}
@@ -254,61 +255,6 @@
 					}
 				});
 			},
-			// 确认提交
-			// onOk() {
-			// 	this.$refs.openModal.close()
-			// 	let params = {
-			// 		rubbishEntityList: [],
-			// 		imageUrlList: this.photograph,
-			// 		remarks: this.form.remarks
-			// 	}
-			// 	if(this.itemId){
-			// 		params.id=this.itemId
-			// 	}
-			// 	if(this.form.gatherNum_other) {
-			// 		params.rubbishEntityList.push({
-			// 			"rubbishType":"GATHER_OTHER",
-			// 			"rubbishWeight": this.form.gatherNum_other*240,
-			// 			"gatherNum": this.form.gatherNum_other,
-			// 			"unit":"BUCKET"
-			// 		})
-			// 	}
-			// 	if(this.form.gatherNum_chuyu) {
-			// 		params.rubbishEntityList.push({
-			// 			"rubbishType":"GATHER_KITCHEN",
-			// 			"rubbishWeight": this.form.gatherNum_chuyu*240,
-			// 			"gatherNum": this.form.gatherNum_chuyu,
-			// 			"unit":"BUCKET"
-			// 		})
-			// 	}
-			// 	if(this.form.gatherNum_jianzhu) {
-			// 		params.rubbishEntityList.push({
-			// 			"rubbishType":"GATHER_BUILDING",
-			// 			"rubbishWeight": this.form.gatherNum_jianzhu*1000,
-			// 			"gatherNum": this.form.gatherNum_jianzhu,
-			// 			"unit":"TON"
-			// 		})
-			// 	}
-			// 	this.loading=true
-			// 	gatherSave(params).then(res=>{
-			// 		if(res.status == 200) {
-			// 			uni.showToast({
-			// 				title: res.message,
-			// 				icon: 'none'
-			// 			})
-			// 			setTimeout(()=>{
-			// 				uni.navigateBack()
-			// 			},300)
-			// 		} else {
-			// 			uni.showToast({
-			// 				title: res.message,
-			// 				icon: 'none'
-			// 			})
-			// 		}
-			// 		this.loading= false
-			// 	})
-			// },
-			
 		},
 		// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
 		onReady() {

+ 20 - 14
pages/index/yuyue.vue

@@ -53,22 +53,14 @@
 			<!-- <u-button @click="submit" :loading="loading" :custom-style="submitBtn" :disabled="!hasRider">提交</u-button> -->
 			<u-button @click="submit" :loading="loading" :custom-style="submitBtn">提交</u-button>
 		</view>
-		<!-- <uni-popup ref="openModal" type="center">
-			<uni-popup-dialog content="确认提交吗?" @confirm="onOk" :title="title"></uni-popup-dialog>
-		</uni-popup> -->
 	</view>
 </template>
 
 <script>
-	// import uniPopup from '@/components/uni-popup/uni-popup.vue'
-	// import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
 	import {searchRider} from '@/api/index.js'
 	import {saveImgToAliOss} from '@/libs/tools.js'
 	import { getLookUpDatas,userDetail,yuyueInfoSave } from '@/api/data'
 	export default {
-		// components: {
-		// 	uniPopup,uniPopupDialog
-		// },
 		data() {
 			return {
 				title:'',
@@ -102,6 +94,7 @@
 					borderRadius: '12px'
 				},
 				show: false,
+				val:'',
 				list: [
 					{
 						value: 1,
@@ -149,8 +142,12 @@
 			};
 		},
 		onLoad(option) {
-			console.log(option,option.id,'ppppppppp')
-			this.pageInfo()
+			console.log(option,option.pageType,'ppppppppp')
+			// if(!option.pageType){
+			// 	this.pageInfo()
+			// }
+			uni.$on('pageType', this.pageType)
+			
 			// 查看
 			// if(option && option.id){
 			// 	this.isView = true
@@ -185,12 +182,20 @@
 				this.userDetailInfo={}
 				this.photograph=[]
 				this.rubbishTypeList=[]
-				// this.latitude=''  // 当前位置经度
-				// this.longitude='' // 当前位置维度
+				this.rubbishTypeListData=[]
+				this.latitude=''  // 当前位置经度
+				this.longitude='' // 当前位置维度
 				this.rubbishType()
 				this.getDetailData()
 				this.rubbishWeightType()
 			},
+			pageType(e){
+				this.val += e.data
+				if(this.val!='userInfo'){
+					this.pageInfo()
+				}
+				console.log(this.val,'----------',e)
+			},
 			// 获取垃圾分类
 			rubbishType () {
 			  let _this = this
@@ -283,7 +288,7 @@
 			},
 			itemRubbishWeightChange(item){
 				this.checkWeightType=item.code
-				console.log(item,item.code,'--------------',this.check)
+				console.log(item,item.code,'--------------',this.check,this.checkWeightType)
 			},
 			// 获取详情数据
 			getDetailData(){
@@ -375,7 +380,7 @@
 							params.reserveDateBegin=this.reserveDateBegin
 							params.reserveDateEnd=this.reserveDateEnd
 						}
-						if(this.reserveWeight){
+						if(this.checkWeightType){
 							params.reserveWeight=this.checkWeightType
 						} 
 						if(this.photograph){
@@ -389,6 +394,7 @@
 							})
 							params.rubbishTypeList=this.rubbishTypeList
 						}
+						console.log(params,'------------参数')
 						yuyueInfoSave(params).then(res=>{
 							if(res.status==200){
 								uni.showToast({

+ 6 - 14
pages/index/zhiyin.vue

@@ -2,19 +2,19 @@
 	<view class="content">
 		<view class="content-item">
 			<view class="item-title">一、点击首页【一键预约】,进入预约 下单流程。</view>
-			<view class="item-img"><u-image src="/static/stepOne.png" width="460rpx" height="400rpx"></u-image></view>
+			<view class="item-img"><image src="/static/stepOne.png" style="width: 260px;height: 200px;"></image></view>
 		</view>
 		<view class="content-item">
 			<view class="item-title">二、录入预约时间、用户信息、预约分 类、预估重量等信息,输入完毕点击【 立刻下单】,即可提交订单。</view>
-			<view class="item-img"><u-image src="/static/stepTwo.png" width="460rpx" height="400rpx"></u-image></view>
+			<view class="item-img"><image src="/static/stepTwo.png" style="width: 260px;height: 200px;"></image></view>
 		</view>
 		<view class="content-item">
 			<view class="item-title">三、订单提交完成,等待骑手上门。 可在【待服务】列表查看待服务订单 详情。</view>
-			<view class="item-img"><u-image src="/static/stepThree.png" width="460rpx" height="400rpx"></u-image></view>
+			<view class="item-img"><image src="/static/stepThree.png" style="width: 260px;height: 200px;"></image></view>
 		</view>
 		<view class="content-item">
 			<view class="item-title">四、骑手上门服务,录入回收品类和 重量信息,自动生成应付金额,线下 支付给用户。</view>
-			<view class="item-img"><u-image src="/static/stepFour.png" width="460rpx" height="400rpx"></u-image></view>
+			<view class="item-img"><image src="/static/stepFour.png" style="width: 260px;height: 200px;"></image></view>
 		</view>
 	</view>
 </template>
@@ -29,7 +29,7 @@
 		padding: 60upx;
 		display: flex;
 		flex-direction: column;
-		.content-item{
+		.content-item:not(last-child){
 			text-align: center;
 			margin-bottom: 120upx;
 			.item-title{
@@ -37,15 +37,7 @@
 				font-family: PingFang SC;
 				font-weight: 500;
 				color: #191919;
-				.item-img{
-					margin: 60upx auto 120upx;
-					// display: flex;
-					// justify-content: center;
-					.img{
-						// width: 100%;
-						// height: 100%;
-					}
-				}
+				margin-bottom: 60upx;
 			}
 		}
 	}

+ 1 - 0
pages/order/index.vue

@@ -66,6 +66,7 @@
 			this.getOrderListData()
 		},
 		onShow() {
+			// this.getOrderListData()
 			checkLogin().then(res => {
 				this.hasLogin=res.status==200
 				if(this.hasLogin){

+ 2 - 2
pages/userCenter/index.vue

@@ -19,8 +19,8 @@
 		<!-- 列表 -->
 		<view class="user-list">
 			<u-cell-group>
-				<u-cell-item  icon="error-circle" icon-size="38" :icon-style="{color:'#aaaaff'}" :value="version" v-if="hasLogin" @click="checkUpdate" title="版本检查"></u-cell-item>
-				<u-cell-item  v-if="hasLogin" icon="minus-circle" icon-size="40"  @click="quitSys" title="退出登录"></u-cell-item>
+				<u-cell-item  icon="error-circle" icon-size="38" :value="version" v-if="hasLogin" @click="checkUpdate" title="版本检查"></u-cell-item>
+				<u-cell-item  v-if="hasLogin" icon="minus-circle" icon-size="38"  @click="quitSys" title="退出登录"></u-cell-item>
 			</u-cell-group>
 		</view>
 	</view>