Commit b261f317 by 谢中龙

导购优化,推荐商品去除价格显示

parent fb3509e3
......@@ -64,6 +64,15 @@ wxService.page({
onShow: function () {
this.getRecruitRanking() // 招募榜
},
//跳转到商品详情
onTapToGoodsDetail(e){
console.log(e)
let item = e.currentTarget.dataset.item;
let productId = item.productId;
wx.navigateTo({
url: '/pages/productDetail/productDetail?id=' + productId,
});
},
//打开摄像头 扫码
onTapScanQrcode(){
wx.scanCode({
......
......@@ -88,6 +88,8 @@
wx:for-item="item"
wx:for-index="idx"
wx:key="goodslist{{idx}}"
data-item="{{item}}"
bindtap='onTapToGoodsDetail'
data-index="{{idx}}">
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'>
......@@ -97,13 +99,13 @@
<view class='price'>
<view class='plus'>
<image src='/assets/imgs/point.png' mode='aspectFit'></image>
<text>{{item.point}}</text>
<text class='original-price'>{{item.point}}</text>
</view>
<view class='original-price'>¥126.08</view>
<!-- <view class='original-price'>¥126.08</view> -->
</view>
<view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToRecommandProduct'>群发推荐</view>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToRecommandProduct'>群发推荐</view>
</view>
</view>
</view>
......
......@@ -275,6 +275,7 @@ view{
font-size: 22rpx;
color: #999999;
margin-bottom: 10rpx;
}
.goods-list .goods-item .goods-rg-info .goods-price{
......
......@@ -49,6 +49,15 @@ wxService.page({
this.getGoodsList();
},
//跳转到商品详情
onTapToGoodsDetail(e) {
let item = e.currentTarget.dataset.item;
let productId = item.productId;
wx.navigateTo({
url: '/pages/productDetail/productDetail?id=' + productId,
});
},
//筛选点击
onTapChangeGoodsType(e){
let index = e.currentTarget.dataset.index;
......
......@@ -20,6 +20,8 @@
wx:for="{{goods.goodsList}}"
wx:for-item="item"
wx:for-index="idx"
data-item="{{item}}"
bindtap='onTapToGoodsDetail'
wx:key="{{idx}}">
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'>
......@@ -29,13 +31,13 @@
<view class='price'>
<view class='plus'>
<image src='/assets/imgs/point.png' mode='aspectFit'></image>
<text>{{item.point}}</text>
<text class='original-price'>{{item.point}}</text>
</view>
<view class='original-price'>¥126.08</view>
<!-- <view class='original-price'>¥126.08</view> -->
</view>
<view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToRecommandProduct'>群发推荐</view>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToRecommandProduct'>群发推荐</view>
</view>
</view>
</view>
......
......@@ -118,8 +118,8 @@ view{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
font-weight: bold;
margin-bottom: 8rpx;
......
// shoppingGuid/page/pages/welcomGuider/welcomGuider.js
const wxService = require('../../../../utils/wxService')
const envInfo = require('../../../../config/index').envInfo
const app = getApp();
wxService.page({
......@@ -34,9 +35,6 @@ wxService.page({
title: '检查登录状态..',
});
// this.qyLogin();
// return ;
//先判断是是不是已经登录了
let currentUserInfo = wx.getStorageSync('guidBaseInfo');
let userInfo = wx.getStorageSync('guidInfo');
......@@ -90,6 +88,7 @@ wxService.page({
jsCodeSession : r.data.data,
btnIsDisabled : false,
});
wx.hideLoading();
})
},
......@@ -127,16 +126,29 @@ wxService.page({
userid: this.data.jsCodeSession.userid,
corpid: this.data.jsCodeSession.corpid,
};
wxService.post('/member/qiyeweixin/minaLogin', param).then(r => {
wx.setStorageSync('guidInfo', userInfo);
wx.setStorageSync('token', r.data.data.token);
let qiyeLoginUserInfo = r.data.data;
wx.setStorageSync('guidBaseInfo', qiyeLoginUserInfo);
wx.hideLoading();
wx.redirectTo({
url: '/shoppingGuid/page/pages/home/home',
});
})
let url = envInfo.ctx + '/member/qiyeweixin/minaLogin';
wx.request({
url,
method: 'POST',
header: {
'tunnel-token': envInfo.tunnelToken, // 开发
},
data: param,
channel: null,
success(r){
wx.setStorageSync('guidInfo', userInfo);
wx.setStorageSync('token', r.data.data.token);
let qiyeLoginUserInfo = r.data.data;
wx.setStorageSync('guidBaseInfo', qiyeLoginUserInfo);
wx.hideLoading();
wx.redirectTo({
url: '/shoppingGuid/page/pages/home/home',
});
},
fail(error){
console.log(res)
},
});
},
//进入商城
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment