|
@@ -33,7 +33,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="search_fixed" >
|
|
<view class="search_fixed" >
|
|
<view class="search_box">
|
|
<view class="search_box">
|
|
- <view class="city_name" v-if="!toSelectedCity">{{cityName}}</view>
|
|
|
|
|
|
+ <view class="city_name" v-if="!toSelectedCity">
|
|
|
|
+ <navigator url="/pages/user/info" v-if="isManager" >{{cityName}}</navigator>
|
|
|
|
+ <text v-if="!isManager" >{{cityName}}</text>
|
|
|
|
+ </view>
|
|
<navigator url="/pages/user/info" v-if="toSelectedCity" class="city_name uncheck">选城市</navigator>
|
|
<navigator url="/pages/user/info" v-if="toSelectedCity" class="city_name uncheck">选城市</navigator>
|
|
<input class="search_input" type="text" v-model="requestParam.name" @input="searchChange" placeholder="请输入产品名称搜索" />
|
|
<input class="search_input" type="text" v-model="requestParam.name" @input="searchChange" placeholder="请输入产品名称搜索" />
|
|
<button class="search_btn" @click.stop="searchOpen()" data-eventsync="true"> 搜索</button>
|
|
<button class="search_btn" @click.stop="searchOpen()" data-eventsync="true"> 搜索</button>
|
|
@@ -66,6 +69,8 @@
|
|
cityName:"选城市",
|
|
cityName:"选城市",
|
|
// 选择城市
|
|
// 选择城市
|
|
toSelectedCity:false,
|
|
toSelectedCity:false,
|
|
|
|
+ // 是否是管理员
|
|
|
|
+ isManager:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -106,6 +111,8 @@
|
|
this.cityName = this.cityName ? this.cityName : "选城市",
|
|
this.cityName = this.cityName ? this.cityName : "选城市",
|
|
// 登录并且未选择城市,才可以选择城市
|
|
// 登录并且未选择城市,才可以选择城市
|
|
this.toSelectedCity = !this.$checkAccess.getCity() ? true : false;
|
|
this.toSelectedCity = !this.$checkAccess.getCity() ? true : false;
|
|
|
|
+ // 数据
|
|
|
|
+ this.isManager = this.$checkAccess.isManager();
|
|
// 没有数据的话,或者请求中,不允许刷新
|
|
// 没有数据的话,或者请求中,不允许刷新
|
|
if( this.isReqing ) return ;
|
|
if( this.isReqing ) return ;
|
|
// 获取列表
|
|
// 获取列表
|