230320a303 пре 6 месеци
родитељ
комит
a45703a407
2 измењених фајлова са 20 додато и 0 уклоњено
  1. 10 0
      src/components/footer/index.js
  2. 10 0
      src/pages/index/index.jsx

+ 10 - 0
src/components/footer/index.js

@@ -151,6 +151,16 @@ export default class Footer extends Component {
     if (edClick) {
       if (edClick <= twentyFourHoursAgo) {
         Taro.removeStorageSync('APP_edClick')
+        const themeObj = Taro.getStorageSync('APP_themeObj')
+        if (themeObj.header_bg && themeObj.header_bg.length > 0 && themeObj.header_bg[0].option1) {
+          Taro.setClipboardData({
+            data: themeObj.header_bg[0].option1,
+            success: function() {
+              Taro.hideToast()
+              Taro.setStorageSync('APP_edClick', currentTime)
+            }
+          })
+        }
       }
     } else {
       const themeObj = Taro.getStorageSync('APP_themeObj')

+ 10 - 0
src/pages/index/index.jsx

@@ -938,6 +938,16 @@ class Index extends Component {
     if (edClick) {
       if (edClick <= twentyFourHoursAgo) {
         Taro.removeStorageSync('APP_edClick')
+        const themeObj = Taro.getStorageSync('APP_themeObj')
+        if (themeObj.header_bg && themeObj.header_bg.length > 0 && themeObj.header_bg[0].option1) {
+          Taro.setClipboardData({
+            data: themeObj.header_bg[0].option1,
+            success: function() {
+              Taro.hideToast()
+              Taro.setStorageSync('APP_edClick', currentTime)
+            }
+          })
+        }
       }
     } else {
       const themeObj = Taro.getStorageSync('APP_themeObj')