第一次提交

This commit is contained in:
gxwebsoft
2023-08-04 13:04:21 +08:00
commit 7a73b38bd5
764 changed files with 166417 additions and 0 deletions

116
package/user/shop/index.vue Normal file
View File

@@ -0,0 +1,116 @@
<template>
<view class="partner">
<!-- 表单组件 -->
<view class="form-wrapper" v-if="shopInfo">
<u-form :model="form" ref="uForm" label-width="240rpx">
<u-form-item>
<image :src="shopInfo.backgroundUrl" mode="widthFix" class="banner"></image>
</u-form-item>
<u-form-item>
<view class="shop-box">
<text class="shop-name">{{shopInfo.shopName}}</text>
<text v-if="shopInfo.region"><u-icon name="map" :size="26"></u-icon>{{shopInfo.region.province}}{{shopInfo.region.city}}{{shopInfo.region.region}}{{shopInfo.address}}</text>
</view>
</u-form-item>
<u-form-item>
<view class="shop-box">
<text class="shop-name">站点简介</text>
<text>{{shopInfo.summary}}</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>