Commit c58a2bb0 authored by 潘永坪's avatar 潘永坪

Merge branch 'uview2.0' of http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel into uview2.0

parents 251180ff 0941adc1
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-toast ref="uToast" /> <!-- <u-toast ref="uToast" /> -->
</view> </view>
</template> </template>
...@@ -209,9 +209,9 @@ export default { ...@@ -209,9 +209,9 @@ export default {
this.merchantMessage = res.data this.merchantMessage = res.data
this.checkMonkey() this.checkMonkey()
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -224,9 +224,9 @@ export default { ...@@ -224,9 +224,9 @@ export default {
if(res.code=='00'){ if(res.code=='00'){
this.option = res.data this.option = res.data
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -244,9 +244,9 @@ export default { ...@@ -244,9 +244,9 @@ export default {
if(res.code=='00'){ if(res.code=='00'){
this.merchantList = res.data this.merchantList = res.data
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -283,9 +283,9 @@ export default { ...@@ -283,9 +283,9 @@ export default {
//隐藏加载框 //隐藏加载框
uni.hideLoading() uni.hideLoading()
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -380,9 +380,9 @@ export default { ...@@ -380,9 +380,9 @@ export default {
this.originalPrices=0 this.originalPrices=0
} }
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -465,9 +465,9 @@ export default { ...@@ -465,9 +465,9 @@ export default {
url:'../../payment/orderPayment/orderPayment?orderId='+res.data.id+'&albumOrderdetail=1' url:'../../payment/orderPayment/orderPayment?orderId='+res.data.id+'&albumOrderdetail=1'
}) })
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
......
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<view class="product-goods" v-else> <view class="product-goods" v-else>
<view class="order-No">暂无订单信息</view> <view class="order-No">暂无订单信息</view>
</view> </view>
<u-toast ref="uToast" /> <!-- <u-toast ref="uToast" /> -->
<u-modal v-model="configShow" show-cancel-button="true" :content="configTitle" @confirm="operationEnter()" @cancel="operationClose()"></u-modal> <u-modal v-model="configShow" show-cancel-button="true" :content="configTitle" @confirm="operationEnter()" @cancel="operationClose()"></u-modal>
</view> </view>
</template> </template>
...@@ -479,16 +479,16 @@ export default { ...@@ -479,16 +479,16 @@ export default {
queryPhoneOrder(){//通过手机号查看订单 queryPhoneOrder(){//通过手机号查看订单
if(!(/^1[34578]\d{9}$/.test(this.touristPhone))){ if(!(/^1[34578]\d{9}$/.test(this.touristPhone))){
this.$refs.uToast.show({ uni.showToast({
title: '请填写正确的手机号码', title: '请填写正确的手机号码',
type: 'error', icon: 'none'
}) })
return return
} }
if(this.touristName==''){ if(this.touristName==''){
this.$refs.uToast.show({ uni.showToast({
title: '姓名不可为空', title: '姓名不可为空',
type: 'error', icon: 'none'
}) })
return return
} }
...@@ -508,9 +508,9 @@ export default { ...@@ -508,9 +508,9 @@ export default {
this.pageIndex = 1 this.pageIndex = 1
this.getData(1) this.getData(1)
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: res.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
...@@ -600,9 +600,9 @@ export default { ...@@ -600,9 +600,9 @@ export default {
//隐藏加载框 //隐藏加载框
uni.hideLoading() uni.hideLoading()
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: '暂无订单信息', title: '暂无订单信息',
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -633,9 +633,9 @@ export default { ...@@ -633,9 +633,9 @@ export default {
.then((res)=>{ .then((res)=>{
var ret = res var ret = res
if(ret.code=='00'){ if(ret.code=='00'){
this.$refs.uToast.show({ uni.showToast({
title: '订单取消成功', title: '订单取消成功',
type: 'success', icon: 'none'
}) })
//this.$store.commit('showLoading') //this.$store.commit('showLoading')
this.pageIndex = 1 this.pageIndex = 1
...@@ -646,9 +646,9 @@ export default { ...@@ -646,9 +646,9 @@ export default {
// this.getData(1) // this.getData(1)
this.configShow = false this.configShow = false
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: ret.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
...@@ -660,9 +660,9 @@ export default { ...@@ -660,9 +660,9 @@ export default {
.then((res)=>{ .then((res)=>{
var ret = res var ret = res
if(ret.code=='00'){ if(ret.code=='00'){
this.$refs.uToast.show({ uni.showToast({
title: '订单删除成功', title: '订单删除成功',
type: 'success', icon: 'none'
}) })
//this.$store.commit('showLoading') //this.$store.commit('showLoading')
this.pageIndex = 1 this.pageIndex = 1
...@@ -673,9 +673,9 @@ export default { ...@@ -673,9 +673,9 @@ export default {
// this.getData(1) // this.getData(1)
this.configShow = false this.configShow = false
}else{ }else{
this.$refs.uToast.show({ uni.showToast({
title: ret.message, title: res.message,
type: 'error', icon: 'none'
}) })
} }
}) })
......
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