| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import {
- imgServerUrl
- } from '../../config/config.js'
- import {
- showToast
- } from '../../utils/tips.js'
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- imgServerUrl: imgServerUrl,
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- },
- toclear(){
- wx.showModal({
- title: '清除缓存',
- content: '是否清除所有缓存内容',
- success(res) {
- if (res.confirm) {
- try {
- wx.clearStorage()
- wx.clearStorageSync()
- showToast('清除成功')
- } catch (e) {
- // Do something when catch error
- }
- } else if (res.cancel) {
- console.log('用户点击取消')
- }
- }
- })
- },
- toabout(){
- wx.navigateTo({
- url: '../about/index',
- })
- }
- })
|