Commit 60b85d17e857b359a3719c7583066ffc0e772e4c
1 parent
df9a2e7d
代码分包优化
Showing
8 changed files
with
10 additions
and
11 deletions
app.json
@@ -38,7 +38,6 @@ | @@ -38,7 +38,6 @@ | ||
38 | "pages/payment/pay_success/pay_success", | 38 | "pages/payment/pay_success/pay_success", |
39 | "pages/user/plus/plus", | 39 | "pages/user/plus/plus", |
40 | "pages/user/cardinfo/cardinfo", | 40 | "pages/user/cardinfo/cardinfo", |
41 | - "pages/user/Detailed/Detailed", | ||
42 | "pages/user/my_service/appment_main", | 41 | "pages/user/my_service/appment_main", |
43 | "pages/user/my_service/i_service", | 42 | "pages/user/my_service/i_service", |
44 | "pages/user/my_service/cosmetology_list", | 43 | "pages/user/my_service/cosmetology_list", |
@@ -208,7 +207,8 @@ | @@ -208,7 +207,8 @@ | ||
208 | "root": "packageE/", | 207 | "root": "packageE/", |
209 | "name": "pack5", | 208 | "name": "pack5", |
210 | "pages": [ | 209 | "pages": [ |
211 | - "pages/togoin/togoin" | 210 | + "pages/togoin/togoin", |
211 | + "pages/user/Detailed/Detailed" | ||
212 | ] | 212 | ] |
213 | } | 213 | } |
214 | 214 |
pages/user/Detailed/Detailed.js renamed to packageE/pages/user/Detailed/Detailed.js
@@ -3,9 +3,9 @@ var t = getApp(), | @@ -3,9 +3,9 @@ var t = getApp(), | ||
3 | a = t.request, | 3 | a = t.request, |
4 | o = t.globalData.setting, | 4 | o = t.globalData.setting, |
5 | os = o, | 5 | os = o, |
6 | - i = require("../../../utils/util.js"), | 6 | + i = require("../../../../utils/util.js"), |
7 | ut = i, | 7 | ut = i, |
8 | - s = require("../../../utils/common.js"); | 8 | + s = require("../../../../utils/common.js"); |
9 | 9 | ||
10 | Page({ | 10 | Page({ |
11 | /** | 11 | /** |
@@ -222,12 +222,12 @@ Page({ | @@ -222,12 +222,12 @@ Page({ | ||
222 | //开启画布 | 222 | //开启画布 |
223 | const ctx = wx.createCanvasContext('myCanvas'); | 223 | const ctx = wx.createCanvasContext('myCanvas'); |
224 | //先画背景 | 224 | //先画背景 |
225 | - ctx.drawImage("../../../images/share/mackground.png", 0, 0, 554 * unit, 899 * unit); | 225 | + ctx.drawImage("../../../../images/share/mackground.png", 0, 0, 554 * unit, 899 * unit); |
226 | ctx.setFontSize(24 * unit); | 226 | ctx.setFontSize(24 * unit); |
227 | ctx.setFillStyle("rgb(0,0,0)"); | 227 | ctx.setFillStyle("rgb(0,0,0)"); |
228 | ctx.fillText(nickname, 152 * unit, 76 * unit); | 228 | ctx.fillText(nickname, 152 * unit, 76 * unit); |
229 | var width = 24 * nickname.length * unit + 2 * unit; | 229 | var width = 24 * nickname.length * unit + 2 * unit; |
230 | - var tj_path = "../../../images/share/q_tj.png"; | 230 | + var tj_path = "../../../../images/share/q_tj.png"; |
231 | ctx.drawImage(tj_path, 152 * unit + width, 54 * unit, 95 * unit, 30 * unit); | 231 | ctx.drawImage(tj_path, 152 * unit + width, 54 * unit, 95 * unit, 30 * unit); |
232 | ctx.setFontSize(18 * unit); | 232 | ctx.setFontSize(18 * unit); |
233 | ctx.setLineJoin('round'); //交点设置成圆角 | 233 | ctx.setLineJoin('round'); //交点设置成圆角 |
pages/user/Detailed/Detailed.json renamed to packageE/pages/user/Detailed/Detailed.json
pages/user/Detailed/Detailed.wxml renamed to packageE/pages/user/Detailed/Detailed.wxml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | 5 | ||
6 | <picker class='pi' mode="date" value='{{datet}}' start="2019/1/1" bindchange='bindDateChenge'> | 6 | <picker class='pi' mode="date" value='{{datet}}' start="2019/1/1" bindchange='bindDateChenge'> |
7 | <view class="rq-rim"> | 7 | <view class="rq-rim"> |
8 | - <view class='kssj'><text class="wz"name="datat"value='{{datet}}'bindinput='watchPassWord'>{{datet}}</text></view> | 8 | + <view class='kssj'><text class="wz"name="datat" value='{{datet}}' bindinput='watchPassWord'>{{datet}}</text></view> |
9 | <!-- 清除输入框中的内容--> | 9 | <!-- 清除输入框中的内容--> |
10 | <view hidden='{{isBind}}' class="qc-rim"> | 10 | <view hidden='{{isBind}}' class="qc-rim"> |
11 | <button class="empty" catchtap="eliminate">x</button> | 11 | <button class="empty" catchtap="eliminate">x</button> |
pages/user/Detailed/Detailed.wxss renamed to packageE/pages/user/Detailed/Detailed.wxss
pages/user/cardinfo/cardinfo.js
@@ -707,7 +707,7 @@ Page({ | @@ -707,7 +707,7 @@ Page({ | ||
707 | to_user_money:function(){ | 707 | to_user_money:function(){ |
708 | //提现小于0的值也不提现 | 708 | //提现小于0的值也不提现 |
709 | if(!this.data.free.VIPRebate || parseFloat(this.data.free.VIPRebate)<=0){ | 709 | if(!this.data.free.VIPRebate || parseFloat(this.data.free.VIPRebate)<=0){ |
710 | - getApp().my_warnning("您目前没有可提现的金额",0,th); return false; | 710 | + getApp().my_warnning("您目前没有可提现的金额",0,this); return false; |
711 | } | 711 | } |
712 | this.setData({yu_e_show:1}) | 712 | this.setData({yu_e_show:1}) |
713 | }, | 713 | }, |
pages/user/cardinfo/cardinfo.wxml
1 | <import src="../../../utils/wxParse/wxParse.wxml"></import> | 1 | <import src="../../../utils/wxParse/wxParse.wxml"></import> |
2 | -<import src="../../../utils/filter.wxs"></import> | ||
3 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> | 2 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> |
4 | 3 | ||
5 | <view> | 4 | <view> |
@@ -63,7 +62,7 @@ | @@ -63,7 +62,7 @@ | ||
63 | 62 | ||
64 | <view class="flex"> | 63 | <view class="flex"> |
65 | <view class="Detailed flex-center"> | 64 | <view class="Detailed flex-center"> |
66 | - <navigator url="/pages/user/Detailed/Detailed">明细</navigator> | 65 | + <navigator url="/packageE/pages/user/Detailed/Detailed">明细</navigator> |
67 | </view> | 66 | </view> |
68 | <view class="Invitation_Cash" bindtap="to_user_money">转到余额</view> | 67 | <view class="Invitation_Cash" bindtap="to_user_money">转到余额</view> |
69 | </view> | 68 | </view> |
utils/auth.js
@@ -269,7 +269,7 @@ module.exports = { | @@ -269,7 +269,7 @@ module.exports = { | ||
269 | }, | 269 | }, |
270 | goGetUserInfo: function() { | 270 | goGetUserInfo: function() { |
271 | wx.navigateTo({ | 271 | wx.navigateTo({ |
272 | - url: "/pages/user/get_user_info/get_user_info" | 272 | + url: "/packageE/pages/togoin/togoin" |
273 | }); | 273 | }); |
274 | } | 274 | } |
275 | }; | 275 | }; |