Browse Source

文件优化

h5_css
yanyan 3 years ago
parent
commit
1d6da02749
  1. 4
      main.js
  2. 5
      manifest.json
  3. 3
      pages/scan/scan.vue
  4. BIN
      static/videos/video1/video1.mp4
  5. BIN
      static/videos/video1/video1.ogg
  6. BIN
      static/videos/video1/video1.webm
  7. BIN
      static/videos/video2/video2.mp4
  8. BIN
      static/videos/video3/video3.mp4
  9. 11
      subpkg/complete/complete.vue
  10. 4
      utils/config.js

4
main.js

@ -13,8 +13,8 @@ import * as filters from '@/utils/formatFilter'
uni.$http = $http uni.$http = $http
Vue.prototype.$api = api Vue.prototype.$api = api
// $http.baseUrl = 'http://146.56.223.227:9527' $http.baseUrl = 'http://146.56.223.227:9527'
$http.baseUrl = 'http://localhost:85' // $http.baseUrl = 'http://localhost:85'
$http.beforeRequest = function(options) { $http.beforeRequest = function(options) {
uni.showLoading({ uni.showLoading({

5
manifest.json

@ -16,7 +16,10 @@
"autoclose" : true, "autoclose" : true,
"delay" : 0 "delay" : 0
}, },
"modules" : {}, "modules" : {
"Barcode" : {},
"Camera" : {}
},
/* 模块配置 */ /* 模块配置 */
"distribute" : { "distribute" : {
/* 应用发布信息 */ /* 应用发布信息 */

3
pages/scan/scan.vue

@ -27,11 +27,10 @@
methods: { methods: {
QR() { QR() {
uni.scanCode({ uni.scanCode({
onlyFromCamera: true,
success: (res) => { success: (res) => {
console.log('扫描二维码成功,结果:' + res.result); console.log('扫描二维码成功,结果:' + res.result);
}, },
error: (res) => { fail: (res) => {
console.log('扫描二维码出现错误') console.log('扫描二维码出现错误')
} }
}) })

BIN
static/videos/video1/video1.mp4

Binary file not shown.

BIN
static/videos/video1/video1.ogg

Binary file not shown.

BIN
static/videos/video1/video1.webm

Binary file not shown.

BIN
static/videos/video2/video2.mp4

Binary file not shown.

BIN
static/videos/video3/video3.mp4

Binary file not shown.

11
subpkg/complete/complete.vue

@ -23,7 +23,7 @@
</view> </view>
<view class="perinfo"> <view class="perinfo">
<view class="myitem"> <view class="myitem">
<span>炫耀一下</span> <span><button open-type="share"></button>炫耀一下</span>
<span>演练回顾</span> <span>演练回顾</span>
<span @click="reChallenge()">重新挑战</span> <span @click="reChallenge()">重新挑战</span>
</view> </view>
@ -42,6 +42,15 @@
"ask":"", "ask":"",
"answer":"", "answer":"",
}; };
},
onShareAppMessage(res) {
if (res.from === 'button') {// 来自页面内分享按钮
console.log(res.target)
}
return {
title: '自定义分享标题',
path: '/pages/home/home'
}
}, },
onLoad(options) { onLoad(options) {
this.roleId = options.roleId this.roleId = options.roleId

4
utils/config.js

@ -1,3 +1,3 @@
// let url_config = 'http://146.56.223.227:9527/' let url_config = 'http://146.56.223.227:9527/'
let url_config = 'http://localhost:85/' // let url_config = 'http://localhost:85/'
export default url_config export default url_config
Loading…
Cancel
Save