| | |
| | | <block slot="right"> |
| | | <view class="city"> |
| | | <view> |
| | | <text class="uni-nav-bar-text">{{username}}</text> |
| | | <text class="uni-nav-bar-text">{{user.username}}</text> |
| | | </view> |
| | | <uni-icons type="arrowdown" color="#333333" size="20" /> |
| | | </view> |
| | |
| | | <view class="list-item1">电话</view><view class="list-item2">{{item.tel}}</view> |
| | | <view class="list-item1">备注</view><view class="list-item2">{{item.remarks ? item.remarks : '--'}}</view> |
| | | <view class="list-item1">客户类别</view><view class="list-item2">{{item.cstmrType$}}</view> |
| | | <view class="list-item1">客户行业</view><view class="list-item2">{{item.cstmrType$}}</view> |
| | | <view class="list-item1">产品类别</view><view class="list-item2">{{item.cstmrType$}}</view> |
| | | <view class="list-item1">创建人</view><view class="list-item2">{{item.createBy$}}</view> |
| | | <view class="list-item1">创建时间</view><view class="list-item2">{{item.createTime$}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> --> |
| | | <u-empty v-if="true" icon="../../../static/image/emptyList.png" /> |
| | | <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="!csmtrList" /> |
| | | |
| | | <view class="fxbtn"> |
| | | <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | csmtrList: [], |
| | | last_id: '', |
| | | username: '', |
| | | user: { |
| | | username: '', |
| | | id: 0 |
| | | }, |
| | | userid: 0, |
| | | reload: false, |
| | | status: 'more', |
| | |
| | | setTimeout(()=> { |
| | | this.getCsmtr1() |
| | | },500) |
| | | let that = this |
| | | uni.$on('isRefresh',function(data){ |
| | | console.log('监听到事件来自返回的参数:' + data); |
| | | // TODO 下面执行刷新的方法 |
| | | }) |
| | | |
| | | this.getDetail() |
| | | |
| | | }, |
| | | onReachBottom() { |
| | | this.status = 'more'; |
| | |
| | | async getDetail() { |
| | | let res = await user.getDetail() |
| | | if (res.code === 200) { |
| | | this.username = res.data.username |
| | | this.user.username = res.data.username |
| | | this.user.id = res.data.id |
| | | } else if (res.code === 403) { |
| | | this.backLogin(res) |
| | | } |
| | | }, |
| | | add() { |
| | | uni.navigateTo({ |
| | | url:'/pages/business/cstmr/addCsmtr', |
| | | }) |
| | | }, |
| | | open() { |
| | | this.show = true |
| | |
| | | getUserTree() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: 'http://127.0.0.1:9528/dept/user/tree/auth', |
| | | url: 'http://192.168.4.188:9528/dept/user/tree/auth', |
| | | method: 'POST', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | }).then((res)=>{ |
| | |
| | | font-weight: 900; |
| | | color: #303133; |
| | | } */ |
| | | |
| | | .fxbtn { |
| | | position: fixed; |
| | | bottom: 50px; |
| | | right: 10px; |
| | | width: 40px; |
| | | height: 40px; |
| | | background-color: #46a7ff; |
| | | color: #FFF; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border-radius: 50%; |
| | | |
| | | } |
| | | </style> |