feat(页面): 在洗涤页面添加设备标题显示并更新请求参数
在洗涤页面数据中增加title字段,用于显示设备标题或设备编码 更新index页面请求接口时添加deviceData参数
This commit is contained in:
parent
ce2d4b8d16
commit
d1c1786829
@ -90,7 +90,7 @@ Page({
|
||||
getData: function () {
|
||||
var a = this;
|
||||
// 获取首页数据
|
||||
t.request('/v2/miniprogram/index/balance', {}, !0).then(function (e) {
|
||||
t.request('/v2/miniprogram/index/balance', e.globalData.deviceData, !0).then(function (e) {
|
||||
a.setData({
|
||||
user: e.data || [],
|
||||
});
|
||||
|
@ -10,7 +10,8 @@ Page({
|
||||
agentname: '',
|
||||
devicecode: '',
|
||||
remainingTime: 0,
|
||||
orderid: ''
|
||||
orderid: '',
|
||||
title: getApp().globalData.deviceData.title || getApp().globalData.deviceData.devicecode
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="time">
|
||||
<text class="wangdian">{{agentname}}</text>
|
||||
<text class="mactime">{{countdown}}</text>
|
||||
<text class="macid">{{devicecode}}</text>
|
||||
<text class="macid">{{title}}</text>
|
||||
|
||||
</view>
|
||||
<view class="spinner-container container1">
|
||||
|
Loading…
x
Reference in New Issue
Block a user