微信小程序/bml/pages/caseinfo/caseinfo.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

import WxParse from '../../wxParse/wxParse.js';
//pro.js
//获取应用实例
var app = getApp();

Page({
  data: {
    proinfoimgUrls: [],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
    // tab切换
    currentTab: 0,
    webUrl: app.webUrl,
  },
  onLoad: function (options) {
    var that = this;

    /**
     * 获取系统信息
     */
    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          winWidth: res.windowWidth,
          winHeight: res.windowHeight,
          clientHeight: res.windowHeight
        });
      }

    });
    
    wx.request({//文章详情
      url: app.url, //接口地址
      data: {
        opt: 'getArticleDe',
        cloumnName: 'caseinfo_item',
        id: options.id
      },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        that.setData({
          caseinfo_item: res.data.ds,
          content: WxParse.wxParse('article_content', 'html', res.data.ds[0].content, that)
        })
      }
    });
    wx.request({//文章详情上一篇
      url: app.url, //接口地址
      data: {
        opt: 'getPre',
        id: options.id
      },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
后面还有 52 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。