This commit is contained in:
yanran200730
2022-07-02 16:58:20 +08:00
parent 2f31efcad8
commit 16c7433361
4 changed files with 13 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="AddMerchan"> <div class="AddMerchan">
<AiTopFixed> <AiTopFixed>
<u-search placeholder="请输入店名、店主、电话" :show-action="false" v-model="businessName" confirm-type="search" @search="current = 1, getList()"/> <u-search placeholder="请输入店名、店主、电话" :show-action="false" v-model="businessName" confirm-type="search" @clear="current = 1, getList()" @search="current = 1, getList()"/>
</AiTopFixed> </AiTopFixed>
<div class="userList" v-if="list.length"> <div class="userList" v-if="list.length">
<ul v-for="(item,index) in list" :key="index"> <ul v-for="(item,index) in list" :key="index">

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="AppMerchantManage"> <div class="AppMerchantManage">
<AiTopFixed> <AiTopFixed>
<u-search placeholder="请输入姓名、手机号、店" :show-action="false" v-model="keyword" confirm-type="search" @search="current = 1, getList()"/> <u-search placeholder="请输入姓名、手机号、店" :show-action="false" v-model="keyword" confirm-type="search" @clear="current = 1, getList()" @search="current = 1, getList()"/>
</AiTopFixed> </AiTopFixed>
<div class="list"> <div class="list">
<u-swipe-action <u-swipe-action
@@ -168,6 +168,8 @@
// background: #eee; // background: #eee;
} }
.title{ .title{
display: flex;
align-items: center;
margin-bottom: 38px; margin-bottom: 38px;
img{ img{
width: 72px; width: 72px;
@@ -177,12 +179,11 @@
} }
p{ p{
display: inline-block; display: inline-block;
line-height: 1.3;
width: 400px; width: 400px;
font-size: 32px; font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #000; color: #000;
line-height: 32px;
} }
span{ span{
display: inline-block; display: inline-block;

View File

@@ -59,7 +59,7 @@
<span class="tips"></span> <span class="tips"></span>
<div class="border"> <div class="border">
<span class="label">地图标注</span> <span class="label">地图标注</span>
<span class="value" style="color:#3D94FB;" @click="chooseLocation">{{ form.businessAddress || '地图标绘' }}</span> <span class="value" style="color:#3D94FB;" @click="chooseLocation">{{ form.lat ? '已标绘' : '地图标绘' }}</span>
</div> </div>
</div> </div>
<AiGap h="112"/> <AiGap h="112"/>
@@ -95,7 +95,7 @@
computed: {...mapState(['user'])}, computed: {...mapState(['user'])},
onLoad (query) { onLoad (query) {
if (query) { if (query.id) {
this.id = query.id this.id = query.id
this.getInfo() this.getInfo()
} }

View File

@@ -3,10 +3,10 @@
<div class="header"> <div class="header">
<img :src="$cdn + 'xincheng/icon.png'" alt="" class="logo-img"> <img :src="$cdn + 'xincheng/icon.png'" alt="" class="logo-img">
<div class="text-info"> <div class="text-info">
<p>{{ info.bossName }}</p> <p>{{ info.businessName }}</p>
<div> <div>
<img :src="$cdn + 'xincheng/dw.png'" alt="" class="local-icon"> <img :src="$cdn + 'xincheng/dw.png'" alt="" class="local-icon">
<span>{{ info.businessName }}</span> <span>{{ info.businessAddress }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -14,7 +14,7 @@
<div class="title">基础信息</div> <div class="title">基础信息</div>
<div class="info"> <div class="info">
<span>店主</span> <span>店主</span>
<span class="color-333">{{ info.businessName }}</span> <span class="color-333">{{ info.bossName }}</span>
</div> </div>
<div class="info"> <div class="info">
<span>电话</span> <span>电话</span>
@@ -32,7 +32,7 @@
</div> </div>
<div class="info"> <div class="info">
<span>地图</span> <span>地图</span>
<span class="color-3D94FB" @click="openLocation">{{ info.businessAddress }}</span> <span class="color-3D94FB" @click="openLocation">{{ info.lng ? '已定位' : '未定位' }}</span>
</div> </div>
</div> </div>
<div class="content" v-if="info.detailList.length"> <div class="content" v-if="info.detailList.length">
@@ -100,15 +100,12 @@
openLocation () { openLocation () {
if (!this.info.lat) { if (!this.info.lat) {
return this.$u.toast('未设置定位') return false
} }
uni.openLocation({ uni.openLocation({
latitude: this.info.lat, latitude: this.info.lat,
longitude: this.info.lng, longitude: this.info.lng
success: function () {
console.log('success');
}
}) })
}, },