| | |
| | | "style": { |
| | | "navigationBarTitleText": "个人中心" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/business/cstmr/csmtr", |
| | | "style": { |
| | | "navigationBarTitleText": "甲方单位" |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | <y-title title="公司资料库" /> |
| | | </view> |
| | | <view class="grid-container"> |
| | | <view class="item"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view>甲方单位</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view>甲方单位</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view>甲方单位</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view>甲方单位</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | | <view>甲方单位</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="item" @click="select()"> |
| | | <view class="img"> |
| | | <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item-sort"> |
| | | <!-- <view class="item-sort"> |
| | | <y-title title="销售管理"></y-title> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | select() { |
| | | uni.navigateTo({ |
| | | url:'/pages/business/cstmr/csmtr' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
New file |
| | |
| | | <template> |
| | | <view> |
| | | <!-- 搜索框 --> |
| | | <view></view> |
| | | <!-- 客户列表 --> |
| | | <view class="c-list" @click="getCsmtr()"> |
| | | |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | url: '127.0.0.1:9528' |
| | | } |
| | | }, |
| | | methods: { |
| | | getCsmtr() { |
| | | let that = this |
| | | console.log(that.url); |
| | | uni.request({ |
| | | url:'http://127.0.0.1:9528' + '/cstmr/page/auth', |
| | | header: {'token' : uni.getStorageSync('token'), |
| | | "content-type": "application/json"}, |
| | | data: {curr:1,limit:16}, |
| | | method:'POST', |
| | | success(result) { |
| | | console.log(result); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .c-list { |
| | | width: 96%; |
| | | min-height: 100rpx; |
| | | background-color: #acacac; |
| | | margin: 20rpx 2% 0 2%; |
| | | } |
| | | </style> |
| | |
| | | onLogin() { |
| | | let that = this |
| | | uni.request({ |
| | | url: 'http://192.168.50.101:9528/login.action', |
| | | url: 'http://127.0.0.1:9528/login.action', |
| | | fail(result) { |
| | | uni.showToast({title: '请求失败'}) |
| | | }, |
| | |
| | | <view class="user"> |
| | | <!-- 头像 --> |
| | | <view class="user-avatar"> |
| | | <img src="../../static/image/头像.jpg" alt=""> |
| | | <img src="" alt=""> |
| | | <!-- <image src="" mode="aspectFit"></image> --> |
| | | </view> |
| | | <!-- 信息 --> |
| | | <view class="user-info"> |
| | | <view class="user-name">陈鹏 |
| | | </view> |
| | | |
| | | <view class="user-name">陈鹏</view> |
| | | <view class="user-company">中扬立库技术有限公司</view> |
| | | </view> |
| | | <!-- 更多 --> |
| | | <view></view> |
| | | <view class="user-icons"> |
| | | <uni-icons type="right"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | height: 200rpx; |
| | | display: grid; |
| | | grid-template-rows: 2fr 2fr; |
| | | align-items: end; |
| | | |
| | | /* background-color: aqua; */ |
| | | } |
| | | .user-name { |
| | | height: 100rpx; |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: flex-end; |
| | | font-size: 30rpx; |
| | | font-weight: 700; |
| | | } |
| | | .user-company { |
| | | height: 100rpx; |
| | | } |
| | | .user-icons { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |