You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
130 lines
3.3 KiB
130 lines
3.3 KiB
<template>
|
|
<view class="body">
|
|
|
|
<view class="reviews_item" v-for="(item,index) in 2" :key="index">
|
|
<view class="reviews_item_title">
|
|
<view class="reviews_title_user">
|
|
<text>e***8</text>
|
|
<uni-rate size="18" :disabled="true" disabledColor="red" :value="4" active-color="red" :is-fill="false"/>
|
|
</view>
|
|
<view class="reviews_title_time">07/03/2022</view>
|
|
</view>
|
|
<view class="reviews_item_color">Color:Multicolor</view>
|
|
<view class="reviews_item_content">So unique! Can’t wait to wear these.</view>
|
|
<view class="reviews_item_image">
|
|
<view class="reviews_image_content" v-for="(item,index) in 3" :key="index"></view>
|
|
</view>
|
|
<view class="more">
|
|
<image src="../../static/img/more.png" mode="" @click="isShwo=true"></image>
|
|
<view class="more_delete" v-show="isShwo">delete</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="mask" v-show="isShwo" @click="isShwo=false"></view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { encryptDes, decryptDes ,encrypt_by_des } from '@/utils/des.js'
|
|
import Base64 from 'base-64';
|
|
import cryptoJS from "crypto-js"
|
|
import { pathToBase64 } from '@/js_sdk/mmmm-image-tools/index.js'
|
|
import {defaultRequest,defaultRequest2,defaultRequest4} from '../../api/index.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
isShwo:false,
|
|
query:{
|
|
_action:'getmycomments',
|
|
page_index:1,
|
|
page_size:10,
|
|
|
|
}
|
|
}
|
|
},
|
|
methods:{
|
|
getList(){
|
|
let query ={
|
|
_action:"getmycomments",
|
|
page_index:1,
|
|
page_size:20,
|
|
}
|
|
console.log(query)
|
|
defaultRequest(query).then(res =>{
|
|
console.log(res)
|
|
})
|
|
const json_data={
|
|
appcode:'DOPE+' ,//应用编码
|
|
appchannel:'FXXXXHUAWEI' ,//应用发布渠道
|
|
appver: '1.0.0',//应用版本
|
|
appname:'cnic_buyer' ,//应用名称
|
|
manufacturer:'HUAWEI',//设备生产商
|
|
phonebrand:'HORNOR' ,//设备品牌
|
|
phonetype:'X30' ,//设备型号
|
|
phoneos:'ANDROID',// 设备系统
|
|
_action:'getmycomments',//
|
|
page_index:1,
|
|
page_size:20,
|
|
|
|
}
|
|
let data = encryptDes(JSON.stringify(json_data),'6780f04cf2e211ec86a8005056c00008')
|
|
uni.request({
|
|
url:'https://en.meixx.com/mapi/api_v2011.php?appcode=DOPE+',
|
|
// url:'https://lilbeattranapismits.dopeplus.com/mapi/api_v2011.php?appcode=DOPE+',
|
|
data:{
|
|
data:data
|
|
},
|
|
success: (res) => {
|
|
console.log(res.data);
|
|
// this.text = 'request success';
|
|
let data2=decryptDes(res.data,'6780f04cf2e211ec86a8005056c00008');
|
|
console.log(data2)
|
|
}
|
|
})
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
// this.query.goods_id=e.goods_id
|
|
this.getList()
|
|
},
|
|
// onShow() {
|
|
// this.getList()
|
|
// }
|
|
}
|
|
</script>
|
|
<style>
|
|
page{
|
|
border-top: 14.67rpx #F6F5FA solid;
|
|
}
|
|
</style>
|
|
<style lang="scss" scoped>
|
|
.body{
|
|
padding: 0 32rpx;
|
|
}
|
|
.more{
|
|
text-align: right;
|
|
position: relative;
|
|
// margin-top: 20rpx;
|
|
image{
|
|
width: 24rpx;
|
|
height: 6.67rpx;
|
|
}
|
|
.more_delete{
|
|
background-image: url(@/static/img/more_bf.png);
|
|
background-size: 100% 100%;
|
|
width: 102.67rpx;
|
|
height: 67.33rpx;
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 20rpx;
|
|
line-height: 50rpx;
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
z-index: 999;
|
|
}
|
|
}
|
|
.mask{
|
|
background-color: white;
|
|
opacity: 0;
|
|
}
|
|
</style>
|