temp
This commit is contained in:
parent
9dbfdc6c71
commit
3afffc67ec
@ -2,14 +2,6 @@
|
|||||||
<view class="warp">
|
<view class="warp">
|
||||||
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar title="天然气计算工具集" />
|
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 流量计算 -->
|
<!-- 流量计算 -->
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar left-icon="left" left-text="返回"
|
<uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar left-icon="left" left-text="返回"
|
||||||
title="差压式流量计算" @clickLeft="back" />
|
title="差压式流量计算" @clickLeft="back" />
|
||||||
<uni-card>
|
<uni-card>
|
||||||
<!-- test -->
|
<!-- test -->
|
||||||
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button"
|
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button"
|
||||||
activeColor="#4cd964"></uni-segmented-control>
|
activeColor="#4cd964"></uni-segmented-control>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
@ -20,6 +20,7 @@
|
|||||||
<yjly-ngtools-meterResult :formData="meterResult"></yjly-ngtools-meterResult>
|
<yjly-ngtools-meterResult :formData="meterResult"></yjly-ngtools-meterResult>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -32,7 +33,7 @@
|
|||||||
strNG: "",
|
strNG: "",
|
||||||
meterPar: [],
|
meterPar: [],
|
||||||
|
|
||||||
</view>meterResult: {
|
meterResult: {
|
||||||
"dCd": "",
|
"dCd": "",
|
||||||
"dCdCalMethod": "",
|
"dCdCalMethod": "",
|
||||||
"dMeterFactor": "",
|
"dMeterFactor": "",
|
||||||
@ -135,14 +136,14 @@
|
|||||||
|
|
||||||
|
|
||||||
onClickItem(e) {
|
onClickItem(e) {
|
||||||
this.ssss="";
|
this.ssss = "";
|
||||||
if (this.current != e.currentIndex) {
|
if (this.current != e.currentIndex) {
|
||||||
this.current = e.currentIndex;
|
this.current = e.currentIndex;
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(() => {
|
||||||
if (this.current==2) {
|
if (this.current == 2) {
|
||||||
this.cal();
|
this.cal();
|
||||||
}
|
}
|
||||||
},500)
|
}, 500)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
@ -219,10 +220,10 @@
|
|||||||
|
|
||||||
console.log(NG_par);
|
console.log(NG_par);
|
||||||
var that = this;
|
var that = this;
|
||||||
var url="";
|
var url = "";
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
url="https://ngtools.cn:8443";
|
url = "https://ngtools.cn:8443";
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
url = "/api"
|
url = "/api"
|
||||||
// #endif
|
// #endif
|
||||||
@ -242,7 +243,8 @@
|
|||||||
timeout: 1000, //10秒超时
|
timeout: 1000, //10秒超时
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(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.dCd = data[45].substring(0, data[45].indexOf(".") + 6);
|
||||||
that.meterResult.dE = data[46].substring(0, data[46].indexOf(".") + 6);
|
that.meterResult.dE = data[46].substring(0, data[46].indexOf(".") + 6);
|
||||||
that.meterResult.dFG = data[47].substring(0, data[47].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