|
@@ -5,10 +5,10 @@
|
|
|
<view class="content">
|
|
|
<view class="left">
|
|
|
<view class="tag-box">
|
|
|
- <view class="storetype">
|
|
|
+ <view v-if="detail.storetype" class="storetype">
|
|
|
{{ detail.storetype }}
|
|
|
</view>
|
|
|
- <view class="markettype">
|
|
|
+ <view v-if="detail.markettype" class="markettype">
|
|
|
{{ detail.markettype }}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -26,7 +26,7 @@
|
|
|
{{ getCity(detail) }}
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
- 状态:<text style="color: #333333;">{{ detail.status }}</text>
|
|
|
+ 状态:<text :style="{ color: detail.color }">{{ detail.status }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right">
|
|
@@ -42,7 +42,7 @@
|
|
|
@click="changeCurrent" :current="current" />
|
|
|
<view v-show="current == 0">
|
|
|
<displayCell :showList="showList" :detail="detail" />
|
|
|
- <view v-if="detail.status == '审核'" style="height: 30px;" />
|
|
|
+ <view :style="{ height: detail.status == '审核' ? '30px' : '75px' }" />
|
|
|
</view>
|
|
|
|
|
|
<view v-show="current == 1">
|
|
@@ -54,7 +54,8 @@
|
|
|
<view class="item" hover-class="navigator" @click="changeSearchShow">
|
|
|
<text class="iconfont icon-sousuo" />
|
|
|
</view>
|
|
|
- <navigator class="item" @click="onInsert" :url="'/store/insert/member?id=' + detail.sa_storeid">
|
|
|
+ <navigator v-if="authOption.includes('storeInsertUser')" class="item" @click="onInsert"
|
|
|
+ :url="'/store/insert/member?id=' + detail.sa_storeid">
|
|
|
<text class="iconfont icon-xinzeng" />
|
|
|
</navigator>
|
|
|
</view>
|
|
@@ -65,21 +66,20 @@
|
|
|
</view>
|
|
|
</u-transition>
|
|
|
<My_listbox ref="List" @getlist="getList" :bottomHeight="detail.status != '审核' ? 70 : 30">
|
|
|
- <user-list :list="list" @onClick="onClick" isDelete @onDelete="onDelete" />
|
|
|
+ <user-list :list="list" @onClick="onClick" :isDelete="authOption.includes('storeDeleteUser')"
|
|
|
+ @onDelete="onDelete" />
|
|
|
</My_listbox>
|
|
|
</view>
|
|
|
- <block v-if="detail.status != '审核'">
|
|
|
- <view style="height: 75px;" />
|
|
|
- <view class="footer">
|
|
|
- <view class="insert" :class="detail.status == '新建' ? '' : 'forbidden'"
|
|
|
- @click="detail.status == '新建' ? toEdit() : ''">
|
|
|
- 编辑门店信息
|
|
|
- </view>
|
|
|
- <view class="invite" @click="detail.status == '新建' ? submit() : revocation()">
|
|
|
- {{ detail.status == '新建' ? '提交门店信息' : '撤回' }}
|
|
|
- </view>
|
|
|
+ <view v-if="detail.status != '审核'" class="footer">
|
|
|
+ <view class="insert" style="flex:1;" :class="detail.status == '新建' ? '' : 'forbidden'"
|
|
|
+ @click="detail.status == '新建' ? toEdit() : ''">
|
|
|
+ 编辑门店信息
|
|
|
</view>
|
|
|
- </block>
|
|
|
+ <view v-if="authOption.includes('storeComeUpForReview')" class="invite"
|
|
|
+ @click="detail.status == '新建' ? submit() : revocation()">
|
|
|
+ {{ detail.status == '新建' ? '提交门店信息' : '撤回' }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -101,6 +101,7 @@ export default {
|
|
|
},
|
|
|
list: null,
|
|
|
searchShow: false,
|
|
|
+ authOption: [],
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -110,6 +111,13 @@ export default {
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '门店信息'
|
|
|
});
|
|
|
+ let auth = this.getApps('工作台', "/team/team/index");
|
|
|
+ if (auth) this.authOption = auth.option;
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.List.setHeight();
|
|
|
+ }, 300)
|
|
|
},
|
|
|
onUnload() {
|
|
|
delete this.$Http.uploadStoreDetail;
|
|
@@ -131,6 +139,19 @@ export default {
|
|
|
}).then(res => {
|
|
|
console.log("店铺详情", res)
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
+
|
|
|
+ switch (res.data.status) {
|
|
|
+ case '提交':
|
|
|
+ res.data.color = '#009270'
|
|
|
+ break;
|
|
|
+ case '审核':
|
|
|
+ res.data.color = '#095DE0'
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ res.data.color = '#333333'
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
res.data.cover = res.data.attinfos.length ? this.getSpecifiedImage(res.data.attinfos[0], 'compressed') || uni.getStorageSync("site").logo : uni.getStorageSync("site").logo
|
|
|
this.detail = res.data;
|
|
|
this.showList = [{
|
|
@@ -451,6 +472,7 @@ export default {
|
|
|
font-weight: 500;
|
|
|
font-size: 16px;
|
|
|
color: #FFFFFF;
|
|
|
+ margin-left: 10px;
|
|
|
}
|
|
|
|
|
|
|