Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
wanda-ball
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04627371
authored
May 27, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b0dae237
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
src/components/Detail.vue
+7
-6
src/pages/index/Shouye.vue
+11
-12
src/pages/user/User.vue
+6
-6
No files found.
src/components/Detail.vue
View file @
04627371
...
@@ -156,7 +156,8 @@ export default {
...
@@ -156,7 +156,8 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
`
${
api
.
indexHref
}
?shareId=
${
this
.
currentId
}
`
),
// url: encodeURI(`${api.indexHref}?shareId=${this.currentId}`),
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]),
type
:
1
type
:
1
}
}
})
})
...
@@ -178,7 +179,7 @@ export default {
...
@@ -178,7 +179,7 @@ export default {
// console.log('res.data.data');
// console.log('res.data.data');
// console.log(res);
// console.log(res);
wx
.
config
({
w
indow
.
w
x
.
config
({
debug
:
false
,
// 开启调试模式,
debug
:
false
,
// 开启调试模式,
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
...
@@ -187,8 +188,8 @@ export default {
...
@@ -187,8 +188,8 @@ export default {
jsApiList
:
listArr
jsApiList
:
listArr
});
});
wx
.
ready
(()
=>
{
w
indow
.
w
x
.
ready
(()
=>
{
wx
.
checkJsApi
({
w
indow
.
w
x
.
checkJsApi
({
jsApiList
:
listArr
,
jsApiList
:
listArr
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 以键值对的形式返回,可用的api值true,不可用为false
// 以键值对的形式返回,可用的api值true,不可用为false
...
@@ -207,7 +208,7 @@ export default {
...
@@ -207,7 +208,7 @@ export default {
}
}
}
}
wx
.
onMenuShareTimeline
(
shareData64onMenuShareTimeline
);
w
indow
.
w
x
.
onMenuShareTimeline
(
shareData64onMenuShareTimeline
);
// 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
// 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
var
shareData64onMenuShareAppMessage
=
{
var
shareData64onMenuShareAppMessage
=
{
...
@@ -225,7 +226,7 @@ export default {
...
@@ -225,7 +226,7 @@ export default {
}
}
};
};
wx
.
onMenuShareAppMessage
(
shareData64onMenuShareAppMessage
);
w
indow
.
w
x
.
onMenuShareAppMessage
(
shareData64onMenuShareAppMessage
);
// // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// wx.updateAppMessageShareData(
// wx.updateAppMessageShareData(
...
...
src/pages/index/Shouye.vue
View file @
04627371
...
@@ -139,7 +139,7 @@ import $ from 'jquery';
...
@@ -139,7 +139,7 @@ import $ from 'jquery';
// import store from './store';
// import store from './store';
import
PrizeBox
from
'../../components/PrizeBox'
;
import
PrizeBox
from
'../../components/PrizeBox'
;
import
store
from
'../../modules/store'
;
import
store
from
'../../modules/store'
;
import
wx
from
'weixin-js-sdk'
;
//
import wx from 'weixin-js-sdk';
import
TypeBox
from
'../../components/TypeBox'
;
import
TypeBox
from
'../../components/TypeBox'
;
// import { Swiper, SwiperItem } from 'vux'
// import { Swiper, SwiperItem } from 'vux'
import
{
Swipe
,
SwipeItem
}
from
'mint-ui'
;
import
{
Swipe
,
SwipeItem
}
from
'mint-ui'
;
...
@@ -547,7 +547,7 @@ export default {
...
@@ -547,7 +547,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
api
.
indexHref
),
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
type
:
1
type
:
1
}
}
})
})
...
@@ -562,9 +562,8 @@ export default {
...
@@ -562,9 +562,8 @@ export default {
'onMenuShareWeibo'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
'onMenuShareQZone'
];
];
window
.
wx
.
config
({
wx
.
config
({
debug
:
true
,
// 开启调试模式,
debug
:
false
,
// 开启调试模式,
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
res
.
nonceStr
,
// 必填,生成签名的随机串
nonceStr
:
res
.
nonceStr
,
// 必填,生成签名的随机串
...
@@ -572,8 +571,8 @@ export default {
...
@@ -572,8 +571,8 @@ export default {
jsApiList
:
listArr
jsApiList
:
listArr
});
});
wx
.
ready
(()
=>
{
w
indow
.
w
x
.
ready
(()
=>
{
wx
.
checkJsApi
({
w
indow
.
w
x
.
checkJsApi
({
jsApiList
:
listArr
,
jsApiList
:
listArr
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 以键值对的形式返回,可用的api值true,不可用为false
// 以键值对的形式返回,可用的api值true,不可用为false
...
@@ -588,7 +587,7 @@ export default {
...
@@ -588,7 +587,7 @@ export default {
success
:
function
()
{
}
success
:
function
()
{
}
}
}
wx
.
onMenuShareTimeline
(
data1
);
w
indow
.
w
x
.
onMenuShareTimeline
(
data1
);
// // 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
// // 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
var
data2
=
{
var
data2
=
{
...
@@ -604,10 +603,10 @@ export default {
...
@@ -604,10 +603,10 @@ export default {
}
}
}
}
wx
.
onMenuShareAppMessage
(
data2
);
w
indow
.
w
x
.
onMenuShareAppMessage
(
data2
);
// // // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// // // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// wx.updateAppMessageShareData(
// w
indow.w
x.updateAppMessageShareData(
// {
// {
// title: '万达篮球小冠军', // 分享标题
// title: '万达篮球小冠军', // 分享标题
// desc: _this.$randomText(), // 分享描述
// desc: _this.$randomText(), // 分享描述
...
@@ -702,7 +701,7 @@ export default {
...
@@ -702,7 +701,7 @@ export default {
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
'请求的错误'
);
console
.
log
(
'请求的错误'
);
//
console.log(err);
console
.
log
(
err
);
});
});
},
},
wangqizuopin
()
{
wangqizuopin
()
{
...
@@ -825,7 +824,7 @@ export default {
...
@@ -825,7 +824,7 @@ export default {
},
},
hiddenBar
()
{
hiddenBar
()
{
document
.
addEventListener
(
"WeixinJSBridgeReady"
,
function
onBridgeReady
()
{
document
.
addEventListener
(
"WeixinJSBridgeReady"
,
function
onBridgeReady
()
{
WeixinJSBridge
.
call
(
"hideToolbar"
);
// 隐藏底部状态栏
//
WeixinJSBridge.call("hideToolbar"); // 隐藏底部状态栏
// WeixinJSBridge.call("hideOptionMenu"); // 隐藏右上角的三个点的选项
// WeixinJSBridge.call("hideOptionMenu"); // 隐藏右上角的三个点的选项
// WeixinJSBridge.call("showToolbar"); // 显示底部状态栏
// WeixinJSBridge.call("showToolbar"); // 显示底部状态栏
// WeixinJSBridge.call("showOptionMenu"); // 显示右上角的三个点的选项
// WeixinJSBridge.call("showOptionMenu"); // 显示右上角的三个点的选项
...
...
src/pages/user/User.vue
View file @
04627371
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
axios
axios
.
get
(
'/contest/wechat/info'
,
{
.
get
(
'/contest/wechat/info'
,
{
params
:
{
params
:
{
url
:
encodeURI
(
api
.
indexHref
),
url
:
encodeURI
(
location
.
href
.
split
(
'#'
)[
0
]
),
type
:
1
type
:
1
}
}
})
})
...
@@ -181,7 +181,7 @@ export default {
...
@@ -181,7 +181,7 @@ export default {
'onMenuShareQZone'
'onMenuShareQZone'
];
];
wx
.
config
({
w
indow
.
w
x
.
config
({
debug
:
false
,
// 开启调试模式,
debug
:
false
,
// 开启调试模式,
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
...
@@ -190,8 +190,8 @@ export default {
...
@@ -190,8 +190,8 @@ export default {
jsApiList
:
listArr
jsApiList
:
listArr
});
});
wx
.
ready
(()
=>
{
w
indow
.
w
x
.
ready
(()
=>
{
wx
.
checkJsApi
({
w
indow
.
w
x
.
checkJsApi
({
jsApiList
:
listArr
,
jsApiList
:
listArr
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 以键值对的形式返回,可用的api值true,不可用为false
// 以键值对的形式返回,可用的api值true,不可用为false
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
success
:
function
()
{
}
success
:
function
()
{
}
}
}
wx
.
onMenuShareTimeline
(
data1
);
w
indow
.
w
x
.
onMenuShareTimeline
(
data1
);
// // 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
// // 获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
var
data2
=
{
var
data2
=
{
...
@@ -223,7 +223,7 @@ export default {
...
@@ -223,7 +223,7 @@ export default {
}
}
}
}
wx
.
onMenuShareAppMessage
(
data2
);
w
indow
.
w
x
.
onMenuShareAppMessage
(
data2
);
// // // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// // // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
// wx.updateAppMessageShareData(
// wx.updateAppMessageShareData(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment