main
liudan 1 year ago
parent 1e1486dff8
commit 3c423b96b7
  1. 15
      pages/index/components/sh-grid.vue
  2. 15
      pages/index/index.vue
  3. BIN
      static/images/tizhijiance.png

@ -35,7 +35,20 @@ export default {
created() {},
methods: {
jump(data) {
this.$tools.routerTo(data.path);
console.log(data,"888")
if(data.name=="体质检测"){
wx.navigateToMiniProgram({
appId: 'wx9c08c355ee94827c',
path: 'page/begin/begin',
envVersion: 'trial',//线releasedevelop trial
success(res) {
console.log('跳转成功')
}
})
}else{
this.$tools.routerTo(data.path);
}
}
}
};

@ -50,6 +50,11 @@
<image src="../../static/images/m3.png" mode="widthFix"></image>
<view class="desc">多重惊喜</view>
</view>
<view class="devide"></view>
<view class="flag" @click="getTizhi">
<image src="../../static/images/tizhijiance.png" mode="widthFix"></image>
<view class="desc">体质检测</view>
</view>
</view>
<!-- 自定义模块 -->
<view class="template-box" style="border-bottom:1px solid transparent">
@ -267,6 +272,16 @@ export default {
return item.title
})
});
},
getTizhi(){
wx.navigateToMiniProgram({
appId: 'wx9c08c355ee94827c',
path: 'page/begin/begin',
envVersion: 'trial',//线releasedevelop trial
success(res) {
console.log('跳转成功')
}
})
}
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Loading…
Cancel
Save