提交 7d3ba0e0 编写于 作者: 杜庆泉's avatar 杜庆泉

vue文件移除条件编译

上级 4d55ce59
......@@ -11,14 +11,12 @@
</view>
</template>
<script>
// #ifndef H5
import {
checkHasIntegration
} from "@/uni_modules/uts-tencentgeolocation";
import {
checkHasLottieIntegration
} from "@/uni_modules/uts-animation-view";
// #endif
export default {
......@@ -53,7 +51,6 @@
})
},
gotoLottie: function(e) {
// #ifndef H5
if (checkHasLottieIntegration()) {
uni.navigateTo({
url: '/pages/SDKIntegration/Lottie/index'
......@@ -64,8 +61,6 @@
title: '需要在自定义基座中运行'
})
}
// #endif
},
gotoTencentLocation: function(e) {
......
......@@ -22,15 +22,14 @@
</template>
<script>
// #ifndef H5
import {
checkHasIntegration,
requestPremission,
getLocation,
watchPosition,
clearWatch
} from "@/uni_modules/uts-tencentgeolocation";
// #endif
} from "@/uni_modules/uts-tencentgeolocation";
export default {
data() {
return {
......
......@@ -19,7 +19,6 @@
import { showToast } from '@/uni_modules/uts-toast'
export default {
data() {
......
......@@ -33,7 +33,6 @@
</template>
<script>
// #ifndef APP-ANDROID
import {
getCurrentVCTest,
getKeyWindowTest,
......@@ -45,7 +44,6 @@
tepeofTest,
dataConvertTest,
} from "@/uni_modules/uts-platform-api"
// #endif
export default {
......
......@@ -18,9 +18,7 @@
</view>
</template>·
<script>
// #ifdef APP-ANDROID
import { gotoDemoActivity } from "@/uni_modules/uts-nativepage";
// #endif
import { getBatteryInfo } from "@/uni_modules/uts-getbatteryinfo";
export default {
......@@ -89,7 +87,7 @@
testGetBatteryCapacity() {
getBatteryInfo({
success(res) {
console.log(res)
console.log(res)
uni.showToast({
title: "当前电量:" + res.level + '%',
icon: 'none'
......@@ -98,7 +96,6 @@
})
},
testGotoDemoActivity() {
// #ifdef APP-ANDROID
let ret = gotoDemoActivity();
if (!ret) {
uni.showToast({
......@@ -106,7 +103,6 @@
title: '需要在自定义基座中运行'
})
}
// #endif
}
}
}
......
......@@ -17,11 +17,9 @@
</view>
</template>
<script>
// #ifdef APP
import {
runTests
} from '../../uni_modules/uts-tests'
// #endif
export default {
data() {
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册