|
- // c:\Users\56817\Desktop\Working Space\3,TikTok-MiniPro\ttc\pages2\shopSelect\shopSelect.js
- Page({
- data: {
- isShop: true,
- position: 0,
- tagArr: [],
- currentTag: ""
- },
- onLoad: function (options) {
- const tagArr = ['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']
- this.setData({
- tagArr
- })
- },
-
- selectCity() {
- this.setData({
- isShop: false
- })
- },
-
- selectShop() {
- this.setData({
- isShop: true
- })
- },
-
- indexBarMove(e) {
-
- },
-
- tagBind(e) {
- const that = this
- tt.hideToast({
- success: (res) => {
- const id = e.target.id
- that.setData({
- currentTag: id
- })
- tt.showToast({
- title: id,
- icon: "none",
- duration: 1000
- });
- },
- });
-
- },
- })
|