GPS-优化

master
Lee 2022-09-01 13:28:28 +08:00
parent e087cd66b6
commit 74f93c5308
4 changed files with 7 additions and 15 deletions

View File

@ -4,7 +4,7 @@
<status-nav :ifReturn="false" navBarTitle="GPS" :marginBottom="0"></status-nav> <status-nav :ifReturn="false" navBarTitle="GPS" :marginBottom="0"></status-nav>
<!-- 二维码 --> <!-- 二维码 -->
<view class="gps-code"> <view class="gps-code">
<view class="tips font26">长按识别二维码</view> <view class="tips font26">长按识别</view>
<image :show-menu-by-longpress="true" src="/static/public/gps-code.jpg" mode="widthFix" @click="previewImage"></image> <image :show-menu-by-longpress="true" src="/static/public/gps-code.jpg" mode="widthFix" @click="previewImage"></image>
</view> </view>
<!-- 尾部 --> <!-- 尾部 -->
@ -23,8 +23,7 @@
}, },
methods: { methods: {
previewImage(e) { previewImage() {
console.log('e', e);
uni.previewImage({ uni.previewImage({
// //
urls: [], urls: [],
@ -35,14 +34,11 @@
// //
loop:false, loop:false,
// //
// longPressActions:{
// itemList:[this.l(''),this.l]
// },
success: res => { success: res => {
console.log('res', res); console.log('res', res);
}, },
fail: err => { fail: err => {
onsole.log('err', err); console.log('err', err);
} }
}); });
} }

File diff suppressed because one or more lines are too long

View File

@ -212,8 +212,7 @@ var _default =
}, },
methods: { methods: {
previewImage: function previewImage(e) { previewImage: function previewImage() {
console.log('e', e);
uni.previewImage({ uni.previewImage({
// 需要预览的图片链接列表 // 需要预览的图片链接列表
urls: [], urls: [],
@ -224,14 +223,11 @@ var _default =
// 是否可循环预览 // 是否可循环预览
loop: false, loop: false,
// 长按图片显示操作菜单,如不填默认为保存相册 // 长按图片显示操作菜单,如不填默认为保存相册
// longPressActions:{
// itemList:[this.l('发送给朋友'),this.l]
// },
success: function success(res) { success: function success(res) {
console.log('res', res); console.log('res', res);
}, },
fail: function fail(err) { fail: function fail(err) {
onsole.log('err', err); console.log('err', err);
} }); } });
} } };exports.default = _default; } } };exports.default = _default;

View File

@ -1 +1 @@
<view class="data-v-774e46dc"><status-nav vue-id="727b15aa-1" ifReturn="{{false}}" navBarTitle="GPS" marginBottom="{{0}}" class="data-v-774e46dc" bind:__l="__l"></status-nav><view class="gps-code data-v-774e46dc"><view class="tips font26 data-v-774e46dc">长按识别二维码</view><image show-menu-by-longpress="{{true}}" src="/static/public/gps-code.jpg" mode="widthFix" data-event-opts="{{[['tap',[['previewImage',['$event']]]]]}}" bindtap="__e" class="data-v-774e46dc"></image></view><foot-tab vue-id="727b15aa-2" current="{{2}}" class="data-v-774e46dc" bind:__l="__l"></foot-tab></view> <view class="data-v-774e46dc"><status-nav vue-id="727b15aa-1" ifReturn="{{false}}" navBarTitle="GPS" marginBottom="{{0}}" class="data-v-774e46dc" bind:__l="__l"></status-nav><view class="gps-code data-v-774e46dc"><view class="tips font26 data-v-774e46dc">长按识别</view><image show-menu-by-longpress="{{true}}" src="/static/public/gps-code.jpg" mode="widthFix" data-event-opts="{{[['tap',[['previewImage',['$event']]]]]}}" bindtap="__e" class="data-v-774e46dc"></image></view><foot-tab vue-id="727b15aa-2" current="{{2}}" class="data-v-774e46dc" bind:__l="__l"></foot-tab></view>