|  |  |  | 
|---|
|  |  |  | <u-grid :col="2"> | 
|---|
|  |  |  | <u-grid-item @tap="clickCoupon(item.url,item.menuId,item.description,item.menuName)" v-for="(item) in tree" | 
|---|
|  |  |  | :key="item.menuId"> | 
|---|
|  |  |  | <u-icon  :name="item.icon" custom-prefix="custom-icon" size="50" | 
|---|
|  |  |  | color="#888888"></u-icon> | 
|---|
|  |  |  | <u-icon :name="item.icon" custom-prefix="custom-icon" size="50" color="#888888"> </u-icon> | 
|---|
|  |  |  | <view class="grid-text">{{item.menuName}}</view> | 
|---|
|  |  |  | </u-grid-item> | 
|---|
|  |  |  | </u-grid> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | console.log(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | uni.getSystemInfo({ | 
|---|
|  |  |  | success: (res) => { | 
|---|
|  |  |  | this.version = res.appWgtVersion; | 
|---|
|  |  |  | 
|---|
|  |  |  | AndroidCheckUpdate: function() { | 
|---|
|  |  |  | var _this = this; | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: this.$u.http.config.baseUrl+'/api/PDA/GetPDAVersion?version=' + this.version, | 
|---|
|  |  |  | url: this.$u.http.config.baseUrl + '/api/PDA/GetPDAVersion?version=' + this.version, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | data: {}, | 
|---|
|  |  |  | success: res => { | 
|---|
|  |  |  | 
|---|
|  |  |  | icon: "none" | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | var dtask = plus.downloader.createDownload( | 
|---|
|  |  |  | this.$u.http.config.baseUrl+"/api/PDA/DownLoadApp", {}, | 
|---|
|  |  |  | this.$u.http.config.baseUrl + "/api/PDA/DownLoadApp", {}, | 
|---|
|  |  |  | function(d, status) { | 
|---|
|  |  |  | // 涓嬭浇瀹屾垚 | 
|---|
|  |  |  | if (status == 200) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return this.datas.find(x => x.text == text); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | clickCoupon(url, menuid, warehouseid, menuname) { | 
|---|
|  |  |  | // console.log("clickCoupon") | 
|---|
|  |  |  | if (this.hasLogin()) { | 
|---|
|  |  |  | this.$u.route({ | 
|---|
|  |  |  | url: url, | 
|---|