Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

李志伟 3 years ago
parent
commit
a431054e67

+ 1
- 1
config/dev.js View File

@@ -4,7 +4,7 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.89.147:8080"',
7
-    HOST: '"https://sgl-v2-test.njyunzhi.com"',
7
+    HOST: '"http://sgl-v2-test.njyunzhi.com"',
8 8
     OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
9 9
   },
10 10
   mini: {},

+ 0
- 9
project.tt.json View File

@@ -1,9 +0,0 @@
1
-{
2
-  "miniprogramRoot": "./",
3
-  "projectname": "miniapp",
4
-  "appid": "touristappid",
5
-  "setting": {
6
-    "es6": false,
7
-    "minified": false
8
-  }
9
-}

+ 1
- 1
src/components/Spin/SpinBox.jsx View File

@@ -7,7 +7,7 @@ import './style.less'
7 7
 const Loading = (props) => {
8 8
   const { loading, size = '64rpx', ...leftProps } = props
9 9
 
10
-  const cls = ['loading-box', loading? 'active' : undefined].filter(Boolean).join(' ')
10
+  const cls = ['loading-box', loading ? 'active' : undefined].filter(Boolean).join(' ')
11 11
 
12 12
   return (
13 13
     <View className={cls}>

+ 1
- 0
src/pages/index/tabs/Recommend.jsx View File

@@ -57,6 +57,7 @@ export default (props) => {
57 57
   }
58 58
 
59 59
 
60
+
60 61
   useEffect(() => {
61 62
     //查询分类标签表
62 63
     getIndexType({ pageSize: 20 }).then((res) => {

+ 32
- 33
src/shop/components/Sparead/spreadMoney.jsx View File

@@ -53,48 +53,47 @@ export default (props) => {
53 53
 
54 54
   return (
55 55
     <view>
56
-      <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
57 56
 
58 57
       <view style={{ padding: '0 15px 0 15px', height: '100%' }}>
59
-        <scroll-view scrollY style={{ height: 'calc(100vh - 120px)' }}>
58
+        <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
60 59
 
61
-          <view className='storexx'>
60
+        <view className='storexx'>
62 61
 
63
-            <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
64
-            <view onClick={ShowMoldeOn} className='User-info-cutover'>
65
-              <image className='User-info-cutover-image' src={cutoverUser} />
66
-            </view>
67
-            <view className='tip'>(计算收入以核销为准)</view>
68
-            <view className='money'>
69
-              <view className='sleft'>
70
-                <view className='lword'>全年推广收入(税前)</view>
71
-                <view className='yearMoney'>
72
-                  <text>{isyear ? (shopMoney?.totalCharges / 100).toFixed(2) : '******'}</text>元
73
-                  <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
74
-                </view>
62
+          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
63
+          <view onClick={ShowMoldeOn} className='User-info-cutover'>
64
+            <image className='User-info-cutover-image' src={cutoverUser} />
65
+          </view>
66
+          <view className='tip'>(计算收入以核销为准)</view>
67
+          <view className='money'>
68
+            <view className='sleft'>
69
+              <view className='lword'>全年推广收入(税前)</view>
70
+              <view className='yearMoney'>
71
+                <text>{isyear ? (shopMoney?.totalCharges / 100).toFixed(2) : '******'}</text>元
72
+                <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
75 73
               </view>
76
-              <view className='line' />
77
-              <view className='sright'>
78
-                <view className='rword'>当月推广收入(税前)</view>
79
-                <view className='monthMoney'>
80
-                  <text>{isMomth ? (shopMoney?.currentCharges / 100).toFixed(2) : '******'}</text>元
81
-                  <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
82
-                </view></view>
83 74
             </view>
84
-
75
+            <view className='line' />
76
+            <view className='sright'>
77
+              <view className='rword'>当月推广收入(税前)</view>
78
+              <view className='monthMoney'>
79
+                <text>{isMomth ? (shopMoney?.currentCharges / 100).toFixed(2) : '******'}</text>元
80
+                <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
81
+              </view></view>
85 82
           </view>
86 83
 
84
+        </view>
85
+
86
+
87
+        <view className='title'>推广收入记录</view>
87 88
 
88
-          <view className='title'>推广收入记录</view>
89
-          <List
90
-            style={{ height: 'calc(100% - 145px)' }}
91
-            request={reqestAPI}
92
-            params={queryParams}
93
-            noData={<NoData />}
94
-            render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
95
-          >
96
-          </List>
97
-        </scroll-view>
89
+        <List
90
+          style={{ height: 'calc(100% - 145px)' }}
91
+          request={reqestAPI}
92
+          params={queryParams}
93
+          noData={<NoData />}
94
+          render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
95
+        >
96
+        </List>
98 97
 
99 98
       </view>
100 99