|
@@ -38,25 +38,22 @@
|
|
|
<u-picker :show="show" :columns="columns" :closeOnClickOverlay='true' @close='selectTypeClose'
|
|
|
@cancel='selectTypeClose' @confirm='confirmSelectType'></u-picker>
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
|
|
|
- <view :id="'good'+good.id" class="good-list" v-for="good in goods" :key="good.id"
|
|
|
- @click="toDetail(good.id)">
|
|
|
+ <view class="good-list" v-for="(good,index) in goods" :key="index" @click="toDetail(good.id)">
|
|
|
<view style="padding: 0 35rpx 20rpx 35rpx;">
|
|
|
<view class="flex flex-space-between">
|
|
|
<view class="item1">
|
|
|
- <view class="ssx">辽</view>
|
|
|
+ <view class="ssx">{{$helper.getProvinceAbbreviation(good.sendPrivate)}}</view>
|
|
|
<view class="level2-title">{{good.sendCity}} {{good.sendArea}}</view>
|
|
|
</view>
|
|
|
|
|
|
<image class="jt-icon item2" src="@/static/images/goodSource/jt.png" mode='widthFix'></image>
|
|
|
<view class="item3">
|
|
|
- <view class="ssx">京</view>
|
|
|
+ <view class="ssx">{{$helper.getProvinceAbbreviation(good.unloadPrivate)}}</view>
|
|
|
<view class="level2-title">{{good.unloadCity}} {{good.unloadArea}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
<view class="right gray">
|
|
|
- 01.10
|
|
|
+ {{good.updateDate}}
|
|
|
</view>
|
|
|
<view class="flex flex-space-between">
|
|
|
<view class="left">
|
|
@@ -82,8 +79,7 @@
|
|
|
</view>
|
|
|
<view class="flex flex-space-between item-bottom">
|
|
|
<view class="left flex row">
|
|
|
- <u--image :showLoading="true" :src="good.cargoOwnerPortrait" width="70rpx" height="70rpx"
|
|
|
- shape="circle">
|
|
|
+ <u--image :src="good.cargoOwnerPortrait" width='122rpx' height='122rpx' shape="circle">
|
|
|
</u--image>
|
|
|
<view class="name">{{good.cargoOwnerName}}</view>
|
|
|
<!-- <view class="hp flex fontsize-24">
|
|
@@ -100,11 +96,76 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="">
|
|
|
+ 周边货源
|
|
|
+ <view class="good-list" v-for="(good,index) in otherGoods" :key="index" @click="toDetail(good.id)">
|
|
|
+ <view style="padding: 0 35rpx 20rpx 35rpx;">
|
|
|
+ <view class="flex flex-space-between">
|
|
|
+ <view class="item1">
|
|
|
+ <view class="ssx">{{$helper.getProvinceAbbreviation(good.sendPrivate)}}</view>
|
|
|
+ <view class="level2-title">{{good.sendCity}} {{good.sendArea}}</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <image class="jt-icon item2" src="@/static/images/goodSource/jt.png" mode='widthFix'>
|
|
|
+ </image>
|
|
|
+ <view class="item3">
|
|
|
+ <view class="ssx">{{$helper.getProvinceAbbreviation(good.unloadPrivate)}}</view>
|
|
|
+ <view class="level2-title">{{good.unloadCity}} {{good.unloadArea}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="right gray">
|
|
|
+ {{good.updateDate}}
|
|
|
+ </view>
|
|
|
+ <view class="flex flex-space-between">
|
|
|
+ <view class="left">
|
|
|
+ <view class="flex">
|
|
|
+ <view class="fontsize-25 gray mr20">货距 {{good.cargoDistance}}km</view>
|
|
|
+ <view class="fontsize-25 gray ">运距 {{good.distance}}km</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex fontsize-25 gray row">
|
|
|
+ <view>{{good.goodsName}} | </view>
|
|
|
+ <view>{{carLength(good)}} | {{carType(good)}} | {{carWeight(good)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="row-tips">{{good.taskDescription}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="right flex h-color">
|
|
|
+ <view class="fontsize-46">
|
|
|
+ {{good.freightPrice}}
|
|
|
+ </view>
|
|
|
+ <view class="flex dw">元/吨</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex flex-space-between item-bottom">
|
|
|
+ <view class="left flex row">
|
|
|
+ <u--image :src="good.cargoOwnerPortrait" width='122rpx' height='122rpx' shape="circle">
|
|
|
+ </u--image>
|
|
|
+ <view class="name">{{good.cargoOwnerName}}</view>
|
|
|
+ <!-- <view class="hp flex fontsize-24">
|
|
|
+ <view class="gray">评分</view>
|
|
|
+ <view class="number-color">99%</view>
|
|
|
+ </view>
|
|
|
+ <view class="sum flex fontsize-24">
|
|
|
+ <view class="gray">发运次数</view>
|
|
|
+ <view class="number-color">106</view>
|
|
|
+ </view> -->
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ <view @click.stop="grabOrders(good)" class="qd">抢单</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</mescroll-body>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
+ <u-modal :show="isShowAlert" :title="alertTitle" :closeOnClickOverlay='true' :showCancelButton='true'
|
|
|
+ confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick" @cancel="cancelClick"></u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
+ var that
|
|
|
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
|
|
import {
|
|
|
mapState
|
|
@@ -116,12 +177,16 @@
|
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
|
data() {
|
|
|
return {
|
|
|
+ ObjSelect: {},
|
|
|
+ isShowAlert: false,
|
|
|
+ alertTitle: '确定抢单?',
|
|
|
show: false,
|
|
|
columns: [
|
|
|
['全部类型', '运费先付']
|
|
|
],
|
|
|
- startPlace: '1',
|
|
|
- endPlace: '2',
|
|
|
+ startPlace: {},
|
|
|
+ endPlace: {},
|
|
|
+ otherGoods: [], // 数据列表
|
|
|
goods: [], // 数据列表
|
|
|
src: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
height: "", // 需要固定swiper的高度
|
|
@@ -143,7 +208,9 @@
|
|
|
pickerSelect: '全部类型',
|
|
|
tabIndex: 0,
|
|
|
scrollTop: 0,
|
|
|
- count: 0
|
|
|
+ count: 0,
|
|
|
+ lng: '',
|
|
|
+ lat: ''
|
|
|
}
|
|
|
},
|
|
|
onTabItemTap(e) {
|
|
@@ -152,7 +219,6 @@
|
|
|
scrollTop: 0,
|
|
|
duration: 300
|
|
|
});
|
|
|
- console.log(e)
|
|
|
},
|
|
|
created() {
|
|
|
|
|
@@ -160,34 +226,28 @@
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
|
|
|
},
|
|
|
- onShow() {
|
|
|
+ onShow() {debugger
|
|
|
//获取上一次点击起装卸地
|
|
|
- console.log(uni.getStorageSync('fPlaceObj'))
|
|
|
if (uni.getStorageSync('fPlaceObj')) {
|
|
|
this.startPlace = uni.getStorageSync('fPlaceObj');
|
|
|
} else {
|
|
|
- console.log(123)
|
|
|
- // this.getLngLat();
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.getLngLat();
|
|
|
+ // #endif
|
|
|
}
|
|
|
- console.log(uni.getStorageSync('sPlaceObj'))
|
|
|
if (uni.getStorageSync('sPlaceObj')) {
|
|
|
this.endPlace = uni.getStorageSync('sPlaceObj');
|
|
|
+ } else {
|
|
|
+ this.endPlace.selected = '全国'
|
|
|
}
|
|
|
-
|
|
|
+// this.mescroll.resetUpScroll()
|
|
|
|
|
|
},
|
|
|
onLoad() {
|
|
|
//#ifdef APP-PLUS
|
|
|
// this.getLngLat();
|
|
|
//#endif
|
|
|
- // let _isHave = this.$utils.getRoles('aaa')
|
|
|
- // console.log(_isHave)
|
|
|
- // var Ip=returnCitySN['cip']
|
|
|
- // var cityname=returnCitySN['cname']
|
|
|
- // localStorage.setItem('Ip', Ip)
|
|
|
- // console.log(localStorage.getItem('Ip', Ip))
|
|
|
- // localStorage.setItem('cityname', cityname)
|
|
|
- // console.log(localStorage.getItem('cityname', cityname))
|
|
|
+ that = this
|
|
|
},
|
|
|
onPageScroll(res) {
|
|
|
this.scrollTop = res.scrollTop
|
|
@@ -210,6 +270,56 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ mescrollInit(mescroll) {debugger
|
|
|
+ this.mescroll = mescroll;
|
|
|
+ },
|
|
|
+ confirmClick() {
|
|
|
+ let item = this.ObjSelect
|
|
|
+ let _obj = {
|
|
|
+ driverCommonId: this.firstAuthentication.commonId,
|
|
|
+ commonId: item.commonId,
|
|
|
+ cargoOwnerName: item.cargoOwnerName,
|
|
|
+ cargoOwner: item.cargoOwner,
|
|
|
+ sendPrivate: item.sendPrivate,
|
|
|
+ sendCity: item.sendCity,
|
|
|
+ sendArea: item.sendArea,
|
|
|
+ sendDetailedAddress: item.sendDetailedAddress,
|
|
|
+ unloadPrivate: item.unloadPrivate,
|
|
|
+ unloadCity: item.unloadCity,
|
|
|
+ unloadArea: item.unloadArea,
|
|
|
+ unloadDetailedAddress: item.unloadDetailedAddress,
|
|
|
+ goodsName: item.goodsName,
|
|
|
+ distance: item.distance,
|
|
|
+ freightPrice: item.freightPrice,
|
|
|
+ driverName: this.firstAuthentication.driverName,
|
|
|
+ driverPhone: this.firstAuthentication.driverPhone,
|
|
|
+ cargoOwnerPhone: item.cargoOwnerPhone
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$request.baseRequest('post', '/publishTaskInfo/api/addOrder', _obj).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "抢单成功!",
|
|
|
+ complete() {
|
|
|
+ uni.switchTab({
|
|
|
+ url: "/pages/order/index"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
+ this.isShowAlert = false
|
|
|
+ },
|
|
|
+ cancelClick() {
|
|
|
+ this.isShowAlert = false
|
|
|
+ },
|
|
|
carLength(good) {
|
|
|
let length = ''
|
|
|
if (good.carLengthSmall && good.carLength) {
|
|
@@ -222,21 +332,21 @@
|
|
|
return length
|
|
|
},
|
|
|
carType(good) {
|
|
|
- let _val = '';
|
|
|
- if (good.carModel == 1) {
|
|
|
- _val = '不限'
|
|
|
- } else {
|
|
|
- if (good.carModel.includes(2)) {
|
|
|
- _val += '高栏/'
|
|
|
- }
|
|
|
- if (good.carModel.includes(3)) {
|
|
|
- _val += '集装箱/'
|
|
|
- }
|
|
|
- if (good.carModel.includes(4)) {
|
|
|
- _val += '自卸车'
|
|
|
- }
|
|
|
- }
|
|
|
- return _val
|
|
|
+ // let _val = '';
|
|
|
+ // if (good.carModel == 1) {
|
|
|
+ // _val = '不限'
|
|
|
+ // } else {
|
|
|
+ // if (good.carModel.includes(2)) {
|
|
|
+ // _val += '高栏/'
|
|
|
+ // }
|
|
|
+ // if (good.carModel.includes(3)) {
|
|
|
+ // _val += '集装箱/'
|
|
|
+ // }
|
|
|
+ // if (good.carModel.includes(4)) {
|
|
|
+ // _val += '自卸车'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return _val
|
|
|
},
|
|
|
carWeight(good) {
|
|
|
good.loadWeightSmall
|
|
@@ -265,50 +375,11 @@
|
|
|
return String(year) + String(mouth) + String(datetime)
|
|
|
},
|
|
|
grabOrders(item) {
|
|
|
- let _obj = {
|
|
|
- driverCommonId: this.firstAuthentication.commonId,
|
|
|
- commonId: item.commonId,
|
|
|
- cargoOwnerName: item.cargoOwnerName,
|
|
|
- cargoOwner: item.cargoOwner,
|
|
|
- sendPrivate: item.sendPrivate,
|
|
|
- sendCity: item.sendCity,
|
|
|
- sendArea: item.sendArea,
|
|
|
- sendDetailedAddress: item.sendDetailedAddress,
|
|
|
- unloadPrivate: item.unloadPrivate,
|
|
|
- unloadCity: item.unloadCity,
|
|
|
- unloadArea: item.unloadArea,
|
|
|
- unloadDetailedAddress: item.unloadDetailedAddress,
|
|
|
- goodsName: item.goodsName,
|
|
|
- distance: item.distance,
|
|
|
- freightPrice: item.freightPrice,
|
|
|
- driverName: this.firstAuthentication.driverName,
|
|
|
- driverPhone: this.firstAuthentication.driverPhone,
|
|
|
- cargoOwnerPhone: item.cargoOwnerPhone
|
|
|
- }
|
|
|
- this.$request.baseRequest('post', '/publishTaskInfo/api/addOrder', _obj).then(res => {
|
|
|
- debugger
|
|
|
- if (res.code == 200) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "抢单成功!",
|
|
|
- complete() {
|
|
|
- uni.switchTab({
|
|
|
- url: "/pages/order/index"
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
+ this.isShowAlert = true
|
|
|
+ this.ObjSelect = item
|
|
|
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- uni.$u.toast(res.message);
|
|
|
- });
|
|
|
},
|
|
|
confirmSelectType(val) {
|
|
|
- debugger
|
|
|
- console.log(val)
|
|
|
this.pickerSelect = val.value[0]
|
|
|
this.show = false
|
|
|
},
|
|
@@ -319,19 +390,15 @@
|
|
|
this.show = true
|
|
|
},
|
|
|
getLngLat() {
|
|
|
- console.log(11111111111111111111111111111111111111111111111111111)
|
|
|
uni.getLocation({
|
|
|
type: 'gcj02',
|
|
|
geocode: true,
|
|
|
success: res => {
|
|
|
- console.log('--------------------------------')
|
|
|
- console.log(res)
|
|
|
if (res.latitude) {
|
|
|
- this.lat = res.latitude + ',' + res.longitude;
|
|
|
- this.startPlace = res.address.city
|
|
|
- // this.lng = res.longitude;
|
|
|
+ that.startPlace.selected = res.address.city
|
|
|
+ this.lng = res.longitude;
|
|
|
+ this.lat = res.latitude;
|
|
|
} else {
|
|
|
- console.log(uni.getSystemInfoSync().platform)
|
|
|
if (uni.getSystemInfoSync().platform == 'android') {
|
|
|
var context = plus.android.importClass("android.content.Context");
|
|
|
var locationManager = plus.android.importClass(
|
|
@@ -368,35 +435,92 @@
|
|
|
});
|
|
|
},
|
|
|
toDetail(id) {
|
|
|
- uni.$u.route('/pages/goodSource/shippingDetails', {
|
|
|
- id: id,
|
|
|
- });
|
|
|
+ //司机是否认证身份
|
|
|
+ if (this.firstAuthentication.authenticationStatus == '已认证') {
|
|
|
+ uni.$u.route('/pages/goodSource/shippingDetails', {
|
|
|
+ id: id,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "请先完成司机认证!",
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
|
upCallback(page) {
|
|
|
+ debugger
|
|
|
let _pickerSelect;
|
|
|
if (this.pickerSelect == '运费先付') {
|
|
|
_pickerSelect = 1
|
|
|
} else {
|
|
|
_pickerSelect = 0
|
|
|
}
|
|
|
+ //选择省市区
|
|
|
+ let _data = {
|
|
|
+ searchKeyWord: this.tabIndex + 1,
|
|
|
+ searchType: _pickerSelect,
|
|
|
+ // loadingPlace: this.startPlace.selected,
|
|
|
+ // unLoadingPlace: this.endPlace.selected=="全国"?'':this.endPlace.selected,
|
|
|
+ pageSize: page.size,
|
|
|
+ currentPage: page.num,
|
|
|
+
|
|
|
+ // loadingPlaceCity: this.startPlace.fchoosecity,
|
|
|
+ // unLoadingPlaceCity: this.endPlace.schoosecity
|
|
|
|
|
|
- this.$request.baseRequest('get', '/publishTaskInfo/selectGoodsSource', {
|
|
|
- // searchKeyWord: this.tabIndex + 1,
|
|
|
- // searchType: _pickerSelect,
|
|
|
- loadingPlace: this.startPlace.selected,
|
|
|
- unLoadingPlace: this.endPlace.selected,
|
|
|
- pageSize: page.size,
|
|
|
- currentPage: page.num,
|
|
|
- // loadingPlaceCity: this.startPlace.fchoosecity,
|
|
|
- // unLoadingPlaceCity: this.endPlace.schoosecity
|
|
|
-
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.goods = res.data.records
|
|
|
+ }
|
|
|
+ if (this.tabIndex == 2) {
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.getLngLat();
|
|
|
+ // #endif
|
|
|
+ _data.driverLongitude = this.lng
|
|
|
+ _data.driverLatitude = this.lat
|
|
|
+ }
|
|
|
+ console.log('------')
|
|
|
+ console.log(_data)
|
|
|
+ if (uni.getStorageSync('fPlaceObj')) {
|
|
|
+ if (this.startPlace.fchoosearea && this.startPlace.fchoosearea == '全部' && this.startPlace
|
|
|
+ .fchoosearea != '请选择区') {
|
|
|
+ _data.loadingPlaceCity = this.startPlace.fchoosecity
|
|
|
+ } else if (this.startPlace.fchoosecity == '全部') {
|
|
|
+ _data.loadingPlace = this.startPlace.selected
|
|
|
+ } else {
|
|
|
+ _data.loadingPlaceCity = this.startPlace.fchoosecity
|
|
|
+ _data.loadingPlace = this.startPlace.fchoosearea
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ _data.loadingPlaceCity = this.startPlace.fchoosecity
|
|
|
+ }
|
|
|
+ if (uni.getStorageSync('sPlaceObj')) {
|
|
|
+ if (this.endPlace.schoosearea && this.endPlace.schoosearea == '全部' && this.endPlace.schoosearea !=
|
|
|
+ '请选择区') {
|
|
|
+ _data.unLoadingPlaceCity = this.endPlace.schoosecity
|
|
|
+ } else if (this.endPlace.schoosearea) {
|
|
|
+ _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
|
|
|
+ } else {
|
|
|
+ _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
|
|
|
+ _data.unLoadingPlaceCity = this.endPlace.schoosecity
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ _data.unLoadingPlace = this.endPlace.selected == "全国" ? '' : this.endPlace.selected
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ this.$request.baseRequest('get', '/publishTaskInfo/selectGoodsSource', _data).then(res => {
|
|
|
+ if (res.code == 200) {debugger
|
|
|
this.mescroll.endBySize(res.data.records.length, res.data.total);
|
|
|
+ if (page.num == 1) {
|
|
|
+ this.goods = [];
|
|
|
+ // this.otherGoods = []
|
|
|
+ }; //如果是第一页需手动制空列表
|
|
|
+ // if(!res.data.records[0].publishTaskInfoList) res.data.records[0].publishTaskInfoList = []
|
|
|
+ // if(!res.data.records[0].publishTaskInfoLists) res.data.records[0].publishTaskInfoLists = []
|
|
|
+ this.goods = this.goods.concat(res.data.records); //追加新数据
|
|
|
+ // this.otherGoods = this.otherGoods.concat(res.data.records[0].publishTaskInfoLists);
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
@@ -449,9 +573,14 @@
|
|
|
// })
|
|
|
},
|
|
|
clickTab(val) {
|
|
|
- console.log(val)
|
|
|
+ this.tabIndex = val.index
|
|
|
+ this.upCallback({
|
|
|
+ size: 10,
|
|
|
+ num: 1,
|
|
|
+ })
|
|
|
},
|
|
|
changeCity() {
|
|
|
+ debugger
|
|
|
if (this.endPlace == '全国') {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -459,15 +588,25 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- [this.startPlace, this.endPlace] = [this.endPlace, this.startPlace];
|
|
|
+
|
|
|
+ [this.startPlace.fchooseprovince, this.endPlace.schooseprovince] = [this.endPlace.schooseprovince, this
|
|
|
+ .startPlace.fchooseprovince
|
|
|
+ ];
|
|
|
+ [this.startPlace.fchoosecity, this.endPlace.schoosecity] = [this.endPlace.schoosecity, this.startPlace
|
|
|
+ .fchoosecity
|
|
|
+ ];
|
|
|
+ [this.startPlace.fchoosearea, this.endPlace.schoosearea] = [this.endPlace.schoosearea, this.startPlace
|
|
|
+ .fchoosearea
|
|
|
+ ];
|
|
|
+ [this.startPlace.selected, this.endPlace.selected] = [this.endPlace.selected, this.startPlace.selected];
|
|
|
+ // [this.startPlace, this.endPlace] = [this.endPlace, this.startPlace];
|
|
|
},
|
|
|
goCity(type) {
|
|
|
uni.$u.route('/pages/goodSource/selectCity', {
|
|
|
- startPlace: this.startPlace,
|
|
|
- endPlace: this.endPlace,
|
|
|
+ startPlace: JSON.stringify(this.startPlace),
|
|
|
+ endPlace: JSON.stringify(this.endPlace),
|
|
|
type: type
|
|
|
});
|
|
|
- console.log(type)
|
|
|
},
|
|
|
swiperChange(e) {
|
|
|
this.tabIndex = e.detail.current
|