Commit c9a60728768a0597bea0908ec693751d5da4b45d

Authored by yvan.ni
1 parent 09e74ee4

Revert "OA单的优化"

This reverts commit 09e74ee4e12011b35b579a3bc0d3af7f556cb921.
components/nodata/nodata.js
1 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 4 data: {
15 5  
... ...
components/nodata/nodata.wxml
1 1 <view class="nodata-container">
2 2 <view class="nodata-icon iconfont icon-nodata"></view>
3   - <view class="nodata-title">{{title?title:'暂无数据'}}</view>
  3 + <view class="nodata-title">暂无数据</view>
4 4 </view>
... ...
packageA/pages/chongzhiDetails/chongzhiDetails.js
... ... @@ -23,7 +23,6 @@ Page({
23 23 */
24 24 onLoad: function (options) {
25 25  
26   - wx.showLoading();
27 26 const self = this;
28 27 if(options.type)
29 28 self.setData({type:options.type});
... ... @@ -51,11 +50,11 @@ Page({
51 50  
52 51  
53 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 54 }).then(res=>{
56 55 if(res.data.code==0 && res.data.data.pageData && res.data.data.pageData.length>0){
57 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 94 self.setData({
96 95 result: result,
97 96 });
98   -
99   - wx.hideLoading();
100 97  
101 98 },
102 99 });
... ... @@ -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 280 \ No newline at end of file
... ...
packageA/pages/chongzhiDetails/chongzhiDetails.wxml
... ... @@ -3,30 +3,16 @@
3 3 <view class="container">
4 4 <view>
5 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 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 16 <view >
31 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 6 var bijiao = getDate(endtime) - getDate();
7 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 9 module.exports = {
14   - is_acting:is_acting,
15   - has_char:has_char,
  10 + is_acting:is_acting
16 11 }
17 12 \ No newline at end of file
... ...
packageD/pages/user/deposit/prepaid/prepaid.js
... ... @@ -13,8 +13,7 @@ Page({
13 13 iurl: o.imghost,
14 14 showModal: false, //弹框控制器
15 15 perpaid: [], //数据,
16   - paying:0,
17   - is_get:0
  16 + paying:0
18 17 },
19 18 onLoad:function (){
20 19 //定义第一次进入
... ... @@ -51,9 +50,6 @@ Page({
51 50 },
52 51 /*预存款的劵*/
53 52 async yuck() {
54   -
55   -
56   - wx.showLoading();
57 53 var user_id = getApp().globalData.user_id;
58 54 var store_id = os.stoid;
59 55 console.log(user_id, "有进来吗银行卡", store_id );
... ... @@ -72,9 +68,6 @@ Page({
72 68 e.setData({
73 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 4 \ No newline at end of file
... ...
packageD/pages/user/deposit/prepaid/prepaid.wxml
... ... @@ -38,11 +38,6 @@
38 38  
39 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 41 <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
47 42 <view class="big-rim modalDlg" wx:if="{{showModal}}">
48 43 <view class="gb-rim" bindtap="shut">
... ...
packageD/pages/user/deposit/prepaid/prepaid.wxss
1   -image{
2   - height:auto;
3   -}
4 1 /* 图片 */
5 2 .picture{
6 3 /* margin-top: 5rpx; */
... ...
pages/user/userinfo/userinfo.js
... ... @@ -792,7 +792,6 @@ Page({
792 792 if(choice_guide){
793 793 a.staffName=choice_guide.StaffName;
794 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 238 </view>
239 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 243 </view>
... ...