fix:修复设备详情页显示bug

This commit is contained in:
2025-07-29 10:21:49 +08:00
parent a4d0bd4f71
commit f7ed3fedb3
10 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
export const URL = "https://my.gxfs123.com/api" //正式服务器
// export const URL = "https://my.gxfs123.com/api" //正式服务器
// export const URL = "https://unifans.gxfs123.com/api" //测试服务器
// export const URL = "http://192.168.10.31:8080" //本地调试
export const URL = "http://192.168.10.31:8080" //本地调试
export const appid = "wx2165f0be356ae7a9" //小程序appid
+2 -2
View File
@@ -123,9 +123,9 @@
<text class="credit-score">550分及以上优享</text>
</view>
</view>
<!-- <view class="" style="align-items: center;align-content: center;text-align: center;line-height: 50rpx;"
<view class="" style="align-items: center;align-content: center;text-align: center;line-height: 50rpx;"
@click="handleRent('wx-pay')">
无法免押点这里></view> -->
无法免押点这里></view>
</view>
<!-- 手机号授权弹窗 -->
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
<view class="container data-v-45fad95c"><view class="device-header data-v-45fad95c"><view class="{{['device-status-card', 'data-v-45fad95c', b]}}"><view class="status-indicator data-v-45fad95c"></view><text class="status-text data-v-45fad95c">{{a}}</text></view><view class="device-title data-v-45fad95c"><text class="name data-v-45fad95c">共享风扇</text><view class="device-meta data-v-45fad95c"><text class="id-label data-v-45fad95c">设备号:</text><text class="id-value data-v-45fad95c">{{c}}</text></view></view></view><view class="card device-info-card data-v-45fad95c"><view class="card-row data-v-45fad95c"><view class="card-item data-v-45fad95c"><view class="item-icon location-icon data-v-45fad95c"><image class="data-v-45fad95c" src="{{d}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-45fad95c"><text class="item-label data-v-45fad95c">当前位置</text><text class="item-value data-v-45fad95c">{{e}}</text></view></view><view class="card-item data-v-45fad95c"><view class="{{['item-icon', 'battery-icon', 'data-v-45fad95c', g && 'battery-low']}}"><image class="data-v-45fad95c" src="{{f}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-45fad95c"><text class="item-label data-v-45fad95c">电池电量</text><text class="item-value data-v-45fad95c">{{h}}%</text></view></view></view></view><view class="card pricing-card data-v-45fad95c"><view class="card-header data-v-45fad95c"><text class="card-title data-v-45fad95c">计费规则</text></view><view class="pricing-banner data-v-45fad95c"><view class="pricing-main data-v-45fad95c"><text class="price data-v-45fad95c">¥{{i}}</text><text class="unit data-v-45fad95c">/小时</text></view><text class="cap-price data-v-45fad95c">封顶 ¥{{j}}</text></view><view class="pricing-rules data-v-45fad95c"><view class="rule-item data-v-45fad95c"><view class="rule-dot data-v-45fad95c"></view><text class="rule-text data-v-45fad95c">不足60分钟按60分钟计费</text></view><view class="rule-item data-v-45fad95c"><view class="rule-dot data-v-45fad95c"></view><text class="rule-text data-v-45fad95c">持续计费至99元视为买断</text></view></view></view><view class="card notice-card data-v-45fad95c"><view class="card-header data-v-45fad95c"><text class="card-title data-v-45fad95c">使用须知</text></view><view class="notice-items data-v-45fad95c"><view class="notice-item data-v-45fad95c"><view class="notice-dot data-v-45fad95c"></view><text class="notice-text data-v-45fad95c">请在使用前检查设备是否完好</text></view><view class="notice-item data-v-45fad95c"><view class="notice-dot data-v-45fad95c"></view><text class="notice-text data-v-45fad95c">请在指定区域内使用设备</text></view><view class="notice-item data-v-45fad95c"><view class="notice-dot data-v-45fad95c"></view><text class="notice-text data-v-45fad95c">归还时请确保设备完好,避免损坏</text></view></view></view><view class="footer data-v-45fad95c"><button class="{{['rent-button', 'data-v-45fad95c', l && 'return-button']}}" bindtap="{{m}}"><text class="data-v-45fad95c">{{k}}</text></button><view class="wechat-credit data-v-45fad95c"><image src="{{n}}" mode="aspectFit" class="wx-icon data-v-45fad95c"></image><view class="credit-text data-v-45fad95c"><text class="data-v-45fad95c">微信支付分</text><text class="credit-divider data-v-45fad95c">|</text><text class="credit-score data-v-45fad95c">550分及以上优享</text></view></view></view><view wx:if="{{o}}" class="phone-auth-popup data-v-45fad95c"><view class="popup-mask data-v-45fad95c" catchtap="{{p}}"></view><view class="popup-content data-v-45fad95c"><view class="popup-header data-v-45fad95c"><text class="popup-title data-v-45fad95c">授权获取手机号</text></view><view class="popup-body data-v-45fad95c"><view class="auth-desc data-v-45fad95c"><text class="data-v-45fad95c">为了提供更好的服务,需要授权获取您的手机号</text></view><button class="auth-btn data-v-45fad95c" open-type="getPhoneNumber" bindgetphonenumber="{{q}}"> 一键获取手机号 </button><view class="auth-cancel data-v-45fad95c" bindtap="{{r}}"><text class="data-v-45fad95c">暂不授权</text></view></view></view></view></view>
<view class="container data-v-44067fec"><view class="device-header data-v-44067fec"><view class="{{['device-status-card', 'data-v-44067fec', b]}}"><view class="status-indicator data-v-44067fec"></view><text class="status-text data-v-44067fec">{{a}}</text></view><view class="device-title data-v-44067fec"><text class="name data-v-44067fec">共享风扇</text><view class="device-meta data-v-44067fec"><text class="id-label data-v-44067fec">设备号:</text><text class="id-value data-v-44067fec">{{c}}</text></view></view></view><view class="card device-info-card data-v-44067fec"><view class="card-row data-v-44067fec"><view class="card-item data-v-44067fec"><view class="item-icon location-icon data-v-44067fec"><image class="data-v-44067fec" src="{{d}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-44067fec"><text class="item-label data-v-44067fec">当前位置</text><text class="item-value data-v-44067fec">{{e}}</text></view></view><view class="card-item data-v-44067fec"><view class="{{['item-icon', 'battery-icon', 'data-v-44067fec', g && 'battery-low']}}"><image class="data-v-44067fec" src="{{f}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-44067fec"><text class="item-label data-v-44067fec">电池电量</text><text class="item-value data-v-44067fec">{{h}}%</text></view></view></view></view><view class="card pricing-card data-v-44067fec"><view class="card-header data-v-44067fec"><text class="card-title data-v-44067fec">计费规则</text></view><view class="pricing-banner data-v-44067fec"><view class="pricing-main data-v-44067fec"><text class="price data-v-44067fec">¥{{i}}</text><text class="unit data-v-44067fec">/小时</text></view><text class="cap-price data-v-44067fec">封顶 ¥{{j}}</text></view><view class="pricing-rules data-v-44067fec"><view wx:for="{{k}}" wx:for-item="rule" wx:key="b" class="rule-item data-v-44067fec"><view class="rule-dot data-v-44067fec"></view><text class="rule-text data-v-44067fec">{{rule.a}}</text></view></view></view><view class="card notice-card data-v-44067fec"><view class="card-header data-v-44067fec"><text class="card-title data-v-44067fec">使用须知</text></view><view class="notice-items data-v-44067fec"><view wx:for="{{l}}" wx:for-item="notice" wx:key="b" class="notice-item data-v-44067fec"><view class="notice-dot data-v-44067fec"></view><text class="notice-text data-v-44067fec">{{notice.a}}</text></view></view></view><view class="footer data-v-44067fec"><button class="{{['rent-button', 'data-v-44067fec', n && 'return-button']}}" bindtap="{{o}}"><text class="data-v-44067fec">{{m}}</text></button><view class="wechat-credit data-v-44067fec"><image src="{{p}}" mode="aspectFit" class="wx-icon data-v-44067fec"></image><view class="credit-text data-v-44067fec"><text class="data-v-44067fec">微信支付分</text><text class="credit-divider data-v-44067fec">|</text><text class="credit-score data-v-44067fec">550分及以上优享</text></view></view></view><view wx:if="{{q}}" class="phone-auth-popup data-v-44067fec"><view class="popup-mask data-v-44067fec" catchtap="{{r}}"></view><view class="popup-content data-v-44067fec"><view class="popup-header data-v-44067fec"><text class="popup-title data-v-44067fec">授权获取手机号</text></view><view class="popup-body data-v-44067fec"><view class="auth-desc data-v-44067fec"><text class="data-v-44067fec">为了提供更好的服务,需要授权获取您的手机号</text></view><button class="auth-btn data-v-44067fec" open-type="getPhoneNumber" bindgetphonenumber="{{s}}"> 一键获取手机号 </button><view class="auth-cancel data-v-44067fec" bindtap="{{t}}"><text class="data-v-44067fec">暂不授权</text></view></view></view></view></view>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"url.js","sources":["config/url.js"],"sourcesContent":["export const URL = \"https://my.gxfs123.com/api\" //正式服务器\r\n// export const URL = \"https://unifans.gxfs123.com/api\" //测试服务器\r\n// export const URL = \"http://192.168.10.31:8080\" \t\t//本地调试\r\n\r\nexport const appid = \"wx2165f0be356ae7a9\" //小程序appid"],"names":[],"mappings":";AAAY,MAAC,MAAM;AAIP,MAAC,QAAQ;;;"}
{"version":3,"file":"url.js","sources":["config/url.js"],"sourcesContent":["// export const URL = \"https://my.gxfs123.com/api\" //正式服务器\r\n// export const URL = \"https://unifans.gxfs123.com/api\" //测试服务器\r\nexport const URL = \"http://192.168.10.31:8080\" \t\t//本地调试\r\n\r\nexport const appid = \"wx2165f0be356ae7a9\" //小程序appid"],"names":[],"mappings":";AAEY,MAAC,MAAM;AAEP,MAAC,QAAQ;;;"}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,5 +1,5 @@
"use strict";
const URL = "https://my.gxfs123.com/api";
const URL = "http://192.168.10.31:8080";
const appid = "wx2165f0be356ae7a9";
exports.URL = URL;
exports.appid = appid;
+5 -4
View File
@@ -300,12 +300,13 @@ const _sfc_main = {
l: hasActiveOrder.value ? 1 : "",
m: common_vendor.o(($event) => handleRent("wx-score-pay")),
n: common_assets._imports_0$2,
o: showPhoneAuthPopup.value
o: common_vendor.o(($event) => handleRent("wx-pay")),
p: showPhoneAuthPopup.value
}, showPhoneAuthPopup.value ? {
p: common_vendor.o(() => {
q: common_vendor.o(() => {
}),
q: common_vendor.o(onGetPhoneNumber),
r: common_vendor.o(($event) => showPhoneAuthPopup.value = false)
r: common_vendor.o(onGetPhoneNumber),
s: common_vendor.o(($event) => showPhoneAuthPopup.value = false)
} : {});
};
}
+1 -1
View File
@@ -1 +1 @@
<view class="container data-v-d65de3a7"><view class="device-header data-v-d65de3a7"><view class="{{['device-status-card', 'data-v-d65de3a7', b]}}"><view class="status-indicator data-v-d65de3a7"></view><text class="status-text data-v-d65de3a7">{{a}}</text></view><view class="device-title data-v-d65de3a7"><text class="name data-v-d65de3a7">共享风扇</text><view class="device-meta data-v-d65de3a7"><text class="id-label data-v-d65de3a7">设备号:</text><text class="id-value data-v-d65de3a7">{{c}}</text></view></view></view><view class="card device-info-card data-v-d65de3a7"><view class="card-row data-v-d65de3a7"><view class="card-item data-v-d65de3a7"><view class="item-icon location-icon data-v-d65de3a7"><image class="data-v-d65de3a7" src="{{d}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-d65de3a7"><text class="item-label data-v-d65de3a7">当前位置</text><text class="item-value data-v-d65de3a7">{{e}}</text></view></view><view class="card-item data-v-d65de3a7"><view class="{{['item-icon', 'battery-icon', 'data-v-d65de3a7', g && 'battery-low']}}"><image class="data-v-d65de3a7" src="{{f}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-d65de3a7"><text class="item-label data-v-d65de3a7">电池电量</text><text class="item-value data-v-d65de3a7">{{h}}%</text></view></view></view></view><view class="card pricing-card data-v-d65de3a7"><view class="card-header data-v-d65de3a7"><text class="card-title data-v-d65de3a7">计费规则</text></view><view class="pricing-banner data-v-d65de3a7"><view class="pricing-main data-v-d65de3a7"><text class="price data-v-d65de3a7">¥{{i}}</text><text class="unit data-v-d65de3a7">/小时</text></view><text class="cap-price data-v-d65de3a7">封顶 ¥{{j}}</text></view><view class="pricing-rules data-v-d65de3a7"><view class="rule-item data-v-d65de3a7"><view class="rule-dot data-v-d65de3a7"></view><text class="rule-text data-v-d65de3a7">不足60分钟按60分钟计费</text></view><view class="rule-item data-v-d65de3a7"><view class="rule-dot data-v-d65de3a7"></view><text class="rule-text data-v-d65de3a7">持续计费至99元视为买断</text></view></view></view><view class="card notice-card data-v-d65de3a7"><view class="card-header data-v-d65de3a7"><text class="card-title data-v-d65de3a7">使用须知</text></view><view class="notice-items data-v-d65de3a7"><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">请在使用前检查设备是否完好</text></view><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">请在指定区域内使用设备</text></view><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">归还时请确保设备完好,避免损坏</text></view></view></view><view class="footer data-v-d65de3a7"><button class="{{['rent-button', 'data-v-d65de3a7', l && 'return-button']}}" bindtap="{{m}}"><text class="data-v-d65de3a7">{{k}}</text></button><view class="wechat-credit data-v-d65de3a7"><image src="{{n}}" mode="aspectFit" class="wx-icon data-v-d65de3a7"></image><view class="credit-text data-v-d65de3a7"><text class="data-v-d65de3a7">微信支付分</text><text class="credit-divider data-v-d65de3a7">|</text><text class="credit-score data-v-d65de3a7">550分及以上优享</text></view></view></view><view wx:if="{{o}}" class="phone-auth-popup data-v-d65de3a7"><view class="popup-mask data-v-d65de3a7" catchtap="{{p}}"></view><view class="popup-content data-v-d65de3a7"><view class="popup-header data-v-d65de3a7"><text class="popup-title data-v-d65de3a7">授权获取手机号</text></view><view class="popup-body data-v-d65de3a7"><view class="auth-desc data-v-d65de3a7"><text class="data-v-d65de3a7">为了提供更好的服务,需要授权获取您的手机号</text></view><button class="auth-btn data-v-d65de3a7" open-type="getPhoneNumber" bindgetphonenumber="{{q}}"> 一键获取手机号 </button><view class="auth-cancel data-v-d65de3a7" bindtap="{{r}}"><text class="data-v-d65de3a7">暂不授权</text></view></view></view></view></view>
<view class="container data-v-d65de3a7"><view class="device-header data-v-d65de3a7"><view class="{{['device-status-card', 'data-v-d65de3a7', b]}}"><view class="status-indicator data-v-d65de3a7"></view><text class="status-text data-v-d65de3a7">{{a}}</text></view><view class="device-title data-v-d65de3a7"><text class="name data-v-d65de3a7">共享风扇</text><view class="device-meta data-v-d65de3a7"><text class="id-label data-v-d65de3a7">设备号:</text><text class="id-value data-v-d65de3a7">{{c}}</text></view></view></view><view class="card device-info-card data-v-d65de3a7"><view class="card-row data-v-d65de3a7"><view class="card-item data-v-d65de3a7"><view class="item-icon location-icon data-v-d65de3a7"><image class="data-v-d65de3a7" src="{{d}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-d65de3a7"><text class="item-label data-v-d65de3a7">当前位置</text><text class="item-value data-v-d65de3a7">{{e}}</text></view></view><view class="card-item data-v-d65de3a7"><view class="{{['item-icon', 'battery-icon', 'data-v-d65de3a7', g && 'battery-low']}}"><image class="data-v-d65de3a7" src="{{f}}" mode="aspectFill" style="width:45rpx;height:45rpx"></image></view><view class="item-content data-v-d65de3a7"><text class="item-label data-v-d65de3a7">电池电量</text><text class="item-value data-v-d65de3a7">{{h}}%</text></view></view></view></view><view class="card pricing-card data-v-d65de3a7"><view class="card-header data-v-d65de3a7"><text class="card-title data-v-d65de3a7">计费规则</text></view><view class="pricing-banner data-v-d65de3a7"><view class="pricing-main data-v-d65de3a7"><text class="price data-v-d65de3a7">¥{{i}}</text><text class="unit data-v-d65de3a7">/小时</text></view><text class="cap-price data-v-d65de3a7">封顶 ¥{{j}}</text></view><view class="pricing-rules data-v-d65de3a7"><view class="rule-item data-v-d65de3a7"><view class="rule-dot data-v-d65de3a7"></view><text class="rule-text data-v-d65de3a7">不足60分钟按60分钟计费</text></view><view class="rule-item data-v-d65de3a7"><view class="rule-dot data-v-d65de3a7"></view><text class="rule-text data-v-d65de3a7">持续计费至99元视为买断</text></view></view></view><view class="card notice-card data-v-d65de3a7"><view class="card-header data-v-d65de3a7"><text class="card-title data-v-d65de3a7">使用须知</text></view><view class="notice-items data-v-d65de3a7"><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">请在使用前检查设备是否完好</text></view><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">请在指定区域内使用设备</text></view><view class="notice-item data-v-d65de3a7"><view class="notice-dot data-v-d65de3a7"></view><text class="notice-text data-v-d65de3a7">归还时请确保设备完好,避免损坏</text></view></view></view><view class="footer data-v-d65de3a7"><button class="{{['rent-button', 'data-v-d65de3a7', l && 'return-button']}}" bindtap="{{m}}"><text class="data-v-d65de3a7">{{k}}</text></button><view class="wechat-credit data-v-d65de3a7"><image src="{{n}}" mode="aspectFit" class="wx-icon data-v-d65de3a7"></image><view class="credit-text data-v-d65de3a7"><text class="data-v-d65de3a7">微信支付分</text><text class="credit-divider data-v-d65de3a7">|</text><text class="credit-score data-v-d65de3a7">550分及以上优享</text></view></view><view class=" data-v-d65de3a7" style="align-items:center;align-content:center;text-align:center;line-height:50rpx" bindtap="{{o}}"> 无法免押点这里></view></view><view wx:if="{{p}}" class="phone-auth-popup data-v-d65de3a7"><view class="popup-mask data-v-d65de3a7" catchtap="{{q}}"></view><view class="popup-content data-v-d65de3a7"><view class="popup-header data-v-d65de3a7"><text class="popup-title data-v-d65de3a7">授权获取手机号</text></view><view class="popup-body data-v-d65de3a7"><view class="auth-desc data-v-d65de3a7"><text class="data-v-d65de3a7">为了提供更好的服务,需要授权获取您的手机号</text></view><button class="auth-btn data-v-d65de3a7" open-type="getPhoneNumber" bindgetphonenumber="{{r}}"> 一键获取手机号 </button><view class="auth-cancel data-v-d65de3a7" bindtap="{{s}}"><text class="data-v-d65de3a7">暂不授权</text></view></view></view></view></view>