temp
This commit is contained in:
parent
9dbfdc6c71
commit
3afffc67ec
@ -2,14 +2,6 @@
|
||||
<view class="warp">
|
||||
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar title="天然气计算工具集" />
|
||||
|
||||
<view class="content">
|
||||
<ad-rewarded-video adpid="1507000689" :loadnext="true" v-slot:default="{loading, error}" @load="onadload"
|
||||
@close="onadclose" @error="onaderror">
|
||||
<button :disabled="loading" :loading="loading">显示广告</button>
|
||||
<view v-if="error">{{error}}</view>
|
||||
</ad-rewarded-video>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- 流量计算 -->
|
||||
|
@ -21,6 +21,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -32,7 +33,7 @@
|
||||
strNG: "",
|
||||
meterPar: [],
|
||||
|
||||
</view>meterResult: {
|
||||
meterResult: {
|
||||
"dCd": "",
|
||||
"dCdCalMethod": "",
|
||||
"dMeterFactor": "",
|
||||
@ -242,7 +243,8 @@
|
||||
timeout: 1000, //10秒超时
|
||||
success: function(res) {
|
||||
console.log(res)
|
||||
var data = JSON.stringify(res.data.message).toString().replace('[', '').replace(']','').split(',');
|
||||
var data = JSON.stringify(res.data.message).toString().replace('[', '').replace(']',
|
||||
'').split(',');
|
||||
that.meterResult.dCd = data[45].substring(0, data[45].indexOf(".") + 6);
|
||||
that.meterResult.dE = data[46].substring(0, data[46].indexOf(".") + 6);
|
||||
that.meterResult.dFG = data[47].substring(0, data[47].indexOf(".") + 6);
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user