Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
E
etaoshop-dz
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
etaoshop-dz
提交
217eda1f
提交
217eda1f
编写于
8月 19, 2024
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
.
上级
264be1d9
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
174 行增加
和
94 行删除
+174
-94
workspace.xml
.idea/workspace.xml
+95
-86
app.json
app.json
+2
-2
index.js
pages/map/index.js
+49
-4
index.wxml
pages/map/index.wxml
+27
-1
project.config.json
project.config.json
+1
-1
未找到文件。
.idea/workspace.xml
浏览文件 @
217eda1f
此差异已折叠。
点击以展开。
app.json
浏览文件 @
217eda1f
{
{
"pages"
:
[
"pages"
:
[
"pages/map/index"
,
"pages/index"
,
"pages/index"
,
"pages/pay/pay"
,
"pages/pay/pay"
,
"pages/logs/logs"
,
"pages/logs/logs"
,
"pages/login/login"
,
"pages/login/login"
"pages/map/index"
],
],
"__usePrivacyCheck__"
:
true
,
"__usePrivacyCheck__"
:
true
,
"window"
:
{
"window"
:
{
...
...
pages/map/index.js
浏览文件 @
217eda1f
const
app
=
getApp
();
Page
({
Page
({
data
:
{
data
:
{
userInfo
:{},
longitude
:
120.113514
,
longitude
:
120.113514
,
latitude
:
30.339744
,
latitude
:
30.339744
,
markers
:
[{
markers
:
[{
...
@@ -20,12 +22,55 @@ Page({
...
@@ -20,12 +22,55 @@ Page({
// },
// },
}]
}]
},
},
onLoad
:
function
(
options
)
{
this
.
getInfo
()
},
makePhoneCall
:
function
()
{
wx
.
makePhoneCall
({
phoneNumber
:
this
.
data
.
userInfo
.
contactPhone
// 电话号码
})
},
getInfo
(){
let
that
=
this
let
subdomain
=
''
let
appId
=
wx
.
getAccountInfoSync
().
miniProgram
.
appId
if
(
appId
==
'wxdb3d8f9a94eca8d9'
){
subdomain
=
'jinyanxia'
}
else
if
(
appId
==
'wx175347bd3977d6a9'
){
subdomain
=
'21'
}
else
if
(
appId
==
'wx7dca103eaf35d1f7'
){
subdomain
=
'wuyoushop0571jg0001'
}
else
if
(
appId
==
'wxca8cfe95f6fa0e0b'
){
subdomain
=
'guoxindengshi'
}
else
if
(
appId
==
'wxbe067c202501e58a'
){
subdomain
=
'xmy888'
}
wx
.
request
({
url
:
app
.
globalData
.
defurl
+
'/api/store/info?link='
+
subdomain
,
success
:
function
(
res
)
{
let
data
=
res
.
data
.
data
let
list
=
[{
longitude
:
data
.
longitude
,
latitude
:
data
.
latitude
,
}]
that
.
setData
({
userInfo
:
data
,
latitude
:
data
.
latitude
,
longitude
:
data
.
longitude
,
markers
:
list
,
})
},
complete
(){
wx
.
hideLoading
();
}
})
},
toIndex
(){
toIndex
(){
wx
.
openLocation
({
wx
.
openLocation
({
latitude
:
30.339744
,
latitude
:
Number
(
this
.
data
.
latitude
)
,
longitude
:
120.113514
,
longitude
:
Number
(
this
.
data
.
longitude
)
,
name
:
"佐萌科技旗舰店"
,
name
:
this
.
data
.
userInfo
.
storeName
,
address
:
"杭州市拱墅区祥茂路166号 华滋科欣设计创意园2号楼701室"
,
address
:
this
.
data
.
userInfo
.
areaAddress
,
scale
:
14
,
scale
:
14
,
infoUrl
:
""
,
infoUrl
:
""
,
});
});
...
...
pages/map/index.wxml
浏览文件 @
217eda1f
<view class="homepage">
<view class="homepage"
style="background: #f6f6f6;height: 100vh"
>
<map id="myMap" scale="18" longitude="{{longitude}}" latitude="{{latitude}}" markers="{{markers}}" show-location="{{true}}"
<map id="myMap" scale="18" longitude="{{longitude}}" latitude="{{latitude}}" markers="{{markers}}" show-location="{{true}}"
>
>
</map>
</map>
<image bindtap='toIndex' class='wxLogo' style="width: 50rpx;height: 50rpx;border-radius: 10rpx" src='/asstes/img/daohang.jpg'></image>
<image bindtap='toIndex' class='wxLogo' style="width: 50rpx;height: 50rpx;border-radius: 10rpx" src='/asstes/img/daohang.jpg'></image>
<view style="margin: 20rpx 0;background: #ffffff;padding-bottom: 10rpx">
<view style="margin: 30rpx 20rpx">
<view style="display: flex">
<view>
<image style="width: 150rpx;height: 150rpx;border-radius: 50%" src="{{userInfo.headImg}}"></image>
</view>
<view style="margin-left: 26rpx;margin-top: 30rpx">
<view>
<view>{{userInfo.storeName}}</view>
<view style="margin-top: 10rpx">
<text>{{userInfo.contacts}}</text> <text> {{userInfo.contactPhone}} </text> <text bindtap='makePhoneCall' style="border-radius: 10rpx;font-size: 25rpx;color: #a3c41d;background: #f7ffd6;border: 1px solid #a3c41d;padding: 1px 4px"> 拨打 </text>
</view>
</view>
</view>
</view>
<view style="">
<view >
{{userInfo.areaAddress}}
</view>
</view>
<view bindtap='toIndex' style="background: #ecddc0;width: 700rpx;height: 50rpx;line-height: 50rpx;text-align: center;margin: 30rpx auto">
导航到店
</view>
</view>
</view>
</view>
</view>
project.config.json
浏览文件 @
217eda1f
...
@@ -127,5 +127,5 @@
...
@@ -127,5 +127,5 @@
"ignore"
:
[],
"ignore"
:
[],
"include"
:
[]
"include"
:
[]
},
},
"appid"
:
"wx
175347bd3977d6a
9"
"appid"
:
"wx
db3d8f9a94eca8d
9"
}
}
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录