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>
......
This diff is collapsed.
{ {
"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