Commit 5d323576 authored by 黄奎's avatar 黄奎

按钮

parent 7cfcf1c3
......@@ -13,7 +13,9 @@
<img :src="item.pic_url" style="margin-bottom:-4px" mode="widthFix"/>
</view>
<view class="hots" v-for="(x, i) in hotspots" :key="i" :style="[x.formatStyle]" @click="clickHots(x.link)">&nbsp;</view>
<view @click="jumper()">跳转</view>
</view>
</template>
<script>
......@@ -56,6 +58,13 @@ export default {
})
},
methods: {
// 测试跳转
jumper() {
uni.redirectTo({
url: `/pages/webbox/webbox?auth=1`
});
},
clickHandler(url) {
if (url && url.length > 0) {
uni.navigateTo({
......
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