| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <template>
- <view>
- <uni-nav-bar title="门店信息" backgroundColor='#03803B' color="#fff" left-icon="left" @clickLeft='goBack()'>
- <block slot="right">
- <view>
- <image class="nav-right" src="@/static/images/home/store/add.png" />
- </view>
- </block>
- </uni-nav-bar>
- <view style="background-color: #fff;">
- <uni-search-bar bgColor="#F6F6F6 " v-model="searchValue" placeholder="请输入客户名称">
- </uni-search-bar>
- </view>
- <view class="list">
- <view class="tab-bar-item" v-for="(item, index) in dataList" :key="index">
- <image class="icon" :src="item.url" />
- <view class="text">
- <view class="text_title">
- {{item.cname}}
- </view>
- <view class="text_content">
- <text style="color: #999999;">前置仓:</text>
- <text style="color: #6A6A6A" class='uni-lastmsg'>{{item.deliveryWarehouseName}}</text>
- <text style="color: #999999;margin-left: 66rpx;">价格:</text>
- <text style="color: #6A6A6A" class='uni-lastmsg2'>¥{{item.priceSystem}}</text>
- </view>
- <view class="text_foot">
- <text style="color: #999999;">电话:</text>
- <text style="color: #6A6A6A">{{item.tel}}</text>
- </view>
- </view>
- <view class="menu">
- <view class="">
- <image class="edit" src="@/static/images/home/store/edit.png" />
- </view>
- <view class="">
- <image class="QR" src="@/static/images/home/store/QR.png" />
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getList
- } from '@/api/home/store.js'
- export default {
- data() {
- return {
- searchValue: null,
- page: {
- current: 1,
- size: 10,
- total: 0,
- },
- dataList: []
- }
- },
- onLoad() {
- this.getList()
- },
- methods: {
- getList() {
- const obj = {
- current: this.page.current,
- size: this.page.size
- }
- getList(obj).then(res => {
- this.dataList = res.data.records
- })
- },
- goBack() {
- uni.navigateBack({
- delta: 1,
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .uni-lastmsg {
- width: 80rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: block;
- /* 需明确设置display */
- }
- .uni-lastmsg2 {
- width: 140rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: block;
- /* 需明确设置display */
- }
- .nav-right {
- width: 54rpx;
- height: 54rpx;
- }
- .list {
- width: 100%;
- .tab-bar-item {
- background-color: #fff;
- margin-top: 30rpx;
- padding: 30rpx 62rpx;
- display: flex;
- .icon {
- width: 140rpx;
- height: 140rpx;
- background: #909090;
- border-radius: 14rpx;
- }
- .text {
- padding: 10rpx 17rpx;
- .text_title {
- height: 25rpx;
- font-weight: 500;
- font-size: 26rpx;
- color: #6A6A6A;
- }
- .text_content {
- display: flex;
- margin-top: 16rpx
- }
- .text_foot {}
- }
- .menu {
- position: absolute;
- right: 62rpx;
- .edit {
- margin-top: 10rpx;
- width: 30rpx;
- height: 33rpx;
- }
- .QR {
- margin-top: 54rpx;
- width: 30rpx;
- height: 31rpx;
- }
- }
- }
- }
- </style>
|