作者 燕成杰

修改样式及bug

{
"name" : "Bitcoin",
"appid" : "__UNI__D7F2A57",
"appid" : "__UNI__D80DC8B",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
... ...
... ... @@ -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>
... ...
... ... @@ -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">
... ...
... ... @@ -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">
... ...
... ... @@ -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>
... ...
... ... @@ -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;
... ...
... ... @@ -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>
... ...
... ... @@ -263,6 +263,7 @@
.mainBox {
position: absolute;
width: 100%;
left: 0;
top: 0;
padding: 28rpx 32rpx;
... ...
... ... @@ -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>
... ...
<!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
... ...