Просмотр исходного кода

fix(config): 修复配置注释和位置获取逻辑

- 取消了测试代理develop地址的注释,使其恢复为有效配置
- 注释掉了一个develop地址以切换使用的环境
- 在位置获取成功后添加了坐标注释,但未启用
- 在非微信小程序端隐藏加载提示
- 调整微信支付相关代码的条件编译块位置以确保正确执行支付流程
- 删除manifest.json文件末尾多余空行
zhangtao 18 часов назад
Родитель
Сommit
90cda9f9af

+ 2 - 2
src/config/index.ts

@@ -11,10 +11,10 @@ const mapEnvVersion = {
   // develop: 'http://192.168.0.11:8081', // 王
   // develop: 'http://192.168.1.21:8080', // 田
   // develop: 'http://74949mkfh190.vicp.fun', // 付
-  develop: 'http://47.109.84.152:8081', // 测试代理
+  // develop: 'http://47.109.84.152:8081', // 测试代理
   // develop: 'https://5ed0f7cc.r9.vip.cpolar.cn',
   // develop: 'https://25740642.r3.cpolar.top',
-  // develop: 'https://smqjh.api.zswlgz.com',
+  develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版
    */

+ 3 - 0
src/store/address.ts

@@ -67,6 +67,9 @@ export const useAddressStore = defineStore('address', {
           console.log('位置获取成功', res)
           this.Location.latitude = res.latitude
           this.Location.longitude = res.longitude
+          // this.Location.latitude = 26.5919
+          // this.Location.longitude = 106.621
+
           // #ifndef MP-WEIXIN
           uni.hideLoading()
           // #endif

+ 1 - 1
src/subPack-smqjh/components/xsb-orderList/xsb-orderList.vue

@@ -23,8 +23,8 @@ async function handleCancel(order: Api.xsbOrderList) {
 async function handlePay(orderNumber: string) {
   const payMent = await useUserStore().getPayMent(orderNumber)
   if (payMent?.payType !== 'point' && payMent) {
-    const res = await useUserStore().handleCommonPayMent(orderNumber)
     // #ifdef MP-WEIXIN
+    const res = await useUserStore().handleCommonPayMent(orderNumber)
     await useUserStore().getWxCommonPayment(res)
     _emit('refresh')
     // #endif