作者 燕成杰

合并分支 'yan' 到 'master'

Yan



查看合并请求 !15
... ... @@ -5,8 +5,9 @@
// http://localhost:8080/
onLaunch: function(e) {
const openId = uni.getStorageSync('openId')
console.log(openId);
if(!openId && !e.query.code){
console.log(openId,'openid');
if(!openId && !e.query.code){
console.log('获取code');
getApp().authorization()
}else if(e.query.code) {
console.log(2);
... ...
... ... @@ -19,11 +19,11 @@
</view>
<view class="contail">
<view class="nev">
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate">
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate(item.name)">
<image class="barimg" :src="item.image_preview" mode=""></image>
<text>{{item.name}}</text>
</view>
<view class="bar">
<view class="bar" @click="toallCate">
<image class="barimg" src="/static/logo.png" mode=""></image>
<text>更多</text>
</view>
... ... @@ -157,7 +157,12 @@
url: "/pages/index/consultationDetails?id=" + e
})
},
tocate() {
tocate(name) {
uni.navigateTo({
url: "/pages/index/product?ktext="+name
})
},
toallCate(){
uni.navigateTo({
url: "/pages/index/category"
})
... ...
... ... @@ -120,6 +120,7 @@
},
toggle(e){
this.idx = e.index
this.list = []
this.page = 1
this.myProduct(1)
console.log(e);
... ...
<!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.9fa833af.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.6b7d1d69.js></script></body></html>
\ No newline at end of file
... ...