|
@@ -135,7 +135,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
"use strict";
|
|
-
|
|
|
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
value: true
|
|
@@ -147,6 +147,7 @@ exports.default = void 0;
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
+//
|
|
var _default = {
|
|
var _default = {
|
|
data: function data() {
|
|
data: function data() {
|
|
return {
|
|
return {
|
|
@@ -155,7 +156,7 @@ var _default = {
|
|
longitude: 125.86854,
|
|
longitude: 125.86854,
|
|
// 设置地图的经度
|
|
// 设置地图的经度
|
|
scale: 13,
|
|
scale: 13,
|
|
- covers: [{
|
|
|
|
|
|
+ markers: [{
|
|
id: 0,
|
|
id: 0,
|
|
latitude: 43.34931,
|
|
latitude: 43.34931,
|
|
longitude: 125.87221,
|
|
longitude: 125.87221,
|
|
@@ -205,9 +206,28 @@ var _default = {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
- methods: {}
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ // 点击标记点对应的气泡 播放多种语音类型的讲解
|
|
|
|
+ toTap: function toTap(e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ var innerAudioContext = uni.createInnerAudioContext();
|
|
|
|
+ innerAudioContext.autoplay = true;
|
|
|
|
+ innerAudioContext.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3';
|
|
|
|
+ innerAudioContext.onPlay(function () {
|
|
|
|
+ console.log('开始播放');
|
|
|
|
+ });
|
|
|
|
+ innerAudioContext.onError(function (res) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errMsg,
|
|
|
|
+ icon: 'error',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
exports.default = _default;
|
|
exports.default = _default;
|
|
|
|
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|