index.js 109 KB
Newer Older
xhw committed
1 2
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{

Ken Nakahira committed
3 4 5 6
/***/ 63:
/*!************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/main.js?{"page":"pages%2Findex%2Findex"} ***!
  \************************************************************************************/
xhw committed
7 8 9 10
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Ken Nakahira committed
11 12 13 14 15 16 17 18
/* WEBPACK VAR INJECTION */(function(wx, createPage) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 64));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
xhw committed
19
createPage(_index.default);
Ken Nakahira committed
20
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
xhw committed
21 22 23

/***/ }),

Ken Nakahira committed
24 25 26 27
/***/ 64:
/*!*****************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue ***!
  \*****************************************************************/
xhw committed
28 29 30 31 32
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
33 34 35 36 37 38
/* harmony import */ var _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228&scoped=true& */ 65);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 67);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (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_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& */ 69);
/* harmony import */ var _index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=1&id=57280228&scoped=true&lang=css& */ 71);
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
xhw committed
39 40 41 42 43 44 45

var renderjs





46

xhw committed
47 48
/* normalize component */

Ken Nakahira committed
49
var component = Object(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_4__["default"])(
xhw committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
  _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "57280228",
  null,
  false,
  _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

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

/***/ }),

Ken Nakahira committed
67 68 69 70
/***/ 65:
/*!************************************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=template&id=57280228&scoped=true& ***!
  \************************************************************************************************************/
xhw committed
71 72 73 74 75
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
76 77
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228&scoped=true& */ 66);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
xhw committed
78

Ken Nakahira committed
79
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
xhw committed
80

Ken Nakahira committed
81
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
xhw committed
82

Ken Nakahira committed
83
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
xhw committed
84 85 86 87 88



/***/ }),

Ken Nakahira committed
89 90 91 92
/***/ 66:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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--17-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!/Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=template&id=57280228&scoped=true& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
xhw committed
93 94 95 96 97 98 99 100 101 102 103 104
/*! 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 = {
Ken Nakahira committed
105 106 107
    uniPopup: function () {
      return __webpack_require__.e(/*! import() | uni_modules/uni-popup/components/uni-popup/uni-popup */ "uni_modules/uni-popup/components/uni-popup/uni-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup/uni-popup.vue */ 181))
    },
xhw committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
  }
} 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
  }
}
Ken Nakahira committed
126
var render = function () {
xhw committed
127 128 129
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
Ken Nakahira committed
130
  var g0 = _vm.historyRecord.length
xhw committed
131
  var l0 =
Ken Nakahira committed
132 133
    g0 > 0 && _vm.normal
      ? _vm.__map(_vm.historyRecord, function (item, index) {
xhw committed
134
          var $orig = _vm.__get_orig(item)
Ken Nakahira committed
135
          var g1 = Object.keys(item.WObj).length
136
          var m0 =
Ken Nakahira committed
137
            g1 !== 0 && !item.WObj.animaite
138 139
              ? _vm.handleText(item.Message)
              : null
xhw committed
140 141
          return {
            $orig: $orig,
Ken Nakahira committed
142 143
            g1: g1,
            m0: m0,
xhw committed
144 145 146 147 148 149 150
          }
        })
      : null
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
Ken Nakahira committed
151 152 153
        g0: g0,
        l0: l0,
      },
xhw committed
154 155 156 157 158 159 160 161 162 163 164
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

Ken Nakahira committed
165 166 167 168
/***/ 67:
/*!******************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************/
xhw committed
169 170 171 172 173
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
174 175 176 177
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 68);
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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); 
xhw committed
178 179 180

/***/ }),

