Преглед изворни кода

Merge branch 'master' of http://code.qutaovip.com/lihai/fish_app

* 'master' of http://code.qutaovip.com/lihai/fish_app:
  自购&&隐藏导购等级
黎海 пре 2 месеци
родитељ
комит
33c074dbe8

+ 7 - 0
project.private.config.json

@@ -10,6 +10,13 @@
10
     "miniprogram": {
10
     "miniprogram": {
11
       "list": [
11
       "list": [
12
         {
12
         {
13
+          "name": "pages/memberSub/cashOut/index",
14
+          "pathName": "pages/memberSub/cashOut/index",
15
+          "query": "",
16
+          "launchMode": "default",
17
+          "scene": null
18
+        },
19
+        {
13
           "name": "pages/indexSub/productDetail/index",
20
           "name": "pages/indexSub/productDetail/index",
14
           "pathName": "pages/indexSub/productDetail/index",
21
           "pathName": "pages/indexSub/productDetail/index",
15
           "query": "id=2312&isHighCommission=false&isSeckill=false&shareUserId=",
22
           "query": "id=2312&isHighCommission=false&isSeckill=false&shareUserId=",

+ 1 - 1
src/common/share.js

@@ -1,5 +1,5 @@
1
 const shareConfig = {
1
 const shareConfig = {
2
-    title: '默认分享标题',
2
+    title: '鱼市',
3
     path: '/pages/index/index',
3
     path: '/pages/index/index',
4
     imageUrl: '',
4
     imageUrl: '',
5
   };
5
   };

+ 10 - 1
src/components/index/ProductList/index.jsx

@@ -240,9 +240,18 @@ const ProductList = forwardRef((props, ref) => {
240
                 </View>
240
                 </View>
241
                 <View className="profit-line">
241
                 <View className="profit-line">
242
                   <View className="save-money">
242
                   <View className="save-money">
243
+                  <Image className="bg" src={saveMoneyBg} mode="aspectFit" />
244
+                    <View className="content">
245
+                        <Text className="label">自购省</Text>
246
+                        <Text className="money">
247
+                          ¥{product.estimated_commission}
248
+                        </Text>
249
+                    </View>
250
+                  </View>
251
+                  {/* <View className="save-money">
243
                     <Image className="bg" src={saveMoneyBg} mode="aspectFit" />
252
                     <Image className="bg" src={saveMoneyBg} mode="aspectFit" />
244
                     <View className="content">立 即 购 买</View>
253
                     <View className="content">立 即 购 买</View>
245
-                  </View>
254
+                  </View> */}
246
                   <View className="share-earn">
255
                   <View className="share-earn">
247
                     <Image className="bg" src={shareEarnBg} mode="aspectFit" />
256
                     <Image className="bg" src={shareEarnBg} mode="aspectFit" />
248
                     <View className="content">
257
                     <View className="content">

+ 11 - 10
src/components/index/ProductList/index.less

@@ -133,16 +133,17 @@
133
 
133
 
134
         .save-money {
134
         .save-money {
135
           color: #F6C71A;
135
           color: #F6C71A;
136
-          display: flex;
137
-          align-items: center;
138
-          justify-content: center;
139
-          .content {
140
-            width: 74px;
141
-            height: 88px;
142
-            font-size: 28px;
143
-            line-height: 41px;
144
-            text-align: center;
145
-          }
136
+          // color: #F6C71A;
137
+          // display: flex;
138
+          // align-items: center;
139
+          // justify-content: center;
140
+          // .content {
141
+          //   width: 74px;
142
+          //   height: 88px;
143
+          //   font-size: 28px;
144
+          //   line-height: 41px;
145
+          //   text-align: center;
146
+          // }
146
         }
147
         }
147
 
148
 
148
         .share-earn {
149
         .share-earn {

BIN
src/images/index/save-money.png


+ 2 - 2
src/pages/indexSub/productDetail/index.jsx

@@ -335,8 +335,8 @@ export default class Index extends Component {
335
                   onClick={this.handleBuy}
335
                   onClick={this.handleBuy}
336
                   className="bottom-buy-right-share"
336
                   className="bottom-buy-right-share"
337
                 >
337
                 >
338
-                  {/* <Image src={selfBuy} mode="aspectFit" /> */}
339
-                  <Text className="bottom-buy-text">立即购买</Text>
338
+                  <Image src={selfBuy} mode="aspectFit" />
339
+                  <Text className="bottom-buy-text">自购省</Text>
340
                 </View>
340
                 </View>
341
               </>
341
               </>
342
             ) : (
342
             ) : (

+ 1 - 1
src/pages/memberSub/earningsOrder/index.jsx

@@ -210,7 +210,7 @@ export default class Index extends Component {
210
                 </Text>
210
                 </Text>
211
                 {orderType == 2 && (
211
                 {orderType == 2 && (
212
                   <View className="promotion-info">
212
                   <View className="promotion-info">
213
-                    <View className="tag">推广收入</View>
213
+                    <View className="tag">预估收入</View>
214
                     <Text className="amount">¥{item.assess_amount_text}</Text>
214
                     <Text className="amount">¥{item.assess_amount_text}</Text>
215
                   </View>
215
                   </View>
216
                 )}
216
                 )}

+ 2 - 2
src/pages/memberSub/myPartner/index.jsx

@@ -50,10 +50,10 @@ export default class Index extends Component {
50
               </View>
50
               </View>
51
               <View className="partner-item-top-right">
51
               <View className="partner-item-top-right">
52
                 <View className="name">{item.name}</View>
52
                 <View className="name">{item.name}</View>
53
-                <View className="level">
53
+                {/* <View className="level">
54
                   <Image src={level} className="level-icon" />
54
                   <Image src={level} className="level-icon" />
55
                   <Text className="level-text">导购员</Text>
55
                   <Text className="level-text">导购员</Text>
56
-                </View>
56
+                </View> */}
57
               </View>
57
               </View>
58
               <View onClick={() => Taro.navigateTo({ url: `/pages/memberSub/partnerDetail/index?id=${item.id}` })} className="detail">详情
58
               <View onClick={() => Taro.navigateTo({ url: `/pages/memberSub/partnerDetail/index?id=${item.id}` })} className="detail">详情
59
                 <AtIcon value='chevron-right' size='10' color='#A1A1A1'></AtIcon>
59
                 <AtIcon value='chevron-right' size='10' color='#A1A1A1'></AtIcon>

+ 2 - 2
src/pages/memberSub/partnerDetail/index.jsx

@@ -80,10 +80,10 @@ export default class Index extends Component {
80
             <View className="header">
80
             <View className="header">
81
               <View className="header-left">
81
               <View className="header-left">
82
                 <Text className="name">{partnerDetail.name}</Text>
82
                 <Text className="name">{partnerDetail.name}</Text>
83
-                <View className="level">
83
+                {/* <View className="level">
84
                   <Image className="level-icon" src={level} />
84
                   <Image className="level-icon" src={level} />
85
                   <Text className="level-text">导购员</Text>
85
                   <Text className="level-text">导购员</Text>
86
-                </View>
86
+                </View> */}
87
               </View>
87
               </View>
88
               <View className="header-right">
88
               <View className="header-right">
89
                 <Image className="header-right-avatar" src={partnerDetail.icon} />
89
                 <Image className="header-right-avatar" src={partnerDetail.icon} />

+ 2 - 2
src/pages/mine/index.jsx

@@ -89,12 +89,12 @@ export default class Index extends Component {
89
             <View className="user-info">
89
             <View className="user-info">
90
               <View onClick={this.Login} className="name">
90
               <View onClick={this.Login} className="name">
91
                 {userInfo.name ? userInfo.name : "去登录"}
91
                 {userInfo.name ? userInfo.name : "去登录"}
92
-                {userInfo.user_identity === 1 && (
92
+                {/* {userInfo.user_identity === 1 && (
93
                   <View className="level-box">
93
                   <View className="level-box">
94
                     <Image src={levelOne} className="level-icon" />
94
                     <Image src={levelOne} className="level-icon" />
95
                     <Text className="level-text">Lv 1</Text>
95
                     <Text className="level-text">Lv 1</Text>
96
                   </View>
96
                   </View>
97
-                )}
97
+                )} */}
98
               </View>
98
               </View>
99
               <View className="account">{userInfo.id ? userInfo.id : ""}</View>
99
               <View className="account">{userInfo.id ? userInfo.id : ""}</View>
100
             </View>
100
             </View>