4.26(优化更新

This commit is contained in:
Hong
2024-04-26 15:13:12 +08:00
parent c220f5acb4
commit 450c1d1044
29 changed files with 112 additions and 178 deletions

View File

@@ -171,9 +171,7 @@
showCancel: false,
success: function(res) {
if (res.confirm) {
//console.log('用户点击确定');
} else if (res.cancel) {
//console.log('用户点击取消');
}
}
});
@@ -304,7 +302,6 @@
}
},
fail: (res) => {
console.log(res.errMsg);
}
});
}
@@ -383,12 +380,10 @@
src: item,
quality: this.quality,
success: res => {
//console.log('compressImage', res.tempFilePath)
results.push(res.tempFilePath);
resolve(res.tempFilePath);
},
fail: (err) => {
//console.log(err.errMsg);
reject(err);
},
complete: () => {
@@ -410,7 +405,6 @@
Promise.all(compressImgs) //执行所有需请求的接口
.then((results) => {
uni.hideLoading();
//console.log('imgCompress', type)
this.imgUpload(results, type);
})
.catch((res, object) => {
@@ -477,7 +471,6 @@
this.$emit("uploadSuccess", uploadFileRes);
},
fail: (err) => {
console.log(err);
uni.hideLoading();
reject(err);
this.$emit("uploadFail", err);
@@ -487,17 +480,6 @@
}
});
uploadTask.onProgressUpdate((res) => {
console.log('上传进度' + res.progress);
console.log('已经上传的数据长度' + res.totalBytesSent);
console.log('预期需要上传的数据总长度' + res.totalBytesExpectedToSend);
// if (res.progress == 100) {
// uni.hideLoading();
// }
// 测试条件,取消上传任务。
// if (res.progress > 50) {
// uploadTask.abort();
// }
});
}))
})
@@ -514,7 +496,6 @@
uni.showLoading({
title: '上传中'
});
console.log('uniCloudUpload', tempFilePaths);
let uploadImgs = [];
tempFilePaths.forEach((item, index) => {
uploadImgs.push(new Promise((resolve, reject) => {
@@ -528,7 +509,6 @@
}
},
fail(err) {
console.log(err);
reject(err);
},
complete() {}
@@ -539,15 +519,10 @@
Promise.all(uploadImgs) //执行所有需请求的接口
.then((results) => {
uni.hideLoading();
// console.log('then', results)
uniCloud.getTempFileURL({
fileList: results,
success: (res) => {
//console.log('success',res.fileList)
res.fileList.forEach(item => {
//console.log(item.tempFileURL)
//this.value.push(item.tempFileURL)
// #ifndef VUE3
this.value.push(item.tempFileURL)
this.$emit("input", this.value);

View File

@@ -197,9 +197,7 @@
showCancel: false,
success: function(res) {
if (res.confirm) {
//console.log('用户点击确定');
} else if (res.cancel) {
//console.log('用户点击取消');
}
}
});
@@ -209,13 +207,11 @@
watch: {
// #ifndef VUE3
value(val, oldVal) {
//console.log('value',val, oldVal)
this.uploadLists = val;
},
// #endif
// #ifdef VUE3
modelValue(val, oldVal) {
//console.log('value',val, oldVal)
this.uploadLists = val;
},
// #endif
@@ -311,7 +307,6 @@
}
},
fail: (res) => {
console.log(res.errMsg);
}
});
break;
@@ -335,29 +330,13 @@
camera: this.camera,
maxDuration: this.maxDuration,
success: (res) => {
console.log('videoAdd', res)
// console.log(res.tempFilePath)
this.chooseSuccessMethod([res.tempFilePath], 1);
//this.imgUpload([res.tempFilePath]);
//console.log('tempFiles', res)
// if (this.action == '') { //未配置上传路径
// this.$emit("chooseSuccess", res.tempFilePaths);
// } else {
// if (this.compress && (res.tempFiles[0].size / 1024 > 1025)) { //设置了需要压缩 并且 文件大于1M进行压缩上传
// this.imgCompress(res.tempFilePaths);
// } else {
// this.imgUpload(res.tempFilePaths);
// }
// }
}
});
},
imgAdd() {
//console.log('imgAdd')
let nowNum = Math.abs(this.uploadLists.length - this.max);
let thisNum = (this.chooseNum > nowNum ? nowNum : this.chooseNum) //可选数量
//console.log('nowNum', nowNum)
//console.log('thisNum', thisNum)
// #ifdef APP-PLUS
if (this.sourceType.length > 1) {
uni.showActionSheet({
@@ -370,7 +349,6 @@
}
},
fail: (res) => {
console.log(res.errMsg);
}
});
}
@@ -407,14 +385,12 @@
var cmr = plus.camera.getCamera();
var res = cmr.supportedImageResolutions[0];
var fmt = cmr.supportedImageFormats[0];
//console.log("Resolution: " + res + ", Format: " + fmt);
cmr.captureImage((path) => {
//alert("Capture image success: " + path);
this.chooseSuccessMethod([path], 0)
},
(error) => {
//alert("Capture image failed: " + error.message);
console.log("Capture image failed: " + error.message)
}, {
resolution: res,
format: fmt
@@ -425,7 +401,6 @@
plus.gallery.pick((res) => {
this.chooseSuccessMethod(res.files, 0)
}, function(e) {
//console.log("取消选择图片");
}, {
filter: "image",
multiple: true,
@@ -564,7 +539,6 @@
this.$emit("uploadSuccess", uploadFileRes);
},
fail: (err) => {
console.log(err);
uni.hideLoading();
reject(err);
this.$emit("uploadFail", err);
@@ -574,17 +548,6 @@
}
});
uploadTask.onProgressUpdate((res) => {
console.log('上传进度' + res.progress);
console.log('已经上传的数据长度' + res.totalBytesSent);
console.log('预期需要上传的数据总长度' + res.totalBytesExpectedToSend);
// if (res.progress == 100) {
// uni.hideLoading();
// }
// 测试条件,取消上传任务。
// if (res.progress > 50) {
// uploadTask.abort();
// }
});
}))
})