Ken Nakahira committed
181 182 183 184
/***/ 68:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-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!/Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=script&lang=js& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
xhw committed
185 186 187 188
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Ken Nakahira committed
189 190 191 192 193 194 195 196 197 198 199
/* WEBPACK VAR INJECTION */(function(uni, wx) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
//
//
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Iteravse committed
448
//
xhw committed
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
xhw committed
606 607 608 609 610
//
//
//
//
//
xhw committed
611 612 613

// import FullScreenLoading from '../../components/FullScreenLoading.vue';
var recorderManager = uni.getRecorderManager();
614 615 616
// var innerAudioContext = uni.createInnerAudioContext();

// innerAudioContext.autoplay = true;
Ken Nakahira committed
617
var _default = {
xhw committed
618 619
  data: function data() {
    return {
xhw committed
620 621 622 623
      UI_show: true,
      normal: false,
      ttf: false,
      jumping: false,
Ken Nakahira committed
624 625
      pangbai_stop: false,
      //当新的消息发来以后 停止当前旁白框的内容
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
      foot: true,
      loadingBG: false,
      BG: false,
      Strem: null,
      str: '',
      Nc: '',
      inputVal_UI: '',
      glod_user: false,
      glod_dp: false,
      header: null,
      UITitle: '',
      UITimer: '',
      UIStatus_kongjugan: 0,
      UIStatus_jiegan: 0,
      sayDoingClass: 'sayDoingClass',
      sayDoingClass2: 'sayDoingClass2',
      userDoing: true,
      yyds_pangbai: '',
      yyds_dp: '',
      userInputValue: '',
      reset: false,
Ken Nakahira committed
647 648 649 650
      scrollTop: 0,
      //滚动条位置
      scrollTop_pangbai: 0,
      //滚动条位置
651 652 653 654 655
      scrollViewHeight: '100%',
      bottomElement: 'bottomElement',
      bottomElement_pangbai: 'bottomElement_pangbai',
      scrollInto: '',
      count: 0,
xhw committed
656
      inputMoney: 0,
657
      loading2: false,
xhw committed
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
      userInputName: '',
      showDialog: true,
      userName: '',
      isHover: false,
      base64Img: '',
      showResult: false,
      showSend: '',
      activeState: '',
      focus: '',
      show: false,
      monney: 0,
      boxClass: 'chat-window-message',
      items: [],
      historyRecord: [],
      socketTask: null,
      recive: null,
      codeUrl: '',
      dpPhoto: '',
      userPhoto: '',
      inputVal: '',
      loading: false,
      finalVal: '',
      EPlayer: null,
      innerAudioContext: null,
      board: false,
      storyContent: ['头部内容', '主体内容'],
      text: 'uni-app',
      voicePath: '',
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
      timer: null,
      timerConsider: null,
      imageList: [],
      tempFilePath: '',
      tempFilePath2: '',
      currentPageData: null,
      soundVoice: {
        '中国台湾播音男口音1': 'zh-TW-YunJheNeural',
        '中国香港播音男口音1': 'zh-HK-WanLungNeural',
        '中国大陆播音男口音1': 'zh-CN-YunjianNeural',
        '中国大陆播音男口音2': 'zh-CN-YunxiNeural',
        '中国大陆播音男口音3': 'zh-CN-YunyangNeural',
        '中国东北辽宁少女口音': 'zh-CN-liaoning-XiaobeiNeural',
        '中国台湾少女口音1': 'zh-TW-HsiaoChenNeural',
        '中国台湾少女口音2': 'zh-TW-HsiaoYuNeural',
        '中国香港少女口音1': 'zh-HK-HiuGaaiNeural',
        '中国香港少女口音2': 'zh-HK-HiuMaanNeural',
        '中国陕西少女口音1': 'zh-CN-shaanxi-XiaoniNeural',
        '中国大陆少女口音1': 'zh-CN-XiaoxiaoNeural',
        '中国大陆少女口音2': 'zh-CN-XiaoyiNeural',
Ken Nakahira committed
706 707
        '中国大陆少女口音3': 'zh-CN-YunxiaNeural'
      },
708
      Allvoice: [],
xhw committed
709 710
      worldParameter: [],
      total_val: [],
Ken Nakahira committed
711 712
      fontSize: 0,
      boxHeight: 210,
Ken Nakahira committed
713 714 715
      debouncedNextTips: null,
      quotedData: []
    };
xhw committed
716
  },
717 718 719 720
  computed: {
    dots: function dots() {
      var numDots = this.count % 4;
      return '.'.repeat(numDots) + ' '.repeat(3 - numDots);
Ken Nakahira committed
721 722
    }
  },
xhw committed
723
  beforeDestroy: function beforeDestroy() {
724
    clearInterval(this.timerConsider);
xhw committed
725 726 727
    if (this.socketTask) {
      this.socketTask.close(); // 关闭 WebSocket 连接
      this.socketTask = null; // 清空 WebSocket 对象
728
      console.log('socketTask 断开');
xhw committed
729 730 731 732 733 734 735 736 737
    }
    clearInterval(this.timer);
    if (this.EPlayer) {
      if (this.EPlayer.cb) this.EPlayer.cb = null;
      this.EPlayer.stop();
      this.EPlayer.destroy();
      this.EPlayer = null;
    }
  },
Ken Nakahira committed
738 739
  mounted: function mounted() {
    var _this = this;
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760
    // this.execFile([{text:'1233333333',quoted:false},{text:'1233333333',quoted:true},{text:'1233333333',quoted:false}])
    uni.authorize({
      scope: 'scope.record',
      success: function success() {
        console.log('用户已授权使用麦克风');
      },
      fail: function fail() {
        console.log('用户拒绝授权使用麦克风');
        // 可以引导用户到设置页面开启权限
        uni.showModal({
          title: '提示',
          content: '需要您授权使用麦克风',
          success: function success(res) {
            if (res.confirm) {
              uni.openSetting({
                success: function success(data) {
                  if (data.authSetting['scope.record']) {
                    console.log('授权成功');
                  } else {
                    console.log('授权失败');
                  }
Ken Nakahira committed
761 762
                }
              });
763
            }
Ken Nakahira committed
764 765 766 767
          }
        });
      }
    });
xhw committed
768 769
    console.log(uni.getStorageSync('userName'));
    this.userInputName = uni.getStorageSync('userName');
770 771 772 773 774 775
    // const obj = getApp().globalData.shareObject;
    // console.log('首页传来的数据',obj)
    //保存用户的余额显示 物品栏的道具显示

    //获取历史聊天记录  根据历史记录处理决定 websocket 的连接
    this.getHistory();
Ken Nakahira committed
776
    this.calcFontSize(26);
Ken Nakahira committed
777
    this.created();
778

xhw committed
779 780
    //讲完话以后 向服务器发送数据
    recorderManager.onStop(function (res) {
781
      console.log('讲完话了', res);
xhw committed
782 783 784 785 786 787 788 789 790
      // self.voicePath = res.tempFilePath
      _this.convertAudioToStream(res.tempFilePath);
    });

    // uni.setStorageSync('session_token', response[1].cookies[0].split(';')[0]);
    //1.获取心跳包
    uni.request({
      url: 'https://admin.mindepoch.com:8089/heartbeat',
      header: {
Ken Nakahira committed
791 792 793
        'Cookie': "".concat(uni.getStorageSync('session_token'))
      }
    }).then(function (result) {
xhw committed
794 795 796 797 798
      // console.log(response[1])
    }).catch(function (errs) {
      console.log(errs);
    });

799 800 801 802 803 804 805 806
    //获取真声所以人物声线
    uni.request({
      url: 'https://admin.mindepoch.com:8089/VoiceMode/QueryAllModelPeopleNames',
      method: 'post',
      data: {},
      header: {
        'Cookie': "".concat(uni.getStorageSync('session_token')),
        "Cache-Control": "no-cache",
Ken Nakahira committed
807 808 809
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    }).then(function (response) {
810 811
      console.log('response', response);
      var arrInput = response[1].data.names;
Ken Nakahira committed
812 813 814 815 816 817
      _this.Allvoice = Object.fromEntries(Object.entries(arrInput).map(function (_ref) {
        var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
          key = _ref2[0],
          value = _ref2[1];
        return [value, key];
      }));
818 819 820
    }).catch(function (errs) {
      console.log('errs', errs);
    });
xhw committed
821
  },
822 823
  onLoad: function onLoad(options) {
    uni.setInnerAudioOption({
Ken Nakahira committed
824 825
      obeyMuteSwitch: false
    });
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845
    // 解码参数
    var params = options.params;
    try {
      // 将 JSON 字符串转换回对象
      this.currentPageData = JSON.parse(decodeURIComponent(params));
      this.UITitle = this.currentPageData.worldName; //地点

      console.log('this.worldParameter', this.worldParameter);
      console.log('currentPageData', this.currentPageData);
      this.worldParameter = JSON.parse(this.currentPageData.worldParameter);
      this.worldParameter = this.worldParameter.filter(function (item) {
        return item != '时间' && item != '地点' && item != '物品';
      });
      console.log('this.worldParameter', this.worldParameter);
      //获取图片资源
      this.getPhoto();
    } catch (e) {
      console.error('解析参数出错', e);
    }
  },
Ken Nakahira committed
846
  methods: (0, _defineProperty2.default)({
xhw committed
847 848
    shareToTimeline: function shareToTimeline() {
      uni.share({
Ken Nakahira committed
849 850 851 852 853 854 855 856
        provider: 'weixin',
        // 分享服务提供商,weixin表示微信
        title: '世界推演',
        // 分享的标题
        summary: '你爱我,我爱你,蜜雪冰城甜蜜蜜!',
        // 分享的摘要
        imageUrl: 'https://admin.mindepoch.com:8089/worlds/default.jpg',
        // 分享的图片链接,可选
xhw committed
857 858 859 860 861 862 863 864 865 866 867 868
        // query: '分享的查询参数', // 分享的查询参数,可选
        success: function success(res) {
          // 分享成功的回调
          console.log('分享成功', res);
        },
        fail: function fail(err) {
          // 分享失败的回调
          console.error('分享失败', err);
        },
        complete: function complete() {
          // 分享结束的回调(成功、失败都会执行)
          console.log('分享结束');
Ken Nakahira committed
869 870
        }
      });
xhw committed
871 872 873 874 875
    },
    handlConnects: function handlConnects() {
      this.socketConnect();
      this.ttf = false;
    },
876 877 878 879 880 881 882 883 884 885 886 887 888 889
    glb: function glb() {
      this.BG = false;
      this.loadingBG = false;
    },
    handleBGHide: function handleBGHide() {
      this.BG = false;
      this.loadingBG = false;
    },
    handleShowBG: function handleShowBG() {
      //显示背景
      this.BG = true;
      this.loadingBG = true;
    },
    nextTips: function nextTips() {
Ken Nakahira committed
890 891
      var _this2 = this;
      // 结算当前语音的递归 进行下一次语音
892
      // this.EPlayer.onEnded()
Ken Nakahira committed
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928
      this.$nextTick(function () {
        _this2.jumping = true;
        clearInterval(_this2.Strem);
        if (_this2.EPlayer) {
          _this2.EPlayer.stop();
        }
        if (_this2.glod_dp && _this2.str != "") {
          _this2.realVoice(_this2.str);
        } else {
          _this2.yyds_pangbai += _this2.str;
        }
        _this2.str = '';
        _this2.jumping = false;
        _this2.EPlayer.onended();
        console.log('------------------');
      });
    },
    realVoice: function realVoice(text) {
      this.yyds_dp = text;
      this.yyds_pangbai += " “ " + text + " ” ";
    },
    debounce: function debounce(fn, interval) {
      var timer;
      var gapTime = interval; //间隔时间,如果interval不传,则默认1000ms
      return function () {
        clearTimeout(timer);
        var context = this;
        var args = arguments; //保存此处的arguments,因为setTimeout是全局的,arguments不是防抖函数需要的。
        timer = setTimeout(function () {
          fn.apply(context, args);
        }, gapTime);
      };
    },
    created: function created() {
      // Bind the debounced version of nextTips
      this.debouncedNextTips = this.debounce(this.nextTips, 750);
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955
    },
    handleCloseDialog: function handleCloseDialog() {
      this.show = false;
    },
    handlSay: function handlSay() {
      this.userDoing = false;
    },
    handlDoing: function handlDoing() {
      this.userDoing = true;
    },
    extractQuotedTexts: function extractQuotedTexts(str) {
      // 正则表达式匹配引号内的文本,包括转义引号
      var pattern = /(["'])(?:(?=(\\?))\2.)*?\1/g;
      var matches = [];
      var match;

      // 使用正则表达式的exec方法进行循环匹配
      while ((match = pattern.exec(str)) !== null) {
        // 获取引号内的文本(排除引号本身)
        var quotedText = match[0].slice(1, -1).replace(/\\(["'])/g, '$1'); // 去除引号并取消转义
        matches.push(quotedText);
      }
      return matches.length == 0 ? [str] : matches;
    },
    handleInputValue: function handleInputValue() {
      console.log(this.inputVal);
    },
Ken Nakahira committed
956 957
    scrollToBottom: function scrollToBottom() {
      var _this3 = this;
958 959 960
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
        // console.log('res',res,this.historyRecord.length)
        if (res) {
Ken Nakahira committed
961
          _this3.scrollTop = res.height;
962
        } else {
Ken Nakahira committed
963
          _this3.scrollTop = _this3.historyRecord.length * 1000;
964 965 966
        }
      }).exec();
    },
Ken Nakahira committed
967 968
    scrollToBottom_pangbai: function scrollToBottom_pangbai() {
      var _this4 = this;
Ken Nakahira committed
969
      this.$nextTick(function () {
Ken Nakahira committed
970
        uni.createSelectorQuery().in(_this4).select('#scrollView').boundingClientRect(function (res) {
Ken Nakahira committed
971
          if (res) {
Ken Nakahira committed
972
            _this4.scrollTop_pangbai = res.height * 2;
Ken Nakahira committed
973 974 975 976 977 978 979 980 981 982 983 984 985 986
          } else {
            //this.scrollTop_pangbai = this.historyRecord.length * 1000;
          }
        }).exec();
      });
    },
    calcFontSize: function calcFontSize(size) {
      var windowInfo = wx.getWindowInfo();
      var FontSizeRPX = size * (428 / 750);
      var FontSizePX = FontSizeRPX / (windowInfo.windowWidth / 750);
      var pangbaiHeightRPX = 210 * (428 / 750);
      var pangbaiHeightPX = pangbaiHeightRPX / (windowInfo.windowWidth / 750);
      this.fontSize = FontSizePX;
      this.height = 210;
987 988 989 990 991 992 993 994 995
    },
    splitString: function splitString(str) {
      var result = [];
      var currentText = '';
      var quoted = false;
      for (var i = 0; i < str.length; i++) {
        var char = str[i];
        if (char === '"') {
          if (quoted) {
Ken Nakahira committed
996 997 998 999
            result.push({
              text: currentText,
              quoted: true
            });
1000 1001 1002 1003
            currentText = '';
            quoted = false;
          } else {
            if (currentText.trim() !== '') {
Ken Nakahira committed
1004 1005 1006 1007
              result.push({
                text: currentText,
                quoted: false
              });
1008 1009 1010 1011 1012 1013 1014 1015 1016
              currentText = '';
            }
            quoted = true;
          }
        } else {
          currentText += char;
        }
      }
      if (currentText.trim() !== '') {
Ken Nakahira committed
1017 1018 1019 1020
        result.push({
          text: currentText,
          quoted: quoted
        });
1021 1022 1023
      }
      return result;
    },
Ken Nakahira committed
1024 1025
    handleSendMoney: function handleSendMoney() {
      var _this5 = this;
xhw committed
1026 1027 1028
      if (this.inputMoney == "" && this.inputMoney.trim() == "") {
        uni.showToast({
          title: '金额不可为空!',
Ken Nakahira committed
1029 1030
          icon: 'none'
        });
xhw committed
1031 1032 1033 1034 1035 1036
      } else {
        this.inputVal = '我向她发送了红包' + this.inputMoney + '元';
        //向服务器发请求
        this.socketTask.send({
          data: JSON.stringify({
            type: 0,
Ken Nakahira committed
1037 1038
            content: '我向她发送了红包' + this.inputMoney + '元'
          }),
xhw committed
1039 1040
          success: function success() {
            console.log('消息发送成功');
Ken Nakahira committed
1041
            _this5.loading = true;
xhw committed
1042 1043 1044 1045 1046 1047
            // uni.showLoading({
            // 	title: '思考中...',
            // 	mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
            // });
            var str = '对方正在输入...';
            var i = 6;
Ken Nakahira committed
1048
            _this5.timer = setInterval(function () {
xhw committed
1049 1050 1051 1052 1053 1054
              if (i < 10) {
                i += 1;
              } else {
                i = 6;
              }
              uni.setNavigationBarTitle({
Ken Nakahira committed
1055 1056
                title: str.substr(0, i)
              });
xhw committed
1057
            }, 400);
Ken Nakahira committed
1058 1059
          }
        });
xhw committed
1060 1061 1062
        this.$refs.popup.close();
      }
    },
1063 1064 1065 1066
    extractText: function extractText(content) {
      var input = content.replaceAll("“", "\"").replaceAll("”", "\"");
      // 正则表达式,用于匹配双引号内的文字
      var insideQuotes = input.match(/"([^"]*)"/g);
Ken Nakahira committed
1067 1068 1069
      var insideQuotesText = insideQuotes ? insideQuotes.map(function (text) {
        return " ' " + text.replace(/"/g, '') + " ' ";
      }) : [];
1070 1071

      // 去掉双引号和双引号内的文字,剩下的就是双引号外的文字
Ken Nakahira committed
1072 1073 1074
      var outsideQuotesText = input.split(/"([^"]*)"/).filter(function (text, index) {
        return index % 2 === 0;
      }).join('');
1075 1076
      return {
        insideQuotesText: insideQuotesText,
Ken Nakahira committed
1077 1078
        outsideQuotesText: outsideQuotesText
      };
xhw committed
1079
    },
1080
    //websocket 连接
Ken Nakahira committed
1081 1082
    socketConnect: function socketConnect() {
      var _this6 = this;
1083 1084
      console.log(123, this.currentPageData.name);
      // console.log(this.userInputName,uni.getStorageSync('userName'))
xhw committed
1085
      this.socketTask = uni.connectSocket({
Ken Nakahira committed
1086 1087
        url: "wss://admin.mindepoch.com:8089/WorldChats/ws?id=".concat(uni.getStorageSync('wxUid'), "&world_name=").concat(this.currentPageData.name, "&BgInfo=").concat(this.currentPageData.background, "&userInfo={\"name\":\"").concat(uni.getStorageSync('userName'), "\",\"bk\":\"\"}"),
        // WebSocket 服务器的地址
xhw committed
1088
        // 成功建立连接的回调
Ken Nakahira committed
1089 1090 1091
        success: function success() {
          return console.log('WebSocket 连接成功');
        },
xhw committed
1092
        // 失败的回调
Ken Nakahira committed
1093 1094 1095 1096
        fail: function fail() {
          return console.log('WebSocket 连接失败');
        }
      });
xhw committed
1097 1098 1099 1100 1101 1102
      // 监听 WebSocket 连接打开事件
      this.socketTask.onOpen(function () {
        console.log('WebSocket 连接已打开');
      });
      // 监听接收到服务器发送的消息事件
      this.socketTask.onMessage(function (message) {
xhw committed
1103
        // console.log('message--------',message)
Ken Nakahira committed
1104 1105 1106
        clearInterval(_this6.timerConsider);
        clearInterval(_this6.timer);
        _this6.jumping = false;
xhw committed
1107
        uni.setNavigationBarTitle({
Ken Nakahira committed
1108 1109 1110 1111
          title: _this6.currentPageData.name
        });
        _this6.loading = false;
        _this6.loading2 = false;
xhw committed
1112 1113 1114
        uni.hideLoading();
        //处理把数据添加至页面
        var backValue = JSON.parse(message.data);
Ken Nakahira committed
1115 1116 1117
        // console.log('----onMessage----',backValue)
        if (!_this6.header) {
          _this6.glod_dp = false; //先隐藏数字人对话框
1118 1119
        }

xhw committed
1120
        if (backValue.code === 0) {
Ken Nakahira committed
1121
          _this6.badRequest();
xhw committed
1122
        } else if (backValue.code === 3) {
Ken Nakahira committed
1123
          _this6.badRequest();
xhw committed
1124
        } else if (backValue.code === 4) {
Ken Nakahira committed
1125
          _this6.badRequest();
xhw committed
1126
        } else if (backValue.code === -1) {
Ken Nakahira committed
1127
          _this6.badRequest();
xhw committed
1128
        } else if (backValue.code === 1) {
1129 1130 1131
          //非第一次连接
          if (!backValue.content) {
            if (backValue.WObj['地点']) {
Ken Nakahira committed
1132
              _this6.UITitle = backValue.WObj['地点'];
1133 1134
            }
            if (backValue.WObj['时间']) {
Ken Nakahira committed
1135
              _this6.UITimer = backValue.WObj['时间'];
1136 1137
            }
            if (backValue.WObj['恐惧感']) {
Ken Nakahira committed
1138
              _this6.UIStatus_kongjugan = backValue.WObj['恐惧感'];
1139 1140
            }
            if (backValue.WObj['饥饿感']) {
Ken Nakahira committed
1141
              _this6.UIStatus_jiegan = backValue.WObj['饥饿感'];
xhw committed
1142 1143
            }

1144 1145 1146 1147 1148
            //物品栏WObjj 物品数组存在 且有余额和道具   物品中包含了 存款和道具
            //对物品和余额的处理
            if (backValue.WObj['物品']) {
              if (backValue.WObj['物品'].length > 0) {
                //所有道具名
Ken Nakahira committed
1149
                _this6.items = backValue.WObj['物品'].filter(function (val) {
1150
                  return !val.includes("存款:");
xhw committed
1151
                });
Ken Nakahira committed
1152
                _this6.items = _this6.items.map(function (val) {
1153 1154
                  return val.split("(")[0];
                });
Ken Nakahira committed
1155
                console.log('所有道具有', _this6.items);
1156
                //清空图片数组 根据历史记录 得到道具名称 根据道具名称请求图片资源
Ken Nakahira committed
1157 1158
                _this6.imageList = [];
                var _loop = function _loop(i) {
1159 1160 1161 1162
                  uni.request({
                    url: 'https://admin.mindepoch.com:8089/AiDraw',
                    method: 'post',
                    data: {
Ken Nakahira committed
1163 1164
                      name: _this6.items[i]
                    },
1165 1166
                    header: {
                      'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1167 1168 1169
                      'Content-Type': 'application/x-www-form-urlencoded'
                    }
                  }).then(function (res) {
xhw committed
1170
                    // console.log('当前道具名称对应的图片资源',res[1].data)
1171
                    if (res[1].data.code === 1) {
Ken Nakahira committed
1172 1173 1174 1175
                      _this6.imageList.push({
                        imgSrc: 'https://admin.mindepoch.com:8089' + res[1].data.propImagePath,
                        name: _this6.items[i]
                      });
1176 1177 1178
                    }
                  }).catch(function (err) {
                    console.log(err);
Ken Nakahira committed
1179 1180 1181 1182
                  });
                };
                for (var i = 0; i < _this6.items.length; i++) {
                  _loop(i);
1183 1184 1185 1186 1187 1188
                }
                //余额显示
                var monney = backValue.WObj['物品'].filter(function (val) {
                  return val.includes("存款:");
                });
                if (monney[0]) {
Ken Nakahira committed
1189
                  _this6.monney = monney[0].match(/\d+/);
1190
                } else {
Ken Nakahira committed
1191
                  _this6.monney = 0;
1192 1193 1194 1195 1196
                }

                //结局  有EndStr字段
                if (backValue.WObj.EndStr) {
                  if (backValue.WObj.EndStr !== "") {
Ken Nakahira committed
1197
                    _this6.storyContent = backValue.WObj.EndStr.split('@');
1198 1199
                    //出现结局面板   请求背景图片
                    uni.request({
Ken Nakahira committed
1200
                      url: "https://admin.mindepoch.com:8089/worlds/".concat(_this6.storyContent[0], ".png"),
1201 1202 1203
                      method: 'get',
                      responseType: 'arraybuffer',
                      header: {
Ken Nakahira committed
1204 1205 1206
                        'Cookie': "".concat(uni.getStorageSync('session_token'))
                      }
                    }).then(function (res) {
xhw committed
1207
                      // console.log('图片资源',res)
Ken Nakahira committed
1208 1209 1210 1211
                      _this6.base64Img = 'data:image/png;base64,' + uni.arrayBufferToBase64(res[1].data);
                      _this6.loading = true;
                      _this6.foot = false; //输入框区域隐藏
                      _this6.showResult = true; //展示查看结局按钮
1212 1213 1214 1215 1216 1217
                    }).catch(function (err) {
                      console.log(err);
                    });
                  }
                } else {
                  //未到达结局 因此不展示结局面板
Ken Nakahira committed
1218 1219 1220 1221
                  _this6.board = false; //隐藏结局面板
                  _this6.foot = true; //输入框区域显示
                  _this6.showResult = false; //隐藏查看结局按钮
                  _this6.loading = false;
1222
                }
xhw committed
1223 1224
              }
            }
1225 1226
            //服务器传来的内容处理  包括发声
            var ISLIU_content = backValue.ISLIU ? backValue.ISLIU : '';
xhw committed
1227
            console.log(ISLIU_content);
1228
            if (ISLIU_content !== '') {
xhw committed
1229 1230 1231 1232
              uni.request({
                url: "https://admin.mindepoch.com:8089/ai/process",
                method: 'post',
                data: {
Ken Nakahira committed
1233 1234
                  content: ISLIU_content
                },
xhw committed
1235 1236 1237
                header: {
                  'Cookie': "".concat(uni.getStorageSync('session_token')),
                  'Content-Type': 'application/json' // 指定请求头类型为 JSON
Ken Nakahira committed
1238 1239
                }
              }).then(function (res) {
xhw committed
1240
                ISLIU_content = ISLIU_content.replaceAll("“", "\"").replaceAll("”", "\"");
Ken Nakahira committed
1241 1242 1243
                var finalVal = _this6.extractQuotedTexts(ISLIU_content).join(",");
                var text = _this6.splitString(ISLIU_content);
                _this6.total_val = res[1].data.results;
xhw committed
1244
                // this.total_val.unshift()
xhw committed
1245
<<<<<<< HEAD
xhw committed
1246 1247
                _this5.total_val = _this5.total_val.splice(1, _this5.total_val.length);
                console.log(text, _this5.total_val);
xhw committed
1248 1249 1250 1251
                //更新头像
                var int = _this5.total_val[0].split('')[0];
                console.log(int);
                _this5.reloadGetPhoto(int);
xhw committed
1252
=======
Ken Nakahira committed
1253 1254
                _this6.total_val = _this6.total_val.splice(1, _this6.total_val.length);
                console.log(text, _this6.total_val);
xhw committed
1255
>>>>>>> 035b30eeb7b2cf3abc0739c4d7c7e2e4ebc8b657
xhw committed
1256 1257 1258 1259 1260

                // console.log('finalVal',finalVal)
                // console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results)
                text = text.map(function (item) {
                  if (!item.quoted) {
Ken Nakahira committed
1261
                    item.voicer = _this6.currentPageData.voiceGroups['2'];
xhw committed
1262
                  } else {
Ken Nakahira committed
1263 1264 1265
                    if (_this6.total_val.length != 0) {
                      var double = _this6.separateChineseAndNumbers(_this6.total_val[0]);
                      var voicer = _this6.currentPageData.voiceGroups[double[1]] ? _this6.currentPageData.voiceGroups[double[1]] : _this6.currentPageData.voiceGroups[double[0]];
xhw committed
1266
                      item.voicer = voicer;
Ken Nakahira committed
1267
                      _this6.total_val = _this6.total_val.splice(1, _this6.total_val.length);
xhw committed
1268 1269 1270 1271
                    }
                  }
                  return item;
                });
Ken Nakahira committed
1272
                _this6.execFile(text, ISLIU_content);
xhw committed
1273 1274 1275
              }).catch(function (err) {
                console.log(err);
              });
xhw committed
1276
            }
1277 1278

            //把用户的聊天内容加入到页面中
Ken Nakahira committed
1279
            _this6.historyRecord.push({
1280
              Message: backValue.ISLIU,
Ken Nakahira committed
1281 1282
              WObj: backValue.WObj
            });
1283
            //删除动画效果
Ken Nakahira committed
1284
            _this6.historyRecord = _this6.historyRecord.filter(function (item) {
1285 1286
              return !item.Message.includes("正在思考中");
            });
xhw committed
1287
            // console.log('historyRecord',this.historyRecord)
1288 1289
            // this.inputVal = '' //清空输入框

Ken Nakahira committed
1290 1291 1292 1293
            _this6.yyds_pangbai = '';
            _this6.yyds_dp = '';
            _this6.inputVal = '';
            _this6.loading = false; //隐藏蒙版
xhw committed
1294
            uni.hideLoading();
1295
            //滚动条触底
Ken Nakahira committed
1296
            _this6.scrollToBottom();
1297
            //处理用户出现结局后 未清除意识流 再次进来 点击重新来过
Ken Nakahira committed
1298 1299 1300
            if (_this6.reset) {
              _this6.reset = false;
              _this6.clearISU();
1301 1302 1303
            }
          } else {
            //表示跟服务器建立第一次连接
xhw committed
1304 1305 1306 1307 1308 1309
          }
        }
      });
      // 监听 WebSocket 错误事件
      this.socketTask.onError(function (error) {
        console.error('WebSocket 错误:', error);
Ken Nakahira committed
1310 1311 1312
        _this6.socketTask = null;
        _this6.badRequest();
        _this6.ttf = true;
xhw committed
1313 1314 1315
      });
      // 监听 WebSocket 连接关闭事件
      this.socketTask.onClose(function () {
Ken Nakahira committed
1316 1317
        _this6.socketTask = null;
        _this6.badRequest();
xhw committed
1318
        console.log('WebSocket 连接已关闭');
Ken Nakahira committed
1319
        _this6.ttf = true;
xhw committed
1320 1321
      });
    },
Ken Nakahira committed
1322 1323
    getHistoryContentAndPhoto: function getHistoryContentAndPhoto() {
      var _this7 = this;
1324 1325 1326 1327 1328 1329 1330 1331 1332
      this.showResult = true; //展示查看结局按钮
      this.foot = false; //输入框区域显示
      this.loading = true;
      this.storyContent = this.historyRecord[this.historyRecord.length - 1].WObj.EndStr.split('@');
      uni.request({
        url: "https://admin.mindepoch.com:8089/worlds/".concat(this.storyContent[0], ".png"),
        method: 'get',
        responseType: 'arraybuffer',
        header: {
Ken Nakahira committed
1333 1334 1335
          'Cookie': "".concat(uni.getStorageSync('session_token'))
        }
      }).then(function (res) {
1336
        console.log('图片资源', res);
Ken Nakahira committed
1337
        _this7.base64Img = 'data:image/png;base64,' + uni.arrayBufferToBase64(res[1].data);
1338 1339 1340 1341 1342
      }).catch(function (err) {
        console.log(err);
      });
    },
    //获取历史聊天记录
Ken Nakahira committed
1343 1344
    getHistory: function getHistory() {
      var _this8 = this;
xhw committed
1345 1346 1347 1348 1349
      uni.request({
        url: 'https://admin.mindepoch.com:8089/worldChat-history',
        method: 'post',
        data: {
          // id:this.$globalData.wxUid
Ken Nakahira committed
1350 1351
          id: this.currentPageData.id
        },
xhw committed
1352 1353
        header: {
          'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1354 1355 1356
          'Content-Type': 'application/x-www-form-urlencoded'
        }
      }).then(function (res) {
xhw committed
1357
        // console.log('历史聊天记录',res[1])
1358
        //需要根据历史纪录最后一条 来处理是否还需要往下面聊
xhw committed
1359 1360
        if (res[1].data.code === 1) {
          if (res[1].data.chatRecordInfo) {
Ken Nakahira committed
1361 1362
            _this8.historyRecord = res[1].data.chatRecordInfo.Records;
            if (_this8.historyRecord.length !== 0) {
1363
              //回显的数据
Ken Nakahira committed
1364 1365 1366
              _this8.UITitle = _this8.historyRecord[_this8.historyRecord.length - 1].WObj["地点"];
              _this8.UITimer = _this8.historyRecord[_this8.historyRecord.length - 1].WObj["时间"];
              _this8.header = _this8.historyRecord[_this8.historyRecord.length - 1];
1367 1368

              //展示旁白信息 数字人和用户对话信息
Ken Nakahira committed
1369 1370
              if (_this8.header) {
                var result = _this8.extractText(_this8.header.Message);
1371
                var len = result.insideQuotesText.length;
xhw committed
1372
                // console.log('result',result)
1373

Ken Nakahira committed
1374 1375 1376
                if (result.insideQuotesText.length == 0) {
                  //数字人对话框是否需要显示
                  _this8.glod_dp = false;
1377
                } else {
Ken Nakahira committed
1378
                  _this8.glod_dp = true;
1379
                }
Ken Nakahira committed
1380
                _this8.yyds_dp = result.insideQuotesText[len - 1];
1381 1382
                //筛选出数字人发来的文字

Ken Nakahira committed
1383
                _this8.yyds_pangbai = result.outsideQuotesText;
1384
                //状态值
Ken Nakahira committed
1385 1386
                _this8.UIStatus_jiegan = _this8.header.WObj["饥饿感"] ? _this8.header.WObj["饥饿感"] : 0;
                _this8.UIStatus_kongjugan = _this8.header.WObj["恐惧感"] ? _this8.header.WObj["恐惧感"] : 0;
1387
              }
Ken Nakahira committed
1388 1389 1390
              if (_this8.historyRecord[_this8.historyRecord.length - 1].WObj.EndStr) {
                if (_this8.historyRecord[_this8.historyRecord.length - 1].WObj.EndStr !== "") {
                  if (_this8.historyRecord[_this8.historyRecord.length - 1].WObj.EndStr.includes("怒删微信") || _this8.historyRecord[_this8.historyRecord.length - 1].WObj.EndStr.includes("意识被吞噬")) {
1391
                    //当前聊天不可继续 根据历史聊天记录的最后一条 用于 显示余额 显示道具 删除微信后的背景图片 以及不在进行websocket连接
Ken Nakahira committed
1392
                    if (_this8.historyRecord[_this8.historyRecord.length - 1].WObj['物品']) {
1393
                      // 根据历史纪录来获取 结局以后的内容和图片
Ken Nakahira committed
1394 1395 1396
                      _this8.getHistoryContentAndPhoto();
                      var _monneyAndTool = _this8.historyRecord.filter(function (item, index) {
                        return _this8.historyRecord.length - 1 == index && Object.keys(_this8.historyRecord[index].WObj).length > 0;
1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408
                      });
                      //拿到物品和余额的数组
                      var tool = _monneyAndTool[0].WObj['物品'];
                      //余额
                      var monney = tool.filter(function (item, index) {
                        return tool[index].includes("存款");
                      });
                      //道具
                      var allTools = tool.filter(function (item, index) {
                        return !tool[index].includes("存款");
                      });
                      if (monney[0]) {
Ken Nakahira committed
1409
                        _this8.monney = monney[0].match(/\d+/);
1410
                      } else {
Ken Nakahira committed
1411
                        _this8.monney = 0;
1412 1413
                      }
                      for (var i = 0; i < allTools.length; i++) {
Ken Nakahira committed
1414 1415 1416 1417
                        _this8.imageList.push({
                          imgSrc: 'https://admin.mindepoch.com:8089/worlds/items/' + allTools[i].split("(")[0] + '.png',
                          name: allTools[i].split("(")[0]
                        });
1418 1419
                      }
                      //滚动条触底
Ken Nakahira committed
1420
                      _this8.scrollToBottom();
1421 1422 1423 1424 1425 1426 1427
                      return;
                    }
                  }
                }
              }

              //没有走到结局 根据最后两条两条对聊记录处理  物品的显示
Ken Nakahira committed
1428 1429
              var monneyAndTool = _this8.historyRecord.filter(function (item, index) {
                return _this8.historyRecord.length == index && Object.keys(_this8.historyRecord[index].WObj).length > 0 || _this8.historyRecord.length - 1 == index && Object.keys(_this8.historyRecord[index].WObj).length > 0;
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444
              });
              console.log('monneyAndTool', monneyAndTool);
              //余额 道具 的展示
              if (monneyAndTool.length == 0) {
                //当道具不存在时
              } else {
                if (monneyAndTool[0].WObj['物品']) {
                  var _tool = monneyAndTool[0].WObj['物品'];
                  var _monney = _tool.filter(function (item, index) {
                    return _tool[index].includes("存款");
                  });
                  var _allTools = _tool.filter(function (item, index) {
                    return !_tool[index].includes("存款");
                  });
                  if (_monney[0]) {
Ken Nakahira committed
1445
                    _this8.monney = _monney[0].match(/\d+/);
1446
                  } else {
Ken Nakahira committed
1447
                    _this8.monney = 0;
1448
                  }
Ken Nakahira committed
1449 1450 1451 1452 1453
                  for (var _i = 0; _i < _allTools.length; _i++) {
                    _this8.imageList.push({
                      imgSrc: 'https://admin.mindepoch.com:8089/worlds/items/' + _allTools[_i].split("(")[0] + '.png',
                      name: _allTools[_i].split("(")[0]
                    });
1454 1455 1456 1457
                  }
                }
              }
              //滚动条触底
Ken Nakahira committed
1458
              _this8.scrollToBottom();
1459 1460
              //启动 webscoket 连接
            } else {
Ken Nakahira committed
1461 1462 1463
              // 没有历史记录 
            }
            _this8.socketConnect();
xhw committed
1464 1465
          }
        } else {
1466 1467 1468 1469
          // uni.showToast({
          // 	title: res[1].data.message,
          // 	icon: 'none'
          // })
Ken Nakahira committed
1470
          _this8.socketConnect();
xhw committed
1471 1472 1473 1474 1475
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
xhw committed
1476
<<<<<<< HEAD
xhw committed
1477

xhw committed
1478
    reloadGetPhoto: function reloadGetPhoto(int) {var _uni$request,_this8 = this;
xhw committed
1479 1480
      uni.request((_uni$request = {
        url:  true ? "https://admin.mindepoch.com:8089/worlds/".concat(
xhw committed
1481
        int, ".png") :
xhw committed
1482 1483 1484 1485 1486
        undefined,

        method: 'GET',
        responseType: 'arraybuffer',
        data: {
xhw committed
1487
          id: int } }, _defineProperty(_uni$request, "responseType",
xhw committed
1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502

      'arraybuffer'), _defineProperty(_uni$request, "header",
      {
        'Cookie': "".concat(uni.getStorageSync('session_token')),
        "Cache-Control": "no-cache" }), _uni$request)).

      then(function (res) {
        var arrayBuffer = res[1].data;
        _this8.dpPhoto = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
      }).catch(function (err) {
        console.log(err);
      });
    },

    getPhoto: function getPhoto() {var _this9 = this,_uni$request2,_uni$request3;
xhw committed
1503
=======
Ken Nakahira committed
1504 1505 1506 1507
    getPhoto: function getPhoto() {
      var _this9 = this,
        _uni$request,
        _uni$request2;
xhw committed
1508
>>>>>>> 035b30eeb7b2cf3abc0739c4d7c7e2e4ebc8b657
xhw committed
1509
      //获取背景图 
Ken Nakahira committed
1510 1511
      uni.request({
        url:  true ? "https://admin.mindepoch.com:8089/worlds/".concat(this.currentPageData.worldName, ".png") : undefined,
xhw committed
1512 1513
        method: 'GET',
        data: {
Ken Nakahira committed
1514 1515
          id: this.currentPageData.worldName
        },
xhw committed
1516 1517 1518
        responseType: 'arraybuffer',
        header: {
          'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1519 1520 1521
          "Cache-Control": "no-cache"
        }
      }).then(function (res) {
xhw committed
1522
        var arrayBuffer = res[1].data;
xhw committed
1523
        _this9.codeUrl = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
Ken Nakahira committed
1524 1525 1526
      }).catch(function (err) {
        return console.log(err);
      });
xhw committed
1527 1528

      //获取数字人头像
Ken Nakahira committed
1529 1530
      uni.request((_uni$request = {
        url:  true ? "https://admin.mindepoch.com:8089/worlds/".concat(this.currentPageData.worldName, ".png") : undefined,
xhw committed
1531 1532 1533
        method: 'GET',
        responseType: 'arraybuffer',
        data: {
Ken Nakahira committed
1534 1535 1536
          id: this.currentPageData.worldName
        }
      }, (0, _defineProperty2.default)(_uni$request, "responseType", 'arraybuffer'), (0, _defineProperty2.default)(_uni$request, "header", {
xhw committed
1537
        'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1538 1539
        "Cache-Control": "no-cache"
      }), _uni$request)).then(function (res) {
xhw committed
1540
        var arrayBuffer = res[1].data;
xhw committed
1541
        _this9.dpPhoto = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
xhw committed
1542 1543 1544 1545 1546
      }).catch(function (err) {
        console.log(err);
      });

      //获取用户头像
Ken Nakahira committed
1547 1548
      uni.request((_uni$request2 = {
        url:  true ? "https://admin.mindepoch.com:8089/userFile/avatar".concat(uni.getStorageSync('wxUid'), ".png") : undefined,
xhw committed
1549 1550 1551
        method: 'GET',
        responseType: 'arraybuffer',
        data: {
1552
          // id: this.currentPageData.id,
Ken Nakahira committed
1553 1554
        }
      }, (0, _defineProperty2.default)(_uni$request2, "responseType", 'arraybuffer'), (0, _defineProperty2.default)(_uni$request2, "header", {
xhw committed
1555
        'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1556 1557
        "Cache-Control": "no-cache"
      }), _uni$request2)).then(function (res) {
xhw committed
1558
        var arrayBuffer = res[1].data;
xhw committed
1559
        _this9.userPhoto = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
Ken Nakahira committed
1560 1561 1562
      }).catch(function (err) {
        return console.log(err);
      });
xhw committed
1563
    },
1564
    badRequest: function badRequest() {
xhw committed
1565
      uni.showToast({
1566
        title: '连接异常',
Ken Nakahira committed
1567 1568
        icon: 'none'
      });
xhw committed
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581
      return;
    },
    handleTouchStart: function handleTouchStart() {
      this.isHover = true;
    },
    handleTouchEnd: function handleTouchEnd() {
      this.isHover = false;
    },
    handleText: function handleText(text) {
      return text.replace(/“([^]*)”/g, '<strong style="color:#e4c7ffd9 ">"$1"</strong>');
    },
    handleHiddenShadow: function handleHiddenShadow() {
      this.board = false;
1582
      this.foot = true; //输入框区域显示
xhw committed
1583 1584 1585
    },
    getResults: function getResults() {
      this.board = true;
1586
      this.foot = false; //输入框区域显示
xhw committed
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611
    },
    handleInput: function handleInput(event) {
      console.log(event.target.value);
      var val = event.target.value;
      // this.inputMoney
      // if(typeof val === 'number' && !isNaN(val)){
      // 	//输入为数字
      // 	this.inputMoney = val
      // }else{
      // 	this.inputMoney = 0
      // }
    },
    open: function open() {
      this.$refs.popup.open();
    },
    close: function close() {
      // TODO 做一些其他的事情,before-close 为true的情况下,手动执行 close 才会关闭对话框
      // ...
      this.$refs.popup.close();
    },
    confirm: function confirm(value) {
      console.log(value);
      this.$refs.popup.close();
    },
    backHome: function backHome() {
1612 1613
      uni.navigateBack({
        // url: `/pages/homeCards/index`
Iteravse committed
1614
      });
xhw committed
1615
    },
xhw committed
1616 1617 1618 1619
    handleToggle: function handleToggle() {
      this.normal = !this.normal;
      this.UI_show = !this.UI_show;
    },
xhw committed
1620 1621 1622 1623 1624
    sendMoneyMethods: function sendMoneyMethods() {
      //弹窗出现 输入金额 确认 提交 发送
      // this.showInputMoneyDialog = true
      this.$refs.popup.open('center');
    },
Ken Nakahira committed
1625 1626
    clearISU: function clearISU() {
      var _this10 = this;
1627
      this.historyRecord = []; //清除页面显示的聊天记录
xhw committed
1628 1629
      this.showResult = false; //隐藏底部的查看结局按钮
      this.board = false; //隐藏弹窗
1630 1631
      this.foot = true; //输入框区域显示
      this.loading = true; //显示遮挡层
xhw committed
1632 1633 1634 1635
      uni.showLoading({
        title: '请稍等...',
        mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
      });
Ken Nakahira committed
1636

xhw committed
1637 1638 1639 1640
      uni.request({
        url: "https://admin.mindepoch.com:8089/SoulNeuralFileWorldReset",
        method: 'post',
        data: {
1641 1642
          worldName: this.currentPageData.name,
          BgInfo: this.currentPageData.background,
Ken Nakahira committed
1643 1644
          userInfo: "{\"name\":\"".concat(this.userInputName, "\",\"bk\":\"").concat(this.currentPageData.background, "\"}")
        },
xhw committed
1645 1646 1647
        header: {
          'Cookie': "".concat(uni.getStorageSync('session_token')),
          "Cache-Control": "no-cache",
Ken Nakahira committed
1648 1649 1650
          'Content-Type': 'application/x-www-form-urlencoded'
        }
      }).then(function (res) {
1651 1652
        console.log('重置世界', res);
        if (res[1].data.code === 1) {
xhw committed
1653
          _this10.loading = false; //隐藏遮挡层
1654 1655
          uni.hideLoading();
          // location.reload() //页面刷新
xhw committed
1656 1657
        }
      }).catch(function (err) {
xhw committed
1658
        _this10.loading = false; //隐藏遮挡层
xhw committed
1659 1660 1661
        uni.hideLoading();
      });
    },
1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679
    handleClearHistoryRecord: function handleClearHistoryRecord() {
      this.glod_dp = false;
      this.glod_user = false;
      this.inputVal = '';
      this.yyds_dp = '';
      this.yyds_pangbai = '';
      if (this.socketTask == null) {
        this.reset = true;
        //1.建立websocket连接 2.清除意识流
        this.socketConnect();
      } else {
        this.clearISU();
      }
      //关闭语音 防止多重语音
      if (this.EPlayer) {
        this.EPlayer.stop();
      }
    },
xhw committed
1680 1681 1682 1683
    convertAudioToStream: function convertAudioToStream(filePath) {
      var that = this;
      var fileSystemManager = uni.getFileSystemManager();
      fileSystemManager.readFile({
Ken Nakahira committed
1684 1685
        filePath: filePath,
        // 音频文件路径
xhw committed
1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696
        success: function success(res) {
          console.log('音频', res.data);
          // 这里的res.data就是音频文件的ArrayBuffer数据,根据需要对其进行操作。
          // 比如,你可以将这个数据上传到服务器。
          //语音接口
          uni.uploadFile({
            url: 'https://admin.mindepoch.com:8089/speechConvertor',
            filePath: filePath,
            name: 'file',
            header: {
              'Content-Type': 'multipart/form-data',
Ken Nakahira committed
1697 1698
              'Cookie': "".concat(uni.getStorageSync('session_token'))
            },
xhw committed
1699 1700 1701 1702 1703 1704 1705
            success: function success(uploadFileRes) {
              var vocieData = JSON.parse(uploadFileRes.data);
              console.log('uploadFile success, res is:', uploadFileRes);
              if (vocieData.code === 1) {
                if (vocieData.message.transcription.length == 0) {
                  uni.showToast({
                    title: '说话时长过短,请重新录制!',
Ken Nakahira committed
1706 1707
                    icon: 'none'
                  });
xhw committed
1708 1709
                  return;
                }
Iteravse committed
1710
                that.inputVal += vocieData.message.transcription[0].text;
xhw committed
1711
                //获取到用户说的话
Iteravse committed
1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737
                // that.socketTask.send({
                // 	data: JSON.stringify({
                // 		type: 0,
                // 		content: that.inputVal
                // 	}),
                // 	success: () => {
                // 		console.log('消息发送成功')
                // 		that.loading = true;
                // 		uni.showLoading({
                // 			title: vocieData.message,
                // 			mask: true, // 显示透明蒙层,防止触摸穿透
                // 		});
                // 		let str = '对方正在输入...'
                // 		let i = 6
                // 		that.timer = setInterval(() => {
                // 			if(i<10){
                // 				i += 1
                // 			}else{
                // 				i = 6
                // 			}
                // 			uni.setNavigationBarTitle({
                // 				title: str.substr(0,i)
                // 			});
                // 		}, 400);
                // 	}
                // });
xhw committed
1738 1739 1740 1741
              } else {
                that.loading = false;
                uni.showToast({
                  title: vocieData.message,
Ken Nakahira committed
1742 1743
                  icon: 'none'
                });
xhw committed
1744 1745 1746 1747
              }
            },
            fail: function fail(uploadFileErr) {
              console.error('uploadFile error, err is:', uploadFileErr);
Ken Nakahira committed
1748 1749
            }
          });
xhw committed
1750 1751 1752
        },
        fail: function fail(err) {
          console.log(err);
Ken Nakahira committed
1753 1754
        }
      });
xhw committed
1755 1756 1757 1758 1759 1760
    },
    startRecord: function startRecord() {
      console.log('开始录音');
      recorderManager.start();
      this.activeState = 'activeMicrophone';
      uni.setNavigationBarTitle({
Ken Nakahira committed
1761 1762
        title: '语音输入中...'
      });
xhw committed
1763 1764 1765 1766 1767 1768
    },
    endRecord: function endRecord() {
      console.log('录音结束');
      recorderManager.stop();
      this.activeState = '';
      uni.setNavigationBarTitle({
Ken Nakahira committed
1769 1770
        title: this.currentPageData.name
      });
xhw committed
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791
    },
    handleShow: function handleShow() {
      this.show = false;
    },
    handleMore: function handleMore() {
      //出现物品栏
      this.show = true;
    },
    handleFocus: function handleFocus() {
      this.focus = 'activeFocus';
      this.showSend = 'showSend';
      this.boxClass = 'chat-window-message2';
      // console.log('聚焦')
    },
    hadnleBlur: function hadnleBlur() {
      console.log('blur');
      this.focus = '';
      // console.log('失焦')
      this.showSend = '';
      this.boxClass = 'chat-window-message';
      uni.setNavigationBarTitle({
Ken Nakahira committed
1792 1793
        title: this.currentPageData.name
      });
xhw committed
1794
    },
Ken Nakahira committed
1795 1796
    handleSendMessage: function handleSendMessage() {
      var _this11 = this;
1797
      // console.log('click')
xhw committed
1798 1799 1800
      if (this.inputVal.trim() === '') {
        uni.showToast({
          title: '输入框值不可为空',
Ken Nakahira committed
1801 1802
          icon: 'none'
        });
1803
        // this.inputVal = ''
xhw committed
1804 1805
        return;
      }
1806 1807
      // 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
      this.timerConsider = setInterval(function () {
xhw committed
1808
        _this11.count++;
1809 1810 1811
      }, 1000);
      this.historyRecord.push({
        Message: this.inputVal,
Ken Nakahira committed
1812 1813
        WObj: {}
      }, {
1814
        Message: '正在思考中...',
Ken Nakahira committed
1815 1816 1817 1818
        WObj: {
          animaite: 'hhh'
        }
      });
1819 1820 1821 1822
      var cont = this.inputVal;
      // this.inputVal = ''
      //滚动条触底
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
xhw committed
1823
        console.log('res', res, _this11.historyRecord.length);
1824
        if (res) {
xhw committed
1825
          _this11.scrollTop = res.height;
1826
        } else {
xhw committed
1827
          _this11.scrollTop = _this11.historyRecord.length * 1000;
1828 1829
        }
      }).exec();
xhw committed
1830 1831 1832
      this.socketTask.send({
        data: JSON.stringify({
          type: 0,
Ken Nakahira committed
1833 1834
          content: cont
        }),
xhw committed
1835 1836
        success: function success() {
          console.log('消息发送成功');
xhw committed
1837
          _this11.loading = true;
xhw committed
1838 1839 1840 1841 1842 1843 1844
          // uni.showLoading({
          // 	title: '思考中...',
          // 	mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
          // });

          var str = '对方正在输入...';
          var i = 6;
xhw committed
1845
          _this11.timer = setInterval(function () {
xhw committed
1846 1847 1848 1849 1850 1851
            if (i < 10) {
              i += 1;
            } else {
              i = 6;
            }
            uni.setNavigationBarTitle({
Ken Nakahira committed
1852 1853
              title: str.substr(0, i)
            });
xhw committed
1854
          }, 400);
Ken Nakahira committed
1855 1856
        }
      });
1857
    },
Ken Nakahira committed
1858 1859
    handleSendMessage2: function handleSendMessage2() {
      var _this12 = this;
xhw committed
1860 1861 1862 1863
      if (this.socketTask == null) {
        this.socketConnect();
      }

1864 1865 1866 1867
      // console.log('click')
      if (this.inputVal.trim() === '') {
        uni.showToast({
          title: '输入框值不可为空',
Ken Nakahira committed
1868 1869
          icon: 'none'
        });
1870 1871 1872 1873
        this.inputVal = '';
        return;
      }
      this.glod_user = true;
xhw committed
1874
      this.inputVal = this.userDoing ? '我' + this.inputVal : " “ " + this.inputVal + " ” ";
1875 1876 1877

      // 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
      this.timerConsider = setInterval(function () {
xhw committed
1878
        _this12.count++;
1879 1880 1881
      }, 1000);
      this.historyRecord.push({
        Message: this.inputVal,
Ken Nakahira committed
1882 1883
        WObj: {}
      }, {
1884
        Message: '正在思考中...',
Ken Nakahira committed
1885 1886 1887 1888
        WObj: {
          animaite: 'hhh'
        }
      });
1889 1890 1891 1892
      var cont = this.inputVal;
      // this.inputVal = ''
      //滚动条触底
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
xhw committed
1893
        console.log('res', res, _this12.historyRecord.length);
1894
        if (res) {
xhw committed
1895
          _this12.scrollTop = res.height;
1896
        } else {
xhw committed
1897
          _this12.scrollTop = _this12.historyRecord.length * 1000;
Iteravse committed
1898
        }
1899 1900 1901 1902 1903
      }).exec();

      //关闭语音 防止多重语音
      if (this.EPlayer) {
        this.EPlayer.stop();
xhw committed
1904 1905
        clearInterval(this.Strem);
        this.jumping = true;
1906 1907 1908 1909 1910
      }
      console.log('socketTask', this.socketTask);
      this.socketTask.send({
        data: JSON.stringify({
          type: 0,
Ken Nakahira committed
1911 1912
          content: this.inputVal
        }),
1913 1914
        success: function success() {
          console.log('消息发送成功');
xhw committed
1915 1916 1917 1918
          _this12.loading = true;
          _this12.inputVal_UI = _this12.inputVal;
          _this12.inputVal = '';
          _this12.glod_dp = false;
1919 1920 1921 1922
          // this.glod_user = true

          var str = '对方正在输入...';
          var i = 6;
xhw committed
1923
          _this12.timer = setInterval(function () {
1924 1925 1926 1927 1928 1929
            if (i < 10) {
              i += 1;
            } else {
              i = 6;
            }
            uni.setNavigationBarTitle({
Ken Nakahira committed
1930 1931
              title: str.substr(0, i)
            });
xhw committed
1932
            _this12.yyds_pangbai = str.substr(0, i);
1933
          }, 400);
Ken Nakahira committed
1934 1935
        }
      });
xhw committed
1936 1937 1938
    },
    computeLen: function computeLen(OBJ) {
      console.log(OBJ);
1939
      // OBJ.content = OBJ.content.replace("\n","")
Ken Nakahira committed
1940 1941
      var Sr = "",
        cp = OBJ.content;
xhw committed
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958
      while (1) {
        var sAim = cp.match(/,|,|。|\!|!|?|\?|\n/);
        if (Sr.length < 20 && sAim) {
          Sr += cp.substring(0, sAim.index + 1);
          cp = cp.substring(sAim.index + 1);
        } else {
          if (Sr.length + cp.length < 20 || Sr.length < 15) {
            Sr += cp;
          }
          break;
        }
      }
      var obj = {};
      obj.Sr = Sr;
      obj.content = OBJ.content.replace(Sr, "");
      return obj;
    },
1959
    //假人音线
Ken Nakahira committed
1960 1961
    FetchAbuffer: function FetchAbuffer(OriginObj, voicer, Sarry, CB) {
      var _this13 = this;
1962
      var Cobj2 = this.computeLen(OriginObj);
xhw committed
1963
      // console.log('llllllllll',Cobj2)
1964 1965 1966 1967
      var Asr = Cobj2.Sr;
      uni.request({
        url: 'https://admin.mindepoch.com:8089/say/api/ra',
        method: 'post',
Ken Nakahira committed
1968 1969
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
1970 1971
        header: {
          'Content-Type': 'text/plain',
Ken Nakahira committed
1972 1973 1974 1975
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(Cobj2.Sr, voicer)
      }).then(function (arrayBuffer) {
1976
        console.log('假人arrayBuffer', arrayBuffer);
Ken Nakahira committed
1977 1978 1979 1980
        Sarry.push({
          A: arrayBuffer[1].data,
          S: Asr
        });
1981
        // OriginObj = Cobj2
xhw committed
1982 1983
        _this13.Cobj2.content = Cobj2.content;
        _this13.Cobj2.Sr = Cobj2.Sr;
xhw committed
1984
        // console.log('OriginObj',OriginObj)
1985 1986
        if (Cobj2.content != "") {
          setTimeout(function () {
xhw committed
1987
            _this13.FetchAbuffer(Cobj2, voicer, Sarry);
Ken Nakahira committed
1988
          }, 500);
1989 1990 1991 1992 1993 1994
        }
      }).catch(function (err) {
        console.log(1223, err);
      });
    },
    //真人音线
Ken Nakahira committed
1995 1996
    FetchAbuffer_real: function FetchAbuffer_real(OriginObj, voicer, Sarry, CB) {
      var _this14 = this;
xhw committed
1997 1998 1999 2000 2001
      var Cobj = this.computeLen(OriginObj);
      var Asr = Cobj.Sr;
      uni.request({
        url: 'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho',
        method: 'post',
Ken Nakahira committed
2002 2003
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
xhw committed
2004
        header: {
2005
          'Content-Type': 'text/plain',
Ken Nakahira committed
2006 2007 2008 2009
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(Cobj.Sr, voicer)
      }).then(function (arrayBuffer) {
xhw committed
2010
        // console.log('[真人buffer[[[[')
Ken Nakahira committed
2011 2012 2013 2014
        Sarry.push({
          A: arrayBuffer[1].data,
          S: Asr
        });
xhw committed
2015
        // OriginObj = Cobj
xhw committed
2016 2017
        _this14.Cobj.content = Cobj.content;
        _this14.Cobj.Sr = Cobj.Sr;
xhw committed
2018 2019
        if (Cobj.content != "") {
          setTimeout(function () {
xhw committed
2020
            _this14.FetchAbuffer_real(Cobj, voicer, Sarry);
Ken Nakahira committed
2021
          }, 500);
xhw committed
2022 2023 2024
        }
      });
    },
Ken Nakahira committed
2025 2026
    execFile: function execFile(data, ISLIU_content) {
      var _this15 = this;
xhw committed
2027 2028
      // let arrObj = data;
      // const content = arrObj[0].text;
Ken Nakahira committed
2029
      // quoted为真 或为假 表示 真假音线
xhw committed
2030 2031 2032 2033 2034
      // const voicer = arrObj[0].quoted ? 
      // this.currentPageData.voiceGroups[1] : 
      // this.currentPageData.voiceGroups[0]
      // const voicer = arrObj[0].quoted ? this.currentPageData.voiceGroups[1] : this.currentPageData.voiceGroups[0];

2035
      var arrObj = data;
Ken Nakahira committed
2036
      console.log('arrObj_execFile', arrObj);
2037
      var content = arrObj[0].text;
xhw committed
2038 2039
      var voicer = arrObj[0].voicer;
      this.GoSay(content, voicer, function (text, falg) {
Ken Nakahira committed
2040 2041 2042
        if (!arrObj || arrObj.length == 0) {
          return;
        }
xhw committed
2043
        if (arrObj[0].quoted) {
2044
          if (text !== "" && !falg) {
xhw committed
2045
            _this15.glod_dp = true;
xhw committed
2046
            // this.glod_user = false
xhw committed
2047 2048
            _this15.yyds_dp = text;
            _this15.yyds_pangbai += " “ " + text + " ” ";
2049 2050
          }
          if (falg) {
xhw committed
2051
            console.log('GoSound讲话完毕!');
2052 2053 2054
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
xhw committed
2055
              _this15.execFile(arrObj);
2056 2057
            }
          }
xhw committed
2058
        } else {
2059
          if (text !== "" && !falg) {
xhw committed
2060 2061
            _this15.kill = false;
            _this15.delayText(text);
2062 2063
          }
          if (falg) {
xhw committed
2064
            console.log('GoSay讲话完毕!');
xhw committed
2065
            _this15.kill = true;
2066 2067 2068
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
xhw committed
2069
              _this15.execFile(arrObj);
2070 2071
            }
          }
xhw committed
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115
        }
      });

      // if(this.soundVoice[voicer]){
      // 	//假人音线
      // 	this.GoSay(content,voicer,(text, falg)=>{
      // 		if(text!==""&&!falg){
      // 			this.kill = false
      // 			this.delayText(text)
      // 		}
      // 		if (falg) {
      // 			console.log('GoSay讲话完毕!')
      // 			this.kill = true
      // 			arrObj.shift()
      // 			console.log('arrObj',arrObj)
      // 			if(arrObj.length!==0){
      // 				this.execFile(arrObj)
      // 			}
      // 		}
      // 	})
      // }else{
      // 	this.GoSound(content,voicer,(text, falg)=>{
      // 		if(text!==""&&!falg){
      // 			this.glod_dp = true
      // 			// this.glod_user = false
      // 			this.yyds_dp = text
      // 			this.yyds_pangbai += " “ "+text+ " ” "
      // 		}
      // 		if (falg) {
      // 			console.log('GoSound讲话完毕!')
      // 			arrObj.shift()
      // 			console.log('arrObj',arrObj)
      // 			if(arrObj.length!==0){
      // 				this.execFile(arrObj)
      // 			}
      // 		}
      // 	})
      // }
    },
    separateChineseAndNumbers: function separateChineseAndNumbers(str) {
      console.log(str);
      // 使用正则表达式匹配数字和中文字符
      var matches = str.match(/[\u4e00-\u9fa5]+|[0-9]+/g);
      return matches || [];
2116
    },
Ken Nakahira committed
2117 2118
    delayText: function delayText(text) {
      var _this16 = this;
2119 2120 2121 2122
      var count = text.split("");
      clearInterval(this.Strem);
      this.Strem = setInterval(function () {
        // let Nc = count.shift()
xhw committed
2123
        _this16.Nc = count.shift();
2124
        // console.log('this.Nc text',count,this.Nc)
xhw committed
2125 2126 2127
        _this16.yyds_pangbai += _this16.Nc;
        _this16.str = count.join("");
        _this16.scrollToBottom_pangbai(); //滚动条到底部
2128
        if (count.length == 0) {
xhw committed
2129
          clearInterval(_this16.Strem);
2130
        }
Ken Nakahira committed
2131
      }, 50);
2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143
    },
    createSSML: function createSSML(text, voiceName) {
      return '\
				<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US">\
					<voice name="' + this.soundVoice[voiceName] + '">\
						<prosody rate="10%" pitch="0%">\
							' + text + '\
						</prosody >\
					</voice >\
				</speak > ';
    },
    // GoSound  真人音线
Iteravse committed
2144
    GoSound: function GoSound(content, voicer, CB) {
xhw committed
2145
      // 要读的文字 声线 回调
2146 2147
      var that = this;
      var Sarry = [];
Ken Nakahira committed
2148 2149 2150 2151 2152
      this.Cobj = this.computeLen({
        content: content
      });
      this.str = this.Cobj.Sr;
      this.glod_dp = true;
xhw committed
2153 2154 2155
      uni.request({
        url: 'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho',
        method: 'post',
Ken Nakahira committed
2156 2157
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
xhw committed
2158 2159
        header: {
          'Content-Type': 'application/x-www-form-urlencoded',
Ken Nakahira committed
2160 2161
          'Cookie': "".concat(uni.getStorageSync('session_token'))
        },
xhw committed
2162
        data: {
2163 2164
          name: this.Allvoice[voicer],
          voice_text: this.Cobj.Sr,
Ken Nakahira committed
2165 2166 2167
          text_language: 'zh'
        }
      }).then(function (arrayBuffer) {
2168 2169 2170 2171
        console.log('arrayBuffer---GoSound真人音线', arrayBuffer);
        var FileSystemManager = wx.getFileSystemManager();
        that.tempFilePath = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3"); // 或者其他音频格式,根据实际情况而定

xhw committed
2172
        FileSystemManager.writeFile({
2173 2174
          filePath: that.tempFilePath,
          data: arrayBuffer[1].data,
xhw committed
2175 2176
          encoding: 'binary',
          success: function success() {
Ken Nakahira committed
2177
            var _this17 = this;
xhw committed
2178
            // 写入成功,使用小程序的背景音频播放器播放音频
2179 2180
            if (that.EPlayer) {
              // that.EPlayer.onended=null
xhw committed
2181
              // that.EPlayer.onEnded()
2182 2183
              that.EPlayer.stop();
              // that.EPlayer.cb && that.EPlayer.cb(that.Cobj.Sr, true)
xhw committed
2184
            }
Ken Nakahira committed
2185

2186 2187 2188 2189 2190 2191
            if (CB) CB(that.Cobj.Sr);
            that.EPlayer = wx.createInnerAudioContext();
            that.EPlayer.src = that.tempFilePath;
            that.EPlayer.play();
            console.log('GoSound----------oooooo');
            that.EPlayer.cb = CB;
xhw committed
2192
            var Rfunc = function Rfunc() {
xhw committed
2193 2194 2195 2196
              if (that.jumping) {
                return;
              }
              that.jumping = true;
2197 2198 2199 2200 2201 2202 2203 2204 2205 2206
              console.log('GoSoundrfun');
              //移除旧文件
              console.log(1123, that.tempFilePath);
              FileSystemManager.unlink({
                filePath: that.tempFilePath,
                success: function success(res) {
                  console.log('删除成功', res);
                },
                fail: function fail(err) {
                  console.error('删除失败', err);
Ken Nakahira committed
2207 2208
                }
              });
xhw committed
2209
              if (Sarry.length == 0) {
2210 2211
                console.log('读完了 真人音线');
                if (that.Cobj.content != '') {
xhw committed
2212
                  setTimeout(function () {
2213 2214
                    // that.EPlayer.onEnded(Rfunc)
                    that.EPlayer.onended();
xhw committed
2215
                  }, 1000);
xhw committed
2216
                  that.jumping = false;
xhw committed
2217 2218
                  return;
                }
2219
                if (CB) CB(that.Cobj.Sr, true);
xhw committed
2220
                that.jumping = false;
xhw committed
2221 2222 2223
                return;
              }
              var Sobj = Sarry.shift();
2224 2225 2226
              console.log('Sobj', Sobj);
              if (Sobj.S == null) {
                CB(Sobj.S);
xhw committed
2227
                that.jumping = false;
2228 2229
                Rfunc();
              } else {
Ken Nakahira committed
2230 2231
                console.log('Checkpoint');
                _this17.str = Sobj.S;
2232 2233 2234 2235 2236 2237
                that.tempFilePath2 = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3");
                FileSystemManager.writeFile({
                  filePath: that.tempFilePath2,
                  data: Sobj.A,
                  encoding: 'binary',
                  success: function success() {
xhw committed
2238
                    // console.log('1144',that.tempFilePath2)
2239 2240 2241 2242 2243 2244 2245 2246
                    that.tempFilePath = that.tempFilePath2;
                    if (CB) CB(Sobj.S);
                    that.EPlayer = wx.createInnerAudioContext();
                    that.EPlayer.src = that.tempFilePath;
                    that.EPlayer.play();
                    that.EPlayer.onEnded(Rfunc);
                    that.EPlayer.onended = Rfunc;
                  },
Ken Nakahira committed
2247 2248
                  fail: console.error
                });
2249
              }
xhw committed
2250
              that.jumping = false;
2251 2252 2253 2254 2255 2256
            };
            that.EPlayer.onEnded(Rfunc);
            that.EPlayer.onended = Rfunc;
            if (that.Cobj.content != "") {
              setTimeout(function () {
                that.FetchAbuffer_real(that.Cobj, voicer, Sarry, CB);
Ken Nakahira committed
2257
              }, 2000);
2258 2259 2260 2261
            }
          },
          fail: function fail(err) {
            console.log('GoSound---------uuu', err);
Ken Nakahira committed
2262 2263
          }
        });
2264 2265 2266 2267 2268
      }).catch(function (reason) {
        console.log('reason', reason);
      });
    },
    //假人音线
Ken Nakahira committed
2269 2270
    GoSay: function GoSay(content, voicer, CB) {
      var _this18 = this;
xhw committed
2271 2272 2273 2274 2275
      if (!this.soundVoice[voicer]) {
        //真人音线
        this.GoSound(content, voicer, CB);
        return;
      }
2276 2277 2278
      // 要读的文字 声线 回调
      var that = this;
      var Sarry = [];
Ken Nakahira committed
2279 2280 2281
      this.Cobj2 = this.computeLen({
        content: content
      });
2282 2283 2284
      uni.request({
        url: 'https://admin.mindepoch.com:8089/say/api/ra',
        method: 'post',
Ken Nakahira committed
2285 2286
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
2287 2288
        header: {
          'Content-Type': 'text/plain',
Ken Nakahira committed
2289 2290 2291 2292
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(this.Cobj2.Sr, voicer)
      }).then(function (arrayBuffer) {
2293 2294
        // console.log('arrayBuffer',arrayBuffer)
        var FileSystemManager = wx.getFileSystemManager();
Ken Nakahira committed
2295
        _this18.tempFilePath = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3"); // 或者其他音频格式,根据实际情况而定
2296 2297
        // console.log('tempFilePath:',this.tempFilePath);
        FileSystemManager.writeFile({
Ken Nakahira committed
2298
          filePath: _this18.tempFilePath,
2299 2300 2301 2302
          data: arrayBuffer[1].data,
          encoding: 'binary',
          success: function success() {
            // 写入成功,使用小程序的背景音频播放器播放音频
Ken Nakahira committed
2303
            if (_this18.EPlayer) {
2304 2305
              // this.EPlayer.onended=null
              // this.EPlayer.onEnded()
Ken Nakahira committed
2306
              _this18.EPlayer.stop();
2307 2308
              // that.EPlayer.cb && that.EPlayer.cb(that.Cobj2.Sr, true, true)
            }
Ken Nakahira committed
2309 2310 2311 2312 2313

            if (CB) CB(_this18.Cobj2.Sr);
            _this18.EPlayer = wx.createInnerAudioContext();
            _this18.EPlayer.src = _this18.tempFilePath;
            _this18.EPlayer.play();
2314
            console.log('oooGoSayooo');
Ken Nakahira committed
2315
            _this18.EPlayer.cb = CB;
2316
            var Rfunc = function Rfunc() {
Ken Nakahira committed
2317 2318
              console.log('Sarry', Sarry);
              if (_this18.jumping) {
xhw committed
2319 2320
                return;
              }
Ken Nakahira committed
2321
              _this18.jumping = true;
2322 2323
              FileSystemManager.unlink({
                filePath: that.tempFilePath,
xhw committed
2324
                success: function success(res) {
xhw committed
2325
                  // console.log('删除成功',res)
xhw committed
2326 2327
                },
                fail: function fail(err) {
xhw committed
2328
                  // console.error('删除失败', err);
Ken Nakahira committed
2329 2330
                }
              });
2331
              if (Sarry.length == 0) {
Ken Nakahira committed
2332 2333
                _this18.kill = true;
                if (_this18.Cobj2.content != '') {
2334 2335
                  setTimeout(function () {
                    // this.EPlayer.onEnded(Rfunc)
Ken Nakahira committed
2336
                    _this18.EPlayer.onended();
2337
                  }, 1000);
Ken Nakahira committed
2338
                  _this18.jumping = false;
2339
                  return;
Iteravse committed
2340
                }
2341
                if (CB) {
Ken Nakahira committed
2342
                  CB(_this18.Cobj2.Sr, true);
2343
                }
Ken Nakahira committed
2344
                _this18.jumping = false;
2345 2346 2347 2348 2349
                return;
              }
              var Sobj = Sarry.shift();
              if (Sobj.A == null) {
                CB(Sobj.S);
Ken Nakahira committed
2350
                _this18.jumping = false;
2351 2352
                Rfunc();
              } else {
Ken Nakahira committed
2353 2354 2355
                console.log('Checkpoint');
                _this18.str = Sobj.S;
                _this18.tempFilePath2 = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3");
2356 2357
                // const mark = that.Cobj2.Sr
                FileSystemManager.writeFile({
Ken Nakahira committed
2358
                  filePath: _this18.tempFilePath2,
2359 2360 2361
                  data: Sobj.A,
                  encoding: 'binary',
                  success: function success() {
Ken Nakahira committed
2362
                    _this18.tempFilePath = _this18.tempFilePath2;
2363
                    if (CB) CB(Sobj.S);
Ken Nakahira committed
2364 2365 2366 2367 2368
                    _this18.EPlayer = wx.createInnerAudioContext();
                    _this18.EPlayer.src = _this18.tempFilePath;
                    _this18.EPlayer.play();
                    _this18.EPlayer.onEnded(Rfunc);
                    _this18.EPlayer.onended = Rfunc;
2369
                  },
Ken Nakahira committed
2370 2371
                  fail: console.error
                });
2372
              }
Ken Nakahira committed
2373
              _this18.jumping = false;
xhw committed
2374
            };
Ken Nakahira committed
2375 2376 2377
            _this18.EPlayer.onEnded(Rfunc);
            _this18.EPlayer.onended = Rfunc;
            if (_this18.Cobj2.content != "") {
xhw committed
2378
              setTimeout(function () {
Ken Nakahira committed
2379 2380
                _this18.FetchAbuffer(_this18.Cobj2, voicer, Sarry, CB);
              }, 2000);
xhw committed
2381 2382
            }
          },
2383 2384
          fail: function fail(err) {
            console.log('GoSayuuu', err);
Ken Nakahira committed
2385 2386
          }
        });
Iteravse committed
2387
      }).catch(function (reason) {
2388 2389
        console.log('reason', reason);
      });
Ken Nakahira committed
2390 2391
    }
  }, "extractQuotedTexts", function extractQuotedTexts(str) {
2392 2393 2394 2395 2396 2397 2398 2399 2400
    // 正则表达式匹配引号内的文本,包括转义引号
    var pattern = /(["'])(?:(?=(\\?))\2.)*?\1/g;
    var matches = [];
    var match;
    // 使用正则表达式的exec方法进行循环匹配
    while ((match = pattern.exec(str)) !== null) {
      // 获取引号内的文本(排除引号本身)
      var quotedText = match[0].slice(1, -1).replace(/\\(["'])/g, '$1'); // 去除引号并取消转义
      matches.push(quotedText);
Iteravse committed
2401
    }
2402
    return matches.length == 0 ? [str] : matches;
Ken Nakahira committed
2403 2404 2405 2406
  })
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
2407 2408 2409

/***/ }),

Ken Nakahira committed
2410 2411 2412 2413
/***/ 69:
/*!**************************************************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& ***!
  \**************************************************************************************************************************/
2414 2415 2416 2417 2418
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
2419 2420 2421 2422
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& */ 70);
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 
2423 2424 2425

/***/ }),

Ken Nakahira committed
2426 2427 2428 2429
/***/ 70:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!/Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
2430 2431 2432 2433 2434 2435
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  
xhw committed
2436 2437 2438

/***/ }),

Ken Nakahira committed
2439 2440 2441 2442
/***/ 71:
/*!**************************************************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=1&id=57280228&scoped=true&lang=css& ***!
  \**************************************************************************************************************************/
xhw committed
2443 2444 2445 2446 2447
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
2448 2449 2450 2451
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=1&id=57280228&scoped=true&lang=css& */ 72);
/* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 
xhw committed
2452 2453 2454

/***/ }),

Ken Nakahira committed
2455 2456 2457 2458
/***/ 72:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!/Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=1&id=57280228&scoped=true&lang=css& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
xhw committed
2459 2460 2461 2462 2463 2464 2465 2466 2467
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

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

/***/ })

Ken Nakahira committed
2468
},[[63,"common/runtime","common/vendor"]]]);
xhw committed
2469
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map