Compare commits

..

No commits in common. "b8527dc2847fc0adeeeb37aa6b31152aa7d8e360" and "d0714991f2985d4ec88e045a2bbf65657994298f" have entirely different histories.

6 changed files with 48 additions and 57 deletions

View File

@ -64,7 +64,7 @@ export const durian = {
},
/**
* 榴莲果挂买挂卖
* 交易榴莲果
* @param {Object} param
*/
consume(param) {
@ -96,29 +96,5 @@ export const durian = {
data: param.data,
})
},
/**
* 获取榴莲果交易列表
* @param {Object} param
*/
getOrderList(param) {
return util.request({
url: `/coreplay/app/durian/consume`,
method: 'POST',
data: param.data,
load: true,
})
},
/**
* 交易榴莲果
* @param {Object} param
*/
orderSale(param) {
return util.request({
url: `/coreplay/app/durian/consume`,
method: 'POST',
data: param.data,
load: true,
})
},
}
export default durian

View File

@ -6,7 +6,7 @@ const config = {
// host: 'h5api',
// #endif
// #ifndef H5
host: 'http://91f.xyz:8080',
host: 'http://91f.xyz:8080',
// #endif
// 支付方式配置
payType: {

View File

@ -89,6 +89,9 @@ function handleBuy() {
//
function toCustomer() {
uni.navigateTo({
url: util.setUrl('/pages/mine/setting/feedback')
})
// api.shop.getCustomerService({ merchantId: props.detail.merId }).then(rs => {
// if (rs.code == 200) {
// let param = {};
@ -130,7 +133,7 @@ function toCustomer() {
</view>
</view>
<view class="option ver" @click="toCustomer" v-if="0">
<view class="option ver" @click="toCustomer">
<image class="wh30" src="/static/customer-service.png" mode="aspectFit" />
<text class="text mt10">客服</text>
</view>

View File

@ -55,16 +55,21 @@
})
//
const typeList = reactive([{
id: 9,
id: 1,
name: '挂买',
},
{
id: 8,
id: 2,
name: '挂卖',
}
])
//
const typeIndex = ref(0)
const typeIndex = ref(0)
//
class Form {
sellNum = ''
totalPrice = ''
}
//
const form = reactive({
sellNum: '',
@ -201,11 +206,11 @@
//
function release() {
//
if (!form.sellNum) {
if (!form.fruitAmount) {
util.alert('请输入榴莲果数量')
return
}
if (!form.totalPrice) {
if (!form.fruitAmount) {
util.alert('请输入总价')
return
}
@ -235,11 +240,9 @@
// id
targetUserId: config[type].targetUserId,
//
transactionType: typeList[typeIndex].id,
transactionType: 10,
//
fruitAmount: form.sellNum,
//
totalPrice:form.totalPrice,
fruitAmount: form.fruitAmount,
//
name: `${form.first}${form.name}`,
//
@ -249,6 +252,7 @@
}
}).then(rs => {
if (rs.code === 200) {
//
util.getPurse()
return
}
@ -330,8 +334,8 @@
<view class="footer rows plr30 shadow bfff">
<view class="f28">我的资产</view>
<view class="f28 c666">
<text class="wsn">积分:{{(purse.score).toFixed(2)}}</text>
<text class="wsn ml40">榴莲果:{{(purse.fruit).toFixed(2)}}</text>
<text class="wsn">积分:{{purse.score}}</text>
<text class="wsn ml40">榴莲果:{{purse.fruit}}</text>
</view>
</view>

View File

@ -152,24 +152,24 @@ function handleReport() {
//
function handleBlack() {
let text = detail.isBlock ? '取消拉黑' : '拉黑'
util.alert({
content: `确认要${text}用户${detail.userNickname}吗?`,
}).then(rs => {
let obj = {
blockUserId: detail.id,
status: detail.isBlock ? 1 : 0
}
api.mine.blockUser(obj).then(res => {
if (res.code == 200) {
util.alert('操作成功!')
getUserinfo()
// let text = detail.isBlock ? '' : ''
// util.alert({
// content: `${text}${detail.userNickname}`,
// }).then(rs => {
// let obj = {
// blockUserId: detail.id,
// status: detail.isBlock ? 1 : 0
// }
// api.mine.blockUser(obj).then(res => {
// if (res.code == 200) {
// util.alert('')
// getUserinfo()
//
proxy.$refs.menuRef.close()
}
})
})
// //
// proxy.$refs.menuRef.close()
// }
// })
// })
}
//

View File

@ -50,8 +50,16 @@ function link(url) {
})
}
function toCustomer() {
let param = {};
param.type = 'C2C'
param.name = `${props.detail.merName}`
param.msgId = `${rs.data.serviceId}`
param.isCustomer = true
util.toChat(param)
uni.navigateTo({
url: util.setUrl('/pages/mine/setting/feedback')
url: util.setUrl('/pages/news/chat/chat', param)
})
}
</script>
@ -99,7 +107,7 @@ function toCustomer() {
<view class="df">
<!-- 客服 -->
<image class="ml20 wh40" @click="toCustomer" src="@/static/mine-kefu.png" mode="aspectFill" />
<!-- <image class="ml20 wh40" @click="toCustomer" src="@/static/mine-kefu.png" mode="aspectFill" /> -->
<!-- 设置 -->
<image class="ml20 wh40" @click="link('/pages/mine/setting/setting')" src="@/static/mine-shezhi.png"
mode="aspectFill" />