Explorar el Código

x x x x x x x x

Handy_Cao hace 2 años
padre
commit
2f71e37fd5

+ 1 - 1
GuangZuan/miniprogram/config/index.ts

@@ -1,5 +1,5 @@
 export const appConfig = {
-  version: '1.0.01',
+  version: '1.0.10',
   apiUrl: 'http://218.17.158.45:23015/cfg?key=test_gzzs',
   imgUrl: 'http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/'
 }

+ 5 - 0
GuangZuan/miniprogram/mHome/pages/cerserach/index.less

@@ -65,6 +65,11 @@
       height: 35px;
       margin-top: 10px;
     }
+
+    .clicpboard {
+      padding-bottom: 10px; 
+      text-decoration: underline;
+    }
   }
 }
 

+ 16 - 0
GuangZuan/miniprogram/mHome/pages/cerserach/index.ts

@@ -63,6 +63,22 @@ Page({
     })
   },
 
+  /// 复制粘贴板
+  setClipboard() {
+    /// 数据为空
+    if (this.data.paramAddress === '') {
+      return
+    }
+    wx.setClipboardData({
+      data: this.data.paramAddress,
+      success: (res) => {
+        console.log(res)
+        /// 已复制到粘贴板
+        showToast('已复制到粘贴板', 'success')
+      }
+    })
+  },
+
   /**
    * 获取证书地址参数查询
    */

+ 1 - 1
GuangZuan/miniprogram/mHome/pages/cerserach/index.wxml

@@ -30,7 +30,7 @@
     <!-- 证书类型 -->
     <text class="label">{{ config.certtype }}证书数据来源于官网,所有权归NGDTC所有。</text>
     <!-- 证书查询地址 -->
-    <text class="label" style="padding-bottom: 10px;" wx:if="{{ paramAddress != '' }}" user-select="{{ true }}">证书查询地址:{{ paramAddress }}</text>
+    <text class="clicpboard label" wx:if="{{ paramAddress != '' }}" bindtap="setClipboard">证书查询地址:{{ paramAddress }}</text>
   </view>
 </view>
 

+ 8 - 4
GuangZuan/miniprogram/mHome/pages/msg/msgdetail/index.ts

@@ -1,3 +1,5 @@
+import { formatDateString } from "../../../../utils/util"
+
 Page({
 
   /**
@@ -5,7 +7,9 @@ Page({
    */
   data: {
     /// 新闻信息
-    msg: {}
+    msg: <GuangZuan.Notice>{},
+    /// 时间
+    scheduletime: ''
   },
 
   /**
@@ -21,9 +25,9 @@ Page({
    */
   onLoad(options: any) {
     /// 传参信息
-    this.setData({
-      msg: JSON.parse(options.id ?? '')
-    })
+    this.setData({ msg: JSON.parse(options.id ?? '') })
+    /// 时间
+    this.setData({ scheduletime: formatDateString( this.data.msg.scheduletime )})
   },
 
   /**

+ 1 - 1
GuangZuan/miniprogram/mHome/pages/msg/msgdetail/index.wxml

@@ -7,6 +7,6 @@
 <!-- title -->
 <text class="title">{{ msg.title }}</text>
 <!-- date -->
-<text class="date">{{ msg.scheduletime }}</text>
+<text class="date">{{ scheduletime }}</text>
 <!-- content -->
 <text class="content">{{ msg.content }}</text>

+ 6 - 1
GuangZuan/miniprogram/mHome/pages/msg/msglist/index.ts

@@ -1,6 +1,7 @@
 import { queryNotice } from "../../../../services/api/common/index"
 import { loginid } from '../../../../services/utils'
 import { hideLoading, showLoading } from "../../../../utils/message/index"
+import { formatDateString } from "../../../../utils/util"
 
 Page({
 
@@ -56,7 +57,11 @@ Page({
           hideLoading(()=>{ 
             /// 加载成功
             this.setData({ 
-              msgs: res.data,
+              msgs: res.data.map(itm => {
+                var obj = itm
+                obj.scheduletime = formatDateString(itm.scheduletime)
+                return obj
+              }),
               isEmpty: res.data.length === 0
             }) 
           })

+ 2 - 2
GuangZuan/miniprogram/mMine/pages/myorders/his/index.wxml

@@ -11,9 +11,9 @@
       <van-tab wx:for="{{ ['买', '卖'] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" title="{{ itm }}"/>
     </van-tabs>  
     <text>从</text>
-    <van-button size="normal" id="startdate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{ startdate }}</van-button>
+    <van-button size="normal" id="startdate" custom-class="startdate" plain type="default" bind:click="onButtonPressed">{{ startdate }}</van-button>
     <text>到</text>
-    <van-button size="normal" id="enddate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{ enddate }}</van-button>
+    <van-button size="normal" id="enddate" custom-class="enddate" plain type="default" bind:click="onButtonPressed" >{{ enddate }}</van-button>
   </view>
 
   <!-- 列头 -->