export default {
name: "getopenid",
data(){
return {
}
},
methods:{
/**
* 获取URL参数
* @returns {Object}
*/
getUrlCode(){
var url = location.search
var theRequest = new Object()
if (url.indexOf("?") != -1){
var str = url.substr(1)
var strs = str.split("&")
for(var i = 0; i < strs.length; i ++){
theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1])
}
}
return theRequest
},
},
mounted() {
var local = window.location.href; // 获取页面url
var appid = '你的app ID ';
this.code = this.getUrlCode().code;// 截取code
this.course_id = this.$route.params.courseId;
this.order_no = t
06-22
1万+

06-05
3946

05-25
4650

11-27
11-02
1032
