|
@@ -1,6 +1,6 @@
|
|
|
// pages/details/details.js
|
|
|
const getReq = require('./../../config.js').getReq
|
|
|
-
|
|
|
+let appInstance = getApp()
|
|
|
Page({
|
|
|
|
|
|
/**
|
|
@@ -217,7 +217,14 @@ Page({
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
onShow: function () {
|
|
|
-
|
|
|
+ if (appInstance.globalData.fcodeErr) {
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: appInstance.globalData.fcodeErr,
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ appInstance.globalData.fcodeErr = ''
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/**
|