Authored by 肖亚东

首页、地址管理等问题修改 — review by 黄义

... ... @@ -376,6 +376,9 @@ Page({
},
handlerMove: function () {
}
})
... ...
... ... @@ -212,10 +212,6 @@ Page({
homelist: currentData.data,
})
}
console.log('==============楼层数据===============');
console.log(this.data.homelist);
console.log('====================================');
this.fetchRecommend(force);
},
... ... @@ -250,9 +246,6 @@ Page({
homeService.getProductlist(param)
.then(json => {
console.log('==============商品数据===============');
console.log(json);
console.log('====================================');
if (!json || !json.code || json.code != 200) {
let currentChannel = this.data.selectedChannel;
let currentChannelData = this.data.newChannels[currentChannel];
... ... @@ -449,12 +442,11 @@ Page({
},
jumpByRuleEvent(event) {
let url = event.detail.currentTarget.dataset.jump_rule;
console.log('==========jumpByRuleEvent===========');
console.log(event.detail);
console.log(url);
console.log('====================================');
let dataset = event.currentTarget.dataset;
if (Object.keys(dataset).length === 0) {
dataset = event.detail.currentTarget.dataset;
}
let url = dataset.jump_rule;
router.goUrl(url);
},
... ...
... ... @@ -3,7 +3,7 @@
style="border-bottom:{{no_line?'0.5rpx solid #ffffff':'0.5rpx solid #e0e0e0'}}">
<view class='titleLine'></view>
<view class='titleDesc'>{{desc}}</view>
<view class='titleMore' tt:if='{{more_url?true:false}}' data-jump_rule="{{more_url}}" bindtap="jumpByRule">
<view class='titleMore' tt:if='{{more_url?true:false}}' data-jump_rule="{{more_url}}" bindtap="jumpByRuleEvent">
<image class="titleMoreIm" src="../../images/more_ic@2x.png" ></image>
</view>
</view>
... ...
... ... @@ -629,7 +629,7 @@ Page({
copy: function (e) {
var that = this;
var content = e.detail.currentTarget.dataset.copy_content;
var content = e.detail.currentTarget.dataset.copy_content || '';
var type = e.detail.currentTarget.dataset.copy_type;
tt.setClipboardData({
data: '' + content,
... ... @@ -649,7 +649,7 @@ Page({
lookup: function (e) {
var that = this;
var copy_url = e.detail.currentTarget.dataset.copy_url;
var copy_url = e.detail.currentTarget.dataset.copy_url || '';
var copy_content = e.detail.currentTarget.dataset.copy_content;
var copy_type = e.detail.currentTarget.dataset.copy_type;
tt.setClipboardData({
... ...
... ... @@ -42,7 +42,6 @@ Page({
addType: 'none' // normal or wechat
},
onLoad:function(options){
console.log(options)
// 生命周期函数--监听页面加载
// new app.WeToast;
... ...
... ... @@ -49,9 +49,9 @@
<view class="add-address" >
<view class='separator'></view>
<view catchtap="addButtonTapped" class='add-addressButton'><image src="../../../images/add-normal@3x.png" ></image></view>
<view class='separator'></view>
<view catchtap="addFromWechatButtonTapped" class='add-addressButton right'><image src="../../../images/add-wechat@3x.png" ></image></view>
<view class='separator'></view>
<!-- <view class='separator'></view> -->
<!-- <view catchtap="addFromWechatButtonTapped" class='add-addressButton right'><image src="../../../images/add-wechat@3x.png" ></image></view>
<view class='separator'></view> -->
</view>
</view>
</view>
... ...