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
      processingDialogue: false,
Ken Nakahira committed
715 716
      quotedData: []
    };
xhw committed
717
  },
718 719 720 721
  computed: {
    dots: function dots() {
      var numDots = this.count % 4;
      return '.'.repeat(numDots) + ' '.repeat(3 - numDots);
Ken Nakahira committed
722 723
    }
  },
xhw committed
724
  beforeDestroy: function beforeDestroy() {
725
    clearInterval(this.timerConsider);
xhw committed
726 727 728
    if (this.socketTask) {
      this.socketTask.close(); // 关闭 WebSocket 连接
      this.socketTask = null; // 清空 WebSocket 对象
729
      console.log('socketTask 断开');
xhw committed
730 731 732 733 734 735 736 737 738
    }
    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
739 740
  mounted: function mounted() {
    var _this = this;
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
    // 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
762 763
                }
              });
764
            }
Ken Nakahira committed
765 766 767 768
          }
        });
      }
    });
xhw committed
769 770
    console.log(uni.getStorageSync('userName'));
    this.userInputName = uni.getStorageSync('userName');
771 772 773 774 775 776
    // const obj = getApp().globalData.shareObject;
    // console.log('首页传来的数据',obj)
    //保存用户的余额显示 物品栏的道具显示

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

xhw committed
780 781
    //讲完话以后 向服务器发送数据
    recorderManager.onStop(function (res) {
782
      console.log('讲完话了', res);
xhw committed
783 784 785 786 787 788 789 790 791
      // 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
792 793 794
        'Cookie': "".concat(uni.getStorageSync('session_token'))
      }
    }).then(function (result) {
xhw committed
795 796 797 798 799
      // console.log(response[1])
    }).catch(function (errs) {
      console.log(errs);
    });

800 801 802 803 804 805 806 807
    //获取真声所以人物声线
    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
808 809 810
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    }).then(function (response) {
811 812
      console.log('response', response);
      var arrInput = response[1].data.names;
Ken Nakahira committed
813 814 815 816 817 818
      _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];
      }));
819 820 821
    }).catch(function (errs) {
      console.log('errs', errs);
    });
xhw committed
822
  },
823 824
  onLoad: function onLoad(options) {
    uni.setInnerAudioOption({
Ken Nakahira committed
825 826
      obeyMuteSwitch: false
    });
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846
    // 解码参数
    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
847
  methods: (0, _defineProperty2.default)({
xhw committed
848 849
    shareToTimeline: function shareToTimeline() {
      uni.share({
Ken Nakahira committed
850 851 852 853 854 855 856 857
        provider: 'weixin',
        // 分享服务提供商,weixin表示微信
        title: '世界推演',
        // 分享的标题
        summary: '你爱我,我爱你,蜜雪冰城甜蜜蜜!',
        // 分享的摘要
        imageUrl: 'https://admin.mindepoch.com:8089/worlds/default.jpg',
        // 分享的图片链接,可选
xhw committed
858 859 860 861 862 863 864 865 866 867 868 869
        // query: '分享的查询参数', // 分享的查询参数,可选
        success: function success(res) {
          // 分享成功的回调
          console.log('分享成功', res);
        },
        fail: function fail(err) {
          // 分享失败的回调
          console.error('分享失败', err);
        },
        complete: function complete() {
          // 分享结束的回调(成功、失败都会执行)
          console.log('分享结束');
Ken Nakahira committed
870 871
        }
      });
xhw committed
872 873 874 875 876
    },
    handlConnects: function handlConnects() {
      this.socketConnect();
      this.ttf = false;
    },
877 878 879 880 881 882 883 884 885 886 887 888 889 890
    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
891 892
      var _this2 = this;
      // 结算当前语音的递归 进行下一次语音
893
      // this.EPlayer.onEnded()
Ken Nakahira committed
894 895 896 897 898
      this.$nextTick(function () {
        _this2.jumping = true;
        clearInterval(_this2.Strem);
        if (_this2.EPlayer) {
          _this2.EPlayer.stop();
Ken Nakahira committed
899
        }
Ken Nakahira committed
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
        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
915 916 917 918 919 920 921 922 923
    },
    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
924
          fn.apply(context, args);
Ken Nakahira committed
925 926 927 928 929
        }, gapTime);
      };
    },
    created: function created() {
      // Bind the debounced version of nextTips
Ken Nakahira committed
930
      this.debouncedNextTips = this.debounce(this.nextTips, 750);
Ken Nakahira committed
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 957
    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
958
    scrollToBottom: function scrollToBottom() {
Ken Nakahira committed
959
      var _this3 = this;
960 961 962
      uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
        // console.log('res',res,this.historyRecord.length)
        if (res) {
Ken Nakahira committed
963
          _this3.scrollTop = res.height;
964
        } else {
Ken Nakahira committed
965
          _this3.scrollTop = _this3.historyRecord.length * 1000;
966 967 968
        }
      }).exec();
    },
