(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/homeCards/index"],[
/* 0 */,
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */,
/* 10 */,
/* 11 */,
/* 12 */
/*!*********************************************************************************!*\
  !*** D:/coco/dream/uniapp/jueqing/main.js?{"page":"pages%2FhomeCards%2Findex"} ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/homeCards/index.vue */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_index.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),
/* 13 */
/*!**************************************************************!*\
  !*** D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=86ffa444&scoped=true& */ 14);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 16);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css& */ 18);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);

var renderjs





/* normalize component */

var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "86ffa444",
  null,
  false,
  _index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/homeCards/index.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),
/* 14 */
/*!*********************************************************************************************************!*\
  !*** D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=template&id=86ffa444&scoped=true& ***!
  \*********************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=86ffa444&scoped=true& */ 15);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_86ffa444_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),
/* 15 */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=template&id=86ffa444&scoped=true& ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
  components = {
    zSwiper: function() {
      return Promise.all(/*! import() | uni_modules/zebra-swiper/components/z-swiper/z-swiper */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/zebra-swiper/components/z-swiper/z-swiper")]).then(__webpack_require__.bind(null, /*! @/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue */ 50))
    },
    zSwiperItem: function() {
      return Promise.all(/*! import() | uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item")]).then(__webpack_require__.bind(null, /*! @/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue */ 149))
    }
  }
} catch (e) {
  if (
    e.message.indexOf("Cannot find module") !== -1 &&
    e.message.indexOf(".vue") !== -1
  ) {
    console.error(e.message)
    console.error("1. 排查组件名称拼写是否正确")
    console.error(
      "2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
    )
    console.error(
      "3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件"
    )
  } else {
    throw e
  }
}
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),
/* 16 */
/*!***************************************************************************************!*\
  !*** D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=script&lang=js& ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 17);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),
/* 17 */
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=script&lang=js& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default =
{
  data: function data() {
    return {
      err: null,
      disabledSubmit: false,
      id: 274,
      showUserInfo: false,
      userName: '',
      avatarUrl: 'https://admin.mindepoch.com:8089/static/poster1.png',
      // avatarUrl:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0',
      code: '',
      clickNoArgee: false,
      clickArgee: false,
      isBindPhone: false,
      needDialog: true,
      nickName: '',
      // avatarUrl:'',
      OpenId: '',
      i: 0,
      photo: [
      'https://admin.mindepoch.com:8089/worlds/情圣日记.png',
      'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',
      'https://admin.mindepoch.com:8089/worlds/舌战群儒.png'],

      list: [
      { image: 'https://admin.mindepoch.com:8089/worlds/情圣日记.png', title: '情圣日记', content1: '-Love&Entropy', content2: '你还...记得我吗？' },
      { image: 'https://admin.mindepoch.com:8089/worlds/荒村公寓.png', title: '荒村公寓', content1: '-规则怪谈', content2: '一觉醒来，身处陌生的公寓,奇怪的规则，神秘的怪谈,我该如何逃生' },
      { image: 'https://admin.mindepoch.com:8089/worlds/舌战群儒.png', title: '荒村公寓', content1: '-规则怪谈', content2: '一觉醒来，身处陌生的公寓,奇怪的规则，神秘的怪谈,我该如何逃生' }],

      options: {
        effect: 'cards' },

      slideCustomStyle: {
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        borderRadius: '36rpx' } };


  },
  mounted: function mounted() {
    //用户验证用户是否登陆过
    // console.log(this)
    var that = this;
    wx.login({
      success: function success(res) {
        if (res.code) {
          // uni.setStorageSync('code', res.code)
          that.code = res.code;
          console.log('code', that.code);
          // 将 res.code 发送至后台服务器进行处理
          uni.request({
            url: 'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone',
            method: 'POST',
            header: {
              'Content-Type': 'application/x-www-form-urlencoded' },

            data: { code: res.code },
            success: function success(res) {
              console.log('resres', res);
              that.isBindPhone = res.data.isBindPhone;
              that.wxUid = res.data.wxUid;
              if (res.data.message === "微信用户已注册，模拟登录成功!") {
                uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id
                uni.setStorageSync('userName', res.data.userName);
                uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值
              } else {
                if (res.data.code === 1) {
                  //用户已注册

                } else {
                  that.showUserInfo = true;
                }
              }


            },
            fail: function fail(err) {
              console.log(err);
            } });

        } else {
          console.error('登录失败！' + res.errMsg);
        }
      } });

  },
  onload: function onload() {},
  methods: {
    //获取到用户昵称  以及用户头像
    handleSubmit: function handleSubmit() {
      this.disabledSubmit = true;
      var that = this;
      wx.login({
        success: function success(res) {
          if (!res.code) return;
          console.log(that.avatarUrl);
          uni.downloadFile({
            url: that.avatarUrl,
            success: function success(downloadRes) {
              if (downloadRes.statusCode === 200) {
                // 图片下载成功后获取临时文件路径
                var tempFilePath = downloadRes.tempFilePath;
                console.log('图片临时路径', tempFilePath);
                uni.uploadFile({
                  url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',
                  method: 'POST',
                  filePath: tempFilePath,
                  name: 'avatar',
                  formData: {
                    code: res.code,
                    username: that.userName },

                  success: function success(uploadRes) {
                    uni.showToast({
                      title: 'AppletWeChatRegisterOrLogin',
                      icon: 'none' });

                    console.log('上传成功uploadRes', uploadRes);
                    console.log(JSON.parse(uploadRes.data));
                    var data = JSON.parse(uploadRes.data);
                    if (data.code === 1) {
                      uni.showToast({
                        title: '成功！',
                        icon: 'none' });

                      uni.setStorageSync('userName', that.userName);
                      uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值
                      uni.setStorageSync('wxUid', data.wxUid); //保存用户id
                      uni.setStorageSync('openId', data.openId); //保存用户id
                      that.showUserInfo = false; //隐藏用户填写的表单
                    } else {
                      //失败
                      // uni.showModal({
                      //     title: '弹窗标题', // 弹窗的标题
                      //     content: JSON.parse(uploadRes.data), // 弹窗的文本内容
                      //     showCancel: true, // 是否显示取消按钮，默认为 true
                      //     cancelText: '取消', // 取消按钮的文字，默认为"取消"
                      //     cancelColor: '#000000', // 取消按钮的文字颜色
                      //     confirmText: '确定', // 确定按钮的文字，默认为"确定"
                      //     confirmColor: '#576B95', // 确定按钮的文字颜色
                      //     success: function (res) {
                      //         if (res.confirm) {
                      //             console.log('用户点击确定');
                      //         } else if (res.cancel) {
                      //             console.log('用户点击取消');
                      //         }
                      //     },
                      //     fail: function (err) {
                      //         console.log('API 调用失败: ', err);
                      //     }
                      // });
                      that.disabledSubmit = false;
                    }
                  },
                  fail: function fail(uploadErr) {
                    // uni.showModal({
                    //     title: '弹窗标题', // 弹窗的标题
                    //     content: JSON.parse(uploadErr), // 弹窗的文本内容
                    //     showCancel: true, // 是否显示取消按钮，默认为 true
                    //     cancelText: '取消', // 取消按钮的文字，默认为"取消"
                    //     cancelColor: '#000000', // 取消按钮的文字颜色
                    //     confirmText: '确定', // 确定按钮的文字，默认为"确定"
                    //     confirmColor: '#576B95', // 确定按钮的文字颜色
                    //     success: function (res) {
                    //         if (res.confirm) {
                    //             console.log('用户点击确定');
                    //         } else if (res.cancel) {
                    //             console.log('用户点击取消');
                    //         }
                    //     },
                    //     fail: function (err) {
                    //         console.log('API 调用失败: ', err);
                    //     }
                    // });
                    console.error('上传失败', uploadErr);
                  } });

              }
            },
            fail: function fail(downloadErr) {
              console.error('下载图片失败', downloadErr);
              // uni.showModal({
              //     title: '弹窗标题', // 弹窗的标题
              //     content: JSON.stringify(downloadErr), // 弹窗的文本内容
              //     showCancel: true, // 是否显示取消按钮，默认为 true
              //     cancelText: '取消', // 取消按钮的文字，默认为"取消"
              //     cancelColor: '#000000', // 取消按钮的文字颜色
              //     confirmText: '确定', // 确定按钮的文字，默认为"确定"
              //     confirmColor: '#576B95', // 确定按钮的文字颜色
              //     success: function (res) {
              //         if (res.confirm) {
              //             console.log('用户点击确定');
              //         } else if (res.cancel) {
              //             console.log('用户点击取消');
              //         }
              //     },
              //     fail: function (err) {
              //         console.log('API 调用失败: ', err);
              //     }
              // });
            } });

        },
        fail: function fail(err) {
          console.log(err);
          uni.showToast({
            title: err.toString(),
            icon: 'none' });

        } });

    },
    onChooseAvatar: function onChooseAvatar(e) {var
      avatarUrl = e.detail.avatarUrl;
      this.avatarUrl = avatarUrl;
    },
    change: function change(e) {
      return;
      console.log(e);
      console.log('code', this.code);
      var that = this;
      //此处需要处理 用户点击的是同意还是不同意
      if (this.clickArgee) {
        //获取用户信息
        wx.getUserProfile({
          withCredentials: true,
          lang: 'zh_CN',
          desc: '提升用户体验，减少用户操作',
          success: function success(userRes) {
            console.log('userRes', userRes);
            //用户头像传给后端
            uni.downloadFile({
              url: userRes.userInfo.avatarUrl,
              success: function success(downloadRes) {
                if (downloadRes.statusCode === 200) {
                  // 图片下载成功后获取临时文件路径
                  var tempFilePath = downloadRes.tempFilePath;
                  console.log(tempFilePath);
                  // 将临时文件读取为ArrayBuffer
                  uni.getFileSystemManager().readFile({
                    filePath: tempFilePath,
                    success: function success(Buffer) {
                      console.log('readRes', Buffer);
                      uni.request({
                        url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',
                        method: 'POST',
                        data: {
                          code: that.code,
                          username: userRes.userInfo.nickName,
                          avatar: Buffer },

                        header: {
                          'Content-Type': 'application/x-www-form-urlencoded'
                          // 'Content-Type': 'multipart/form-data',
                        },
                        success: function success(uploadRes) {
                          console.log('上传成功uploadRes', uploadRes);
                          if (uploadRes.data.code === 1) {
                            //用户头像上传失败
                            that.isBindPhone = res.data.isBindPhone;
                            if (res.data.code === 1) {
                              //用户已注册
                              that.needDialog = false;
                            } else {
                              that.needDialog = true;
                            }
                          } else {
                            //提示用户头像上传失败

                          }
                        },
                        fail: function fail(uploadErr) {
                          console.error('上传失败', uploadErr);
                        } });

                    },
                    fail: function fail(readErr) {
                      console.error('读取文件失败', readErr);
                    } });

                }
              },
              fail: function fail(downloadErr) {
                console.error('下载图片失败', downloadErr);
              } });




            //微信用户注册或登录接口
            // uni.request({
            //     url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',
            //     method: 'POST',
            //     header: {
            //         'Content-Type': 'application/x-www-form-urlencoded'
            //     },
            //     data: { 
            //         code: this.code,
            //         username: userRes.userInfo.nickName,
            //         avatar: userRes.userInfo.avatarUrl
            //     },
            //     success: (res)=> {
            //         console.log('success',res.data)
            //         this.isBindPhone = res.data.isBindPhone
            //         // if(res.data.code===1){
            //         //     //用户已注册
            //         //     this.needDialog = false
            //         // }else{
            //         //     this.needDialog = true
            //         // }
            //     },
            //     fail: (err)=> {
            //         console.log(err)
            //     }
            // })
          },
          fail: function fail(err) {
            console.error('获取用户信息失败', err);
          } });

      }if (this.clickNoArgee) {

      }

    },
    open: function open() {
      this.$refs.popup.open('bottom');
    },
    close: function close() {
      this.$refs.popup.close();
    },
    close_noArgee: function close_noArgee() {
      this.clickNoArgee = true;
      this.$refs.popup.close();
    },
    close_argee: function close_argee() {
      this.clickArgee = true;
      this.$refs.popup.close();
    },
    //用户未注册的卡片点击事件
    handleNav: function handleNav(index) {
      // this.open()
    },
    NavTo: function NavTo(index) {
      if (index === 0) {
        uni.navigateTo({
          url: "/pages/index/index" });

      } else {
        uni.showToast({
          title: '敬请期待',
          icon: 'none' });

      }
    },
    onSlideChange: function onSlideChange(swiper, index) {
      console.log(swiper, index);
      this.i = index;
      // 你可以在这里获取当前的swiper索引
      var currentIndex = swiper.activeIndex;
      // 执行你想要的操作，比如更新页面标题
      // uni.setNavigationBarTitle('当前页: ' + (currentIndex + 1));
    },
    getAuth: function getAuth() {
      wx.getUserProfile({
        withCredentials: true,
        lang: 'zh_CN',
        desc: '提升用户体验，减少用户操作',
        success: function success(userRes) {
          console.log('userRes', userRes);
          // var userInfo = userRes.userInfo;
          // console.log("用户昵称为：" + userInfo.nickName);
          // console.log("用户头像地址为：" + userInfo.avatarUrl);
          // this.nickName = userInfo.nickName
          // this.avatarUrl = userInfo.avatarUrl
          // this.$globalData.userPhoto = userInfo.avatarUrl

          // if(e.detail.code){
          //     that.sendPhoneNumberToServer(e.detail.code,'no');
          // }else{
          //     that.sendPhoneNumberToServer(e.detail.code,'yes');
          // }
        },
        fail: function fail() {
          console.error('获取用户信息失败');
        } });

    },

    handleUserDestory: function handleUserDestory() {
      uni.request({
        url: 'https://admin.mindepoch.com:8089/UnregisterUser',
        method: 'POST',
        header: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Cookie': "".concat(uni.getStorageSync('session_token')) },

        data: { id: uni.getStorageSync('wxUid') },
        success: function success(res) {
          console.log(res);
          uni.showToast({
            title: '注销成功！',
            icon: 'none' });

        },
        fail: function fail(err) {
          console.log(err);
        } });

    },

    // 获取手机号
    getPhoneNumber: function getPhoneNumber(e) {
      console.log('e', e);
      var that = this;
      wx.login({
        success: function success(res) {
          if (res.code) {
            that.code = e.code;
            // 将 res.code 发送至后台服务器进行处理
            uni.request({
              url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatLogin',
              method: 'POST',
              header: {
                'Content-Type': 'application/x-www-form-urlencoded' },

              data: { code: res.code },
              success: function success(response) {
                console.log('登录成功', response);
                that.OpenId = response.data.OpenId;
                // TODO: 根据后台返回的结果保存 openid、sessionKey 等信息
                uni.getUserInfo({
                  withCredentials: true,
                  lang: 'zh_CN',
                  success: function success(userRes) {
                    var userInfo = userRes.userInfo;
                    console.log("用户昵称为：" + userInfo.nickName);
                    console.log("用户头像地址为：" + userInfo.avatarUrl);
                    that.nickName = userInfo.nickName;
                    that.avatarUrl = userInfo.avatarUrl;
                    that.$globalData.userPhoto = userInfo.avatarUrl;
                    // TODO: 将用户昵称和头像地址保存或上传至后台服务器
                    if (e.detail.code) {
                      that.sendPhoneNumberToServer(e.detail.code, 'no');
                    } else {
                      that.sendPhoneNumberToServer(e.detail.code, 'yes');
                    }
                  },
                  fail: function fail() {
                    console.error('获取用户信息失败');
                  } });

              } });

          } else {
            console.error('登录失败！' + res.errMsg);
          }
        } });

    },

    sendPhoneNumberToServer: function sendPhoneNumberToServer(code, bool) {var _this = this;
      // 将code、encryptedData和iv发送到后端API
      uni.request({
        url: 'https://admin.mindepoch.com:8089/wechat/RegisterAndLoginWXUserPhone',
        method: 'POST',
        data: {
          username: this.nickName,
          openid: this.OpenId,
          phone_code: bool == "no" ? code : '',
          reject_binding: bool },

        header: {
          'Content-Type': 'application/x-www-form-urlencoded' },

        success: function success(res) {
          console.log('success', res);
          if (res.statusCode === 200) {
            console.log('手机号码传递成功', res);
            if (res.data.code === 1) {
              _this.$globalData.wxUid = res.data.wxUid;
              uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值
              uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id
              uni.navigateTo({
                url: "/pages/index/index" });

            }
          } else {
            console.log('服务器返回状态码异常', res.statusCode);
          }
        },
        fail: function fail(err) {
          console.log('发送失败', err);
        } });

    } } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),
/* 18 */
/*!***********************************************************************************************************************!*\
  !*** D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css& ***!
  \***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css& */ 19);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_86ffa444_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),
/* 19 */
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css& ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })
],[[12,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/homeCards/index.js.map