|
@@ -15,13 +15,13 @@ Component({
|
|
|
storeItem: null
|
|
|
},
|
|
|
attached() {
|
|
|
-
|
|
|
+
|
|
|
this.setData({
|
|
|
storeItem: this.data.store
|
|
|
})
|
|
|
- if (this.data.storeItem.pvTotalNum >= 10000) {
|
|
|
+ if (this.data.storeItem.viewCount >= 10000) {
|
|
|
this.setData({
|
|
|
- 'storeItem.pvTotalNum': (this.data.storeItem.pvTotalNum / 10000).toFixed(1) + 'w'
|
|
|
+ 'storeItem.viewCount': (this.data.storeItem.viewCount / 10000).toFixed(1) + 'w'
|
|
|
})
|
|
|
}
|
|
|
},
|