Commit c9a60728768a0597bea0908ec693751d5da4b45d

Authored by yvan.ni
1 parent 09e74ee4

Revert "OA单的优化"

This reverts commit 09e74ee4e12011b35b579a3bc0d3af7f556cb921.
components/nodata/nodata.js
1 Component({ 1 Component({
2 - externalClasses: ['nodata-container'],  
3 - //在.js文件中  
4 - properties: {  
5 - // 简单的定义方式  
6 - // max:Number  
7 - // 完整的定义方式  
8 - title:{  
9 - type:String,  
10 - value:''  
11 - }  
12 - }, 2 + externalClasses: ['nodata-container'],
13 /*** 页面的初始数据***/ 3 /*** 页面的初始数据***/
14 data: { 4 data: {
15 5
components/nodata/nodata.wxml
1 <view class="nodata-container"> 1 <view class="nodata-container">
2 <view class="nodata-icon iconfont icon-nodata"></view> 2 <view class="nodata-icon iconfont icon-nodata"></view>
3 - <view class="nodata-title">{{title?title:'暂无数据'}}</view> 3 + <view class="nodata-title">暂无数据</view>
4 </view> 4 </view>
packageA/pages/chongzhiDetails/chongzhiDetails.js
@@ -23,7 +23,6 @@ Page({ @@ -23,7 +23,6 @@ Page({
23 */ 23 */
24 onLoad: function (options) { 24 onLoad: function (options) {
25 25
26 - wx.showLoading();  
27 const self = this; 26 const self = this;
28 if(options.type) 27 if(options.type)
29 self.setData({type:options.type}); 28 self.setData({type:options.type});
@@ -51,11 +50,11 @@ Page({ @@ -51,11 +50,11 @@ Page({
51 50
52 51
53 getApp().request.promiseGet("/api/weshop/ad/page",{ 52 getApp().request.promiseGet("/api/weshop/ad/page",{
54 - data:{store_id:os.stoid,enabled:1,pid:1210} 53 + data:{store_id:os.stoid,enabled:1,pid:601}
55 }).then(res=>{ 54 }).then(res=>{
56 if(res.data.code==0 && res.data.data.pageData && res.data.data.pageData.length>0){ 55 if(res.data.code==0 && res.data.data.pageData && res.data.data.pageData.length>0){
57 var a = res.data.data.pageData; 56 var a = res.data.data.pageData;
58 - self.setData({show_img:a[0].ad_code,ad_color:a[0].bgcolor,ad:a[0] }); 57 + self.setData({show_img:a[0].ad_code,ad_color:a[0].bgcolor});
59 } 58 }
60 }) 59 })
61 60
@@ -95,8 +94,6 @@ Page({ @@ -95,8 +94,6 @@ Page({
95 self.setData({ 94 self.setData({
96 result: result, 95 result: result,
97 }); 96 });
98 -  
99 - wx.hideLoading();  
100 97
101 }, 98 },
102 }); 99 });
@@ -279,12 +276,4 @@ Page({ @@ -279,12 +276,4 @@ Page({
279 } 276 }
280 }) 277 })
281 }, 278 },
282 -  
283 -  
284 - go_url:function (e){  
285 - var url=e.currentTarget.dataset.url;  
286 - if(url){  
287 - getApp().goto(url);  
288 - }  
289 - }  
290 }) 279 })
291 \ No newline at end of file 280 \ No newline at end of file
packageA/pages/chongzhiDetails/chongzhiDetails.wxml
@@ -3,30 +3,16 @@ @@ -3,30 +3,16 @@
3 <view class="container"> 3 <view class="container">
4 <view> 4 <view>
5 <view class="banner-container" wx:if="{{show_img}}"> 5 <view class="banner-container" wx:if="{{show_img}}">
6 -  
7 - <navigator url="{{item.ad_weapplink}}" class="s1_gk_a1" wx:if="{{g_filter.has_char(ad.ad_weapplink,'plugin')>=0}}">  
8 - <image class="img-block" src="{{url+show_img}}" mode="widthFix"  
9 - lazy-load="true" binderror="bind_err" data-errorimg="show_img" ></image>  
10 - </navigator>  
11 -  
12 - <block wx:else>  
13 - <image class="img-block" src="{{url+show_img}}" mode="widthFix" bindtap="go_url"  
14 - data-url="{{ad.ad_weapplink}}"  
15 - lazy-load="true" binderror="bind_err" data-errorimg="show_img" ></image>  
16 - </block>  
17 -  
18 -  
19 - </view>  
20 -  
21 - <view class="title-container" wx:else>  
22 - <view class="title">  
23 - <view>女王专享</view>  
24 - <view>你的美丽我来缔造</view>  
25 - </view>  
26 - </view> 6 + <image class="img-block" src="{{url+show_img}}" mode="widthFix"
  7 + lazy-load="true" binderror="bind_err" data-errorimg="show_img" ></image></view>
27 8
28 <view class="list"> 9 <view class="list">
29 - 10 + <view class="title-container">
  11 + <view class="title">
  12 + <view>女王专享</view>
  13 + <view>你的美丽我来缔造</view>
  14 + </view>
  15 + </view>
30 <view > 16 <view >
31 <view class="list-item flex" wx:for="{{result.givelist}}"> 17 <view class="list-item flex" wx:for="{{result.givelist}}">
32 <!-- 左图片 --> 18 <!-- 左图片 -->
packageA/pages/chongzhiDetails/g_filter.wxs
@@ -6,11 +6,6 @@ var is_acting = function(endtime){ @@ -6,11 +6,6 @@ var is_acting = function(endtime){
6 var bijiao = getDate(endtime) - getDate(); 6 var bijiao = getDate(endtime) - getDate();
7 return bijiao > 0 ? true : false; 7 return bijiao > 0 ? true : false;
8 } 8 }
9 -var has_char=function(url,key){  
10 - if(!url) return -1;  
11 - return url.indexOf(key);  
12 -}  
13 module.exports = { 9 module.exports = {
14 - is_acting:is_acting,  
15 - has_char:has_char, 10 + is_acting:is_acting
16 } 11 }
17 \ No newline at end of file 12 \ No newline at end of file
packageD/pages/user/deposit/prepaid/prepaid.js
@@ -13,8 +13,7 @@ Page({ @@ -13,8 +13,7 @@ Page({
13 iurl: o.imghost, 13 iurl: o.imghost,
14 showModal: false, //弹框控制器 14 showModal: false, //弹框控制器
15 perpaid: [], //数据, 15 perpaid: [], //数据,
16 - paying:0,  
17 - is_get:0 16 + paying:0
18 }, 17 },
19 onLoad:function (){ 18 onLoad:function (){
20 //定义第一次进入 19 //定义第一次进入
@@ -51,9 +50,6 @@ Page({ @@ -51,9 +50,6 @@ Page({
51 }, 50 },
52 /*预存款的劵*/ 51 /*预存款的劵*/
53 async yuck() { 52 async yuck() {
54 -  
55 -  
56 - wx.showLoading();  
57 var user_id = getApp().globalData.user_id; 53 var user_id = getApp().globalData.user_id;
58 var store_id = os.stoid; 54 var store_id = os.stoid;
59 console.log(user_id, "有进来吗银行卡", store_id ); 55 console.log(user_id, "有进来吗银行卡", store_id );
@@ -72,9 +68,6 @@ Page({ @@ -72,9 +68,6 @@ Page({
72 e.setData({ 68 e.setData({
73 perpaid: perpaids,is_get:1 69 perpaid: perpaids,is_get:1
74 }); 70 });
75 -  
76 - wx.hideLoading();  
77 -  
78 }) 71 })
79 72
80 }, 73 },
packageD/pages/user/deposit/prepaid/prepaid.json
1 { 1 {
2 - "usingComponents": {},  
3 - "usingComponents": {  
4 - "nodata": "/components/nodata/nodata"  
5 - } 2 + "usingComponents": {}
6 } 3 }
7 \ No newline at end of file 4 \ No newline at end of file
packageD/pages/user/deposit/prepaid/prepaid.wxml
@@ -38,11 +38,6 @@ @@ -38,11 +38,6 @@
38 38
39 </block> 39 </block>
40 40
41 -  
42 -<view wx:if="{{perpaid.length==0 && is_get}}" style="text-align: center;">  
43 - <nodata title="暂无充值活动" nodataContainer="nodata"></nodata>  
44 -</view>  
45 -  
46 <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view> 41 <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
47 <view class="big-rim modalDlg" wx:if="{{showModal}}"> 42 <view class="big-rim modalDlg" wx:if="{{showModal}}">
48 <view class="gb-rim" bindtap="shut"> 43 <view class="gb-rim" bindtap="shut">
packageD/pages/user/deposit/prepaid/prepaid.wxss
1 -image{  
2 - height:auto;  
3 -}  
4 /* 图片 */ 1 /* 图片 */
5 .picture{ 2 .picture{
6 /* margin-top: 5rpx; */ 3 /* margin-top: 5rpx; */
pages/user/userinfo/userinfo.js
@@ -792,7 +792,6 @@ Page({ @@ -792,7 +792,6 @@ Page({
792 if(choice_guide){ 792 if(choice_guide){
793 a.staffName=choice_guide.StaffName; 793 a.staffName=choice_guide.StaffName;
794 a.staffId=choice_guide.Id; 794 a.staffId=choice_guide.Id;
795 - a.staffTel=choice_guide.Tel;  
796 } 795 }
797 796
798 797
pages/user/userinfo/userinfo.wxml
@@ -238,14 +238,6 @@ @@ -238,14 +238,6 @@
238 </view> 238 </view>
239 </view> 239 </view>
240 240
241 - <view wx:if="{{user.staffTel}}" class="user-name flex-vertical-between">  
242 - <view class="user-name-txt">{{guide_title}}电话</view>  
243 - <view class="flex-center user-txt-right">  
244 - <view class="one-line">{{user.staffTel}}</view>  
245 - </view>  
246 -  
247 - </view>  
248 -  
249 241
250 242
251 </view> 243 </view>