This commit is contained in:
yanran200730
2022-05-24 16:31:10 +08:00
parent e7c61c8293
commit 2b8e4dc41d
19 changed files with 255 additions and 72 deletions

View File

@@ -16,7 +16,7 @@
<div class="photo-bottom__top">
<image src="./images/clear.png" @click="isHide = true, currIndex = -1" />
<h2>水印</h2>
<span>确定</span>
<span @click="save">确定</span>
</div>
<div class="waterlist">
<div
@@ -187,14 +187,12 @@
getLocation () {
this.injectJWeixin(['getLocation']).then(res => {
console.log(res)
wx.getLocation({
type: 'wgs84',
success: res => {
var lat = res.latitude
var lng = res.longitude
this.$http.post('/api/appdvcpconfig/apiForward',
`https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
if (res.code === 0) {
const data = res.data.result
uni.setStorageSync('address', {
@@ -431,7 +429,7 @@
display: flex;
align-items: center;
justify-content: center;
width: 336px;
width: 400px;
height: 72px;
line-height: 1;
background: #0B111F;
@@ -439,6 +437,13 @@
font-size: 28px;
color: #cbcbcb;
span {
max-width: 70%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
image {
width: 32px;
height: 32px;