You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.6 KiB

5 years ago
// pages/pbService/index.js
import commonApi from "../../utils/https/common"
let app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
5 years ago
jsj:null
5 years ago
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
5 years ago
commonApi._post("pbservice/Other/getClientConfig",{
unique_key: "wechatxcx"
}).then(res=>{
let data = JSON.parse(res.data);
console.log(data)
this.setData({
jsj:data.jiesongji
})
console.log(data)
})
5 years ago
},
gotoPath:function(e){
wx.navigateTo({
url: e.currentTarget.dataset.path,
})
5 years ago
if(e.currentTarget.dataset.title){
commonApi._post("browse/burying_point",{
uuid:app.globalData.uuid,
drive:"mini",
title:e.currentTarget.dataset.title
}).then(res=>{
})
}
5 years ago
},
5 years ago
jiesongji:function(){
if(!this.data.jsj) return;
wx.navigateToMiniProgram({
appId: this.data.jsj,
page:"page/home/webview/webview?hideShare=0&src=https%3A%2F%2Fopen.weixin.qq.com%2Fconnect%2Foauth2%2Fauthorize%3Fappid%3Dwx3827070276e49e30%26redirect_uri%3Dhttps%3A%2F%2Fwx.17u.cn%2Fflight%2Fgetopenid.html%3Furl%3Dhttps%25253A%25252F%25252Fwx.17u.cn%25252Finternalcarrebornwechat%25252Fview%25252Fmain.html%252523%25252FspecialCarIndex%25252FinstantCar%25253Frefid%25253D1563845199%26showwxpaytitle%3D1%26response_type%3Dcode%26scope%3Dsnsapi_base%26state%3D123%26connect_redirect%3D1%23wechat_redirect"
})
},
5 years ago
gotoUrl:function(e){
let url = e.currentTarget.dataset.url;
app.globalData.weburl = url;
wx.navigateTo({
url:"/pages/pbService/web/index"
})
},
gotoSku:function(){
commonApi.user_post("pbservice/Ztfw/sukangCode").then(res=>{
app.globalData.weburl = res.data.url;
wx.navigateTo({
url: '/pages/pbService/web/index'
})
return;
})
},
garbage:function(){
wx.navigateToMiniProgram({
appId: 'wx13be821f3b1afed3',
path:'pages/home/home'
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})