Przeglądaj źródła

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

李志伟 3 lat temu
rodzic
commit
caf100484a

+ 1
- 1
config/dev.js Wyświetl plik

@@ -6,7 +6,7 @@ module.exports = {
6 6
     // HOST: '"http://192.168.89.147:8080"',
7 7
     HOST: '"http://sgl-v2-test.njyunzhi.com"',
8 8
     OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
9
-    VERSION: '"2.0.33"',
9
+    VERSION: '"3.0.3_2021-12-23"',
10 10
   },
11 11
   mini: {},
12 12
   h5: {},

+ 2
- 2
config/prod.js Wyświetl plik

@@ -3,9 +3,9 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://sgl-v2-test.njyunzhi.com"',
6
+    HOST: '"https://sgl-v2.njyunzhi.com"',
7 7
     OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
8
-    VERSION: '"3.0.1_2021-11-10"',
8
+    VERSION: '"3.0.3_2021-12-23"',
9 9
   },
10 10
   mini: {},
11 11
   h5: {

+ 1
- 1
project.config.json Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   "miniprogramRoot": "./dist",
3 3
   "projectname": "miniapp",
4 4
   "description": "十公里",
5
-  "appid": "wx835627a9b9b3932a",
5
+  "appid": "wx06a7372d48d56843",
6 6
   "setting": {
7 7
     "urlCheck": true,
8 8
     "es6": false,

+ 2
- 1
src/components/foodCards/CustomCard/index.jsx Wyświetl plik

@@ -2,6 +2,7 @@ import Taro from '@tarojs/taro'
2 2
 import { View, Text } from '@tarojs/components'
3 3
 import CouponCard from '@/components/CouponCard'
4 4
 import { compressImage } from '@/utils'
5
+import formatPrice from "@/utils/formatPrice";
5 6
 import SaveIcon from '@/components/SaveIcon'
6 7
 import Location from '@/components/Location'
7 8
 import DeleteTravel from '@/assets/icons/Travel/delete.png'
@@ -39,7 +40,7 @@ export default (props) => {
39 40
                 {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
40 41
               </View>
41 42
               <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
42
-                <Text className='cpn-card-text_mn'>¥{`${(item.averagePrice == '' ? '0.00' : item.averagePrice / 100)?.toFixed(2)}元`}</Text>
43
+                <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
43 44
               </View>
44 45
               <View className='cpn-md-act'>
45 46
                 <Location {...item} />

+ 2
- 1
src/components/foodCards/RecommendedCard/index.jsx Wyświetl plik

@@ -1,6 +1,7 @@
1 1
 import Taro from '@tarojs/taro'
2 2
 import { View, Text, } from '@tarojs/components'
3 3
 import { compressImage } from '@/utils'
4
+import formatPrice from "@/utils/formatPrice";
4 5
 import CouponCard from '@/components/CouponCard'
5 6
 import SaveIcon from '@/components/SaveIcon'
6 7
 import Location from '@/components/Location'
@@ -55,7 +56,7 @@ export default (props) => {
55 56
                 {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
56 57
               </View>
57 58
               <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
58
-                <Text className='cpn-card-text_mn'>¥{`${(item.averagePrice == '' ? '0.00' : item.averagePrice / 100)?.toFixed(2)}元`}</Text>
59
+                <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
59 60
               </View>
60 61
               <View className='cpn-md-act'>
61 62
                 <Location {...item} />

+ 2
- 3
src/components/foodCards/ShareCard/index.jsx Wyświetl plik

@@ -5,10 +5,9 @@ import Taro from '@tarojs/taro'
5 5
 import { View, Text } from '@tarojs/components'
6 6
 import CouponCard from '@/components/CouponCard'
7 7
 import { compressImage } from '@/utils'
8
+import formatPrice from "@/utils/formatPrice";
8 9
 import SaveIcon from '@/components/SaveIcon'
9 10
 import Location from '@/components/Location'
10
-import SeeDetails from '@/assets/icons/GuideCheck/SeeDetails.png'
11
-
12 11
 
13 12
 
14 13
 import './style.less'
@@ -47,7 +46,7 @@ export default (props) => {
47 46
                     {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
48 47
                   </View>
49 48
                   <View className='cpn-card-text' style={{ marginTop: '5px' }}>
50
-                    <Text className='cpn-card-text_mn'>¥{`${(item.averagePrice == '' ? '0.00' : item.averagePrice / 100)?.toFixed(2)}元`}</Text>
49
+                    <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
51 50
                   </View>
52 51
                   <View className='cpn-md-act'>
53 52
                     <Location {...det} />

+ 2
- 1
src/components/foodCards/ShopNoteCard/index.jsx Wyświetl plik

@@ -4,6 +4,7 @@ import Taro from '@tarojs/taro'
4 4
 import { View, Picker, Image, ScrollView, Text } from '@tarojs/components'
5 5
 import CouponCard from '@/components/CouponCard'
6 6
 import { compressImage } from '@/utils'
7
+import formatPrice from "@/utils/formatPrice";
7 8
 import SaveIcon from '@/components/SaveIcon'
8 9
 import Location from '@/components/Location'
9 10
 import grassOFF from '@/assets/icons/housemantj/grassOFF.png'
@@ -133,7 +134,7 @@ export default (props) => {
133 134
                 {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
134 135
               </View>
135 136
               <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
136
-                <Text className='cpn-card-text_mn'>¥{`${(item.averagePrice == '' ? 0 / 100 : item.averagePrice / 100).toFixed(2)}元`}</Text>
137
+                <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
137 138
               </View>
138 139
               <View className='cpn-md-act'>
139 140
                 <Location {...det} />