xujing 5 лет назад
Родитель
Сommit
82a75ca906

+ 4
- 4
config/dev.js Просмотреть файл

@@ -5,12 +5,12 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.2.52:8080"',
13
-    WSS_HOST: '"ws://192.168.2.52:8080"',
12
+    // HOST: '"http://192.168.2.52:8080"',
13
+    // WSS_HOST: '"ws://192.168.2.52:8080"',
14 14
     Version: 'V3.5.5'
15 15
   },
16 16
   weapp: {},

+ 1
- 1
config/prod.js Просмотреть файл

@@ -9,7 +9,7 @@ module.exports = {
9 9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    Version:'V3.5.5_2019-12-23'
12
+    Version:'V3.5.5_2019-12-24'
13 13
   },
14 14
   weapp: {},
15 15
   h5: {}

+ 2
- 0
src/pages/activity/detail/assemble.js Просмотреть файл

@@ -89,6 +89,8 @@ export default class Detail extends Component {
89 89
   componentWillUnmount() {
90 90
     this.stopTicker()
91 91
     this.state.pointRecordId && updatePoint(this.state.pointRecordId)
92
+
93
+    Taro.setStorageSync('router', { query: {} })
92 94
   }
93 95
 
94 96
   componentDidShow() {

+ 2
- 0
src/pages/activity/detail/assistance.js Просмотреть файл

@@ -91,6 +91,8 @@ export default class Detail extends Component {
91 91
   componentWillUnmount() {
92 92
     this.stopTicker()
93 93
     this.state.pointRecordId && updatePoint(this.state.pointRecordId)
94
+
95
+    Taro.setStorageSync('router', { query: {} })
94 96
   }
95 97
 
96 98
   componentDidShow() {

+ 2
- 0
src/pages/activity/detail/index.js Просмотреть файл

@@ -76,6 +76,8 @@ export default class Detail extends Component {
76 76
   componentWillUnmount() {
77 77
     const { recordId } = this.state
78 78
     recordId && updatePoint(recordId)
79
+
80
+    Taro.setStorageSync('router', { query: {} })
79 81
   }
80 82
 
81 83
   loadDetail() {

+ 2
- 0
src/pages/news/detail/index.js Просмотреть файл

@@ -78,6 +78,8 @@ export default class NewsDetail extends Component {
78 78
   componentWillUnmount() {
79 79
     const { recordId } = this.state
80 80
     recordId && updatePoint(recordId)
81
+
82
+    Taro.setStorageSync('router', { query: {} })
81 83
   }
82 84
   // 报备客户
83 85
   reportClientFn() {

+ 4
- 2
src/pages/shop/index.scss Просмотреть файл

@@ -83,7 +83,6 @@
83 83
       .message{
84 84
         width: 100%;
85 85
         display: flex;
86
-        justify-content: space-between;
87 86
         position: absolute;
88 87
         top:144px;
89 88
         left:188px;
@@ -96,15 +95,18 @@
96 95
               color: #666;
97 96
               display: flex;
98 97
               align-items: center;
98
+              
99 99
              &__right{
100 100
                 color: $primary-color;
101 101
                 font-size: 40px;
102
+                max-width: 110px;
103
+                @include text-ellipsis;
102 104
               }
103 105
           }
104 106
     
105 107
           &__btn{
106 108
             display: flex;
107
-            margin-left: 30px;
109
+            margin-left: 20px;
108 110
             align-items: center;
109 111
           }
110 112
           &__img{

+ 13
- 12
src/pages/shop/rule/index.js Просмотреть файл

@@ -14,7 +14,7 @@ export default class Shop extends Component {
14 14
   }
15 15
 
16 16
   state = {
17
-     pointRule:[]
17
+    pointRule: []
18 18
   }
19 19
 
20 20
   componentWillMount() {
@@ -25,7 +25,7 @@ export default class Shop extends Component {
25 25
     Taro.showLoading()
26 26
     this.props.dispatchPointsRule().then(res => {
27 27
       this.setState({
28
-        pointRule:res.records
28
+        pointRule: res.records
29 29
       })
30 30
       Taro.hideLoading()
31 31
     })
@@ -33,14 +33,14 @@ export default class Shop extends Component {
33 33
 
34 34
   render() {
35 35
 
36
-    const {pointRule} = this.state
36
+    const { pointRule } = this.state
37 37
 
38 38
     return (
39 39
       <View className="page">
40 40
         <View className='rule_title'>
41 41
           <Text>积分项</Text>
42 42
           <Text>奖励积分</Text>
43
-          <Text>时间</Text>
43
+          <Text>说明</Text>
44 44
         </View>
45 45
         <ScrollView
46 46
           scrollY
@@ -52,16 +52,17 @@ export default class Shop extends Component {
52 52
           }}>
53 53
           {
54 54
             pointRule.length === 0 ? '' : (
55
-                pointRule.map(item => (
56
-                   <View className='rule_item'  key={item.ruleId}>
57
-                     <Text>{item.ruleName}</Text>
58
-                     <Text>+{item.pointsAmount}</Text>
59
-                     <Text>{dayjs(item.updateDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
60
-                   </View>
61
-                ))
55
+              pointRule.map(item => (
56
+                <View className='rule_item' key={item.ruleId}>
57
+                  <Text>{item.ruleName}</Text>
58
+                  <Text>+{item.pointsAmount}</Text>
59
+                  <Text>{item.remark}</Text>
60
+                  {/* <Text>{dayjs(item.updateDate).format('YYYY-MM-DD HH:mm:ss')}</Text> */}
61
+                </View>
62
+              ))
62 63
             )
63 64
           }
64
-         </ScrollView>
65
+        </ScrollView>
65 66
       </View>
66 67
     );
67 68
   }