Commit 8beeb8ea authored by Facius's avatar Facius

加载中替换为uview

parent 3124cce8
......@@ -74,8 +74,6 @@
methods: {
getRelationDictionaryV2: function() {
this.$u.cloudApi.getRelationDictionaryV2().then(res => {
console.log('V2:')
console.log(res)
if (res && res.result) {
this.classifyList = res.result
this.param.classifyId = res.result[0].id
......
<template>
<view class="backView">
<view class="backView">
<u-loading style="position: absolute;top: 50%;" :show="loading" size="36" mode="flower"></u-loading>
<view class="topView">
<view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)" v-for="(item,ikey) in dataList" :key="ikey">
<text
......@@ -41,7 +42,7 @@
brand: '',
brandId: '',
dataList: [],
loading: true
}
},
onLoad(e) {
......@@ -70,25 +71,17 @@
},
onShow() {
console.log('onShow 里的rightList:')
console.log(this.rightList)
},
methods: {
getListData: function() {
uni.showLoading()
getListData: function() {
this.loading = true
let that = this
this.$u.cloudApi.getGroupStandardV2({
'token': getApp().globalData.token,
'classify_id': this.classifyId,
'system_id': this.systemId,
'brand_id': this.brandId
}).then(res => {
console.log('获取规范标准数据:')
console.log(res)
uni.hideLoading()
}).then(res => {
this.loading = false
if (res && res.result) {
that.handleData(res.result)
}
......@@ -127,7 +120,6 @@
//右侧点击
rightItemClick: function(item, ikey) {
console.log(item,'item')
const photo = getApp().globalData.photo
photo.currentItem = item
uni.navigateTo({
......
<template>
<view class="backView">
<view class="backView">
<u-loading style="position: absolute;top: 50%;" :show="loading" size="36" mode="flower"></u-loading>
<view class="itemView firstItem">
<view class="itemTitleView">
<text class="itemTitle">保存原图</text>
......@@ -79,7 +80,8 @@
},
editingItem: {},
showTipLeft: false,
showTipRight: false
showTipRight: false,
loading: true
}
},
computed: {
......@@ -109,7 +111,7 @@
getItemList: function() {
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
uni.showLoading();
this.loading = true
this.$u.cloudApi.getUserWatermark({
'token': getApp().globalData.token,
'system_id': this.systemId
......@@ -118,14 +120,11 @@
if (res && res.result) {
this.result = res.result
}
this.$nextTick(function() {
uni.hideLoading();
})
this.loading = false
})
},
saveUserWatermark: function() {
uni.showLoading();
this.loading = true
this.$u.cloudApi.saveUserWatermark({
'token': getApp().globalData.token,
'watermark': this.result
......@@ -135,10 +134,7 @@
photo.waterSetting = this.result
}
this.$nextTick(function() {
uni.hideLoading();
})
this.loading = false
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment