作者 燕成杰

修改bug

... ... @@ -12,10 +12,10 @@
if (!openId && !e.query.code) {
console.log('获取code');
// getApp().authorization()
getApp().authorization()
} else if (e.query.code) {
console.log(2);
// getApp().getOpenid(e.query.code)
getApp().getOpenid(e.query.code)
}
// else {
// uni.showModal({
... ...
... ... @@ -15,7 +15,7 @@ export const arcList = () => request({url: 'index/arc_list',method: 'post',data
export const product_list = (data) => request({url: 'product/product_list',method: 'post',data: data})
// 首页产品详情
export const product_detail = (product_id) => request({url: 'product/product_detail',method: 'post',data: {product_id}})
export const product_detail = (product_id,url) => request({url: 'product/product_detail',method: 'post',data: {product_id,url}})
// 首页产品下单
export const product_buy = (data) => request({url: 'product/product_buy',method: 'post',data: data})
... ...
... ... @@ -126,6 +126,7 @@
</view>
</view>
</u-popup>
<image class="home" @click="goHome" src="/static/home.png" mode=""></image>
<view class="share" v-if="shareModel" @click="shareModel=false">
<image src="../../static/detailShare.png" mode=""></image>
<view class="">
... ... @@ -191,6 +192,11 @@
this.report_list()
},
methods: {
goHome(){
uni.reLaunch({
url:'/pages/index/index'
})
},
share(){
let that = this;
jweixin.config({
... ... @@ -336,9 +342,9 @@
}
},
//详情
async product_detail() {
async product_detail() {
try {
const res = await product_detail(this.id)
const res = await product_detail(this.id,window.location.href)
console.log('product_detail', res)
this.detail = res.detail
this.jssdk = res.jssdk
... ... @@ -358,7 +364,8 @@
uni.navigateTo({
url: "/pages/index/buy?id=" + this.id
})
},
},
},
}
</script>
... ... @@ -685,5 +692,12 @@
font-size: 36rpx;
font-weight: 700;
}
}
.home {
width: 96rpx;
height: 96rpx;
position: fixed;
right: 28rpx;
bottom: 186rpx;
}
</style>
... ...
... ... @@ -100,6 +100,7 @@
</view>
</view>
</view>
<image class="goTop" @click="goTop" src="/static/top.png" mode=""></image>
<Botton :flag="1"></Botton>
</view>
</template>
... ... @@ -137,16 +138,20 @@
},
onShow() {
this.initial()
this.product_list(true)
},
onLoad() {
this.product_list(true)
},
onReachBottom() {
this.currentpage++
this.product_list()
},
methods: {
goTop(){
uni.pageScrollTo({
scrollTop: 0
});
},
// 资讯详情
oncusdetail(e) {
uni.navigateTo({
... ... @@ -602,4 +607,11 @@
}
}
}
.goTop {
width: 96rpx;
height: 96rpx;
position: fixed;
right: 28rpx;
bottom: 186rpx;
}
</style>
... ...
... ... @@ -171,7 +171,7 @@
},
openshowBuyer(item) {
this.showBuyer = true
this.code = item.buyer_name
this.code = item.buyer_package
this.wechart = item.buyer_wechat
this.name = item.buyer_name
this.phone = item.buyer_mobile
... ...
<!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)'))
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.2e082368.js></script></body></html>
\ No newline at end of file
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.ce24accb.js></script></body></html>
\ No newline at end of file
... ...