zhangdan 4 år sedan
förälder
incheckning
a596ce2059
2 ändrade filer med 8 tillägg och 19 borttagningar
  1. 4 15
      pages/index/userInfo.vue
  2. 4 4
      pages/order/index.vue

+ 4 - 15
pages/index/userInfo.vue

@@ -82,11 +82,9 @@
 		},
 		onLoad(option) {
 			console.log(option,option.id,'ppppppppp')
-			// this.userDetailInfo={}
 			this.getDetailData()
 		},
 		onShow() {
-			// this.getDetailData()
 		},
 		onUnload() {
 		},
@@ -96,7 +94,6 @@
 				userDetail().then(res=>{
 					if(res.status==200){
 						console.log(res,res.data,'---------------详情数据')
-						// this.userDetailInfo=res.data
 						if(res.data){
 							this.form=res.data
 							this.$refs.addressType.setVal(res.data.addressType)
@@ -104,11 +101,6 @@
 							this.form.lat=res.data.latitude
 							this.form.lng=res.data.longitude
 						}
-						// this.form.addressType=res.data.addressType
-						// this.form.contactMobile=res.data.contactMobile
-						// this.form.contactName=res.data.contactName
-						// this.form.contactAddress=res.data.contactAddress
-						// this.form.houseAddress=res.data.houseAddress
 					}
 				})
 			},
@@ -121,13 +113,10 @@
 				wx.chooseLocation({
 					success:(res)=>{
 						if(res){
-							console.log(res,'--------dizhi ')
-							this.$nextTick(()=>{
-								this.form.contactAddress=res.address
-								this.form.lat=res.latitude
-								this.form.lng=res.longitude
-								console.log(res.address,'-----------res.address',this.form.contactAddress)
-							})
+							this.form.contactAddress=res.address
+							this.form.lat=res.latitude
+							this.form.lng=res.longitude
+							console.log(res.address,'-----------res.address',this.form.contactAddress)
 						}
 					}
 				})

+ 4 - 4
pages/order/index.vue

@@ -1,17 +1,17 @@
 <template>
 	<view class="content">
 		<view v-for="item in orderList" class="order-content">
-			<view class="item-userInfo item1">
+			<view class="item-userInfo item1" @click="itemChange(item)">
 				<view class="userInfo">
 					<u-image src="/static/order_avatar_rider.png" width="72" height="72" shape="circle"></u-image>
 					<view class="userInfo-nameOrPhone">
 						<view class="name">{{item.name}}</view>
-						<view class="phone" @click="callPhone(item.phone)"><u-icon name="phone" size="36"></u-icon><view style="margin-left: 10upx;">{{item.phone}}</view></view>
+						<view class="phone" @click.stop="callPhone(item.phone)"><u-icon name="phone" size="36"></u-icon><view style="margin-left: 10upx;">{{item.phone}}</view></view>
 					</view>
 				</view>
 				<view>
-					<u-icon v-show="item.isUp" name="arrow-up" color="#999" size="36" @click="itemChange(item)"></u-icon>
-					<u-icon v-show="!item.isUp" name="arrow-down" color="#999" size="36" @click="itemChange(item)"></u-icon>
+					<u-icon v-show="item.isUp" name="arrow-up" color="#999" size="36" ></u-icon>
+					<u-icon v-show="!item.isUp" name="arrow-down" color="#999" size="36"></u-icon>
 				</view>
 			</view>
 			<view v-show="item.isUp">