Commit 60b85d17e857b359a3719c7583066ffc0e772e4c
1 parent
df9a2e7d
代码分包优化
Showing
8 changed files
with
10 additions
and
11 deletions
app.json
| ... | ... | @@ -38,7 +38,6 @@ |
| 38 | 38 | "pages/payment/pay_success/pay_success", |
| 39 | 39 | "pages/user/plus/plus", |
| 40 | 40 | "pages/user/cardinfo/cardinfo", |
| 41 | - "pages/user/Detailed/Detailed", | |
| 42 | 41 | "pages/user/my_service/appment_main", |
| 43 | 42 | "pages/user/my_service/i_service", |
| 44 | 43 | "pages/user/my_service/cosmetology_list", |
| ... | ... | @@ -208,7 +207,8 @@ |
| 208 | 207 | "root": "packageE/", |
| 209 | 208 | "name": "pack5", |
| 210 | 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 | 3 | a = t.request, |
| 4 | 4 | o = t.globalData.setting, |
| 5 | 5 | os = o, |
| 6 | - i = require("../../../utils/util.js"), | |
| 6 | + i = require("../../../../utils/util.js"), | |
| 7 | 7 | ut = i, |
| 8 | - s = require("../../../utils/common.js"); | |
| 8 | + s = require("../../../../utils/common.js"); | |
| 9 | 9 | |
| 10 | 10 | Page({ |
| 11 | 11 | /** |
| ... | ... | @@ -222,12 +222,12 @@ Page({ |
| 222 | 222 | //开启画布 |
| 223 | 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 | 226 | ctx.setFontSize(24 * unit); |
| 227 | 227 | ctx.setFillStyle("rgb(0,0,0)"); |
| 228 | 228 | ctx.fillText(nickname, 152 * unit, 76 * unit); |
| 229 | 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 | 231 | ctx.drawImage(tj_path, 152 * unit + width, 54 * unit, 95 * unit, 30 * unit); |
| 232 | 232 | ctx.setFontSize(18 * unit); |
| 233 | 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 | 5 | |
| 6 | 6 | <picker class='pi' mode="date" value='{{datet}}' start="2019/1/1" bindchange='bindDateChenge'> |
| 7 | 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 | 10 | <view hidden='{{isBind}}' class="qc-rim"> |
| 11 | 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 | 707 | to_user_money:function(){ |
| 708 | 708 | //提现小于0的值也不提现 |
| 709 | 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 | 712 | this.setData({yu_e_show:1}) |
| 713 | 713 | }, | ... | ... |
pages/user/cardinfo/cardinfo.wxml
| 1 | 1 | <import src="../../../utils/wxParse/wxParse.wxml"></import> |
| 2 | -<import src="../../../utils/filter.wxs"></import> | |
| 3 | 2 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> |
| 4 | 3 | |
| 5 | 4 | <view> |
| ... | ... | @@ -63,7 +62,7 @@ |
| 63 | 62 | |
| 64 | 63 | <view class="flex"> |
| 65 | 64 | <view class="Detailed flex-center"> |
| 66 | - <navigator url="/pages/user/Detailed/Detailed">明细</navigator> | |
| 65 | + <navigator url="/packageE/pages/user/Detailed/Detailed">明细</navigator> | |
| 67 | 66 | </view> |
| 68 | 67 | <view class="Invitation_Cash" bindtap="to_user_money">转到余额</view> |
| 69 | 68 | </view> | ... | ... |