vip-verify.js 954 Bytes
let app = getApp();
Page({
  data: {
    authorizeVisible: false,
    verifyInfo: {}
  },
  onShareAppMessage() {},
  showAuth() {
    this.setData({
      authorizeVisible: true
    })
  },
  onLoad(options) {},
  onShow() {
    this.initData();
  },
  initData() {
    app.post({
      url: app.api.memberIdQuery,
      data: {},
    }).then((result) => {
      this.setData({
        verifyInfo: result
      })
    })
  },

  /**
   * 图片查看
   */
  onPreviewImageHandler(evt) {
    let verifyInfo = this.data.verifyInfo;
    let current = verifyInfo.images;
    let urls = [current];
    wx.previewImage({
      current: current,
      urls: urls
    })
  },

  /**
   * 重新提交
   */
  onReSubmitHandler() {
    app.router.push({
      openType: "redirect",
      path: "vipLogin"
    });
  },

  /**
   * 修改信息
   */
  onModifyHandler() {
    app.router.push({
      openType: "redirect",
      path: "vipLogin"
    });
  },

})