123456789101112131415161718192021222324252627282930 |
- const $ = global;
- const WxParse = require('../../wxParse/wxParse.js');
- new $.Page({
- data: {
- imgUrls: [
- '/img/demo/banner.jpg',
- '/img/demo/banner.jpg',
- '/img/demo/banner.jpg'
- ]
- },
- onLoad() {
- WxParse.wxParse('article', 'html', '<div>hello world</div>', this);
- },
- handleJump(e) {
- const {
- route,
- type,
- target
- } = e.currentTarget.dataset;
- if (route) {
- $.router.goto({
- path: `/pages/${route}/index`,
- type: type && parseInt(type),
- params: {
- target: target || ''
- }
- });
- }
- }
- });
|