Files
2023-08-04 13:04:21 +08:00

110 lines
2.0 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="partner">
<!-- 表单组件 -->
<view class="form-wrapper" v-if="shopInfo">
<!-- <u-form :model="form" ref="uForm" label-width="240rpx">
<u-form-item>
<view class="shop-box">
<text class="shop-name">后台管理</text>
<text>地址https://dev.gxwebsoft.com/ylx-admin/</text>
<text>账号{{applyInfo.phone}}</text>
<text>密码默认为手机号码后6位</text>
</view>
</u-form-item>
</u-form> -->
</view>
<!-- 操作按钮 -->
<!-- <view class="footer">
<view class="btn">
<u-button type="primary" shape="circle">更新资料</u-button>
</view>
</view> -->
</view>
</template>
<script>
// 表单字段元素
const form = {
// 入驻类型 合伙人10001,配送员10002,社区门店10003,省代10004
grade_id: 10004,
company: '',
real_name: '',
phone: '',
mobile: '',
region: [],
detail: '',
}
import * as UserApi from '@/api/user'
import SelectRegion from '@/components/select-region/select-region'
export default {
components: {
SelectRegion
},
data() {
return {
form,
disabled: false,
imageList: [],
shopInfo: {},
applyInfo: {}
}
},
onLoad() {
this.getUserInfo()
},
methods: {
// 获取当前用户信息
getUserInfo() {
const app = this
UserApi.info().then(result => {
app.shopInfo = result.data.shopInfo
app.applyInfo = result.data.applyInfo
})
},
groupChange(){
}
}
}
</script>
<style lang="less">
.partner {
.banner {
padding-top: 20rpx;
width: 100%;
}
.form-wrapper {
margin: 20rpx auto 20rpx auto;
padding: 0 40rpx;
width: 94%;
box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
border-radius: 16rpx;
background: #fff;
.shop-box{
display: flex;
flex-direction: column;
.shop-name{
font-weight: bold;
font-size: 36rpx;
}
}
.logo{
width: 100rpx;
}
.shipin{
width: 400rpx;
}
}
.footer{
width: 500rpx;
margin: 20rpx auto;
}
}
</style>