1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- const app = require('../../utils/util.js');
- const tools = require('../../utils/tools.js');
- Page({
- data: {
- // 轮播
- backgrounds: [{
- "pic": "/images/banner1.png",
- // link:'../aboutme/index',
- },
- {
- "pic": "/images/banner2.png",
- // link:'../aboutme/index',
- },
- {
- "pic": "/images/banner3.png",
- // link:'../aboutme/index',
- },
- ],
- indicatorDots: true,
- vertical: false,
- autoplay: true,
- interval: 5000,
- duration: 500
- },
- goCollect() {
- wx.switchTab({
- url: '/pages/collectInfo/collectInfo',
- })
- },
- goXunfang() {
- wx.switchTab({
- url: '/pages/visitandinfo/visitandinfo',
- })
- },
- goTongzhi(){
- wx.navigateTo({
- url: '/pages/notice/notice',
- })
- },
- goPaiming() {
- wx.navigateTo({
- url: '/pages/paiming/paiming',
- })
- },
- goSaoMa() {
- console.log("扫阿");
- var _this = this;
- // 允许从相机和相册扫码
- wx.scanCode({
- success: (res) => {
- console.log(res,"打印锕");
- let length = res.result.substring(res.result.lastIndexOf('/')+1,res.result.length)
-
- wx.navigateTo({
- url: '/pages/love/love?id='+length,
- })
- }
- })
- },
- onLoad() {
- },
- })
|