Commit 79a2f50d authored by mengcuiguang's avatar mengcuiguang

new pro

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