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

vue文件移除条件编译

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