切换导航条
此项目
正在载入...
登录
燕成杰
/
Bitcoin
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
燕成杰
3 years ago
提交
424690670fa264592dc947946a841e32274f1605
1 个父辈
69c653bb
修改样式及bug
隐藏空白字符变更
内嵌
并排对比
正在显示
11 个修改的文件
包含
115 行增加
和
21 行删除
manifest.json
pages/index/detail.vue
pages/index/index.vue
pages/index/product.vue
pages/index/realName.vue
pages/login/register.vue
pages/mine/buyerOrder.vue
pages/mine/mine.vue
pages/mine/sellerOrder.vue
static/detailShare.png
unpackage/dist/build/h5/index.html
manifest.json
查看文件 @
4246906
{
"name"
:
"Bitcoin"
,
"appid"
:
"__UNI__D
7F2A57
"
,
"appid"
:
"__UNI__D
80DC8B
"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
...
...
pages/index/detail.vue
查看文件 @
4246906
...
...
@@ -13,7 +13,7 @@
<image src="../../static/heart.png" mode="" v-if="detail.is_fav==0" @click="product_favorite">
</image>
<image src="../../static/1.png" mode="" v-else @click="product_favorite"></image>
<image src="../../static/share.png" mode=""></image>
<image src="../../static/share.png"
@click="shareModel=true"
mode=""></image>
<image src="../../static/result.png" mode="" @click="show = true"></image>
</view>
</view>
...
...
@@ -125,12 +125,18 @@
</scroll-view>
</view>
</view>
</u-popup>
</u-popup>
<view class="share" v-if="shareModel" @click="shareModel=false">
<image src="../../static/detailShare.png" mode=""></image>
<view class="">
点击这里进行分享
</view>
</view>
</view>
</template>
<script>
let jweixin = require('jweixin-module')
<script>
var jweixin = require('jweixin-module');
import {
product_detail,
product_favorite,
...
...
@@ -171,16 +177,78 @@
isshow: false,
isshowname: "请选择",
isid: "",
content: "",
content: "",
shareModel:false
}
},
onShow() {
},
onLoad(options) {
this.id = options.id
this.product_detail()
this.report_list()
},
methods: {
methods: {
share(){
let that = this;
jweixin.ready(function() {
//分享给朋友
jweixin.onMenuShareAppMessage({
title: that.detail.name, // 分享标题
link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: that.detail.images_preview[0], // 分享图标
success: function() {
// 用户点击了分享后执行的回调函数
uni.showToast({
title: '分享成功',
duration: 2000
});
},
cancel: function(res) {
console.log('取消分享')
}
});
jweixin.updateAppMessageShareData({
title: that.detail.name, // 分享标题
link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: that.detail.images_preview[0], // 分享图标
success: function() {
console.log('设置分享给朋友成功')
},
cancel: function(res) {
console.log('取消分享')
}
});
//分享到朋友圈
jweixin.onMenuShareTimeline({
title: that.detail.name, // 分享标题
link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: that.detail.images_preview[0], // 分享图标
success: function() {
// 用户点击了分享后执行的回调函数
uni.showToast({
title: '分享成功',
duration: 2000
});
},
cancel: function(res) {
console.log('取消分享')
}
});
jweixin.updateTimelineShareData({
title: that.detail.name, // 分享标题
link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: that.detail.images_preview[0], // 分享图标
success: function() {
console.log('设置分享到朋友圈成功')
},
cancel: function(res) {
console.log('取消分享')
}
});
});
},
showbox() {
this.isshow = !this.isshow
},
...
...
@@ -259,7 +327,8 @@
const res = await product_detail(this.id)
console.log('product_detail', res)
this.detail = res.detail
this.list1 = res.detail.images_preview
this.list1 = res.detail.images_preview
this.share()
// 保存数据
} catch (err) {
uni.showToast({
...
...
@@ -578,5 +647,28 @@
}
}
}
}
.share {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,.6);
image {
position: fixed;
right: 80rpx;
top: 4rpx;
width: 188rpx;
height: 262rpx;
}
view {
position: fixed;
right: 80rpx;
top: 300rpx;
color: rgba(255,255,255,1);
font-size: 36rpx;
font-weight: 700;
}
}
</style>
...
...
pages/index/index.vue
查看文件 @
4246906
...
...
@@ -80,7 +80,7 @@
</view>
</view>
</view>
<view class="misslist">
<view class="misslist"
v-if="list.length"
>
<custom-waterfalls-flow :value="list" @wapperClick="godetail" @imageClick="godetail">
<template v-slot:default="item">
<view class="item">
...
...
pages/index/product.vue
查看文件 @
4246906
...
...
@@ -11,7 +11,7 @@
</view>
</view>
</view>
<u-empty marginTop ="200" mode="data" v-if="!list.length"></u-empty>
<u-empty marginTop ="200"
text="暂无数据"
mode="data" v-if="!list.length"></u-empty>
<scroll-view v-if="list.length" scroll-y="true" @scrolltolower="scrolltolower" style="height: 100vh">
<view class="misslist">
<custom-waterfalls-flow :value="list" @wapperClick="godetail" @imageClick="godetail">
...
...
pages/index/realName.vue
查看文件 @
4246906
...
...
@@ -14,7 +14,7 @@
<view class="beforename">
身份证号:
</view>
<input type="
number" v-model="text
" maxlength="18" placeholder="请输入">
<input type="
text" v-model="number
" maxlength="18" placeholder="请输入">
</view>
<view class="imgbar">
<view class="mytitle">身份证照片 </view>
...
...
pages/login/register.vue
查看文件 @
4246906
...
...
@@ -219,8 +219,13 @@
}
}
.user {
margin-top: 200rpx;
.user {
position: absolute;
width: 100%;
left: 50%;
bottom: 16rpx;
transform: translateX(-50%);
// margin-top: 200rpx;
text-align: center;
display: flex;
align-items: center;
...
...
pages/mine/buyerOrder.vue
查看文件 @
4246906
...
...
@@ -55,7 +55,7 @@
<view class="popTitle">
转赠证明
</view>
<image class="popImage" :src="showimg" mode="
scaleToFill
"></image>
<image class="popImage" :src="showimg" mode="
aspectFit
"></image>
<view class="popBtn flexA">
<view class="btn flexC" v-if="reChest(showstatus)" @click="order_confirm(showid,showindex,2)">未收货
</view>
...
...
pages/mine/mine.vue
查看文件 @
4246906
...
...
@@ -263,6 +263,7 @@
.mainBox {
position: absolute;
width: 100%;
left: 0;
top: 0;
padding: 28rpx 32rpx;
...
...
pages/mine/sellerOrder.vue
查看文件 @
4246906
...
...
@@ -56,7 +56,7 @@
<view class="popTitle">
转赠证明
</view>
<image class="popImage" :src="licenimg" mode="
scaleToFill
"></image>
<image class="popImage" :src="licenimg" mode="
aspectFit
"></image>
<view class="popBtn flexC">
<view class="btn flexC" @click="show=false">确定</view>
</view>
...
...
static/detailShare.png
0 → 100644
查看文件 @
4246906
14.4 KB
unpackage/dist/build/h5/index.html
查看文件 @
4246906
<!DOCTYPE html>
<html
lang=
zh-CN
><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><title>
元届印象
</title><script>
var
coverSupport
=
'CSS'
in
window
&&
typeof
CSS
.
supports
===
'function'
&&
(
CSS
.
supports
(
'top: env(a)'
)
||
CSS
.
supports
(
'top: constant(a)'
))
<<<<<<<
HEAD
document
.
write
(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'
+
(
coverSupport
?
', viewport-fit=cover'
:
''
)
+
'" />'
)
</script><link
rel=
stylesheet
href=
/static/index.a5c69d49.css
></head><body><noscript><strong>
Please enable JavaScript to continue.
</strong></noscript><div
id=
app
></div><script
src=
/static/js/chunk-vendors.ba77b176.js
></script><script
src=
/static/js/index.100fbe17.js
></script></body></html>
=======
document.write('
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '"
/>
')
</script><link
rel=
stylesheet
href=
/static/index.a5c69d49.css
></head><body><noscript><strong>
Please enable JavaScript to continue.
</strong></noscript><div
id=
app
></div><script
src=
/static/js/chunk-vendors.f3bf79df.js
></script><script
src=
/static/js/index.c5ea6188.js
></script></body></html>
>>>>>>> 3474d13fb5309675e2ea7f364b5e3a892b8efe5a
document
.
write
(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'
+
(
coverSupport
?
', viewport-fit=cover'
:
''
)
+
'" />'
)
</script><link
rel=
stylesheet
href=
/static/index.a5c69d49.css
></head><body><noscript><strong>
Please enable JavaScript to continue.
</strong></noscript><div
id=
app
></div><script
src=
/static/js/chunk-vendors.f3bf79df.js
></script><script
src=
/static/js/index.bdc7f535.js
></script></body></html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论