|
|
@@ -45,7 +45,7 @@
|
|
|
<view>
|
|
|
{{userInfo.name}} {{userInfo.mobile}}
|
|
|
</view>
|
|
|
- <view style="margin-bottom:20rpx;color:#333333">店长:{{userInfo.superInfo.name}}</view>
|
|
|
+ <view style="margin-bottom:20rpx;color:#333333">店长:{{userInfo.superInfo.name||''}}</view>
|
|
|
<view>
|
|
|
{{userInfo.address}}
|
|
|
</view>
|
|
|
@@ -56,6 +56,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <div class="module-com tabs-wrap">
|
|
|
+ <div class="tabs-list" v-for="(item, index) in tabsData" :key="index" @click="pageTo(item)">
|
|
|
+ <div class="tabs-img">
|
|
|
+ <img :src="item.img" alt mode="widthFix" />
|
|
|
+ </div>
|
|
|
+ <div class="tabs-name">{{ item.name }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<view class="module-com user-open_bx">
|
|
|
<view class="input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/pagesArrears/details',query: {id: userInfo.id}})">
|
|
|
@@ -64,11 +74,6 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/clear/customList',query: {customId: userInfo.id}})">
|
|
|
<div class="tui-title">历史帐单</div>
|
|
|
</tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="changeLevel()">
|
|
|
- <div class="tui-title">修改等级</div>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">允许欠款</div>
|
|
|
<div class="switch_bx">
|
|
|
@@ -122,12 +127,45 @@ export default {
|
|
|
debt: 0,
|
|
|
black: 1,
|
|
|
},
|
|
|
- discount:null
|
|
|
+ discount:null,
|
|
|
+ tabsData: [
|
|
|
+ {
|
|
|
+ name: "开单",
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-4.png`,
|
|
|
+ funtion: () => {
|
|
|
+ this.createOrder()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "等级设置",
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-1.png`,
|
|
|
+ funtion: () => {
|
|
|
+ this.changeLevel()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "发红包",
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-2.png`,
|
|
|
+ funtion: () => {
|
|
|
+ this.$msg("开发中");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "重置密码",
|
|
|
+ img: `${this.$constant.imgUrl}/retail/member/tab-icon-6.png`,
|
|
|
+ funtion: () => {
|
|
|
+ this.$msg("开发中")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
onLoad() {},
|
|
|
methods: {
|
|
|
+ createOrder(){
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.userInfo.id,customName:this.userInfo.name}})
|
|
|
+ },
|
|
|
changeLevel(){
|
|
|
|
|
|
let that = this
|
|
|
@@ -416,6 +454,30 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.tabs-wrap {
|
|
|
+ padding: 40px 10px;
|
|
|
+ @include disFlex(center, center);
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .tabs-list {
|
|
|
+ width: 25%;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ text-align: center;
|
|
|
+ .tabs-img {
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ margin: 0 auto 14px;
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .tabs-name {
|
|
|
+ color: $fontColor2;
|
|
|
+ }
|
|
|
+ &:nth-child(n + 5) {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
.user-open_bx {
|
|
|
margin-top: 20px;
|
|
|
padding: 0;
|