进入到小程序首页就 提示小程序意外退出,请稍候重试 , 然后就闪退了;

这是页面的js

// pages/index/index.js

var app = getApp();

Page({


/**

  * 页面的初始数据

  */

data: {

indicatorDots: true,

autoplay: true,

interval: 5000,

duration: 1000,

toView: 'red',

scrollTop: 100,

config: [],

inputValue: '',

list:{},

slide:[],

},

bindInput: function (e) {

this.setData({

inputValue: e.detail.value

})

console.log('bindInput' + this.data.inputValue)

},

setSearchStorage: function (e) {


var id = e.target.dataset.key;


console.log(id)


wx.navigateTo({

url: '/pages/result/result?id=' + id

})


},

/**

  * 生命周期函数--监听页面加载

  */

getGoodsDetail: function (event) {

console.log(event);

var p = event.currentTarget.id


wx.navigateTo({ url: '/hckj_shopxcx/pages/detail/detail?id=' + p })

},

call: function (e) {


var tel = e.target.dataset.shoptel;

wx.makePhoneCall({

//phoneNumber: tel

phoneNumber: tel

})

},



nav:function(options){

wx.switchTab({

url: '/pages/card/card',

})

},

nav1: function (options) {

wx.switchTab({

url: '/pages/new/new',

})

},

getLists: function () {

var that = this;

app.util.request({

'url': 'https://xcx.0768000.cn/app/index.php?i=45&t=0&v=v1.0.1&from=wxapp&c=entry&a=wxapp&do=rc&m=hckj_shopxcx',

data: {

m: 'hckj_shopxcx',

},

success(res) {

console.log(res.data);

that.setData({


list : res.data.data


})

console.log("请求成功!");

},

fail(res) {


app.util.message(res.data.message, '', 'success')

}

})

},


getGoodsLists: function (event) {

console.log(event);

var p = event.currentTarget.id

console.log(p);

wx.navigateTo({ url: '/hckj_shopxcx/pages/list/list?id=' + p })

},


getIndexConfig: function (options) {

console.log(&#

展开全部
收起
0回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部