155 lines
3.4 KiB
JavaScript
155 lines
3.4 KiB
JavaScript
// pages/sorrounMerchant/sorrounMerchant.js
|
||
Page({
|
||
|
||
/**
|
||
* 页面的初始数据
|
||
*/
|
||
data: {
|
||
tabList:[
|
||
{
|
||
name:"餐饮美食",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon1.png",
|
||
url:"/packages/food/pages/food/food"
|
||
},
|
||
{
|
||
name:"蔬菜豆品",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon2.png",
|
||
url:"/packages/food/pages/food/food"
|
||
},
|
||
{
|
||
name:"水果果切",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon3.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"鲜花礼品",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon4.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"肉蛋水产",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon5.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"粮油调味",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon6.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"纸品家清",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon7.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"零食冲饮",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon8.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"母婴百货",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon9.png",
|
||
url:"/packages/food/pages/food/food"
|
||
|
||
},
|
||
{
|
||
name:"个体美妆",
|
||
img:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/sround/sorund_icon10.png",
|
||
url:"/packages/food/pages/food/food"
|
||
},
|
||
],
|
||
current:0,
|
||
},
|
||
|
||
jump(e){
|
||
wx.navigateTo({
|
||
url: e.currentTarget.dataset.url,
|
||
})
|
||
},
|
||
changeCurrent(e){
|
||
let that = this
|
||
that.setData({
|
||
current:e.currentTarget.dataset.idx
|
||
})
|
||
},
|
||
NotOpen(){
|
||
wx.showModal({
|
||
title: '提示',
|
||
content: '此功能暂未开通!',
|
||
showCancel:false,
|
||
complete: (res) => {
|
||
if (res.cancel) {
|
||
|
||
}
|
||
}
|
||
})
|
||
},
|
||
desc(){
|
||
let that =this
|
||
wx.navigateTo({
|
||
url: '/packages/food/pages/pay/pay',
|
||
})
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面加载
|
||
*/
|
||
onLoad(options) {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面初次渲染完成
|
||
*/
|
||
onReady() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面显示
|
||
*/
|
||
onShow() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面隐藏
|
||
*/
|
||
onHide() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 生命周期函数--监听页面卸载
|
||
*/
|
||
onUnload() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 页面相关事件处理函数--监听用户下拉动作
|
||
*/
|
||
onPullDownRefresh() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 页面上拉触底事件的处理函数
|
||
*/
|
||
onReachBottom() {
|
||
|
||
},
|
||
|
||
/**
|
||
* 用户点击右上角分享
|
||
*/
|
||
onShareAppMessage() {
|
||
|
||
}
|
||
}) |