12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- // index.js
- // 获取应用实例
- const app = getApp();
- Page({
- data: {
- swiperImgs: [
- "./images/5.png",
- "./images/6.png",
- "./images/7.png",
- "./images/1.png",
- ],
- show: false,
- showCard: false,
- },
- goSerch(){
- wx.navigateTo({
- url: '../serch-outcome/serch-outcome',
- })
- },
- CompleteInformation() {
- wx.navigateTo({
- url: '../new/new'
- })
- this.setData({
- show: !this.data.show,
- });
- },
- clickBtn(e) {
- console.log(e);
- if (this.data.showCard) {
- if (this.data.show) {
- this.setData({
- show: !this.data.show,
- showCard:!this.data.showCard,
- caiMing: "",
- caiCount: "",
- expire: "",
- imagePath: "",
- });
- }
- }
- },
- clickBtnDelete() {
- this.setData({
- show: !this.data.show,
- caiMing: "",
- caiCount: "",
- expire: "",
- imagePath: "",
- showCard: !this.data.showCard,
- });
- },
- // 事件处理函数
- bindViewTap() {
- wx.navigateTo({
- url: "../logs/logs",
- });
- },
- onLoad() {
- if (wx.getUserProfile) {
- this.setData({
- canIUseGetUserProfile: true,
- });
- }
- wx.setNavigationBarTitle({ title: "外卖小程序" });
- },
- });
|