View File

@@ -146,12 +146,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}, {
"path": "pages/serve/repair/re_binding",
"style": {
"navigationBarTitleText": "绑定车辆",
"enablePullDownRefresh": false
}
}, {
"path": "pages/serve/repair/bind_result",
"style": {
@@ -744,7 +738,13 @@
"navigationBarTitleText": "预约时间",
"enablePullDownRefresh": false
}
},
},{
"path": "serve/repair/re_binding",
"style": {
"navigationBarTitleText": "绑定车辆",
"enablePullDownRefresh": false
}
},
{
"path": "showroom/confirmOrder/confirmOrder",
"style": {

View File

@@ -98,7 +98,6 @@
methods: {
//发送
sendSMS(value, type) {
console.log(value);
if (!value) return uni.$u.toast('内容不能为空');
this.$emit('sendSMS', {
msg: value,

View File

@@ -848,7 +848,6 @@
// 发送评论数据
replyAddAPIFn() {
replyAddAPI(this.replyAddData).then(res => {
console.log(res.data);
// type == 1评论 2回复/
if (res.data.type == 1) {
this.replyAddData.content = ''

View File

@@ -7,28 +7,9 @@
<u-navbar safeAreaInsetTop placeholder>
<view class="u-nav-slot flex align-center justify-between" slot="left">
<u-icon name="arrow-left" size="19" color="#000000" @click="goBack"></u-icon>
<!-- <view v-show="showNavImg" class="flex align-center justify-between">
<view class="posi_l">
<view class="img_name">
<image :src="detailObj.authorAvatar" mode="aspectFill" style="width: 48rpx;height: 48rpx; border-radius: 40rpx 40rpx 40rpx 40rpx"></image>
<view class="nav_name"> {{ detailObj.authorName }} </view>
</view>
</view>
<view v-if="myInfo.id !== detailObj.authorId">
<view class="up_r" @click="addLike" v-if="!detailObj.isConcerned">
<image class="r_img" :src="`${config.aliyunOssUrl}/static/images/app/icon/add.png`" mode=""></image>
<view class="r_txt"> 关注 </view>
</view>
<view class="r_txt1" @click="addLike" v-if='detailObj.isConcerned'> 已关注 </view>
</view>
</view> -->
</view>
<view :style="{'margin-right': `${menuWidth}px`,'margin-left':'24rpx'}" slot="right">
<view class="posi_r">
<!-- <view style="position:relative;">
<image class="r_img" style="margin-right: 24rpx;" :src="`${config.aliyunOssUrl}/static/images/app/mine/share1.png`" mode="">
<button id="shareBtn" open-type="share" @click="shareBtnInfo(detailObj)"></button>
</view> -->
<image class="r_img" @click="dropBtn"
:src="`${config.aliyunOssUrl}/static/images/app/icon/drop.png`" mode=""></image>
</view>
@@ -106,12 +87,7 @@
<view :class="showAll?'l_click':'l_l'" @click="allLook(1)"> 评论 ({{ replyAllTotal }}) </view>
<!-- <view :class="showLook?'r_click':'l_r'" @click="allLook(2)"> 只看楼主 </view> -->
</view>
<!-- <u-tabs :list="list" :scrollable='false' lineWidth="0" lineColor="#fff"
:activeStyle="{color: '#111111'}" :inactiveStyle="{color: '#999999'}"
itemStyle="height: 34px; font-size: 28rpx;" @click="tabsBtn">
</u-tabs> -->
</view>
<!-- <z-paging use-page-scroll ref="paging" v-model="replyListAll" @query="queryList" @scroll="scrollFn"> -->
<view class="com_content" v-for="(item,replyIndex) in replyListAll" :key="item.id">
<view class="con_title">
<view class="title_l" @click.stop="linkPersonalCenter(item.uid)">
@@ -129,7 +105,7 @@
</view>
<view class="con_txt" @click="replyToComments(item,2)">
<view style="margin-bottom: 8rpx;">
一级{{ item.content }}
{{ item.content }}
</view>
<image @click.stop="examineFn1(item.image)" v-if="item.image" :src="item.image"
style="width: 100rpx; height: 100rpx;"></image>
@@ -605,7 +581,6 @@
},
onLoad(query) {
// console.log(query,'来自首页');
this.noteId = query.id
this.getDetail(query.id)
this.authorId = query.authorId
@@ -645,7 +620,6 @@
},
focus: {
handler(a, b) {
console.log(a, b);
},
deep: true
}
@@ -1017,7 +991,6 @@
// 发送评论数据
replyAddAPIFn() {
replyAddAPI(this.replyAddData).then(res => {
console.log(res.data);
// type == 1评论 2回复/
if (res.data.type == 1) {
this.replyAddData.content = ''
@@ -1052,7 +1025,6 @@
}
},
closeBtn() {
console.log('closeBtn');
this.showComment = false
this.placeholder = '我也来说两句...'
},

View File

@@ -159,7 +159,6 @@
getInfo(id, helpGenre) {
if (helpGenre == 0) {
getCardProductInfoAPI(id).then(res => {
console.log('卡券', res);
this.detail.id = res.data.id
this.detail.name = res.data.name
this.detail.intro = res.data.intro
@@ -169,9 +168,7 @@
this.detail.activityId = res.data.activityId
})
} else if (helpGenre == 1) {
console.log(id);
getInformationHelpAPI(id).then(res => {
console.log('租车', res);
this.detail.id = id
this.detail.name = res.data.title
this.detail.intro = res.data.intro
@@ -179,12 +176,9 @@
this.detail.fromUid = uni.getStorageSync('userInfo').id
this.detail.helpGenre = helpGenre
this.detail.activityId = res.data.activityId
}).catch(err => {
console.log(err);
})
} else {
getProductHelpAPI(id).then(res => {
console.log('买车', res);
this.detail.id = res.data.id
this.detail.name = res.data.title
this.detail.intro = res.data.intro

View File

@@ -110,7 +110,6 @@
res => {
uni.hideLoading();
this.videoInfo = uni.getStorageSync('video_info');
console.log('视频信息',this.videoInfo);
this.videoImage = res.data
});
},

View File

@@ -158,7 +158,6 @@
methods: {
//复制
copyFn() {
console.log('复制', this.item);
this.copyFlag = false
uni.setClipboardData({
data: this.item.content,
@@ -172,9 +171,7 @@
},
//撤回
withdrawFn() {
console.log(this.item.id);
immsgRecall(this.item.id).then(res=>{
console.log(res);
this.getMsgListFns()
uni.showToast({
title: '撤回成功',
@@ -184,11 +181,9 @@
},
//长嗯
showActions() {
console.log('长嗯', this.copyFlag, this.item);
this.copyFlag = true
},
navUserFn(item) {
console.log(item);
uni.navigateTo({
url: `/pages/driver/mine/personal_center/personal_center?uid=${item.srcUid}`
})

View File

@@ -174,7 +174,6 @@
},
//初始化
queryList(pageNo, pageSize) {
// console.log('阿斯达塞德里克');
// #ifdef MP
this.$u.debounce(() => {
if (!this.charSn) {
@@ -188,7 +187,6 @@
limit: pageSize,
page: pageNo
}).then(res => {
console.log(res,'1111111');
this.$refs.paging.complete(res.data.list);
});
}, 0);

View File

@@ -124,7 +124,7 @@
// console.log('去绑定');
this.isShow = false
uni.navigateTo({
url: '/pages/serve/repair/re_binding'
url: '/pagesA/serve/repair/re_binding'
})
},
toUnbindPages() {

View File

@@ -19,7 +19,7 @@
methods:{
toBindingPage(){
uni.redirectTo({
url:'/pages/serve/repair/re_binding'
url:'/pagesA/serve/repair/re_binding'
})
},
toHomePage() {

View File

@@ -257,9 +257,7 @@
// 获取活动详情
getInfo() {
if (this.helpGenre == 0) {
console.log(1111111);
getCardProductInfoAPI(this.id).then(res => {
console.log('助力卡券', res.data);
if (res.data.helpList) {
let avatarArr = []
res.data.helpList.forEach(item => {
@@ -273,9 +271,7 @@
this.content = res.data.content
})
} else if (this.helpGenre == 1) {
console.log(this.id, 222222);
getInformationHelpAPI(this.id).then(res => {
console.log('助力租车', res.data);
if (res.data.helpList) {
let avatarArr = []
res.data.helpList.forEach(item => {
@@ -289,9 +285,7 @@
this.content = res.data.content
})
} else {
console.log(333333);
getProductHelpAPI(this.id).then(res => {
console.log('助力买车', res.data);
if (res.data.helpList) {
let avatarArr = []
res.data.helpList.forEach(item => {

View File

@@ -176,7 +176,6 @@
})
})
} else if (this.helpGenre == 1) {
console.log('租车');
//租车
frontPayPayrental(this.payData).then(res => {
this.topUpTypeShow = false
@@ -237,7 +236,6 @@
})
})
} else if (this.helpGenre == 1) {
console.log('租车');
//租车
frontPayPayrental(this.payData).then(res => {
this.topUpTypeShow = false
@@ -276,7 +274,6 @@
topUpFn(item) {
this.helpGenre = item.helpGenre
if (item.helpGenre == 0) {
console.log('卡券');
addOrderAPI({
cardProductId: item.cardProductId,
num: 1,
@@ -288,19 +285,16 @@
this.payData.orderNo = res.data.orderNo
})
} else if (item.helpGenre == 1) {
console.log('租车');
//租车创建订单
informationCreateAPI({
id: item.id,
activityId: item.activityId
}).then(res => {
console.log('创建订单', res);
this.topUpTypeShow = true
this.payPrice = res.data.payPrice
this.payData.orderNo = res.data.orderNo
})
} else {
console.log('买车');
//买车创建订单
productCreate({
id: item.id,

View File

@@ -233,7 +233,6 @@
name: data.carDealerName,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},

View File

@@ -217,7 +217,6 @@
// 去支付
payPopupBtn() {
if (this.topUpType == 'ye') {
console.log('租车');
//租车
frontPayPayrental(this.payData).then(res => {
this.topUpTypeShow = false
@@ -237,7 +236,6 @@
icon: 'none'
});
} else {
console.log('租车');
//租车
frontPayPayrental(this.payData).then(res => {
this.topUpTypeShow = false
@@ -271,14 +269,12 @@
},
//打开地图
openLocationFn(data) {
// console.log(data);
uni.openLocation({
latitude: parseFloat(data.latitude),
longitude: parseFloat(data.longitude),
name: data.carDealerName,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},

View File

@@ -57,7 +57,6 @@
uni.navigateBack()
},
navUserFn(item) {
console.log(item);
uni.navigateTo({
url: `/pages/driver/mine/personal_center/personal_center?uid=${item.id}`
})

View File

@@ -158,7 +158,6 @@
onLoad() {
//获取热门搜索
getHistoryListAll().then(res => {
console.log(res);
this.labelList=res.data
})
//搜索历史记录
@@ -220,13 +219,11 @@
ids: ids
}).then(res => {
this.getHistoryListPageFn()
console.log('删除成功', res.data);
})
},
//搜索历史
getHistoryListPageFn() {
getHistoryListPage().then(res => {
console.log(res);
this.historyList=res.data
})
},
@@ -239,7 +236,6 @@
customFn() {
if (this.searchWord) {
getHistoryListSearch(this.searchWord).then(res => {
console.log('添加成功');
})
}
this.$refs.paging.reload()
@@ -265,7 +261,6 @@
page,
limit
}).then(res => {
console.log(res.data.list);
res.data.list.forEach(item => {
if (item.image != '') {
item.image = item.image.split(",")

View File

@@ -70,7 +70,6 @@
name: data.name,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},

View File

@@ -48,7 +48,7 @@
sureBinding(){
this.showBinding=false
uni.navigateTo({
url:'/pages/serve/repair/re_binding'
url:'/pagesA/serve/repair/re_binding'
})
},
toBindingPage(){

View File

@@ -114,7 +114,7 @@
});
}if(this.whoBtn==2){
uni.navigateTo({
url: "/pages/serve/repair/re_binding",
url: "/pagesA/serve/repair/re_binding",
});
}if(this.whoBtn==3){
// console.log('等待平台完善');

View File

@@ -429,7 +429,6 @@
promptlyCarFn(item) {
this.storeShow = true;
getInformationInfo(item.id).then(res => {
console.log(res.data,'2345345354');
this.carDealerData = res.data
this.carDealerData.depositMoney = item.depositMoney
//订车规则

View File

@@ -155,12 +155,10 @@
onShow() {
//我的积分
getInviteInviteTotal().then(res => {
// console.log(res, '总积分');
this.inviteTotal = res.data
})
//我的账户
getMyWalletAPI().then(res=>{
// console.log(res,'用户');
this.myWalletData=res.data
})
},
@@ -196,7 +194,6 @@
//获取邀请信息
getInviteInfoFn() {
getInviteInfo().then(res => {
// console.log(res, '邀请信息');
if (res.data.inviteList) {
this.inviteUserList = res.data.inviteList
} else {
@@ -209,12 +206,10 @@
brannerList({
type: 5
}).then(res => {
// console.log('轮播图', res.data.list);
this.branner = res.data.list
})
},
copyNum(type, e) {
// console.log(e);
if (type == 1) {
uni.setClipboardData({
data: '#小程序://滴友/wCVymJEiWqUKm0A',

View File

@@ -368,7 +368,6 @@
name: data.merName,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},
@@ -493,13 +492,10 @@
},
// 去支付
payPopupBtn() {
console.log('支付类型', this.typeOne);
// console.log(this.payData, '去支付提交信息');
if (this.topUpType == 'ye') {
if (this.typeOne == 3) {
paycardAPI(this.payData).then(res => {
this.topUpTypeShow = false
// console.log(res, '支付返回数据');
uni.navigateTo({
url: `/pages/serve/coupons/payresult?resultType=res`
})

View File

@@ -0,0 +1,99 @@
<template>
<view class="popup">
<u-popup :show="showPopup" mode="center" :safeAreaInsetBottom='false'>
<view class="allView">
<view class="big_txt"> {{ title }} </view>
<view class="small_txt"> {{ content }} </view>
<view class="is_sure">
<view class="quxiao" @click="cancel"> 取消 </view>
<view class="queren" @click="sureBtn"> 确认 </view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
name:"popup-box",
props:{
title:{
type:String,
default:'提示'
},
content:{
type:String,
default:''
},
},
data(){
return {
showPopup:false
}
},
methods :{
sureBtn(){
this.showPopup=false
this.$emit('sureBtn')
},
cancel(){
this.showPopup=false
this.$emit('cancel')
}
}
}
</script>
<style lang="scss">
.allView {
// border: 2px solid red;
display: flex;
flex-direction: column;
align-items: center;
.big_txt {
font-size: 34rpx;
font-weight: bold;
color: #333333;
margin-top: 64rpx;
}
.small_txt {
font-size: 28rpx;
font-weight: 400;
color: #222222;
margin-top: 32rpx;
padding: 0 32rpx;
}
.is_sure {
// border: 2px solid blue;
width: 100%;
display: flex;
align-items: center;
margin-top: 64rpx;
.quxiao {
flex: 1;
padding: 20rpx 0;
border: 2rpx solid #EDEDED;
font-size: 34rpx;
font-family: Noto Sans SC, Noto Sans SC;
font-weight: 400;
color: #222222;
text-align: center;
}
.queren {
flex: 1;
padding: 20rpx 0;
border: 2rpx solid #13AFA8;
background: #13AFA8;
border-radius: 0rpx 0rpx 0rpx 0rpx;
font-size: 34rpx;
font-family: Noto Sans SC, Noto Sans SC;
font-weight: 400;
color: #FFFFFF;
text-align: center;
}
}
}
</style>

View File

@@ -348,7 +348,6 @@
init() {
//
allBrandModelList().then(res => {
console.log(res.data, '品牌车系车型列表');
this.actionsList = [res.data]
})
//
@@ -435,7 +434,6 @@
},
//
async submit() {
console.log(this.formData.ownerName);
if (!this.carInfo.company) {
this.carInfo.company = this.formData.company
}
@@ -446,14 +444,12 @@
if (this.mineInfo.isCertification) {
if (this.noneInfo == true) {
this.carInfo.unbindTime = this.formData.unbindTime
console.log('carInfo', this.carInfo);
userBindAPI(this.carInfo).then(res => {
uni.redirectTo({
url: '/pages/serve/repair/bind_result'
})
})
} else {
console.log('formData', this.formData);
userBindAPI(this.formData).then(res => {
uni.redirectTo({
url: '/pages/serve/repair/bind_result'
@@ -566,7 +562,6 @@
this.alltime = year + '-' + this.addZero(month) + '-' + this.addZero(day) + ' ' + this.addZero(hour) +
':' +
this.addZero(minute) + ':' + this.addZero(second)
console.log(this.alltime);
this.formData.unbindTime = this.alltime
this.dataTime = `${year}${month}${day}`
},

View File

@@ -172,13 +172,11 @@
uni.getLocation({
type: 'gcj02',
success: res => {
// console.log(res,'第一个success');
this.tabledata.latitude= res.latitude,
this.tabledata.longitude= res.longitude,
this.getStoreList();
},
fail: err => {
// console.log(err,'err--4567')
}
}),
this.getStoreList();
@@ -193,7 +191,6 @@
name: data.name,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},
@@ -206,7 +203,6 @@
getStoreList(this.tabledata).then(res=>{
res.data.list.forEach((ele) => {
if (ele.id == this.merId) {
// console.log(ele,'reserva信息123');
this.dataObj = ele;
}
});
@@ -214,7 +210,6 @@
// 实名信息
realNameDetaiNowlAPI().then(my=>{
// console.log(my,'实名信息');
this.myInfo = my.data;
if (!this.myInfo) {
this.$refs.popupRef.showPopup = true;
@@ -223,7 +218,6 @@
}else {
// 获取我的汽车
getMyCarAPI().then(car=>{
// console.log(car,'我的车辆');
if(car.data){
this.formObj = car.data;
this.createData.carId = car.data.id;
@@ -271,32 +265,27 @@
}
},
popupSubmit() {
// console.log("预约信息");
this.popupShow = false;
},
callPhone(phoneNumber) {
// console.log(phoneNumber);
uni.makePhoneCall({
phoneNumber,
});
},
sureBtn(){
// console.log('弹弹确认');
if(this.whoBtn==1){
uni.navigateTo({
url: "/pages/serve/repair/realname",
});
}if(this.whoBtn==2){
uni.navigateTo({
url: "/pages/serve/repair/re_binding",
url: "/pagesA/serve/repair/re_binding",
});
}if(this.whoBtn==3){
// console.log('等待平台完善');
}
},
cancel(){
// console.log('弹弹取消');
},
},
};

View File

@@ -37,7 +37,6 @@
},
methods: {
toMyBtn() {
// console.log('去我的工单');
this.$store.dispatch('WorkingDay', '')
this.$store.dispatch('WorkingTime', '')
uni.navigateTo({
@@ -45,7 +44,6 @@
});
},
toHomePage() {
// console.log('去首页');
this.$store.dispatch('WorkingDay', '')
this.$store.dispatch('WorkingTime', '')
uni.switchTab({

View File

@@ -107,7 +107,6 @@
uni.getLocation({
type: 'gcj02',
success: res => {
// console.log(res,'第一个success');
this.query.latitude= res.latitude
this.query.longitude= res.longitude
this.$refs.paging.reload()
@@ -117,11 +116,9 @@
longitude: res.longitude
},
success: res1 => {
// console.log(res,'第二个success');
this.$store.dispatch('SetCity', res1.result.address_component.city)
},
fail: res => {
// console.log(res,'fail--res')
},
})
},
@@ -137,14 +134,12 @@
methods: {
//打开地图
openLocationFn(data) {
// console.log(data);
uni.openLocation({
latitude: parseFloat(data.latitude),
longitude: parseFloat(data.longitude),
name: data.name,
address: data.addressDetail,
complete: (res) => {
console.log(res);
}
})
},
@@ -156,7 +151,6 @@
switchType: this.switchType,
...this.query
}).then(res => {
// console.log(res,'11111');
this.$refs.paging.complete(res.data.list)
}).catch(err => {
this.$refs.paging.complete(false)
@@ -177,7 +171,6 @@
// 获取轮播图
getBranner() {
brannerList({type: 4}).then(res => {
// console.log('轮播图', res.data.list);
this.branner = res.data.list
})
},