Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
1ac70cf7
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1ac70cf7
编写于
7月 02, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序优化
上级
7a526da9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
96 addition
and
16 deletion
+96
-16
public/appmini/old/weixin/app.wxss
public/appmini/old/weixin/app.wxss
+44
-1
public/appmini/old/weixin/components/popup/popup.wxss
public/appmini/old/weixin/components/popup/popup.wxss
+2
-0
public/appmini/old/weixin/images/share-friend-icon.png
public/appmini/old/weixin/images/share-friend-icon.png
+0
-0
public/appmini/old/weixin/images/share-recomend-icon.png
public/appmini/old/weixin/images/share-recomend-icon.png
+0
-0
public/appmini/old/weixin/images/share-weixin-icon.png
public/appmini/old/weixin/images/share-weixin-icon.png
+0
-0
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
+14
-2
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
...c/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
+31
-6
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
...c/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
+5
-7
未找到文件。
public/appmini/old/weixin/app.wxss
浏览文件 @
1ac70cf7
...
...
@@ -269,8 +269,51 @@ button[disabled].bg-primary {
}
/*
滚动标签高度
滚动标签高度
*/
.scroll-box {
height: 100vh;
}
/*
分享组建样式
*/
.share-popup {
padding: 20rpx 10rpx 0 10rpx;
position: relative;
}
.share-popup .close {
position: absolute;
top: 20rpx;
right: 20rpx;
z-index: 2;
}
.share-popup-content {
padding: 0 20rpx;
margin-top: 40rpx;
text-align: left;
}
.share-popup-content .share-items {
padding: 30rpx 0;
height: 85rpx;
}
.share-popup-content .share-items:not(:first-child) {
border-top: 1px solid #f0f0f0;
}
.share-popup-content .share-items button {
background: transparent;
padding: 0;
width: 100%;
text-align: left;
margin: 0;
}
.share-popup-content .share-items image {
width: 80rpx;
height: 80rpx;
vertical-align: middle;
margin-right: 20rpx;
}
.share-popup-content .share-items .single-text {
width: calc(100% - 100rpx);
line-height: 85rpx;
}
\ No newline at end of file
public/appmini/old/weixin/components/popup/popup.wxss
浏览文件 @
1ac70cf7
.am-popup-content {
position: fixed;
background:#fff;
z-index: 101;
}
.am-popup-mask {
...
...
@@ -12,6 +13,7 @@
background-color: rgba(0, 0, 0, 0.75);
opacity: 0;
pointer-events: none;
z-index: 100;
}
.am-popup-left {
...
...
public/appmini/old/weixin/images/share-friend-icon.png
0 → 100644
浏览文件 @
1ac70cf7
3.0 KB
public/appmini/old/weixin/images/share-recomend-icon.png
0 → 100644
浏览文件 @
1ac70cf7
3.1 KB
public/appmini/old/weixin/images/share-weixin-icon.png
0 → 100644
浏览文件 @
1ac70cf7
2.8 KB
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
浏览文件 @
1ac70cf7
...
...
@@ -33,10 +33,12 @@ Page({
goods_video_is_autoplay
:
false
,
is_use_mobile_detail
:
1
,
popup_share_status
:
false
,
},
onLoad
(
params
)
{
//
params['goods_id']=2;
params
[
'
goods_id
'
]
=
2
;
this
.
setData
({
params
:
params
});
this
.
init
();
},
...
...
@@ -188,7 +190,7 @@ Page({
});
},
// 弹层关闭
//
购买
弹层关闭
popup_close_event
(
e
)
{
this
.
setData
({
popup_status
:
false
});
},
...
...
@@ -609,6 +611,16 @@ Page({
this
.
setData
({
goods_video_is_autoplay
:
false
});
},
// 分享开启弹层
popup_share_event
(
e
)
{
this
.
setData
({
popup_share_status
:
true
});
},
// 分享弹层关闭
popup_share_close_event
(
e
)
{
this
.
setData
({
popup_share_status
:
false
});
},
// 自定义分享
onShareAppMessage
()
{
return
{
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
浏览文件 @
1ac70cf7
...
...
@@ -30,11 +30,9 @@
<view class="goods-base bg-white">
<view class="oh">
<view class="goods-title fl multi-text" style="color:{{goods.title_color}}">{{goods.title}}</view>
<view class="goods-share fr tc">
<button type="default" size="mini" open-type="share" hover-class="none">
<image src="/images/goods-detail-share-icon.png" mode="scaleToFill" class="dis-block" />
<text class="dis-block cr-888">分享</text>
</button>
<view class="goods-share fr tc" bindtap="popup_share_event">
<image src="/images/goods-detail-share-icon.png" mode="scaleToFill" class="dis-block" />
<text class="dis-block cr-888">分享</text>
</view>
</view>
<view class="goods-price single-text">
...
...
@@ -95,7 +93,7 @@
</view>
</view>
<!-- 弹层 -->
<!--
购买
弹层 -->
<component-popup prop-show="{{popup_status}}" prop-position="bottom" bindonclose="popup_close_event">
<view class="goods-popup bg-white">
<view class="close fr oh">
...
...
@@ -148,6 +146,33 @@
<button class="goods-popup-submit bg-main" type="default" catchtap="goods_buy_confirm_event" hover-class="none">确定</button>
</view>
</component-popup>
<!-- 分享弹层 -->
<component-popup prop-show="{{popup_share_status}}" prop-position="bottom" bindonclose="popup_share_close_event">
<view class="share-popup bg-white">
<view class="close fr oh">
<view class="fr" catchtap="popup_share_close_event">
<icon type="clear" size="20" />
</view>
</view>
<view class="share-popup-content">
<view class="share-items oh">
<image class="fl" src="/images/share-recomend-icon.png" mode="scaleToFill" />
<view class="cr-888 single-text fl">好物推荐、和大家一起分享你发现的宝贝</view>
</view>
<view class="share-items oh">
<button class="dis-block" type="default" size="mini" open-type="share" hover-class="none">
<image src="/images/share-weixin-icon.png" mode="scaleToFill" />
<text class="cr-888 single-text">一键分享给好友、群聊</text>
</button>
</view>
<view class="share-items oh">
<image src="/images/share-friend-icon.png" mode="scaleToFill" />
<text class="cr-888 single-text">生成海报,分享到朋友圈、好友及群聊</text>
</view>
</view>
</view>
</component-popup>
</view>
<view wx:if="{{goods == null}}">
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
浏览文件 @
1ac70cf7
...
...
@@ -180,21 +180,19 @@
right: 0;
}
.goods-base .goods-title {
width: calc(100% - 1
3
0rpx);
width: calc(100% - 1
0
0rpx);
font-size: 32rpx;
line-height: 44rpx;
font-weight: 500;
}
.goods-base .goods-share {
padding: 0 20rpx;
margin-bottom: 10rpx;
}
.goods-base .goods-share image {
width: 50rpx;
height: 50rpx;
}
.goods-base .goods-share button {
height: auto;
font-size: 26rpx;
border: 0;
min-width: initial;
}
.goods-base .goods-price {
margin-top: 10rpx;
padding-right: 160rpx;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录