Ken Nakahira committed
969
    scrollToBottom_pangbai: function scrollToBottom_pangbai() {
Ken Nakahira committed
970
      var _this4 = this;
Ken Nakahira committed
971
      this.$nextTick(function () {
Ken Nakahira committed
972
        uni.createSelectorQuery().in(_this4).select('#scrollView').boundingClientRect(function (res) {
Ken Nakahira committed
973
          if (res) {
Ken Nakahira committed
974
            _this4.scrollTop_pangbai = res.height * 2;
Ken Nakahira committed
975 976 977 978 979 980 981 982 983 984 985 986 987 988
          } 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;
989 990 991 992 993 994 995 996 997
    },
    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
998 999 1000 1001
            result.push({
              text: currentText,
              quoted: true
            });
1002 1003 1004 1005
            currentText = '';
            quoted = false;
          } else {
            if (currentText.trim() !== '') {
Ken Nakahira committed
1006 1007 1008 1009
              result.push({
                text: currentText,
                quoted: false
              });
1010 1011 1012 1013 1014 1015 1016 1017 1018
              currentText = '';
            }
            quoted = true;
          }
        } else {
          currentText += char;
        }
      }
      if (currentText.trim() !== '') {
Ken Nakahira committed
1019 1020 1021 1022
        result.push({
          text: currentText,
          quoted: quoted
        });
1023 1024 1025
      }
      return result;
    },
Ken Nakahira committed
1026
    handleSendMoney: function handleSendMoney() {
Ken Nakahira committed
1027
      var _this5 = this;
xhw committed
1028 1029 1030
      if (this.inputMoney == "" && this.inputMoney.trim() == "") {
        uni.showToast({
          title: '金额不可为空!',
Ken Nakahira committed
1031 1032
          icon: 'none'
        });
xhw committed
1033 1034 1035 1036 1037 1038
      } else {
        this.inputVal = '我向她发送了红包' + this.inputMoney + '元';
        //向服务器发请求
        this.socketTask.send({
          data: JSON.stringify({
            type: 0,
Ken Nakahira committed
1039 1040
            content: '我向她发送了红包' + this.inputMoney + '元'
          }),
xhw committed
1041 1042
          success: function success() {
            console.log('消息发送成功');
Ken Nakahira committed
1043
            _this5.loading = true;
xhw committed
1044 1045 1046 1047 1048 1049
            // uni.showLoading({
            // 	title: '思考中...',
            // 	mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
            // });
            var str = '对方正在输入...';
            var i = 6;
Ken Nakahira committed
1050
            _this5.timer = setInterval(function () {
xhw committed
1051 1052 1053 1054 1055 1056
              if (i < 10) {
                i += 1;
              } else {
                i = 6;
              }
              uni.setNavigationBarTitle({
Ken Nakahira committed
1057 1058
                title: str.substr(0, i)
              });
xhw committed
1059
            }, 400);
Ken Nakahira committed
1060 1061
          }
        });
xhw committed
1062 1063 1064
        this.$refs.popup.close();
      }
    },
1065 1066 1067 1068
    extractText: function extractText(content) {
      var input = content.replaceAll("“", "\"").replaceAll("”", "\"");
      // 正则表达式,用于匹配双引号内的文字
      var insideQuotes = input.match(/"([^"]*)"/g);
Ken Nakahira committed
1069 1070 1071
      var insideQuotesText = insideQuotes ? insideQuotes.map(function (text) {
        return " ' " + text.replace(/"/g, '') + " ' ";
      }) : [];
1072 1073

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

1999
      var arrObj = data;
Ken Nakahira committed
2000
      console.log('arrObj_execFile', arrObj);
2001
      var content = arrObj[0].text;
xhw committed
2002 2003
      var voicer = arrObj[0].voicer;
      this.GoSay(content, voicer, function (text, falg) {
Ken Nakahira committed
2004 2005 2006
        if (!arrObj || arrObj.length == 0) {
          return;
        }
xhw committed
2007
        if (arrObj[0].quoted) {
2008
          if (text !== "" && !falg) {
Ken Nakahira committed
2009 2010
            console.log('Quote Added');
            _this15.glod_dp = true;
xhw committed
2011
            // this.glod_user = false
Ken Nakahira committed
2012 2013
            _this15.yyds_dp = text;
            _this15.yyds_pangbai += " “ " + text + " ” ";
2014 2015
          }
          if (falg) {
xhw committed
2016
            console.log('GoSound讲话完毕!');
2017 2018 2019
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
Ken Nakahira committed
2020
              _this15.execFile(arrObj);
2021 2022
            }
          }
xhw committed
2023
        } else {
2024
          if (text !== "" && !falg) {
Ken Nakahira committed
2025 2026
            _this15.kill = false;
            _this15.delayText(text);
2027 2028
          }
          if (falg) {
xhw committed
2029
            console.log('GoSay讲话完毕!');
Ken Nakahira committed
2030
            _this15.kill = true;
2031 2032 2033
            arrObj.shift();
            console.log('arrObj', arrObj);
            if (arrObj.length !== 0) {
Ken Nakahira committed
2034
              _this15.execFile(arrObj);
2035 2036
            }
          }
xhw committed
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 2080
        }
      });

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

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

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ })

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