Răsfoiți Sursa

feat(config): 更新开发环境配置

- 注释掉旧的开发服务器地址 http://192.168.1.166:8080
- 启用新的开发服务器地址 http://47.109.84.152:8081

fix(pages): 移除物流插件配置并修复JSON格式

- 移除订单详情页面的物流插件配置
- 修复pages.json文件的格式问题

feat(after-sales): 添加订单号复制功能

- 在售后详情页添加复制订单号和退款单号的功能
- 新增copyToClipboard方法用于复制文本到剪贴板
- 为订单号和退款单号添加复制图标点击事件

feat(router): 添加充电包页面路由

- 在路由类型定义中添加充电包首页路由
- 支持 /subPack-charge/index/index 页面导航
zhangtao 1 zi în urmă
părinte
comite
419b6d8785

+ 2 - 2
src/config/index.ts

@@ -2,12 +2,12 @@ const mapEnvVersion = {
   /**
    * 开发版
    */
-  develop: 'http://192.168.1.166:8080', // 张
+  // develop: 'http://192.168.1.166:8080', // 张
   // develop: 'http://192.168.1.101:8080',
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.1.89:8080', // 田
-  // develop: 'http://47.109.84.152:8081',
+  develop: 'http://47.109.84.152:8081',
   // develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版

+ 0 - 6
src/pages.json

@@ -148,12 +148,6 @@
           "style": {
             "navigationBarTitleText": "订单详情",
             "navigationStyle": "custom"
-          },
-          "plugins": {
-            "logisticsPlugin": {
-              "version": "2.1.12",
-              "provider": "wx9ad912bf20548d92"
-            }
           }
         },
         {

+ 8 - 2
src/subPack-common/afterSalesDetail/index.vue

@@ -27,6 +27,12 @@ async function handleCancel() {
   await handleCommonRefundOrderCancel(refundNumber.value)
   getDetail(refundNumber.value)
 }
+function copyToClipboard(text: string) {
+  uni.setClipboardData({
+    data: text,
+    showToast: true,
+  })
+}
 </script>
 
 <template>
@@ -274,7 +280,7 @@ async function handleCancel() {
             <text class="text-#222">
               {{ refundOrderInfo.orderNumber }}
             </text>
-            <view class="ml10rpx">
+            <view class="ml10rpx" @click="copyToClipboard(refundOrderInfo.orderNumber as string)">
               <wd-icon name="file-copy" size="22px" />
             </view>
           </view>
@@ -287,7 +293,7 @@ async function handleCancel() {
             <text class="text-#222">
               {{ refundNumber }}
             </text>
-            <view class="ml10rpx">
+            <view class="ml10rpx" @click="copyToClipboard(refundNumber)">
               <wd-icon name="file-copy" size="22px" />
             </view>
           </view>

+ 2 - 1
src/uni-pages.d.ts

@@ -28,7 +28,8 @@ type _LocationUrl =
   "/subPack-common/revalue/index" |
   "/subPack-common/revalueSuccess/index" |
   "/subPack-common/user-center/index" |
-  "/subPack-smqjh/order/index";
+  "/subPack-smqjh/order/index" |
+  "/subPack-charge/index/index";
 
 interface NavigateToOptions {
   url: _LocationUrl;