Commit 37430cb0 authored by 罗超's avatar 罗超

优化跳转问题

parent 8d190f77
......@@ -42,6 +42,7 @@
},
methods:{
getUserVipInfo(){
if(!this.user.customerId) return
const parameter = {
VipCusType:1,
CustomerId:this.user.customerId
......
......@@ -1102,7 +1102,7 @@
</view>
</view>
</view>
<auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<u-popup v-model="showStartCities" mode="bottom" border-radius="20" length="60%" :safe-area-inset-bottom="true">
<view style="display: flex;flex-direction: column;height:100%;width:100%;">
<view style="font-size: 24px; font-weight: 700;padding: 20px;font-family: city-font;">
......@@ -1163,6 +1163,7 @@
}" @click="goReserce()">确定</u-button>
</view>
</u-popup>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view>
</template>
<script>
......@@ -1170,6 +1171,7 @@
import canlendar from "./components/sign/index.vue";
import auth from "@/components/auth/index.vue";
import vip from "../../components/vip/vip.vue";
export default {
components: {
canlendar,
......@@ -1315,12 +1317,12 @@
},
onLoad(option) {
this.mc = this.$uiConfig.mainColor;
if(!uni.getStorageSync("b2b_user")){
uni.redirectTo({
url:'/pages/index/index'
})
}
this.customer = uni.getStorageSync("b2b_user");
// if(!uni.getStorageSync("b2b_user")){
// uni.redirectTo({
// url:'/pages/index/index'
// })
// }
// #ifdef MP-DI
this.delMsg.directCustomerId = this.customer.customerId
// #endif
......@@ -1414,6 +1416,7 @@
this.SaleId = item.CreateBy
},
getUserCouponList() {
if(!this.customer.accountId) return
let couponParams = {
"lineId": this.dataList.lineId, //线路ID
"lineteamId": this.dataList.lineteamId, //系列ID
......@@ -1456,6 +1459,7 @@
);
},
getSale(){
if(!this.customer.customerId) return
this.apipost(
"b2b_get_GetCustomerCreateByList",
{
......@@ -1538,8 +1542,15 @@
})
},
reloadUserinfo() {
this.b2bUser = uni.getStorageSync("b2b_user");
this.u = uni.getStorageSync("mall_UserInfo");
// this.b2bUser = uni.getStorageSync("b2b_user");
// this.u = uni.getStorageSync("mall_UserInfo");
// this.customer = this.b2bUser
console.log('reload')
const pages = getCurrentPages()
const curPage = pages[pages.length-1]
curPage.onLoad(curPage.options)
curPage.onShow()
curPage.onReady()
},
//关闭登录窗口
gbAuth() {
......@@ -1704,20 +1715,24 @@
icon: 'none',
title: '行程已下架,请查看其它行程'
})
setTimeout(() => {
uni.redirectTo({
url: '/pages/index/index'
})
})
// setTimeout(() => {
// uni.redirectTo({
// url: '/pages/index/index'
// })
// },2000)
}
},
(err) => {
uni.hideLoading()
setTimeout(() => {
uni.redirectTo({
url: '/pages/index/index'
})
uni.showToast({
icon: 'none',
title: '行程不见了,请查看其它行程'
})
// setTimeout(() => {
// uni.redirectTo({
// url: '/pages/index/index'
// },2000)
// })
}
);
},
......
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