index.js 108 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
/* 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));
//
199 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
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Iteravse committed
447
//
xhw committed
448 449 450 451 452 453 454 455 456 457 458 459 460 461
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Ken Nakahira committed
462
//
xhw committed
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
      debouncedNextTips: null,
Ken Nakahira committed
714 715
      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
      this.$nextTick(function () {
        _this2.jumping = true;
        clearInterval(_this2.Strem);
        if (_this2.EPlayer) {
          _this2.EPlayer.stop();
Ken Nakahira committed
898
        }
Ken Nakahira committed
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913
        if (_this2.glod_dp && _this2.str != "") {
          console.log('Text Appended');
          _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 + " ” ";
Ken Nakahira committed
914 915 916 917 918 919 920 921 922
    },
    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 () {
Ken Nakahira committed
923
          fn.apply(context, args);
Ken Nakahira committed
924 925 926 927 928
        }, gapTime);
      };
    },
    created: function created() {
      // Bind the debounced version of nextTips
Ken Nakahira committed
929
      this.debouncedNextTips = this.debounce(this.nextTips, 750);
Ken Nakahira committed
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 956
    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
957
    scrollToBottom: function scrollToBottom() {
Ken Nakahira committed
958
      var _this3 = this;
959 960 961
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
        // console.log('res',res,this.historyRecord.length)
        if (res) {
Ken Nakahira committed
962
          _this3.scrollTop = res.height;
963
        } else {
Ken Nakahira committed
964
          _this3.scrollTop = _this3.historyRecord.length * 1000;
965 966 967
        }
      }).exec();
    },
Ken Nakahira committed
968
    scrollToBottom_pangbai: function scrollToBottom_pangbai() {
Ken Nakahira committed
969
      var _this4 = this;
Ken Nakahira committed
970
      this.$nextTick(function () {
Ken Nakahira committed
971
        uni.createSelectorQuery().in(_this4).select('#scrollView').boundingClientRect(function (res) {
Ken Nakahira committed
972
          if (res) {
Ken Nakahira committed
973
            _this4.scrollTop_pangbai = res.height * 2;
Ken Nakahira committed
974 975 976 977 978 979 980 981 982 983 984 985 986 987
          } 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;
988 989 990 991 992 993 994 995 996
    },
    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
997 998 999 1000
            result.push({
              text: currentText,
              quoted: true
            });
1001 1002 1003 1004
            currentText = '';
            quoted = false;
          } else {
            if (currentText.trim() !== '') {
Ken Nakahira committed
1005 1006 1007 1008
              result.push({
                text: currentText,
                quoted: false
              });
1009 1010 1011 1012 1013 1014 1015 1016 1017
              currentText = '';
            }
            quoted = true;
          }
        } else {
          currentText += char;
        }
      }
      if (currentText.trim() !== '') {
Ken Nakahira committed
1018 1019 1020 1021
        result.push({
          text: currentText,
          quoted: quoted
        });
1022 1023 1024
      }
      return result;
    },
Ken Nakahira committed
1025
    handleSendMoney: function handleSendMoney() {
Ken Nakahira committed
1026
      var _this5 = this;
xhw committed
1027 1028 1029
      if (this.inputMoney == "" && this.inputMoney.trim() == "") {
        uni.showToast({
          title: '金额不可为空!',
Ken Nakahira committed
1030 1031
          icon: 'none'
        });
xhw committed
1032 1033 1034 1035 1036 1037
      } else {
        this.inputVal = '我向她发送了红包' + this.inputMoney + '元';
        //向服务器发请求
        this.socketTask.send({
          data: JSON.stringify({
            type: 0,
Ken Nakahira committed
1038 1039
            content: '我向她发送了红包' + this.inputMoney + '元'
          }),
xhw committed
1040 1041
          success: function success() {
            console.log('消息发送成功');
Ken Nakahira committed
1042
            _this5.loading = true;
xhw committed
1043 1044 1045 1046 1047 1048
            // uni.showLoading({
            // 	title: '思考中...',
            // 	mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
            // });
            var str = '对方正在输入...';
            var i = 6;
Ken Nakahira committed
1049
            _this5.timer = setInterval(function () {
xhw committed
1050 1051 1052 1053 1054 1055
              if (i < 10) {
                i += 1;
              } else {
                i = 6;
              }
              uni.setNavigationBarTitle({
Ken Nakahira committed
1056 1057
                title: str.substr(0, i)
              });
xhw committed
1058
            }, 400);
Ken Nakahira committed
1059 1060
          }
        });
xhw committed
1061 1062 1063
        this.$refs.popup.close();
      }
    },
1064 1065 1066 1067
    extractText: function extractText(content) {
      var input = content.replaceAll("“", "\"").replaceAll("”", "\"");
      // 正则表达式,用于匹配双引号内的文字
      var insideQuotes = input.match(/"([^"]*)"/g);
Ken Nakahira committed
1068 1069 1070
      var insideQuotesText = insideQuotes ? insideQuotes.map(function (text) {
        return " ' " + text.replace(/"/g, '') + " ' ";
      }) : [];
1071 1072

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

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

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

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

                // 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
1253
                    item.voicer = _this6.currentPageData.voiceGroups['2'];
xhw committed
1254
                  } else {
Ken Nakahira committed
1255 1256 1257
                    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
1258
                      item.voicer = voicer;
Ken Nakahira committed
1259
                      _this6.total_val = _this6.total_val.splice(1, _this6.total_val.length);
xhw committed
1260 1261 1262 1263
                    }
                  }
                  return item;
                });
Ken Nakahira committed
1264
                _this6.execFile(text, ISLIU_content);
xhw committed
1265 1266 1267
              }).catch(function (err) {
                console.log(err);
              });
xhw committed
1268
            }
1269 1270

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

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

              //展示旁白信息 数字人和用户对话信息
Ken Nakahira committed
1361 1362
              if (_this8.header) {
                var result = _this8.extractText(_this8.header.Message);
1363
                var len = result.insideQuotesText.length;
xhw committed
1364
                // console.log('result',result)
1365

Ken Nakahira committed
1366 1367
                if (result.insideQuotesText.length == 0) {
                  //数字人对话框是否需要显示
Ken Nakahira committed
1368
                  _this8.glod_dp = false;
1369
                } else {
Ken Nakahira committed
1370
                  _this8.glod_dp = true;
1371
                }
Ken Nakahira committed
1372
                _this8.yyds_dp = result.insideQuotesText[len - 1];
1373 1374
                //筛选出数字人发来的文字

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

              //没有走到结局 根据最后两条两条对聊记录处理  物品的显示
Ken Nakahira committed
1420 1421
              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;
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436
              });
              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
1437
                    _this8.monney = _monney[0].match(/\d+/);
1438
                  } else {
Ken Nakahira committed
1439
                    _this8.monney = 0;
1440
                  }
Ken Nakahira committed
1441
                  for (var _i = 0; _i < _allTools.length; _i++) {
Ken Nakahira committed
1442
                    _this8.imageList.push({
Ken Nakahira committed
1443 1444 1445
                      imgSrc: 'https://admin.mindepoch.com:8089/worlds/items/' + _allTools[_i].split("(")[0] + '.png',
                      name: _allTools[_i].split("(")[0]
                    });
1446 1447 1448 1449
                  }
                }
              }
              //滚动条触底
Ken Nakahira committed
1450
              _this8.scrollToBottom();
1451 1452
              //启动 webscoket 连接
            } else {
Ken Nakahira committed
1453 1454
              // 没有历史记录 
            }
Ken Nakahira committed
1455
            _this8.socketConnect();
xhw committed
1456 1457
          }
        } else {
1458 1459 1460 1461
          // uni.showToast({
          // 	title: res[1].data.message,
          // 	icon: 'none'
          // })
Ken Nakahira committed
1462
          _this8.socketConnect();
xhw committed
1463 1464 1465 1466 1467
        }
      }).catch(function (err) {
        console.log(err);
      });
    },
Ken Nakahira committed
1468
    getPhoto: function getPhoto() {
Ken Nakahira committed
1469
      var _this9 = this,
Ken Nakahira committed
1470 1471
        _uni$request,
        _uni$request2;
xhw committed
1472
      //获取背景图 
Ken Nakahira committed
1473 1474
      uni.request({
        url:  true ? "https://admin.mindepoch.com:8089/worlds/".concat(this.currentPageData.worldName, ".png") : undefined,
xhw committed
1475 1476
        method: 'GET',
        data: {
Ken Nakahira committed
1477 1478
          id: this.currentPageData.worldName
        },
xhw committed
1479 1480 1481
        responseType: 'arraybuffer',
        header: {
          'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1482 1483 1484
          "Cache-Control": "no-cache"
        }
      }).then(function (res) {
xhw committed
1485
        var arrayBuffer = res[1].data;
Ken Nakahira committed
1486
        _this9.codeUrl = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
Ken Nakahira committed
1487 1488 1489
      }).catch(function (err) {
        return console.log(err);
      });
xhw committed
1490 1491 1492

      //获取数字人头像
      uni.request((_uni$request = {
Ken Nakahira committed
1493
        url:  true ? "https://admin.mindepoch.com:8089/worlds/".concat(this.currentPageData.worldName, ".png") : undefined,
xhw committed
1494 1495 1496
        method: 'GET',
        responseType: 'arraybuffer',
        data: {
Ken Nakahira committed
1497 1498 1499
          id: this.currentPageData.worldName
        }
      }, (0, _defineProperty2.default)(_uni$request, "responseType", 'arraybuffer'), (0, _defineProperty2.default)(_uni$request, "header", {
xhw committed
1500
        'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1501 1502
        "Cache-Control": "no-cache"
      }), _uni$request)).then(function (res) {
xhw committed
1503
        var arrayBuffer = res[1].data;
Ken Nakahira committed
1504
        _this9.dpPhoto = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
xhw committed
1505 1506 1507 1508 1509 1510
      }).catch(function (err) {
        console.log(err);
      });

      //获取用户头像
      uni.request((_uni$request2 = {
Ken Nakahira committed
1511
        url:  true ? "https://admin.mindepoch.com:8089/userFile/avatar".concat(uni.getStorageSync('wxUid'), ".png") : undefined,
xhw committed
1512 1513 1514
        method: 'GET',
        responseType: 'arraybuffer',
        data: {
1515
          // id: this.currentPageData.id,
Ken Nakahira committed
1516 1517
        }
      }, (0, _defineProperty2.default)(_uni$request2, "responseType", 'arraybuffer'), (0, _defineProperty2.default)(_uni$request2, "header", {
xhw committed
1518
        'Cookie': "".concat(uni.getStorageSync('session_token')),
Ken Nakahira committed
1519 1520
        "Cache-Control": "no-cache"
      }), _uni$request2)).then(function (res) {
xhw committed
1521
        var arrayBuffer = res[1].data;
Ken Nakahira committed
1522
        _this9.userPhoto = 'data:image/png;base64,' + uni.arrayBufferToBase64(arrayBuffer);
Ken Nakahira committed
1523 1524 1525
      }).catch(function (err) {
        return console.log(err);
      });
xhw committed
1526
    },
1527
    badRequest: function badRequest() {
xhw committed
1528
      uni.showToast({
1529
        title: '连接异常',
Ken Nakahira committed
1530 1531
        icon: 'none'
      });
xhw committed
1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544
      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;
1545
      this.foot = true; //输入框区域显示
xhw committed
1546 1547 1548
    },
    getResults: function getResults() {
      this.board = true;
1549
      this.foot = false; //输入框区域显示
xhw committed
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
    },
    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() {
1575 1576
      uni.navigateBack({
        // url: `/pages/homeCards/index`
Iteravse committed
1577
      });
xhw committed
1578
    },
xhw committed
1579 1580 1581 1582
    handleToggle: function handleToggle() {
      this.normal = !this.normal;
      this.UI_show = !this.UI_show;
    },
xhw committed
1583 1584 1585 1586 1587
    sendMoneyMethods: function sendMoneyMethods() {
      //弹窗出现 输入金额 确认 提交 发送
      // this.showInputMoneyDialog = true
      this.$refs.popup.open('center');
    },
Ken Nakahira committed
1588
    clearISU: function clearISU() {
Ken Nakahira committed
1589
      var _this10 = this;
1590
      this.historyRecord = []; //清除页面显示的聊天记录
xhw committed
1591 1592
      this.showResult = false; //隐藏底部的查看结局按钮
      this.board = false; //隐藏弹窗
1593 1594
      this.foot = true; //输入框区域显示
      this.loading = true; //显示遮挡层
xhw committed
1595 1596 1597 1598
      uni.showLoading({
        title: '请稍等...',
        mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
      });
Ken Nakahira committed
1599

xhw committed
1600 1601 1602 1603
      uni.request({
        url: "https://admin.mindepoch.com:8089/SoulNeuralFileWorldReset",
        method: 'post',
        data: {
1604 1605
          worldName: this.currentPageData.name,
          BgInfo: this.currentPageData.background,
Ken Nakahira committed
1606 1607
          userInfo: "{\"name\":\"".concat(this.userInputName, "\",\"bk\":\"").concat(this.currentPageData.background, "\"}")
        },
xhw committed
1608 1609 1610
        header: {
          'Cookie': "".concat(uni.getStorageSync('session_token')),
          "Cache-Control": "no-cache",
Ken Nakahira committed
1611 1612 1613
          'Content-Type': 'application/x-www-form-urlencoded'
        }
      }).then(function (res) {
1614 1615
        console.log('重置世界', res);
        if (res[1].data.code === 1) {
Ken Nakahira committed
1616
          _this10.loading = false; //隐藏遮挡层
1617 1618
          uni.hideLoading();
          // location.reload() //页面刷新
xhw committed
1619 1620
        }
      }).catch(function (err) {
Ken Nakahira committed
1621
        _this10.loading = false; //隐藏遮挡层
xhw committed
1622 1623 1624
        uni.hideLoading();
      });
    },
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642
    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
1643 1644 1645 1646
    convertAudioToStream: function convertAudioToStream(filePath) {
      var that = this;
      var fileSystemManager = uni.getFileSystemManager();
      fileSystemManager.readFile({
Ken Nakahira committed
1647 1648
        filePath: filePath,
        // 音频文件路径
xhw committed
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659
        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
1660 1661
              'Cookie': "".concat(uni.getStorageSync('session_token'))
            },
xhw committed
1662 1663 1664 1665 1666 1667 1668
            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
1669 1670
                    icon: 'none'
                  });
xhw committed
1671 1672
                  return;
                }
Iteravse committed
1673
                that.inputVal += vocieData.message.transcription[0].text;
xhw committed
1674
                //获取到用户说的话
Iteravse committed
1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700
                // 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
1701 1702 1703 1704
              } else {
                that.loading = false;
                uni.showToast({
                  title: vocieData.message,
Ken Nakahira committed
1705 1706
                  icon: 'none'
                });
xhw committed
1707 1708 1709 1710
              }
            },
            fail: function fail(uploadFileErr) {
              console.error('uploadFile error, err is:', uploadFileErr);
Ken Nakahira committed
1711 1712
            }
          });
xhw committed
1713 1714 1715
        },
        fail: function fail(err) {
          console.log(err);
Ken Nakahira committed
1716 1717
        }
      });
xhw committed
1718 1719 1720 1721 1722 1723
    },
    startRecord: function startRecord() {
      console.log('开始录音');
      recorderManager.start();
      this.activeState = 'activeMicrophone';
      uni.setNavigationBarTitle({
Ken Nakahira committed
1724 1725
        title: '语音输入中...'
      });
xhw committed
1726 1727 1728 1729 1730 1731
    },
    endRecord: function endRecord() {
      console.log('录音结束');
      recorderManager.stop();
      this.activeState = '';
      uni.setNavigationBarTitle({
Ken Nakahira committed
1732 1733
        title: this.currentPageData.name
      });
xhw committed
1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754
    },
    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
1755 1756
        title: this.currentPageData.name
      });
xhw committed
1757
    },
Ken Nakahira committed
1758
    handleSendMessage: function handleSendMessage() {
Ken Nakahira committed
1759
      var _this11 = this;
1760
      // console.log('click')
xhw committed
1761 1762 1763
      if (this.inputVal.trim() === '') {
        uni.showToast({
          title: '输入框值不可为空',
Ken Nakahira committed
1764 1765
          icon: 'none'
        });
1766
        // this.inputVal = ''
xhw committed
1767 1768
        return;
      }
1769 1770
      // 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
      this.timerConsider = setInterval(function () {
Ken Nakahira committed
1771
        _this11.count++;
1772 1773 1774
      }, 1000);
      this.historyRecord.push({
        Message: this.inputVal,
Ken Nakahira committed
1775 1776
        WObj: {}
      }, {
1777
        Message: '正在思考中...',
Ken Nakahira committed
1778 1779 1780 1781
        WObj: {
          animaite: 'hhh'
        }
      });
1782 1783 1784 1785
      var cont = this.inputVal;
      // this.inputVal = ''
      //滚动条触底
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
Ken Nakahira committed
1786
        console.log('res', res, _this11.historyRecord.length);
1787
        if (res) {
Ken Nakahira committed
1788
          _this11.scrollTop = res.height;
1789
        } else {
Ken Nakahira committed
1790
          _this11.scrollTop = _this11.historyRecord.length * 1000;
1791 1792
        }
      }).exec();
xhw committed
1793 1794 1795
      this.socketTask.send({
        data: JSON.stringify({
          type: 0,
Ken Nakahira committed
1796 1797
          content: cont
        }),
xhw committed
1798 1799
        success: function success() {
          console.log('消息发送成功');
Ken Nakahira committed
1800
          _this11.loading = true;
xhw committed
1801 1802 1803 1804 1805 1806 1807
          // uni.showLoading({
          // 	title: '思考中...',
          // 	mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
          // });

          var str = '对方正在输入...';
          var i = 6;
Ken Nakahira committed
1808
          _this11.timer = setInterval(function () {
xhw committed
1809 1810 1811 1812 1813 1814
            if (i < 10) {
              i += 1;
            } else {
              i = 6;
            }
            uni.setNavigationBarTitle({
Ken Nakahira committed
1815 1816
              title: str.substr(0, i)
            });
xhw committed
1817
          }, 400);
Ken Nakahira committed
1818 1819
        }
      });
1820
    },
Ken Nakahira committed
1821
    handleSendMessage2: function handleSendMessage2() {
Ken Nakahira committed
1822
      var _this12 = this;
xhw committed
1823 1824 1825 1826
      if (this.socketTask == null) {
        this.socketConnect();
      }

1827 1828 1829 1830
      // console.log('click')
      if (this.inputVal.trim() === '') {
        uni.showToast({
          title: '输入框值不可为空',
Ken Nakahira committed
1831 1832
          icon: 'none'
        });
1833 1834 1835 1836
        this.inputVal = '';
        return;
      }
      this.glod_user = true;
xhw committed
1837
      this.inputVal = this.userDoing ? '我' + this.inputVal : " “ " + this.inputVal + " ” ";
1838 1839 1840

      // 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
      this.timerConsider = setInterval(function () {
Ken Nakahira committed
1841
        _this12.count++;
1842 1843 1844
      }, 1000);
      this.historyRecord.push({
        Message: this.inputVal,
Ken Nakahira committed
1845 1846
        WObj: {}
      }, {
1847
        Message: '正在思考中...',
Ken Nakahira committed
1848 1849 1850 1851
        WObj: {
          animaite: 'hhh'
        }
      });
1852 1853 1854 1855
      var cont = this.inputVal;
      // this.inputVal = ''
      //滚动条触底
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
Ken Nakahira committed
1856
        console.log('res', res, _this12.historyRecord.length);
1857
        if (res) {
Ken Nakahira committed
1858
          _this12.scrollTop = res.height;
1859
        } else {
Ken Nakahira committed
1860
          _this12.scrollTop = _this12.historyRecord.length * 1000;
Iteravse committed
1861
        }
1862 1863 1864 1865 1866
      }).exec();

      //关闭语音 防止多重语音
      if (this.EPlayer) {
        this.EPlayer.stop();
xhw committed
1867 1868
        clearInterval(this.Strem);
        this.jumping = true;
1869 1870 1871 1872 1873
      }
      console.log('socketTask', this.socketTask);
      this.socketTask.send({
        data: JSON.stringify({
          type: 0,
Ken Nakahira committed
1874 1875
          content: this.inputVal
        }),
1876 1877
        success: function success() {
          console.log('消息发送成功');
Ken Nakahira committed
1878 1879 1880 1881
          _this12.loading = true;
          _this12.inputVal_UI = _this12.inputVal;
          _this12.inputVal = '';
          _this12.glod_dp = false;
1882 1883 1884 1885
          // this.glod_user = true

          var str = '对方正在输入...';
          var i = 6;
Ken Nakahira committed
1886
          _this12.timer = setInterval(function () {
1887 1888 1889 1890 1891 1892
            if (i < 10) {
              i += 1;
            } else {
              i = 6;
            }
            uni.setNavigationBarTitle({
Ken Nakahira committed
1893 1894
              title: str.substr(0, i)
            });
Ken Nakahira committed
1895
            _this12.yyds_pangbai = str.substr(0, i);
1896
          }, 400);
Ken Nakahira committed
1897 1898
        }
      });
xhw committed
1899 1900 1901
    },
    computeLen: function computeLen(OBJ) {
      console.log(OBJ);
1902
      // OBJ.content = OBJ.content.replace("\n","")
Ken Nakahira committed
1903 1904
      var Sr = "",
        cp = OBJ.content;
xhw committed
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921
      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;
    },
1922
    //假人音线
Ken Nakahira committed
1923
    FetchAbuffer: function FetchAbuffer(OriginObj, voicer, Sarry, CB) {
Ken Nakahira committed
1924
      var _this13 = this;
1925
      var Cobj2 = this.computeLen(OriginObj);
xhw committed
1926
      // console.log('llllllllll',Cobj2)
1927 1928 1929 1930
      var Asr = Cobj2.Sr;
      uni.request({
        url: 'https://admin.mindepoch.com:8089/say/api/ra',
        method: 'post',
Ken Nakahira committed
1931 1932
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
1933 1934
        header: {
          'Content-Type': 'text/plain',
Ken Nakahira committed
1935 1936 1937 1938
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(Cobj2.Sr, voicer)
      }).then(function (arrayBuffer) {
1939
        console.log('假人arrayBuffer', arrayBuffer);
Ken Nakahira committed
1940 1941 1942 1943
        Sarry.push({
          A: arrayBuffer[1].data,
          S: Asr
        });
1944
        // OriginObj = Cobj2
Ken Nakahira committed
1945 1946
        _this13.Cobj2.content = Cobj2.content;
        _this13.Cobj2.Sr = Cobj2.Sr;
xhw committed
1947
        // console.log('OriginObj',OriginObj)
1948 1949
        if (Cobj2.content != "") {
          setTimeout(function () {
Ken Nakahira committed
1950 1951
            _this13.FetchAbuffer(Cobj2, voicer, Sarry);
          }, 500);
1952 1953 1954 1955 1956 1957
        }
      }).catch(function (err) {
        console.log(1223, err);
      });
    },
    //真人音线
Ken Nakahira committed
1958
    FetchAbuffer_real: function FetchAbuffer_real(OriginObj, voicer, Sarry, CB) {
Ken Nakahira committed
1959
      var _this14 = this;
xhw committed
1960 1961 1962 1963 1964
      var Cobj = this.computeLen(OriginObj);
      var Asr = Cobj.Sr;
      uni.request({
        url: 'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho',
        method: 'post',
Ken Nakahira committed
1965 1966
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
xhw committed
1967
        header: {
1968
          'Content-Type': 'text/plain',
Ken Nakahira committed
1969 1970 1971 1972
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(Cobj.Sr, voicer)
      }).then(function (arrayBuffer) {
xhw committed
1973
        // console.log('[真人buffer[[[[')
Ken Nakahira committed
1974 1975 1976 1977
        Sarry.push({
          A: arrayBuffer[1].data,
          S: Asr
        });
xhw committed
1978
        // OriginObj = Cobj
Ken Nakahira committed
1979 1980
        _this14.Cobj.content = Cobj.content;
        _this14.Cobj.Sr = Cobj.Sr;
xhw committed
1981 1982
        if (Cobj.content != "") {
          setTimeout(function () {
Ken Nakahira committed
1983 1984
            _this14.FetchAbuffer_real(Cobj, voicer, Sarry);
          }, 500);
xhw committed
1985 1986 1987
        }
      });
    },
Ken Nakahira committed
1988
    execFile: function execFile(data, ISLIU_content) {
Ken Nakahira committed
1989
      var _this15 = this;
xhw committed
1990 1991
      // let arrObj = data;
      // const content = arrObj[0].text;
Ken Nakahira committed
1992
      // quoted为真 或为假 表示 真假音线
xhw committed
1993 1994 1995 1996 1997
      // 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];

1998
      var arrObj = data;
Ken Nakahira committed
1999
      console.log('arrObj_execFile', arrObj);
2000
      var content = arrObj[0].text;
xhw committed
2001 2002
      var voicer = arrObj[0].voicer;
      this.GoSay(content, voicer, function (text, falg) {
Ken Nakahira committed
2003 2004 2005
        if (!arrObj || arrObj.length == 0) {
          return;
        }
xhw committed
2006
        if (arrObj[0].quoted) {
2007
          if (text !== "" && !falg) {
Ken Nakahira committed
2008 2009
            console.log('Quote Added');
            _this15.glod_dp = true;
xhw committed
2010
            // this.glod_user = false
Ken Nakahira committed
2011 2012
            _this15.yyds_dp = text;
            _this15.yyds_pangbai += " “ " + text + " ” ";
2013 2014
          }
          if (falg) {
xhw committed
2015
            console.log('GoSound讲话完毕!');
2016 2017 2018
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
Ken Nakahira committed
2019
              _this15.execFile(arrObj);
2020 2021
            }
          }
xhw committed
2022
        } else {
2023
          if (text !== "" && !falg) {
Ken Nakahira committed
2024 2025
            _this15.kill = false;
            _this15.delayText(text);
2026 2027
          }
          if (falg) {
xhw committed
2028
            console.log('GoSay讲话完毕!');
Ken Nakahira committed
2029
            _this15.kill = true;
2030 2031 2032
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
Ken Nakahira committed
2033
              _this15.execFile(arrObj);
2034 2035
            }
          }
xhw committed
2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079
        }
      });

      // 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 || [];
2080
    },
Ken Nakahira committed
2081
    delayText: function delayText(text) {
Ken Nakahira committed
2082
      var _this16 = this;
2083 2084 2085 2086
      var count = text.split("");
      clearInterval(this.Strem);
      this.Strem = setInterval(function () {
        // let Nc = count.shift()
Ken Nakahira committed
2087
        _this16.Nc = count.shift();
2088
        // console.log('this.Nc text',count,this.Nc)
Ken Nakahira committed
2089 2090 2091
        _this16.yyds_pangbai += _this16.Nc;
        _this16.str = count.join("");
        _this16.scrollToBottom_pangbai(); //滚动条到底部
2092
        if (count.length == 0) {
Ken Nakahira committed
2093
          clearInterval(_this16.Strem);
2094
        }
Ken Nakahira committed
2095
      }, 50);
2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107
    },
    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
2108
    GoSound: function GoSound(content, voicer, CB) {
xhw committed
2109
      // 要读的文字 声线 回调
Ken Nakahira committed
2110
      console.log('First');
2111 2112
      var that = this;
      var Sarry = [];
Ken Nakahira committed
2113 2114 2115
      this.Cobj = this.computeLen({
        content: content
      });
Ken Nakahira committed
2116 2117
      this.str = this.Cobj.Sr;
      this.glod_dp = true;
xhw committed
2118 2119 2120
      uni.request({
        url: 'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho',
        method: 'post',
Ken Nakahira committed
2121 2122
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
xhw committed
2123 2124
        header: {
          'Content-Type': 'application/x-www-form-urlencoded',
Ken Nakahira committed
2125 2126
          'Cookie': "".concat(uni.getStorageSync('session_token'))
        },
xhw committed
2127
        data: {
2128 2129
          name: this.Allvoice[voicer],
          voice_text: this.Cobj.Sr,
Ken Nakahira committed
2130 2131 2132
          text_language: 'zh'
        }
      }).then(function (arrayBuffer) {
2133 2134 2135 2136
        console.log('arrayBuffer---GoSound真人音线', arrayBuffer);
        var FileSystemManager = wx.getFileSystemManager();
        that.tempFilePath = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3"); // 或者其他音频格式,根据实际情况而定

xhw committed
2137
        FileSystemManager.writeFile({
2138 2139
          filePath: that.tempFilePath,
          data: arrayBuffer[1].data,
xhw committed
2140 2141
          encoding: 'binary',
          success: function success() {
Ken Nakahira committed
2142
            var _this17 = this;
xhw committed
2143
            // 写入成功,使用小程序的背景音频播放器播放音频
2144 2145
            if (that.EPlayer) {
              // that.EPlayer.onended=null
xhw committed
2146
              // that.EPlayer.onEnded()
2147 2148
              that.EPlayer.stop();
              // that.EPlayer.cb && that.EPlayer.cb(that.Cobj.Sr, true)
xhw committed
2149
            }
Ken Nakahira committed
2150

2151 2152 2153 2154 2155 2156
            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
2157
            var Rfunc = function Rfunc() {
xhw committed
2158 2159 2160 2161
              if (that.jumping) {
                return;
              }
              that.jumping = true;
2162 2163 2164 2165 2166 2167 2168 2169 2170 2171
              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
2172 2173
                }
              });
xhw committed
2174
              if (Sarry.length == 0) {
2175 2176
                console.log('读完了 真人音线');
                if (that.Cobj.content != '') {
xhw committed
2177
                  setTimeout(function () {
2178 2179
                    // that.EPlayer.onEnded(Rfunc)
                    that.EPlayer.onended();
xhw committed
2180
                  }, 1000);
xhw committed
2181
                  that.jumping = false;
xhw committed
2182 2183
                  return;
                }
2184
                if (CB) CB(that.Cobj.Sr, true);
xhw committed
2185
                that.jumping = false;
xhw committed
2186 2187 2188
                return;
              }
              var Sobj = Sarry.shift();
2189 2190 2191
              console.log('Sobj', Sobj);
              if (Sobj.S == null) {
                CB(Sobj.S);
xhw committed
2192
                that.jumping = false;
2193 2194
                Rfunc();
              } else {
Ken Nakahira committed
2195 2196
                console.log('Checkpoint');
                _this17.str = Sobj.S;
2197 2198 2199 2200 2201 2202
                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
2203
                    // console.log('1144',that.tempFilePath2)
2204 2205 2206 2207 2208 2209 2210 2211
                    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
2212 2213
                  fail: console.error
                });
2214
              }
xhw committed
2215
              that.jumping = false;
2216 2217 2218 2219 2220 2221
            };
            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
2222
              }, 2000);
2223 2224 2225 2226
            }
          },
          fail: function fail(err) {
            console.log('GoSound---------uuu', err);
Ken Nakahira committed
2227 2228
          }
        });
2229 2230 2231 2232 2233
      }).catch(function (reason) {
        console.log('reason', reason);
      });
    },
    //假人音线
Ken Nakahira committed
2234
    GoSay: function GoSay(content, voicer, CB) {
Ken Nakahira committed
2235
      var _this18 = this;
xhw committed
2236 2237 2238 2239 2240
      if (!this.soundVoice[voicer]) {
        //真人音线
        this.GoSound(content, voicer, CB);
        return;
      }
2241 2242 2243
      // 要读的文字 声线 回调
      var that = this;
      var Sarry = [];
Ken Nakahira committed
2244 2245 2246
      this.Cobj2 = this.computeLen({
        content: content
      });
2247 2248 2249
      uni.request({
        url: 'https://admin.mindepoch.com:8089/say/api/ra',
        method: 'post',
Ken Nakahira committed
2250 2251
        responseType: 'arraybuffer',
        // 设置响应类型为 'arraybuffer'
2252 2253
        header: {
          'Content-Type': 'text/plain',
Ken Nakahira committed
2254 2255 2256 2257
          'Format': 'audio-24khz-96kbitrate-mono-mp3'
        },
        data: this.createSSML(this.Cobj2.Sr, voicer)
      }).then(function (arrayBuffer) {
2258 2259
        // console.log('arrayBuffer',arrayBuffer)
        var FileSystemManager = wx.getFileSystemManager();
Ken Nakahira committed
2260
        _this18.tempFilePath = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3"); // 或者其他音频格式,根据实际情况而定
2261 2262
        // console.log('tempFilePath:',this.tempFilePath);
        FileSystemManager.writeFile({
Ken Nakahira committed
2263
          filePath: _this18.tempFilePath,
2264 2265 2266 2267
          data: arrayBuffer[1].data,
          encoding: 'binary',
          success: function success() {
            // 写入成功,使用小程序的背景音频播放器播放音频
Ken Nakahira committed
2268
            if (_this18.EPlayer) {
2269 2270
              // this.EPlayer.onended=null
              // this.EPlayer.onEnded()
Ken Nakahira committed
2271
              _this18.EPlayer.stop();
2272 2273
              // that.EPlayer.cb && that.EPlayer.cb(that.Cobj2.Sr, true, true)
            }
Ken Nakahira committed
2274

Ken Nakahira committed
2275 2276 2277 2278
            if (CB) CB(_this18.Cobj2.Sr);
            _this18.EPlayer = wx.createInnerAudioContext();
            _this18.EPlayer.src = _this18.tempFilePath;
            _this18.EPlayer.play();
2279
            console.log('oooGoSayooo');
Ken Nakahira committed
2280
            _this18.EPlayer.cb = CB;
2281
            var Rfunc = function Rfunc() {
Ken Nakahira committed
2282 2283
              console.log('Sarry', Sarry);
              if (_this18.jumping) {
xhw committed
2284 2285
                return;
              }
Ken Nakahira committed
2286
              _this18.jumping = true;
2287 2288
              FileSystemManager.unlink({
                filePath: that.tempFilePath,
xhw committed
2289
                success: function success(res) {
xhw committed
2290
                  // console.log('删除成功',res)
xhw committed
2291 2292
                },
                fail: function fail(err) {
xhw committed
2293
                  // console.error('删除失败', err);
Ken Nakahira committed
2294 2295
                }
              });
2296
              if (Sarry.length == 0) {
Ken Nakahira committed
2297 2298
                _this18.kill = true;
                if (_this18.Cobj2.content != '') {
2299 2300
                  setTimeout(function () {
                    // this.EPlayer.onEnded(Rfunc)
Ken Nakahira committed
2301
                    _this18.EPlayer.onended();
2302
                  }, 1000);
Ken Nakahira committed
2303
                  _this18.jumping = false;
2304
                  return;
Iteravse committed
2305
                }
2306
                if (CB) {
Ken Nakahira committed
2307
                  CB(_this18.Cobj2.Sr, true);
2308
                }
Ken Nakahira committed
2309
                _this18.jumping = false;
2310 2311 2312 2313 2314
                return;
              }
              var Sobj = Sarry.shift();
              if (Sobj.A == null) {
                CB(Sobj.S);
Ken Nakahira committed
2315
                _this18.jumping = false;
2316 2317
                Rfunc();
              } else {
Ken Nakahira committed
2318 2319 2320
                console.log('Checkpoint');
                _this18.str = Sobj.S;
                _this18.tempFilePath2 = wx.env.USER_DATA_PATH + "/tempAudio_".concat(new Date().getTime(), ".mp3");
2321 2322
                // const mark = that.Cobj2.Sr
                FileSystemManager.writeFile({
Ken Nakahira committed
2323
                  filePath: _this18.tempFilePath2,
2324 2325 2326
                  data: Sobj.A,
                  encoding: 'binary',
                  success: function success() {
Ken Nakahira committed
2327
                    _this18.tempFilePath = _this18.tempFilePath2;
2328
                    if (CB) CB(Sobj.S);
Ken Nakahira committed
2329 2330 2331 2332 2333
                    _this18.EPlayer = wx.createInnerAudioContext();
                    _this18.EPlayer.src = _this18.tempFilePath;
                    _this18.EPlayer.play();
                    _this18.EPlayer.onEnded(Rfunc);
                    _this18.EPlayer.onended = Rfunc;
2334
                  },
Ken Nakahira committed
2335 2336
                  fail: console.error
                });
2337
              }
Ken Nakahira committed
2338
              _this18.jumping = false;
xhw committed
2339
            };
Ken Nakahira committed
2340 2341 2342
            _this18.EPlayer.onEnded(Rfunc);
            _this18.EPlayer.onended = Rfunc;
            if (_this18.Cobj2.content != "") {
xhw committed
2343
              setTimeout(function () {
Ken Nakahira committed
2344 2345
                _this18.FetchAbuffer(_this18.Cobj2, voicer, Sarry, CB);
              }, 2000);
xhw committed
2346 2347
            }
          },
2348 2349
          fail: function fail(err) {
            console.log('GoSayuuu', err);
Ken Nakahira committed
2350 2351
          }
        });
Iteravse committed
2352
      }).catch(function (reason) {
2353 2354
        console.log('reason', reason);
      });
Ken Nakahira committed
2355 2356
    }
  }, "extractQuotedTexts", function extractQuotedTexts(str) {
2357 2358 2359 2360 2361 2362 2363 2364 2365
    // 正则表达式匹配引号内的文本,包括转义引号
    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
2366
    }
2367
    return matches.length == 0 ? [str] : matches;
Ken Nakahira committed
2368 2369 2370 2371
  })
};
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"]))
2372 2373 2374

/***/ }),

Ken Nakahira committed
2375 2376 2377 2378
/***/ 69:
/*!**************************************************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=0&id=57280228&scoped=true&lang=css& ***!
  \**************************************************************************************************************************/
2379 2380 2381 2382 2383
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
2384 2385 2386 2387
/* 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); 
2388 2389 2390

/***/ }),

Ken Nakahira committed
2391 2392 2393 2394
/***/ 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& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
2395 2396 2397 2398 2399 2400
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  
xhw committed
2401 2402 2403

/***/ }),

Ken Nakahira committed
2404 2405 2406 2407
/***/ 71:
/*!**************************************************************************************************************************!*\
  !*** /Users/kenji/Desktop/Intern/jueqing/pages/index/index.vue?vue&type=style&index=1&id=57280228&scoped=true&lang=css& ***!
  \**************************************************************************************************************************/
xhw committed
2408 2409 2410 2411 2412
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
Ken Nakahira committed
2413 2414 2415 2416
/* 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
2417 2418 2419

/***/ }),

Ken Nakahira committed
2420 2421 2422 2423
/***/ 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
2424 2425 2426 2427 2428 2429 2430 2431 2432
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

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

/***/ })

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