创建商家信息编辑页面

This commit is contained in:
wangxiaowei 2024-06-28 22:45:33 +08:00
parent 37a9a94de3
commit 564aa23e68
4 changed files with 70 additions and 14 deletions

@ -1,8 +1,71 @@
<template>
<view class="content">
<view class="basic-info">
<view class="apply-form-item">
<u-field label="个人头像" label-width="160" placeholder="请上传个人头像" :border-bottom="false"
required disabled />
<view class="apply-form-upload" @click="uploadImage" v-if="form.businessLicense">
<image :src="form.businessLicense" mode="aspectFit"></image>
</view>
<view class="apply-form-upload" @click="uploadImage" v-else>
<u-icon name="plus" color="#e2e2e2" size="48" top="50"></u-icon>
</view>
</view>
<view class="apply-form-item">
<u-field label="商家名称" v-model="form.crftNo1" label-width="160" placeholder="请输入商家名称" :border-bottom="false" required />
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
form: {
}
};
},
onLoad() {
uni.switchTab({
url: '/pages/index/index'
})
},
// 函数
methods: {
uploadImage() {
}
}
};
</script>
<style>
<style scoped lang="scss">
.content {
padding: 30rpx;
.basic-info {
width: 100%;
box-sizing: border-box;
background: #fff;
border-radius: 10rpx;
margin-bottom: 20rpx;
padding: 20rpx;
.apply-form-upload {
width: 250rpx;
height: 150rpx;
text-align: center;
border: 1px solid #d2d2d2;
margin-left: 12rpx;
image {
width: 250rpx;
height: 150rpx;
}
}
}
}
</style>

@ -16,7 +16,7 @@
</view>
</view>
</view>
<view v-else class="submit-text">
<view class="submit-text" v-if="storeState != 1">
<navigator url="/bundle_b/pages/local_settled/index" hover-class="none">
点我提交入驻信息
</navigator>

@ -1110,19 +1110,10 @@
"auth": false
}
},
{
"path": "pages/local_search/index",
"style": {
"navigationBarTitleText": "搜索"
},
"meta": {
"auth": false
}
},
{
"path": "pages/local_shop/local_edit_info",
"style": {
"navigationBarTitleText": "商品信息编辑"
"navigationBarTitleText": "商家信息编辑"
},
"meta": {
"auth": true

@ -146,12 +146,14 @@
},
]
],
shop: [{
shop: [
{
image: 'https://dlh.hainings.com/uploads/images/20230617152038ec2d56794.png',
name: '东龙汇金卡金卡金卡金卡金卡金卡金卡金卡金卡',
price: 1.00,
id: 1
}]
},
]
}
},
async onLoad(options) {