作者 卢胜

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({
... ...
... ... @@ -21,7 +21,7 @@
<!-- #ifndef APP-NVUE -->
<u-index-anchor :text="indexList[index]"></u-index-anchor>
<!-- #endif -->
<view class="list-cell" v-for="(cell, index) in item" @click="tolist(cell.name)">
<view class="list-cell" v-for="(cell, index) in item" @click="tolist(cell.id)">
<image :src="cell.image_preview" mode=""></image>
{{cell.name}}
</view>
... ... @@ -64,7 +64,7 @@
//跳转列表
tolist(e) {
uni.navigateTo({
url: "/pages/index/product?ktext="+e
url: "/pages/index/product?sort_id="+e
})
},
//分类列表
... ...
... ... @@ -52,14 +52,20 @@
<view class="namelast">
{{detail.seller_mobile}}
</view>
<view style=" margin-left:8rpx; font-size: 26rpx; color: deepskyblue;" v-if="detail.seller_mobile">
<a :href="'tel:' + detail.seller_mobile" >拨号</a>
</view>
<view class="missbar flexA">
</view>
<view class="missbar flexA" >
<view class="name">
钱包地址:
</view>
<view class="namelast">
{{detail.package_add}}
</view>
<view @click="copy(detail.package_add)" style=" margin-left:8rpx; font-size: 26rpx; color: deepskyblue;">
复制
</view>
</view>
<view class="missbar flexA">
<view class="name">
... ... @@ -68,6 +74,9 @@
<view class="namelast">
{{detail.wechat_num}}
</view>
<view @click="copy(detail.wechat_num)" style=" margin-left:8rpx; font-size: 26rpx; color: deepskyblue;">
复制
</view>
</view>
</view>
<view class="contail">
... ... @@ -192,6 +201,18 @@
this.report_list()
},
methods: {
//复制
copy(it) {
uni.setClipboardData({
data: it,
success: () => {
uni.showToast({
icon: 'none',
title: '复制成功'
});
}
});
},
goHome(){
uni.reLaunch({
url:'/pages/index/index'
... ... @@ -491,6 +512,10 @@
font-weight: 400;
font-family: "PingFang SC";
}
a{
text-decoration: none;
color: deepskyblue;
}
}
}
... ...
... ... @@ -4,7 +4,7 @@
<image src="/static/ic_logo.png" mode=""></image>
<view class="search" @click="gosourch">
<view class="tosear" >
<input type="text" @click="gosourch" value="" placeholder="搜索" disabled="true"
<input type="text" value="" placeholder="搜索"
placeholder-style="text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);" />
<image src="/static/icon-search.png" mode=""></image>
</view>
... ... @@ -19,7 +19,7 @@
</view>
<view class="contail">
<view class="nev">
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate(item.name)">
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate(item.id)">
<image class="barimg" :src="item.image_preview" mode=""></image>
<text>{{item.name}}</text>
</view>
... ... @@ -158,9 +158,9 @@
url: "/pages/index/consultationDetails?id=" + e
})
},
tocate(name) {
tocate(id) {
uni.navigateTo({
url: "/pages/index/product?ktext="+name
url: "/pages/index/product?sort_id="+id
})
},
toallCate(){
... ... @@ -283,6 +283,7 @@
},
//跳转搜索
gosourch() {
console.log(2)
uni.navigateTo({
url: "/pages/index/search"
})
... ...
... ... @@ -6,12 +6,12 @@
<view class="tosear">
<input type="text" value="" placeholder="搜索"
placeholder-style="text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);"
v-model="keyword" @confirm="gosourch"/>
v-model="keyword" @confirm="gosourch" />
<image src="../../static/icon-search.png" mode="" v-if="!keyword"></image>
</view>
</view>
</view>
<u-empty marginTop ="200" text="暂无数据" 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">
... ... @@ -47,14 +47,20 @@
list: [],
keyword: "",
currentpage: 1,
sort_id: "",
}
},
onLoad(options) {
if (options.ktext) {
this.keyword = options.ktext
}
if (options.sort_id) {
this.sort_id = options.sort_id
}
this.product_list(true)
},
methods: {
gosourch(){
gosourch() {
this.product_list(true)
},
scrolltolower() {
... ... @@ -70,6 +76,7 @@
async product_list(x) {
let obj = {
keyword: this.keyword,
sort_id: this.sort_id,
page: this.currentpage,
pagenum: 15,
}
... ...
... ... @@ -80,7 +80,7 @@
async sort_list() {
console.log(this.type,"000")
let obj = {
type:2,
type:this.type,
keyword: this.keyword,
}
try {
... ...
... ... @@ -6,7 +6,7 @@
<image src="/static/2.png" mode=""></image>
<text>{{detail.buyer_name}}</text>
</view>
<view class="topbox">
<view class="topbox" @click="ondetail(detail.id)">
<view class="boxtop flexD">
<view class="order">
订单号:{{detail.order_no}}
... ... @@ -81,6 +81,12 @@
this.order_detail()
},
methods: {
//跳转详情
ondetail(item) {
uni.navigateTo({
url: "/pages/index/detail?id=" + item
})
},
//订单详情
async order_detail() {
try {
... ...