门店
This commit is contained in:
@@ -102,6 +102,12 @@ export default {
|
||||
path: "./myFamily",
|
||||
type: 'token'
|
||||
},
|
||||
{
|
||||
icon: "https://cdn.cunwuyun.cn/wxmp/mine/wodejiating.png",
|
||||
label: "我的门店",
|
||||
path: "./myStoreList",
|
||||
type: 'token'
|
||||
},
|
||||
],
|
||||
// [
|
||||
// {
|
||||
|
||||
75
src/project/fengdu/AppMine/myStoreList.vue
Normal file
75
src/project/fengdu/AppMine/myStoreList.vue
Normal file
@@ -0,0 +1,75 @@
|
||||
<template>
|
||||
<div class="myStoreList">
|
||||
<div class="item">
|
||||
<div class="top-flex">
|
||||
<div class="name">小荣超市11111</div>
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt="">
|
||||
</div>
|
||||
<div class="address">麒麟区南宁街道潇湘社区</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="top-flex">
|
||||
<div class="name">小荣超市11111</div>
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt="">
|
||||
</div>
|
||||
<div class="address">麒麟区南宁街道潇湘社区</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'myStoreList',
|
||||
appName: '我的门店',
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.myStoreList {
|
||||
background-color: #F4F5FA;
|
||||
padding: 32px;
|
||||
.item {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-radius: 32px;
|
||||
margin-bottom: 32px;
|
||||
.top-flex {
|
||||
padding: 24px 32px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #eee;
|
||||
.name {
|
||||
display: inline-block;
|
||||
width: calc(100% - 128px);
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 30px;
|
||||
color: #333;
|
||||
line-height: 36px;
|
||||
}
|
||||
img {
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.address {
|
||||
padding: 42px 32px 50px 32px;
|
||||
box-sizing: border-box;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
229
src/project/fengdu/AppMine/storeForm.vue
Normal file
229
src/project/fengdu/AppMine/storeForm.vue
Normal file
@@ -0,0 +1,229 @@
|
||||
<template>
|
||||
<div class="storeForm">
|
||||
<div class="form-content">
|
||||
<div class="item">
|
||||
<div class="top-flex">
|
||||
<div class="name">门店照</div>
|
||||
<div class="right">
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt="">
|
||||
<u-icon name="arrow-right" color="#999" size="22"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-flex">
|
||||
<div class="label">门店名称</div>
|
||||
<div class="value">
|
||||
<u-input trim placeholder="请输入" input-align="right" v-model="form.name"
|
||||
placeholder-style="color:#999;font-size: 14px;" height="36"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="line-flex">
|
||||
<div class="label">经营类型</div>
|
||||
<div class="value">
|
||||
111<u-icon name="arrow-right" color="#999" size="22"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="line-flex solid">
|
||||
<div class="label">经营者姓名</div>
|
||||
<div class="value">
|
||||
<u-input trim placeholder="请输入" input-align="right" v-model="form.name"
|
||||
placeholder-style="color:#999;font-size: 14px;" height="36"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-flex solid">
|
||||
<div class="label">联系电话</div>
|
||||
<div class="value">
|
||||
<u-input trim placeholder="请输入" input-align="right" v-model="form.name"
|
||||
placeholder-style="color:#999;font-size: 14px;" height="36"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-flex solid">
|
||||
<div class="label">地址</div>
|
||||
<div class="value">
|
||||
<u-input trim placeholder="请输入" input-align="right" v-model="form.name"
|
||||
placeholder-style="color:#999;font-size: 14px;" height="36"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="btn">提交</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'storeForm',
|
||||
appName: '我的门店',
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
name : ''
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
upload() {
|
||||
if (!this.token) {
|
||||
this.$refs.login.show()
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
this.imgList = []
|
||||
this.hideStatus = false
|
||||
uni.chooseImage({
|
||||
count: this.limit,
|
||||
sizeType: ['compressed'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success: (res) => {
|
||||
if (res.tempFilePaths.length > 9) {
|
||||
this.$toast(`图片不能超过9张`)
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
this.$loading('上传中')
|
||||
res.tempFilePaths.forEach((item, index) => {
|
||||
if (index === res.tempFilePaths.length - 1) {
|
||||
this.hideStatus = true
|
||||
}
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.uploadFile(item, res.tempFilePaths.length)
|
||||
})
|
||||
})
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
uploadFile(img, total) {
|
||||
uni.uploadFile({
|
||||
url: this.$instance.defaults.baseURL + '/admin/file/add',
|
||||
filePath: img,
|
||||
name: 'file',
|
||||
header: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
Authorization: uni.getStorageSync('token'),
|
||||
},
|
||||
success: (res) => {
|
||||
const data = JSON.parse(res.data)
|
||||
|
||||
if (data.code === 0) {
|
||||
this.imgList.push(data.data[0].split(';')[0])
|
||||
} else {
|
||||
this.$toast(data.msg)
|
||||
}
|
||||
},
|
||||
complete: () => {
|
||||
this.$nextTick(() => {
|
||||
if (this.imgList.length === total && this.hideStatus) {
|
||||
this.$instance.post(`/app/appvillagepicturealbum/addPictures`, {
|
||||
areaName: uni.getStorageSync('areaName'),
|
||||
areaId: uni.getStorageSync('areaId'),
|
||||
type: this.type,
|
||||
urlList: this.imgList
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getList(this.type)
|
||||
this.getTotalInfo(this.type)
|
||||
uni.$emit('update')
|
||||
}
|
||||
this.$hideLoading()
|
||||
this.hideStatus = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.storeForm {
|
||||
background-color: #F4F5FA;
|
||||
.form-content {
|
||||
padding: 32px;
|
||||
}
|
||||
.item {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-radius: 32px;
|
||||
margin-bottom: 24px;
|
||||
.top-flex {
|
||||
padding: 24px 32px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #eee;
|
||||
.name {
|
||||
display: inline-block;
|
||||
width: calc(100% - 168px);
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
line-height: 36px;
|
||||
}
|
||||
.right {
|
||||
display: inline-block;
|
||||
img {
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.line-flex {
|
||||
display: flex;
|
||||
padding: 42px 32px 50px;
|
||||
box-sizing: border-box;
|
||||
.label {
|
||||
width: 162px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
line-height: 36px;
|
||||
}
|
||||
.value {
|
||||
width: calc(100% - 162px);
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
.solid {
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.footer {
|
||||
width: 100%;
|
||||
padding: 20px 32px 88px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFF;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background: #2D7DFF;
|
||||
border-radius: 40px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 34px;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
line-height: 80px;
|
||||
}
|
||||
}
|
||||
u-icon {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user