Commit d8b0352f authored by 和慭琛's avatar 和慭琛

第二轮提测

parent c869735d
......@@ -22,7 +22,6 @@
<view class="locationTitleView">
<image class="locationIcon" :src="icon_location" mode=""></image>
<text class="locationTitle">定位位置</text>
<text class="itemRedStar">*</text>
</view>
<view class="locationRightView">
<text class="reLocationTitle">重新定位</text>
......@@ -87,12 +86,10 @@
</view>
<view class="bottomView">
<view class="bottomLeftView" @click="recordClick()">
<!--text class="u-font-28 Gray666">查看历史订单</text-->
<image class="mineIcon" :src="icon_mine" mode=""></image>
<text class="mineText">我的</text>
</view>
<!--@click="confirmClick()"-->
<view class="bottomRightView" @click='confirmClick()' >
<view class="bottomRightView" @click='confirmClick()'>
<text class="u-font-32 whiteColor">立即下单</text>
</view>
</view>
......@@ -128,7 +125,8 @@
icon_agree_yes:'',
icon_agree_no:'',
icon_top:'',
icon_mine:''
icon_mine:'',
TimeID:-1
}
},
......@@ -149,6 +147,7 @@
onShow() {
//this.getWorkerType()
//this.getPerson()
this.isClean = true
this.checkClean()
//getApp().initAPIneedToken
......@@ -156,6 +155,7 @@
methods: {
nameInput(e){
this.name = e.detail.value
// console.log('联系人 监听:')
// console.log(e.detail.value)
// console.log('name:')
......@@ -210,110 +210,157 @@
//勾选点击
agreeClick: function (isAgree) {
this.isAgree = !isAgree
console.log(this.isAgree)
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
this.isAgree = !isAgree
console.log(this.isAgree)
}, 1000);
},
//服务协议 点击
protocolClick: function () {
console.log('服务协议 点击')
uni.showLoading({
title:'加载中'
})
uni.downloadFile({
url: 'https://system.dev.banshouhui.com/pdfjs/web/用户注册协议.pdf',
success: (res) => {
uni.hideLoading()
if (res.statusCode === 200) {
uni.showLoading({
title:'打开中'
})
console.log('下载成功');
var filePath = res.tempFilePath;
uni.openDocument({
filePath:filePath,
success() {
uni.hideLoading()
console.log('打开成功');
},
fail() {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'打开失败'
})
}
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('服务协议 点击')
uni.showLoading({
title:'加载中'
})
//https://system.dev.banshouhui.com/pdfjs/web/用户注册协议.pdf
uni.downloadFile({
url: getApp().globalData.domain_Name +'/pdfjs/web/用户注册协议.pdf',
success: (res) => {
uni.hideLoading()
if (res.statusCode === 200) {
uni.showLoading({
title:'打开中'
})
console.log('下载成功');
var filePath = res.tempFilePath;
uni.openDocument({
filePath:filePath,
success() {
uni.hideLoading()
console.log('打开成功');
},
fail() {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'打开失败'
})
}
})
}
},
fail(res) {
console.log('打开服务协议失败')
console.log(res)
uni.hideLoading()
uni.showToast({
icon:'none',
title:'打开服务协议失败'
})
}
},
fail() {
uni.hideLoading()
uni.showToast({
icon:'none',
title:'打开服务协议失败'
})
}
});
}
});
}, 1000);
},
//查看历史订单
recordClick: function () {
if(!getApp().globalData.token){
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
if(!getApp().globalData.token){
uni.navigateTo({
url: '/pages/login/wxlogin'
})
return
}
uni.navigateTo({
url: '/pages/login/wxlogin'
url: '/pages/index/record'
})
return
}
},
1000);
uni.navigateTo({
url: '/pages/index/record'
})
},
//立即下单
confirmClick: function () {
console.log('立即下单')
console.log(getApp().globalData.token)
this.checkAllInput()
if(this.isAllInput==false){
uni.showToast({
icon:'none',
title:'请填写所有必填项'
})
return
}
if(this.isAgree==false){
uni.showToast({
icon:'none',
title:'请阅读并同意服务协议'
})
return
}
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('立即下单')
console.log(getApp().globalData.token)
this.checkAllInput()
if(this.isAllInput==false){
uni.showToast({
icon:'none',
title:'请填写所有必填项'
})
return
}
if(this.isAgree==false){
uni.showToast({
icon:'none',
title:'请阅读并同意服务协议'
})
return
}
if(!getApp().globalData.token){
uni.navigateTo({
url:'/pages/login/wxlogin'
})
return
}
//this.showSubscribeModal()
this.createAppletsOrder()
if(!getApp().globalData.token){
uni.navigateTo({
url:'/pages/login/wxlogin'
})
return
}
}, 1000);
//this.showSubscribeModal()
this.createAppletsOrder()
},
//非空判断
checkAllInput: function () {
console.log('下单前的 联系人:'+this.name+'字符串长度:'+this.name.length)
console.log('下单前的 联系人电话:'+this.phone)
console.log('下单前的 地址:'+this.address)
console.log('下单前的 产品类型:'+this.activeProduct)
console.log('下单前的 服务类型:'+this.activeService)
console.log('下单前的 服务需求:'+this.demandContent)
if(this.name.length>0
&& this.phone.length>0
//&& this.location.length>0
......@@ -323,16 +370,7 @@
&& this.demandContent.length>0){
this.isAllInput = true
}
/*
this.name = '',
this.phone = '',
this.location = '',
this.address = '',
this.activeProduct = '',
this.activeService = '',
this.demandContent= '',
this.isAgree = false,
*/
},
......@@ -919,6 +957,13 @@
height: 168rpx;
}
.uButton{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>
......@@ -73,7 +73,8 @@
activeTop:0,
unfinishList:[],
finishList:[],
icon_noData:''
icon_noData:'',
TimeID:-1
}
},
onLoad() {
......@@ -205,18 +206,31 @@
//详情点击
itemClick: function (item) {
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId
+'&isBottomShow='+false,
})
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId
+'&isBottomShow='+false,
})
}, 1000);
},
bottomClick: function (item) {
uni.navigateTo({
url: '/pages/take/index',
})
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
uni.navigateTo({
url: '/pages/take/index',
})
}, 1000);
},
......@@ -232,7 +246,6 @@
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
......
......@@ -44,7 +44,8 @@
return {
activeService:'家电服务',
count:'3',
phone:'400-8834-123'
phone:'400-8834-123',
TimeID:-1
}
},
onLoad(e) {
......@@ -65,25 +66,90 @@
//订阅公众号 点击
noticeClick: function () {
this.showSubscribeModal()
},
showSubscribeModal: function (){
let that = this
uni.showModal({
title:'提示',
content:'为更好的追踪工单实时状态,服务号需要在您的下单时向您发送消息',
confirmText:'同意',
cancelText:'拒绝',
success(res) {
if (res.confirm) {
//调用订阅消息
console.log('用户点击 确定');
//调用订阅
that.getSubSubscribeMessage();
}else if (res.cancel) {
console.log('用户点击 拒绝');
}
}
})
},
//获取消息订阅信息
getSubSubscribeMessage: function (){
let that = this
uni.requestSubscribeMessage({
tmplIds: ['3doUrjIT3-FIfmzsLdBy5MQ5i_q5braPzIbVZRBoEjU'],
success (res) {
console.log('请求订阅信息 成功:')
console.log(res)
uni.showToast({
icon:'none',
title:'订阅成功'
})
//this.createAppletsOrder()
},
fail (res){
console.log('请求订阅信息 失败:')
console.log(res)
}
})
},
//下单记录 点击
recordClick: function () {
uni.navigateTo({
url: '/pages/index/record'
})
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
uni.navigateTo({
url: '/pages/index/record'
})
}, 1000);
},
//再下一单 点击
oneMoreClick: function () {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
prevPage.$vm.isClean = true;
uni.navigateBack({
})
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
prevPage.$vm.isClean = true;
uni.navigateBack({
})
}, 1000);
},
}
}
......@@ -133,7 +199,6 @@
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
......
......@@ -25,7 +25,8 @@
isNewUser:false,
unionID:'',
openID:'',
icon_notice:''
icon_notice:'',
TimeID:-1
}
},
onLoad() {
......@@ -39,46 +40,28 @@
//用户授权得到用户的信息
getUserInfo: async function(e) {
// this.getSSOID()
// return
console.log('获取用户信息')
console.log(e.detail.userInfo)
if (e.detail.errMsg == 'getUserInfo:fail auth deny') {
//this.$u.toast('未授权');
uni.showModal({
title: '授权失败',
content: '请允许获取用户信息的授权',
showCancel: false
});
} else {
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('获取用户信息')
console.log(e.detail.userInfo)
this.getCode()
/*
try {
let code = await this.getCode();
let rawData = e.detail
let data = {
code: code,
nickname: rawData.userInfo.nickName,
avatar: rawData.userInfo.avatarUrl,
encryptedData: rawData.encryptedData,
iv: rawData.iv
}
if (e.detail.errMsg == 'getUserInfo:fail auth deny') {
this.getUsersByCode(code)
//this.getUnionID(code)
//this.toLogin(data);
uni.showModal({
title: '授权失败',
content: '请允许获取用户信息的授权',
showCancel: false
});
} else {
this.getCode()
} catch (e) {
this.$u.toast(e);
}
*/
}
}, 1000);
},
......@@ -210,19 +193,26 @@
//获取用户手机号
getPhoneNumber: async function(e) {
console.log('获取用户手机号')
console.log(e.detail)
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('获取用户手机号')
console.log(e.detail)
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
//this.$u.toast('未授权');
uni.showModal({
title: '授权失败',
content: '请允许获取用户信息的授权',
showCancel: false
});
} else {
this.findByMobile(e)
}
}, 1000);
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
//this.$u.toast('未授权');
uni.showModal({
title: '授权失败',
content: '请允许获取用户信息的授权',
showCancel: false
});
} else {
this.findByMobile(e)
}
},
......@@ -415,7 +405,6 @@
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
......
This diff is collapsed.
......@@ -168,6 +168,7 @@
orderServiceType:'',
orderInfo:{},
currentIndex:0,
TimeID:-1,
//产品规格 相关
is_SPECIFICATIONS_picker_show:false,
......@@ -326,7 +327,7 @@
}else{
uni.showToast({
icon:'none',
title:res.errMsg
title:'获取完工页详情失败'
})
......@@ -338,6 +339,10 @@
uni.hideLoading()
console.log('获取完工页详情 失败')
console.log(e)
uni.showToast({
icon:'none',
title:'获取完工页详情失败'
})
}
})
},
......@@ -405,121 +410,130 @@
//点击类 事件处理
clickTypeClick: function (item,ikey) {
console.log('点击类 点击')
console.log(ikey)
console.log(item.fieldsTitle)
console.log(item.fieldsType)
//开关类Cell
//服务措施 SERVICE_MEASURES
if(item.fieldsType == 'SERVICE_MEASURES'){
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
}
//点击类Cell
//产品规格 SPECIFICATIONS:
//产品型号 PRODUCT_NUMBER
//机器条码 MACHINE_CODE
//日期 DATE
//服务措施 SERVICE_MEASURES
//网页 WEBPAGE (海尔需求 新增 网页类型)
//单选 RADIO (后新增)
//多选 CHECKBOX (后新增)
//RADIO_BIG (后新增)
//CHECKBOX_BIG (后新增)
//产品规格 SPECIFICATIONS:
if(item.fieldsType == 'SPECIFICATIONS'){
this.getSPECIFICATIONSinfo()
}
//产品型号 PRODUCT_NUMBER
if(item.fieldsType == 'PRODUCT_NUMBER'){
this.getPRODUCT_NUMBERinfo()
}
//机器条码 MACHINE_CODE
if(item.fieldsType == 'MACHINE_CODE'){
this.scanCode(item,ikey)
}
//日期 DATE
if(item.fieldsType == 'DATE'){
this.selectDate(item,ikey)
}
//服务措施 SERVICE_MEASURES
if(item.fieldsType == 'SERVICE_MEASURES'){
this.goToMeasure(item,ikey)
}
//网页 WEBPAGE (海尔需求 新增 网页类型)
if(item.fieldsType == 'WEBPAGE'){
console.log('点击类 点击')
console.log(ikey)
console.log(item.fieldsTitle)
console.log(item.fieldsType)
}
//单选 RADIO (后新增)
if(item.fieldsType == 'RADIO'){
//开关类Cell
//服务措施 SERVICE_MEASURES
if(item.fieldsType == 'SERVICE_MEASURES'){
}
}
//多选 CHECKBOX (后新增)
if(item.fieldsType == 'CHECKBOX'){
//点击类Cell
//产品规格 SPECIFICATIONS:
//产品型号 PRODUCT_NUMBER
//机器条码 MACHINE_CODE
//日期 DATE
//服务措施 SERVICE_MEASURES
//网页 WEBPAGE (海尔需求 新增 网页类型)
//单选 RADIO (后新增)
//多选 CHECKBOX (后新增)
//RADIO_BIG (后新增)
//CHECKBOX_BIG (后新增)
}
//RADIO_BIG (后新增)
if(item.fieldsType == 'RADIO_BIG'){
//产品规格 SPECIFICATIONS:
if(item.fieldsType == 'SPECIFICATIONS'){
this.getSPECIFICATIONSinfo()
}
}
//CHECKBOX_BIG (后新增)
if(item.fieldsType == 'CHECKBOX_BIG'){
//产品型号 PRODUCT_NUMBER
if(item.fieldsType == 'PRODUCT_NUMBER'){
this.getPRODUCT_NUMBERinfo()
}
//机器条码 MACHINE_CODE
if(item.fieldsType == 'MACHINE_CODE'){
this.scanCode(item,ikey)
}
//日期 DATE
if(item.fieldsType == 'DATE'){
this.selectDate(item,ikey)
}
//服务措施 SERVICE_MEASURES
if(item.fieldsType == 'SERVICE_MEASURES'){
this.goToMeasure(item,ikey)
}
//网页 WEBPAGE (海尔需求 新增 网页类型)
if(item.fieldsType == 'WEBPAGE'){
}
//单选 RADIO (后新增)
if(item.fieldsType == 'RADIO'){
}
//多选 CHECKBOX (后新增)
if(item.fieldsType == 'CHECKBOX'){
}
//RADIO_BIG (后新增)
if(item.fieldsType == 'RADIO_BIG'){
}
//CHECKBOX_BIG (后新增)
if(item.fieldsType == 'CHECKBOX_BIG'){
}
/*
//开关类Cell
//服务措施 SERVICE_MEASURES
//点击类Cell
//产品规格 SPECIFICATIONS:
//产品型号 PRODUCT_NUMBER
//机器条码 MACHINE_CODE
//日期 DATE
//服务措施 SERVICE_MEASURES
//网页 WEBPAGE (海尔需求 新增 网页类型)
//单选 RADIO (后新增)
//多选 CHECKBOX (后新增)
//RADIO_BIG (后新增)
//CHECKBOX_BIG (后新增)
//机器条码Cell
//机器条码 MACHINE_CODE
//输入栏类Cell
//整数 INTEGER
//金额 DECIMAL
//小数(保留两位小数) DOUBLE
//字符串(单行) STRING
//文件 FILE (后新增)
//安装卡号 ICN (后新增)
//配件Cell
//PARTS
//照片Cell
//PHOTOS
//服务内容Cell
//文本(多行) TEXT
*/
}
/*
//开关类Cell
//服务措施 SERVICE_MEASURES
//点击类Cell
//产品规格 SPECIFICATIONS:
//产品型号 PRODUCT_NUMBER
//机器条码 MACHINE_CODE
//日期 DATE
//服务措施 SERVICE_MEASURES
//网页 WEBPAGE (海尔需求 新增 网页类型)
//单选 RADIO (后新增)
//多选 CHECKBOX (后新增)
//RADIO_BIG (后新增)
//CHECKBOX_BIG (后新增)
//机器条码Cell
//机器条码 MACHINE_CODE
}, 1000);
//输入栏类Cell
//整数 INTEGER
//金额 DECIMAL
//小数(保留两位小数) DOUBLE
//字符串(单行) STRING
//文件 FILE (后新增)
//安装卡号 ICN (后新增)
//配件Cell
//PARTS
//照片Cell
//PHOTOS
//服务内容Cell
//文本(多行) TEXT
*/
},
......@@ -802,15 +816,20 @@
//照片 点击
photoClick: function (item,ikey) {
console.log('照片点击')
console.log(item)
console.log(ikey)
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('照片点击')
console.log(item)
console.log(ikey)
if(ikey == 0){
this.addPhoto()
}else{
this.previewImage(ikey)
}
}, 1000);
if(ikey == 0){
this.addPhoto()
}else{
this.previewImage(ikey)
}
},
//照片预览
......@@ -1068,11 +1087,17 @@
confirmClick: function () {
console.log('确认完工 点击')
//this.photoUpload()
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('确认完工 点击')
//this.photoUpload()
this.checkAllRequired()
}, 1000);
this.checkAllRequired()
},
......
......@@ -133,7 +133,8 @@
//{title:'已完成',type:5},
],
currentOrderType: 0,
currentOrderTypeTitle:'全部'
currentOrderTypeTitle:'全部',
TimeID:-1
}
},
......@@ -142,6 +143,14 @@
this.icon_noData = getApp().globalData.icon_noData
//this.getToken()
this.datetime = this.getTime()
console.log('当前时间:'+this.datetime)
var yuyueDate = this.formatDate(1608249600000)
console.log('预约时间:'+yuyueDate)
},
onShow() {
......@@ -295,9 +304,9 @@
//getApp().globalData.workOrderList
//获取工单列表
getOrderList: function (type) {
uni.showLoading({
title:'加载中'
})
// uni.showLoading({
// title:'加载中'
// })
uni.request({
url: getApp().globalData.domain_Name
+'/wxh-worker-rest/rest/order/revision/applets/'
......@@ -306,7 +315,7 @@
data: {
type:type,
pageNumber:0,
pageSize:10,
pageSize:20,
},
success: (res) => {
uni.hideLoading()
......@@ -364,61 +373,57 @@
},
itemClick: function (item) {
console.log(item.statusText)
console.log(item.orderId)
if(this.activeTop==0){//抢单市场
if(item.statusText=='待抢单'){
/*
contactName:'',
contactMobilephone:'',
contactAddress:'',
inGuaranteePeriodText:'',
orderServiceType:'',
brandName:'',
categoryName:'',
statusText:'',
serviceContent:'',
createDatetime:'',
*/
uni.navigateTo({
url: '/pages/take/rob'
+'?orderId='+item.orderId
+'&contactName='+item.contactName
+'&contactMobilephone='+item.contactMobilephone
+'&contactAddress='+item.contactAddress
+'&inGuaranteePeriodText='+item.inGuaranteePeriodText
+'&orderServiceType='+item.orderServiceType
+'&brandName='+item.brandName
+'&categoryName='+item.categoryName
+'&statusText='+item.statusText
+'&serviceContent='+item.serviceContent
+'&createDatetime='+item.createDatetime
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log(item.statusText)
console.log(item.orderId)
if(this.activeTop==0){//抢单市场
if(item.statusText=='待抢单'){
uni.navigateTo({
url: '/pages/take/rob'
+'?orderId='+item.orderId
+'&contactName='+item.contactName
+'&contactMobilephone='+item.contactMobilephone
+'&contactAddress='+item.contactAddress
+'&inGuaranteePeriodText='+item.inGuaranteePeriodText
+'&orderServiceType='+item.orderServiceType
+'&brandName='+item.brandName
+'&categoryName='+item.categoryName
+'&statusText='+item.statusText
+'&serviceContent='+item.serviceContent
+'&createDatetime='+item.createDatetime
})
}else{
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId
+'$isBottomShow='+false,
})
}
}
if(this.activeTop==1){
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId,
})
}else{
}
if(this.activeTop==2){
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId
+'$isBottomShow='+false,
+'?orderId='+item.orderId,
})
}
}
if(this.activeTop==1){
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId,
})
}
}, 1000);
if(this.activeTop==2){
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+item.orderId,
})
}
},
......@@ -437,15 +442,23 @@
//时间选择器 选择
onSelected: function (e) {//选择
this.showPicker = false;
if(e) {
this[this.type] = e.value;
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
this.showPicker = false;
if(e) {
this[this.type] = e.value;
this.bookPost(e.value)
//选择的值
console.log('value => '+ e.value);
//原始的Date对象
console.log('date => ' + e.date);
}
//选择的值
console.log('value => '+ e.value);
//原始的Date对象
console.log('date => ' + e.date);
}
}, 1000);
},
//预约请求
......@@ -487,6 +500,7 @@
icon:'none',
title:'预约成功'
})
console.log('是不是预约成功了?')
that.getOrderList(0)
}else{
uni.showToast({
......@@ -510,7 +524,7 @@
//时间戳转换成日期时间
formatDate: function(value) {
var date = new Date();
//date.setTime(value);
date.setTime(value);
var month = date.getMonth() + 1;
var hours = date.getHours();
if (hours < 10)
......@@ -521,7 +535,23 @@
var time = date.getFullYear() + "-" + month + "-" + date.getDate() +
" " + hours + ":" + minutes;
return time;
}
},
//获取当前时间
getTime:function(){
var date = new Date(),
year = date.getFullYear(),
month = date.getMonth() + 1,
day = date.getDate(),
hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(),
minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(),
second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
month >= 1 && month <= 9 ? (month = "0" + month) : "";
day >= 0 && day <= 9 ? (day = "0" + day) : "";
var timer = year + '/' + month + '/' + day + ' ' + hour + ':' + minute + ':' + second;
return timer;
},
......
......@@ -70,6 +70,7 @@
statusText:'',
serviceContent:'',
createDatetime:'',
TimeID:-1
}
},
......@@ -211,8 +212,15 @@
},
robClick: function (item) {
console.log('抢单 点击')
this.checkUserStatus()
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('抢单 点击')
this.checkUserStatus()
}, 1000);
},
......@@ -338,20 +346,26 @@
//确认按钮
modalConfirm: function (data) {
//1不是师傅
if(data==1){
this.enterNow()
}
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
//1不是师傅
if(data==1){
this.enterNow()
}
//2没有认证通过
if(data==2){
this.completeNow()
}
//3技能不匹配
if(data==3){
//this.completeNow()
this.contactService()
}
//2没有认证通过
if(data==2){
this.completeNow()
}
}, 1000);
//3技能不匹配
if(data==3){
this.contactService()
}
},
//立即入驻
......@@ -411,15 +425,21 @@
icon:'none',
title:'抢单成功'
})
uni.navigateBack({})
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+this.orderId,
})
}else{
// uni.showToast({
// icon:'none',
// title:res.data.message
// })
console.log('抢单不为200时候')
uni.showToast({
icon:'none',
title:res.message
title:res.data.message
})
......@@ -443,7 +463,7 @@
//时间戳转换成日期时间
formatDate: function(value) {
var date = new Date();
//date.setTime(value);
date.setTime(value);
var month = date.getMonth() + 1;
var hours = date.getHours();
if (hours < 10)
......
<template>
<view class="">
<web-view src="https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40"></web-view>
<web-view :src="webUrl"></web-view>
</view>
</template>
......@@ -8,13 +8,15 @@
export default {
data() {
return {
activeService:'家电服务',
count:'3',
phone:'400-8834-123'
webUrl:''
}
},
onLoad(e) {
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
this.webUrl = getApp().globalData.domain_Name
+ '/weixiuapp/site/index.html#/?pioneerId=40'
console.log(this.webUrl)
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment