Commit 79a2f50d authored by mengcuiguang's avatar mengcuiguang

new pro

parent 96a3cde0
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
auth: false, // 三要素实名认证 auth: false, // 三要素实名认证
userInfo: null, userInfo: null,
cardInfo: null, cardInfo: null,
pkgName: 'com.mingshu.scandemon' pkgName: 'com.mingshu.scanlxds'
} }
}; };
</script> </script>
......
<template> <template>
<view class="body"> <view class="body">
<scroll-view class="scrollView" scroll-y> <scroll-view class="scrollView" scroll-y>
<view style="position: relative;"> <view style="position: relative;">
<view style="position: absolute;z-index: 1;"> <view style="position: absolute;z-index: 1;">
<image style="width: 734rpx;height: 470rpx;" <image style="width: 734rpx;height: 470rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan_top.png" mode="scaleToFill"> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan_top.png" mode="scaleToFill">
</image> </image>
</view> </view>
<view style="position: absolute;z-index: 123;width: 100%;"> <view style="position: absolute;z-index: 123;width: 100%;">
<view class="content"> <view class="content">
<view style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;"> <view style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;">
<view style="font-size: 30rpx;font-weight: 777;margin-top: 10rpx;">智能扫描精灵</view> <view style="font-size: 30rpx;font-weight: 777;margin-top: 10rpx;">灵犀扫描大师</view>
<image v-if="userBean.expireTime<=0" @click="handleVip" <image v-if="userBean.expireTime<=0" @click="handleVip"
style="border-radius:10rpx; width: 170rpx;height: 56rpx;" style="border-radius:10rpx; width: 170rpx;height: 56rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_scan_vip.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_scan_vip.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
</view> </view>
<swiper style="width: 100%;height:206rpx;margin-top: 24rpx;" :autoplay="true" :interval="2000" <swiper style="width: 100%;height:206rpx;margin-top: 24rpx;" :autoplay="true" :interval="2000"
:duration="500"> :duration="500">
<swiper-item @click="handleBanner1"> <swiper-item @click="handleBanner1">
<image class="banner-img" <image class="banner-img"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_banner_ar.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_banner_ar.png"
mode="scaleToFill"></image> mode="scaleToFill"></image>
</swiper-item> </swiper-item>
<swiper-item v-if="userBean.expireTime<=0" @click="handleBanner2"> <swiper-item v-if="userBean.expireTime<=0" @click="handleBanner2">
<image class="banner-img" <image class="banner-img"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_banner_vip.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_banner_vip.png"
mode="scaleToFill"></image> mode="scaleToFill"></image>
</swiper-item> </swiper-item>
</swiper> </swiper>
<view <view
style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 392rpx;margin-top: 24rpx;"> style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 392rpx;margin-top: 24rpx;">
<image @click="handleDistance" style="width: 50%;height: 392rpx;margin-right: 10rpx;" <image @click="handleDistance" style="width: 50%;height: 392rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_top_left.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_top_left.png"
mode="heightFix"> mode="heightFix">
</image> </image>
<image @click="handleAll" style="width: 50%;height: 392rpx;margin-left: 10rpx;" <image @click="handleAll" style="width: 50%;height: 392rpx;margin-left: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_top_right.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_top_right.png"
mode="heightFix"> mode="heightFix">
</image> </image>
</view> </view>
<view style="font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 16rpx;"> <view style="font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 16rpx;">
扫描工具</view> 扫描工具</view>
<view <view
style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;"> style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;">
<image @click="handleZj" <image @click="handleZj"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan1.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan1.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
<image @click="handleFy" <image @click="handleFy"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan2.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan2.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
</view> </view>
<view <view
style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;"> style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;">
<image @click="handleWj" <image @click="handleWj"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan3.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan3.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
<image @click="handleWz" <image @click="handleWz"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan4.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan4.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
</view> </view>
<view <view
style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;"> style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 180rpx;margin-top: 14rpx;">
<image @click="handleExcel" <image @click="handleExcel"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan5.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan5.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
<image @click="handlePdf" <image @click="handlePdf"
style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;" style="width: 50%;height: 180rpx;margin-left: 10rpx;margin-right: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan6.png" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_scan6.png"
mode="scaleToFill"> mode="scaleToFill">
</image> </image>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
import { import {
getToLocal getToLocal
} from "@/utils/utils.js" } from "@/utils/utils.js"
import { import {
navigateTo, navigateTo,
loading loading
} from '@/utils/fun.js'; } from '@/utils/fun.js';
const app = getApp(); const app = getApp();
export default { export default {
name: 'index', name: 'index',
mixins: [common], mixins: [common],
data() { data() {
return { return {
userBean: {}, userBean: {},
}; };
}, },
methods: { methods: {
show() { show() {
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
showLoading: false, showLoading: false,
success: ({ success: ({
data data
}) => { }) => {
this.userBean = data; this.userBean = data;
} }
}); });
}, },
handleBanner1() { handleBanner1() {
// 测距 // 测距
navigateTo(`/pagesC/measure/measure`) navigateTo(`/pagesC/measure/measure`)
}, },
handleBanner2() { handleBanner2() {
// vip // vip
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay`)
}, },
handleDistance() { handleDistance() {
// 测距 // 测距
navigateTo(`/pagesC/measure/measure`) navigateTo(`/pagesC/measure/measure`)
}, },
handleAll() { handleAll() {
// 万能 // 万能
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 0 type: 0
}) })
}, },
handleZj() { handleZj() {
// 证件扫描 // 证件扫描
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 1 type: 1
}) })
}, },
handleFy() { handleFy() {
// 翻译 // 翻译
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 2 type: 2
}) })
}, },
handleWj() { handleWj() {
// 文件扫描 // 文件扫描
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 4 type: 4
}) })
}, },
handleWz() { handleWz() {
// 文字识别 // 文字识别
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 3 type: 3
}) })
}, },
handleExcel() { handleExcel() {
// 表格识别 // 表格识别
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 5 type: 5
}) })
}, },
handlePdf() { handlePdf() {
// 图片转pdf // 图片转pdf
navigateTo(`/pagesC/scan/scan`, { navigateTo(`/pagesC/scan/scan`, {
type: 6 type: 6
}) })
}, },
handleVip() { handleVip() {
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay`)
} }
} }
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
.body { .body {
background-color: #F0F4F5; background-color: #F0F4F5;
} }
.scrollView { .scrollView {
background-color: #F0F4F5; background-color: #F0F4F5;
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
</style> </style>
\ No newline at end of file
{ {
"name" : "智能扫描精灵", "name" : "灵犀扫描大师",
"appid" : "__UNI__4941001", "appid" : "__UNI__7C58101",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 1000, "versionCode" : 1000,
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"appid" : "tt21e1575cbed7b45301" "appid" : "ttd1eba7564edd445e01"
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : false, "enable" : false,
......
<template> <template>
<view class="body"> <view class="body">
<!-- <status-title :showBack="true" iconColor="black">识别结果</status-title> --> <!-- <status-title :showBack="true" iconColor="black">识别结果</status-title> -->
<view style="display: flex;flex-direction: column;height: 100%;"> <view style="display: flex;flex-direction: column;height: 100%;">
<view style="height: 40%; display: flex;justify-content: center;align-items: center;"> <view style="height: 40%; display: flex;justify-content: center;align-items: center;">
<image mode="heightFix" :src="imgUrl" /> <image mode="heightFix" :src="imgUrl" />
</view> </view>
<view style="background: white;height: 50%;display: flex;flex-direction: column;padding: 30rpx 20rpx;"> <view style="background: white;height: 50%;display: flex;flex-direction: column;padding: 30rpx 20rpx;">
<view style="font-weight: bold;padding-left: 10rpx;font-size: 40rpx;">识别结果</view> <view style="font-weight: bold;padding-left: 10rpx;font-size: 40rpx;">识别结果</view>
<scroll-view :scroll-y="true" style="overflow: hidden;white-space: nowrap;flex:1;"> <scroll-view :scroll-y="true" style="overflow: hidden;white-space: nowrap;flex:1;">
<view v-if="type==3 || type == 1 || type == 4"> <view v-if="type==3 || type == 1 || type == 4">
<block v-for="(item, index) in dataList" :key="index"> <block v-for="(item, index) in dataList" :key="index">
<view> <view>
<view style="margin: 10rpx;font-size: 30rpx;">{{item}}</view> <view style="margin: 10rpx;font-size: 30rpx;">{{item}}</view>
<view style="height: 1rpx;width: 100%;background: darkgray;" <view style="height: 1rpx;width: 100%;background: darkgray;"
v-if="index<dataList.length-1"></view> v-if="index<dataList.length-1"></view>
</view> </view>
</block> </block>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view style="height: 10%;display: flex;flex-direction: row;background: white;"> <view style="height: 10%;display: flex;flex-direction: row;background: white;">
<view @click="copy" <view @click="copy"
style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;"> style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;">
<image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png"> <image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png">
</image> </image>
<view style="font-size: 30rpx;">复制</view> <view style="font-size: 30rpx;">复制</view>
</view> </view>
<button open-type="share" <button open-type="share"
style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;"> style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;">
<image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png"> <image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png">
</image> </image>
<view style="font-size: 30rpx;">导出</view> <view style="font-size: 30rpx;">导出</view>
</button> </button>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
const app = getApp(); const app = getApp();
export default { export default {
name: 'result', name: 'result',
mixins: [common], mixins: [common],
data() { data() {
return { return {
result: '', result: '',
imgUrl: '', imgUrl: '',
dataList: [], dataList: [],
type: 0 type: 0
}; };
}, },
onLoad(option) { onLoad(option) {
this.type = option.type this.type = option.type
this.result = decodeURIComponent(option.result) this.result = decodeURIComponent(option.result)
this.imgUrl = decodeURIComponent(option.imgUrl) this.imgUrl = decodeURIComponent(option.imgUrl)
this.dataList = this.result.split('\n') this.dataList = this.result.split('\n')
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '智能扫描精灵', title: '灵犀扫描大师',
summary: this.result, summary: this.result,
success() { success() {
console.log('分享成功'); console.log('分享成功');
}, },
fail(err) { fail(err) {
console.error('分享失败', err); console.error('分享失败', err);
} }
}; };
}, },
methods: { methods: {
copy() { copy() {
uni.setClipboardData({ uni.setClipboardData({
data: this.result, data: this.result,
complete() { complete() {
uni.showToast({ uni.showToast({
title: "已复制到剪贴板" title: "已复制到剪贴板"
}) })
} }
}) })
} }
}, },
} }
</script> </script>
<style lang="scss"> <style lang="scss">
</style> </style>
\ No newline at end of file
<template> <template>
<view class="body"> <view class="body">
<view class="content flex-v"> <view class="content flex-v">
<view class="flex"> <view class="flex">
<image style="height: 200rpx;margin-left: 30rpx;" mode="heightFix" :src="imgUrl"></image> <image style="height: 200rpx;margin-left: 30rpx;" mode="heightFix" :src="imgUrl"></image>
<view class="flex-v" style="margin-left: 30rpx;"> <view class="flex-v" style="margin-left: 30rpx;">
<text style="color: gray;font-size: 36rpx;">图中可能是</text> <text style="color: gray;font-size: 36rpx;">图中可能是</text>
<text style="color: black;font-size: 40rpx;max-width: 400rpx;margin-top: 20rpx;">{{result}}</text> <text style="color: black;font-size: 40rpx;max-width: 400rpx;margin-top: 20rpx;">{{result}}</text>
</view> </view>
</view> </view>
<view class="flex-v" style="margin-top: 80rpx;"> <view class="flex-v" style="margin-top: 80rpx;">
<view class="flex"> <view class="flex">
<text style="color: black;font-size: 40rpx;">百科</text> <text style="color: black;font-size: 40rpx;">百科</text>
<text style="color: gray;font-size: 30rpx;margin-left: 20rpx;">WIKIPEDIA</text> <text style="color: gray;font-size: 30rpx;margin-left: 20rpx;">WIKIPEDIA</text>
</view> </view>
<view style="height: 1rpx;background-color: gray;margin-top: 10rpx;"></view> <view style="height: 1rpx;background-color: gray;margin-top: 10rpx;"></view>
<text style="color: black;font-size: 36rpx;;margin-top: 30rpx;">{{wiki?wiki:'暂无百科介绍'}}</text> <text style="color: black;font-size: 36rpx;;margin-top: 30rpx;">{{wiki?wiki:'暂无百科介绍'}}</text>
</view> </view>
</view> </view>
<image class="img" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_ai_result.png" mode="widthFix"></image> <image class="img" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_ai_result.png" mode="widthFix"></image>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
const app = getApp(); const app = getApp();
export default { export default {
name: '百科结果', name: '百科结果',
mixins: [common], mixins: [common],
data() { data() {
return { return {
result: '', result: '',
wiki: '', wiki: '',
imgUrl: '', imgUrl: '',
}; };
}, },
onLoad(option) { onLoad(option) {
this.result = decodeURIComponent(option.result) this.result = decodeURIComponent(option.result)
this.wiki = decodeURIComponent(option.wiki) this.wiki = decodeURIComponent(option.wiki)
this.imgUrl = decodeURIComponent(option.imgUrl) this.imgUrl = decodeURIComponent(option.imgUrl)
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '智能扫描精灵', title: '灵犀扫描大师',
summary: this.result, summary: this.result,
success() { success() {
console.log('分享成功'); console.log('分享成功');
}, },
fail(err) { fail(err) {
console.error('分享失败', err); console.error('分享失败', err);
} }
}; };
}, },
methods: { methods: {
copy() { copy() {
uni.setClipboardData({ uni.setClipboardData({
data: this.result, data: this.result,
complete() { complete() {
uni.showToast({ uni.showToast({
title: "已复制到剪贴板" title: "已复制到剪贴板"
}) })
} }
}) })
} }
}, },
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.body { .body {
position: relative; position: relative;
} }
.content { .content {
position: absolute; position: absolute;
width: 90%; width: 90%;
height: 80%; height: 80%;
top: 100rpx; top: 100rpx;
left: 5%; left: 5%;
background-color: white; background-color: white;
border-radius: 20rpx; border-radius: 20rpx;
box-shadow: 0 0 4px darkgray; box-shadow: 0 0 4px darkgray;
padding: 80rpx 30rpx 0 30rpx; padding: 80rpx 30rpx 0 30rpx;
} }
.img { .img {
position: absolute; position: absolute;
width: 294rpx; width: 294rpx;
height: 62rpx; height: 62rpx;
left: 50%; left: 50%;
margin-left: -146rpx; margin-left: -146rpx;
top: 69rpx; top: 69rpx;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view class="body"> <view class="body">
<!-- <status-title :showBack="true" iconColor="black">识别结果</status-title> --> <!-- <status-title :showBack="true" iconColor="black">识别结果</status-title> -->
<view style="display: flex;flex-direction: column;height: 100%;"> <view style="display: flex;flex-direction: column;height: 100%;">
<view style="height: 40%; display: flex;justify-content: center;align-items: center;"> <view style="height: 40%; display: flex;justify-content: center;align-items: center;">
<image mode="heightFix" :src="imgUrl"></image> <image mode="heightFix" :src="imgUrl"></image>
</view> </view>
<view style="background: white;height: 50%;display: flex;flex-direction: column;padding: 30rpx 20rpx;"> <view style="background: white;height: 50%;display: flex;flex-direction: column;padding: 30rpx 20rpx;">
<view style="font-weight: bold;padding-left: 10rpx;font-size: 40rpx;">识别结果</view> <view style="font-weight: bold;padding-left: 10rpx;font-size: 40rpx;">识别结果</view>
<scroll-view :scroll-x="true" style="overflow: hidden;white-space: nowrap;flex:1;width: 100%;"> <scroll-view :scroll-x="true" style="overflow: hidden;white-space: nowrap;flex:1;width: 100%;">
<view style="padding: 10rpx;">{{from}}</view> <view style="padding: 10rpx;">{{from}}</view>
<view style="padding: 10rpx;">{{to}}</view> <view style="padding: 10rpx;">{{to}}</view>
</scroll-view> </scroll-view>
</view> </view>
<view style="height: 10%;display: flex;flex-direction: row;background: white;"> <view style="height: 10%;display: flex;flex-direction: row;background: white;">
<view @click="copy" <view @click="copy"
style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;"> style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;">
<image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png"> <image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png">
</image> </image>
<view style="font-size: 30rpx;">复制</view> <view style="font-size: 30rpx;">复制</view>
</view> </view>
<button open-type="share" <button open-type="share"
style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;"> style="display: flex;flex-direction: column;flex: 1;align-items: center;padding-top: 20rpx;">
<image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png"> <image style="width: 30rpx;height: 30rpx;" src="../../static/ic_copy.png">
</image> </image>
<view style="font-size: 30rpx;">导出</view> <view style="font-size: 30rpx;">导出</view>
</button> </button>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
const app = getApp(); const app = getApp();
export default { export default {
name: 'transresult', name: 'transresult',
mixins: [common], mixins: [common],
data() { data() {
return { return {
imgUrl: '', imgUrl: '',
from: '', from: '',
to: '', to: '',
}; };
}, },
onLoad(option) { onLoad(option) {
this.from = decodeURIComponent(option.from) this.from = decodeURIComponent(option.from)
this.to = decodeURIComponent(option.to) this.to = decodeURIComponent(option.to)
this.imgUrl = decodeURIComponent(option.imgUrl) this.imgUrl = decodeURIComponent(option.imgUrl)
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '智能扫描精灵', title: '灵犀扫描大师',
summary: this.result, summary: this.result,
success() { success() {
console.log('分享成功'); console.log('分享成功');
}, },
fail(err) { fail(err) {
console.error('分享失败', err); console.error('分享失败', err);
} }
}; };
}, },
methods: { methods: {
copy() { copy() {
uni.setClipboardData({ uni.setClipboardData({
data: this.to, data: this.to,
complete() { complete() {
uni.showToast({ uni.showToast({
title: "已复制到剪贴板" title: "已复制到剪贴板"
}) })
} }
}) })
} }
}, },
} }
</script> </script>
<style lang="scss"> <style lang="scss">
</style> </style>
\ No newline at end of file
<!-- <template> <!-- <template>
<view class="body"> <view class="body">
<view > <view >
<image src="@/static/logo-about.png" mode="widthFix" style="border-radius: 20rpx;margin-bottom: 200rpx;" /> <image src="@/static/logo-about.png" mode="widthFix" style="border-radius: 20rpx;margin-bottom: 200rpx;" />
<view style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;"> <view style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;">
智能扫描精灵 v{{ versionName }} 灵犀扫描大师 v{{ versionName }}
</view> </view>
</view> </view>
<view > <view >
<view style="color: black;margin-top: 40rpx;font-size: 40rpx;">Copyright 2024 Inc.</view> <view style="color: black;margin-top: 40rpx;font-size: 40rpx;">Copyright 2024 Inc.</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
const app = getApp(); const app = getApp();
export default { export default {
...@@ -25,68 +25,68 @@ ...@@ -25,68 +25,68 @@
methods: { methods: {
} }
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
.body { .body {
background-color: white; background-color: white;
} }
</style> --> </style> -->
<template> <template>
<view class="body"> <view class="body">
<view style="display: flex;flex-direction: column;width: 100%;height: 90%;align-items: center;"> <view style="display: flex;flex-direction: column;width: 100%;height: 90%;align-items: center;">
<image src="@/static/logo-about.png" mode="widthFix" style="width: 120rpx;height: 120rpx;margin-top: 100rpx;" /> <image src="@/static/logo-about.png" mode="widthFix" style="width: 120rpx;height: 120rpx;margin-top: 100rpx;" />
<view style="margin-top: 50rpx;font-size: 26rpx;color: gray;"> <view style="margin-top: 50rpx;font-size: 26rpx;color: gray;">
智能扫描精灵 {{ versionName }} 灵犀扫描大师 {{ versionName }}
</view> </view>
</view> </view>
<view style="display: flex;justify-content: center;"> <view style="display: flex;justify-content: center;">
<view style="color: black;font-size: 40rpx;">Copyright 2024 Inc.</view> <view style="color: black;font-size: 40rpx;">Copyright 2024 Inc.</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
import { import {
getToLocal getToLocal
} from "@/utils/utils.js" } from "@/utils/utils.js"
import { import {
navigateTo, navigateTo,
message, message,
alert, alert,
loading loading
} from '@/utils/fun.js'; } from '@/utils/fun.js';
import { import {
openUrl openUrl
} from '@/utils/app+.js'; } from '@/utils/app+.js';
const app = getApp(); const app = getApp();
export default { export default {
name: 'index', name: 'index',
mixins: [common], mixins: [common],
data() { data() {
return { return {
userBean: {}, userBean: {},
versionName: app.globalData.versionName versionName: app.globalData.versionName
}; };
}, },
methods: { methods: {
onShow() { onShow() {
}, },
} }
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
@import '@/scss/uni.scss'; @import '@/scss/uni.scss';
.body { .body {
background-color: whitesmoke; background-color: whitesmoke;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view class="body"> <view class="body">
<view v-if="showMask" class="show-mask flex-v" @click="showMask=false"> <view v-if="showMask" class="show-mask flex-v" @click="showMask=false">
<view class="mt-30" style="width: 90%;text-align: right;"> <view class="mt-30" style="width: 90%;text-align: right;">
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" /> border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" />
</view> </view>
<text class="mt-10" style="font-size: 46rpx;">如何继续使用?</text> <text class="mt-10" style="font-size: 46rpx;">如何继续使用?</text>
<text class="m-10">找到“智能扫描精灵”小程序</text> <text class="m-10">找到“灵犀扫描大师”小程序</text>
<image class="mt-30" mode="widthFix" :src="maskImage1"></image> <image class="mt-30" mode="widthFix" :src="maskImage1"></image>
<image :src="maskImage2" mode="widthFix"></image> <image :src="maskImage2" mode="widthFix"></image>
...@@ -24,41 +24,41 @@ ...@@ -24,41 +24,41 @@
</view> </view>
<view v-if="false" style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;"> <view v-if="false" style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;">
当前版本:{{ versionName }} 当前版本:{{ versionName }}
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
import { import {
getToLocal getToLocal
} from "@/utils/utils.js" } from "@/utils/utils.js"
import { import {
navigateTo, navigateTo,
message, message,
alert, alert,
loading loading
} from '@/utils/fun.js'; } from '@/utils/fun.js';
import { import {
openUrl openUrl
} from '@/utils/app+.js'; } from '@/utils/app+.js';
const app = getApp(); const app = getApp();
export default { export default {
name: 'index', name: 'index',
mixins: [common], mixins: [common],
data() { data() {
return { return {
userBean: {}, userBean: {},
showMask: false, showMask: false,
maskImage1: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find1.png', maskImage1: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find1.png',
maskImage2: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find2.png', maskImage2: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find2.png',
versionName: app.globalData.versionName versionName: app.globalData.versionName
}; };
}, },
methods: { methods: {
onShow() { onShow() {
this.post({ this.post({
url: '/user/baseMsg', url: '/user/baseMsg',
...@@ -72,17 +72,17 @@ ...@@ -72,17 +72,17 @@
}, },
handleFind(){ handleFind(){
this.showMask = true this.showMask = true
} }
} }
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
@import '@/scss/uni.scss'; @import '@/scss/uni.scss';
.body { .body {
background-color: whitesmoke; background-color: whitesmoke;
position: relative; position: relative;
} }
.show-mask { .show-mask {
...@@ -97,5 +97,5 @@ ...@@ -97,5 +97,5 @@
image { image {
width: 90%; width: 90%;
} }
} }
</style> </style>
\ No newline at end of file
scan/static/logo-about.png

9.88 KB | W: | H:

scan/static/logo-about.png

11.2 KB | W: | H:

scan/static/logo-about.png
scan/static/logo-about.png
scan/static/logo-about.png
scan/static/logo-about.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment