提交 001801ef authored 作者: 宋雄's avatar 宋雄

修改订单流程

上级 da44b2a1
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<xzj-firsthint :isCustom="false" /> --> <xzj-firsthint :isCustom="false" /> -->
<!-- 集采 竞拍--> <!-- 集采 竞拍-->
<view class="quick-entry"> <view class="quick-entry" v-if="isLogin">
<view class="item" @click="quickEntry(1)" v-if="isPlatformType"> <view class="item" @click="quickEntry(1)" v-if="isPlatformType">
<span class="icon"> <span class="icon">
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
}, },
data() { data() {
return { return {
userInfo: JSON.parse(uni.getStorageSync('userInfo')), isLogin: false,
icon: web('logo_title.png'), icon: web('logo_title.png'),
page: 1, page: 1,
p: 1, //源头货源 p: 1, //源头货源
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
nodata: false, nodata: false,
showControls: false, showControls: false,
video: null, video: null,
isPlatformType:false, isPlatformType: false,
contentText: { contentText: {
contentdown: this.$t('index.pull.more'), contentdown: this.$t('index.pull.more'),
contentrefresh: this.$t('index.pull.loading'), contentrefresh: this.$t('index.pull.loading'),
...@@ -126,10 +126,15 @@ ...@@ -126,10 +126,15 @@
} }
}, },
created() { created() {
if(this.userInfo.userCurrentPlat.platformType.indexOf('operator') !== -1){ const userInfo = uni.getStorageSync('userInfo')
this.isPlatformType = true if(userInfo) {
const userMessage = JSON.parse(userInfo)
this.isPlatformType = userMessage.userCurrentPlat !== 'operator'
this.isLogin = true
} else {
this.isLogin = false
} }
}, },
methods: { methods: {
quickEntry(num){ quickEntry(num){
let isLogin = uni.getStorageSync('userInfo') let isLogin = uni.getStorageSync('userInfo')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论