Commit e3b061be88c14980c50e44ad6003d03961c6f957

Authored by yvan.ni
1 parent da4ffa68

图片减小, 去掉多余没有用的界面

images/share/miao_share.png

14 KB | W: | H:

6.07 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
pages/cart/cart2/cart2.js
@@ -668,7 +668,10 @@ Page({ @@ -668,7 +668,10 @@ Page({
668 th.setData({collocation_goods:gg.collocation_goods}); 668 th.setData({collocation_goods:gg.collocation_goods});
669 669
670 var cart_arr=new Array(); 670 var cart_arr=new Array();
671 - var narr=gg.collocation_goods; 671 + //var narr=gg.collocation_goods;
  672 + //修改成深拷贝,确保返回是数据正确
  673 + var narr=JSON.parse(JSON.stringify(gg.collocation_goods));
  674 +
672 narr.push(t.data.data); 675 narr.push(t.data.data);
673 var ie = { 676 var ie = {
674 pickup_id: gg.pick_id, pname: gg.pick_name, goods: narr, exp_type: et, wind: m_wind, distr_t: distr_t, 677 pickup_id: gg.pick_id, pname: gg.pick_name, goods: narr, exp_type: et, wind: m_wind, distr_t: distr_t,
pages/justTest/justTest.js deleted
1 -// pages/justTest/justTest.js  
2 -// let livePlayer = requirePlugin('live-player-plugin');  
3 -  
4 -  
5 -var t = require("../../utils/util.js"),  
6 - ut = t,  
7 - e = require("../../utils/common.js"),  
8 - a = require("../../utils/wxParse/wxParse.js"),  
9 - s = getApp(),  
10 - i = s.request,  
11 - rq = i,  
12 - oo = s.globalData,  
13 - o = s.globalData.setting,  
14 - os = o;  
15 -var utils = require('../../utils/util.js'),ut=utils;  
16 -var regeneratorRuntime = require('../../utils/runtime.js');  
17 -  
18 -Page({  
19 -  
20 - /**  
21 - * 页面的初始数据  
22 - */  
23 - data: {  
24 - gid: "",  
25 - stoid: o.stoid,  
26 - url: o.url,  
27 - resourceUrl: o.resourceUrl,  
28 - iurl: o.imghost,  
29 - defaultAvatar: o.resourceUrl + "/static/images/user68.jpg",  
30 - data: null,  
31 - openSpecModal: !1,  
32 - openPromModal: !1,  
33 - supportPageScroll: !1,  
34 -  
35 - //联系电话  
36 - mobile: '',  
37 - bconfig:null,  
38 - sales_rules:1,  
39 -  
40 - t_time:null,  
41 - card_field:"",  
42 - dp_price:0,  
43 - cut_price:0,  
44 - open_ind_store:1,  
45 - goodsInputNum:1,  
46 - g_buy_num: null,  
47 - sele_collocation:null,  
48 -  
49 -  
50 -  
51 - photoUrl: "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1003256280,1176261798&fm=26&gp=0.jpg",  
52 - //(用来控制显示哪个按钮) false表示还没首次进行弹框授权,或者已经授权了;true表示在首次授权弹框时拒绝授权,或者在设置页面还是拒绝了授权  
53 - isAuthSavePhoto: false  
54 - },  
55 -  
56 -  
57 -  
58 -  
59 -  
60 - sendRequest: function () {  
61 -  
62 -  
63 -  
64 - //调用接口判断是不是会员  
65 - getApp().request.promiseGet("/api/weshop/wx/livelist/page",{  
66 - data:{store_id: 1}  
67 - }).then(res=>{  
68 - console.log(res);  
69 - // if(res.data.code==0){  
70 - // getApp().globalData.guide_id=res.data.data.id;  
71 - // }  
72 - })  
73 -  
74 - },  
75 - // nav: function () {  
76 - // wx.redirectTo({  
77 - // url: '/packageA/pages/liveStream/liveStream'  
78 - // })  
79 - // },  
80 - /**  
81 - * 生命周期函数--监听页面加载  
82 - */  
83 - onLoad: function (options) {  
84 -  
85 - },  
86 -  
87 - /**  
88 - * 生命周期函数--监听页面初次渲染完成  
89 - */  
90 - onReady: function () {  
91 -  
92 - },  
93 -  
94 - /**  
95 - * 生命周期函数--监听页面显示  
96 - */  
97 - onShow: function () {  
98 -  
99 - },  
100 -  
101 - /**  
102 - * 生命周期函数--监听页面隐藏  
103 - */  
104 - onHide: function () {  
105 -  
106 - },  
107 -  
108 - /**  
109 - * 生命周期函数--监听页面卸载  
110 - */  
111 - onUnload: function () {  
112 -  
113 - },  
114 -  
115 - /**  
116 - * 页面相关事件处理函数--监听用户下拉动作  
117 - */  
118 - onPullDownRefresh: function () {  
119 -  
120 - },  
121 -  
122 - /**  
123 - * 页面上拉触底事件的处理函数  
124 - */  
125 - onReachBottom: function () {  
126 -  
127 - },  
128 -  
129 - /**  
130 - * 用户点击右上角分享  
131 - */  
132 - onShareAppMessage: function () {  
133 -  
134 - },  
135 -  
136 -  
137 -  
138 -  
139 - saveImage() {  
140 - wx.showLoading({  
141 - title: '保存中...',  
142 - mask: true,  
143 - });  
144 - wx.downloadFile({  
145 - url:  
146 - 'http://upload.jianshu.io/admin_banners/web_images/4435/c1d3ca63353c8bd527f0d781605516cb5b266d02.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/1250/h/540',  
147 - success: function(res) {  
148 - if (res.statusCode === 200) {  
149 - let img = res.tempFilePath;  
150 - wx.saveImageToPhotosAlbum({  
151 - filePath: img,  
152 - success(res) {  
153 - wx.showToast({  
154 - title: '保存成功',  
155 - icon: 'success',  
156 - duration: 2000  
157 - });  
158 - },  
159 - fail(res) {  
160 - wx.showToast({  
161 - title: '保存失败',  
162 - icon: 'success',  
163 - duration: 2000  
164 - });  
165 - }  
166 - });  
167 - }  
168 - }  
169 - });  
170 - },  
171 -  
172 -  
173 -  
174 - live() {}  
175 -  
176 -  
177 -})  
178 \ No newline at end of file 0 \ No newline at end of file
pages/justTest/justTest.json deleted
1 -{  
2 - "usingComponents": {}  
3 -}  
4 \ No newline at end of file 0 \ No newline at end of file
pages/justTest/justTest.wxml deleted
1 -<!--pages/justTest/justTest.wxml-->  
2 -<text>pages/justTest/justTest.wxml</text>  
3 -<navigator url="/packageA/pages/liveStream/liveStream">进入直播</navigator>  
4 -<navigator url="/packageA/pages/liveStreamDetails/liveStreamDetails">进入直播详情页</navigator>  
5 -<button bindtap="sendRequest">发送请求</button>  
6 -  
7 -  
8 -  
9 -  
10 -<button open-type="share" class='iconfont icon-weixin'>分享</button>  
11 -<button bindopensetting="onOpenSetting" open-type="openSetting" >  
12 - 保存图片到手机  
13 -</button>  
14 -  
15 -  
16 -  
17 -  
18 -<button bindtap="showac"></button>  
19 -  
pages/justTest/justTest.wxss deleted
1 -/* pages/justTest/justTest.wxss */  
2 -page {  
3 - background: #fff;  
4 - text-align: center;  
5 -}  
6 -  
7 -.box {  
8 - padding: 30rpx 80rpx;  
9 -}  
10 -  
11 -.img {  
12 - width: 430rpx;  
13 - height: 430rpx;  
14 - margin: 20rpx 0;  
15 -}  
16 -button {  
17 - width: 100%;  
18 - background: #ffffff;  
19 - border: none;  
20 - border-radius: 0rpx;  
21 - padding: 0;  
22 - margin: 0;  
23 -}  
24 -  
25 -.btn {  
26 - background: green;  
27 - color: #ffffff;  
28 - border-radius: 0;  
29 -}  
30 \ No newline at end of file 0 \ No newline at end of file