@@ -19,7 +19,7 @@ App({
console.log(res)
// 发送 res.code 到后台换取 openId, sessionKey, unionId
wx.request({
- url: 'https://test.scxjc.club/api/openid',
+ url: 'https://caos.tederen.com/api/openid',
method: 'GET',
data: {
code: res.code
@@ -41,7 +41,7 @@ App({
},
globalData: {
userInfo: null,
- host:'https://test.scxjc.club',
+ host:'https://caos.tederen.com/',
openid: '',
}
})
@@ -41,6 +41,9 @@ Page({
// }else{
// this.getData1()
// }
+ if (e.target.dataset.id == 2){
+ this.toknowledge()
+ }
search:function(e){
this.setData({
@@ -159,6 +162,23 @@ Page({
+ toknowledge(){
+ this.setData({
+ isJp: false
+ })
+ wx.navigateToMiniProgram({
+ appId: 'wxb2b094cfad8a8e6f',
+ path: 'pages/index/index',
+ extarData: {
+ open: 'auth'
+ },
+ envVersion: 'release',
+ success(res) {
+ // 打开成功
+ console.log('打开成功');
+ });
/**
* 生命周期函数--监听页面初次渲染完成
*/
@@ -41,7 +41,7 @@
"compileType": "miniprogram",
"libVersion": "2.15.0",
- "appid": "wx2938132b773c7b5a",
+ "appid": "wx8d8b8144327166d8",
"projectname": "zkyxcx",
"debugOptions": {
"hidedInDevtools": []