This commit is contained in:
parent
dba4713fa1
commit
ce56d02e9f
|
@ -24,15 +24,15 @@
|
|||
可用积分
|
||||
</view>
|
||||
<view class="tt2">
|
||||
586
|
||||
{{userPoint}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="points_count_itm" style="margin-left:200rpx ;">
|
||||
<view class="tt1">
|
||||
年度积分总量
|
||||
历史积分总量
|
||||
</view>
|
||||
<view class="tt2">
|
||||
6853
|
||||
{{userPointCount}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -57,7 +57,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="operation">
|
||||
<u-button v-if="v.state==1" type="default" plain size="small" color="#AFADB0"> 已完成
|
||||
<u-button v-if="v.finish" type="default" plain size="small" color="#AFADB0"> 已完成
|
||||
</u-button>
|
||||
<u-button v-else type="default" plain size="small" color="#99241B"> 未完成</u-button>
|
||||
</view>
|
||||
|
@ -82,9 +82,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="operation">
|
||||
<u-button v-if="v.state==1" type="default" plain size="small" color="#AFADB0"> 已完成
|
||||
</u-button>
|
||||
<u-button v-else type="default" plain size="small" color="#99241B"> 未完成</u-button>
|
||||
<u-button type="default" plain size="small" color="#99241B">已完成{{v.cfCount}}次</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -106,7 +104,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="operation">
|
||||
<u-button v-if="v.state==1" type="default" plain size="small" color="#AFADB0"> 已完成
|
||||
<u-button v-if="v.finish" type="default" plain size="small" color="#AFADB0"> 已完成
|
||||
</u-button>
|
||||
<u-button v-else type="default" plain size="small" color="#99241B"> 未完成</u-button>
|
||||
</view>
|
||||
|
@ -133,80 +131,16 @@
|
|||
return {
|
||||
statusHeight: 0,
|
||||
titleHeight: 50,
|
||||
dayWork: [{
|
||||
name: '查看政策',
|
||||
point: '2',
|
||||
state: 0
|
||||
}, {
|
||||
name: '查看动态',
|
||||
point: '2',
|
||||
state: 0
|
||||
}, {
|
||||
name: '查看作品',
|
||||
point: '2',
|
||||
state: 1
|
||||
}, {
|
||||
name: '收藏作品',
|
||||
point: '2',
|
||||
state: 1
|
||||
}, {
|
||||
name: '点赞作品',
|
||||
point: '2',
|
||||
state: 1
|
||||
}, {
|
||||
name: '关注作者',
|
||||
point: '2',
|
||||
state: 0
|
||||
}, {
|
||||
name: '购买商品',
|
||||
point: '50',
|
||||
state: 0
|
||||
},
|
||||
],
|
||||
reWorks: [{
|
||||
name: '上传一件作品',
|
||||
point: '10',
|
||||
state: 0
|
||||
},
|
||||
{
|
||||
name: '参加一次文艺活动',
|
||||
point: '50',
|
||||
state: 0
|
||||
},
|
||||
{
|
||||
name: '点单大厅接单一次',
|
||||
point: '50',
|
||||
state: 0
|
||||
},
|
||||
],
|
||||
onlyWorks: [{
|
||||
name: '上传头像',
|
||||
point: '20',
|
||||
state: 1
|
||||
},
|
||||
{
|
||||
name: '首次上传作品',
|
||||
point: '100',
|
||||
state: 1
|
||||
},
|
||||
{
|
||||
name: '首次参加活动',
|
||||
point: '100',
|
||||
state: 1
|
||||
},
|
||||
{
|
||||
name: '首次购买商品',
|
||||
point: '100',
|
||||
state: 1
|
||||
},
|
||||
{
|
||||
name: '首次文艺接单',
|
||||
point: '100',
|
||||
state: 1
|
||||
},
|
||||
]
|
||||
dayWork: [],
|
||||
reWorks: [],
|
||||
onlyWorks: [],
|
||||
userPoint: 0,
|
||||
userPointCount: 0,
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getPoint()
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack()
|
||||
|
@ -215,6 +149,32 @@
|
|||
uni.navigateTo({
|
||||
url: '/pages/MyPoints/pointDetail'
|
||||
})
|
||||
},
|
||||
getPoint() {
|
||||
let _this = this
|
||||
this.dayWork = []
|
||||
this.onlyWorks = []
|
||||
this.reWorks = []
|
||||
this.http.request('/pointRule/list', {}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(function(item) {
|
||||
if(item.ruleType == 1){
|
||||
_this.dayWork.push(item)
|
||||
}else if(item.ruleType == 2){
|
||||
_this.onlyWorks.push(item)
|
||||
}else if(item.ruleType == 3){
|
||||
_this.reWorks.push(item)
|
||||
}
|
||||
})
|
||||
this.userPoint = res.data[0].userPoint
|
||||
this.userPointCount = res.data[0].userPointCount
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
v-if="serveList.moneyPrice > 0">
|
||||
{{serveList.moneyPrice}} <text style="font-size: 24rpx;">元</text>
|
||||
</view>
|
||||
<view style="font-weight: bold;font-size: 44rpx;color: #FF6600;"
|
||||
v-else>
|
||||
<view style="font-weight: bold;font-size: 44rpx;color: #FF6600;" v-else>
|
||||
{{serveList.pointPrice}} <text style="font-size: 24rpx;">积分</text>
|
||||
</view>
|
||||
<view class="" style="display: flex; align-items: center; justify-content: center;">
|
||||
|
@ -95,8 +94,7 @@
|
|||
v-if="serveList.moneyPrice > 0">
|
||||
{{serveList.moneyPrice}} <text style="font-size: 24rpx;">元</text>
|
||||
</view>
|
||||
<view style="font-weight: bold;font-size: 44rpx;color: #FF6600;"
|
||||
v-else>
|
||||
<view style="font-weight: bold;font-size: 44rpx;color: #FF6600;" v-else>
|
||||
{{serveList.pointPrice}} <text style="font-size: 24rpx;">积分</text>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -112,10 +110,12 @@
|
|||
</view>
|
||||
</u-number-box>
|
||||
</view>
|
||||
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; " v-if="serveList.moneyPrice > 0">
|
||||
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; "
|
||||
v-if="serveList.moneyPrice > 0">
|
||||
<text class="order_itm_t">商品总价</text> <text>{{serveList.moneyPrice * orderDet[0].count}}积分</text>
|
||||
</view>
|
||||
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; " v-else>
|
||||
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; "
|
||||
v-else>
|
||||
<text class="order_itm_t">商品总价</text> <text>{{serveList.pointPrice * orderDet[0].count}}积分</text>
|
||||
</view>
|
||||
<view class="order_itm" style="position: relative;">
|
||||
|
@ -147,8 +147,10 @@
|
|||
<image src="../../static/star.png" style="width: 100%; height: 100%;" v-else></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="btn_contain" style="display: flex;">
|
||||
<view v-if="buyType == '4'">
|
||||
<button type="default" class="buy" @click="goTalk" style="width: 500rpx;">联系作者</button>
|
||||
</view>
|
||||
<view class="btn_contain" style="display: flex;" v-else>
|
||||
<button type="default" class="addCar" @click="addCarClick">加入购物车</button>
|
||||
<button type="default" class="buy" @click="ImdeiaBuy">立即购买</button>
|
||||
</view>
|
||||
|
@ -180,23 +182,22 @@
|
|||
img: [],
|
||||
FetchGoodMethod: "1",
|
||||
count: 1,
|
||||
allScor:[],
|
||||
allScor: [],
|
||||
scores: [],
|
||||
scoresLen: '',
|
||||
orderDet:[
|
||||
{
|
||||
address: "",
|
||||
count: 1,
|
||||
goodsId: "",
|
||||
money: 0,
|
||||
mType:'',
|
||||
goodsName: '',
|
||||
img: '',
|
||||
userName: '',
|
||||
userImg: '',
|
||||
id:'',
|
||||
}
|
||||
]
|
||||
orderDet: [{
|
||||
address: "",
|
||||
count: 1,
|
||||
goodsId: "",
|
||||
money: 0,
|
||||
mType: '',
|
||||
goodsName: '',
|
||||
img: '',
|
||||
userName: '',
|
||||
userImg: '',
|
||||
id: '',
|
||||
}],
|
||||
buyType: ''
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
|
@ -219,7 +220,7 @@
|
|||
_this.img.push(item)
|
||||
}
|
||||
})
|
||||
if(this.img < 1){
|
||||
if (this.img < 1) {
|
||||
this.img.push('../../static/fileImg/pdfS.png')
|
||||
}
|
||||
this.goodInfo = res.data.domainInfo
|
||||
|
@ -228,18 +229,19 @@
|
|||
this.orderDet[0].goodsName = res.data.domainInfo.name
|
||||
this.orderDet[0].img = this.img[0]
|
||||
this.orderDet[0].userName = res.data.shopInfo.userName
|
||||
this.buyType = res.data.domainInfo.buy
|
||||
let src = res.data.shopInfo.images.split(',')
|
||||
this.orderDet[0].userImg = src[0]
|
||||
this.serveList = res.data
|
||||
res.data.scores.forEach(function(item){
|
||||
res.data.scores.forEach(function(item) {
|
||||
let img = item.avatar.split(',')
|
||||
item.avatar = img[0]
|
||||
})
|
||||
this.allScor = res.data.scores
|
||||
this.scoresLen = res.data.scores.length
|
||||
if(this.scoresLen > 5){
|
||||
this.writerList = res.data.scores.slice(0,5)
|
||||
}else{
|
||||
if (this.scoresLen > 5) {
|
||||
this.writerList = res.data.scores.slice(0, 5)
|
||||
} else {
|
||||
this.scores = res.data.scores
|
||||
}
|
||||
this.load = false
|
||||
|
@ -265,20 +267,20 @@
|
|||
//确认购买
|
||||
DoBuy(num) {
|
||||
this.showBuy = false
|
||||
if(this.serveList.moneyPrice > 0){
|
||||
if (this.serveList.moneyPrice > 0) {
|
||||
this.orderDet[0].mType = '0'
|
||||
this.orderDet[0].money = this.serveList.moneyPrice
|
||||
}else{
|
||||
} else {
|
||||
this.orderDet[0].mType = '1'
|
||||
this.orderDet[0].money = this.serveList.pointPrice
|
||||
}
|
||||
if(this.orderDet[0].mType == 0){
|
||||
if (this.orderDet[0].mType == 0) {
|
||||
// uni.navigateTo({
|
||||
// url:'/pages/ConfirmOrder/ConfirmOrder?data=' + encodeURIComponent(JSON.stringify(this.orderDet))
|
||||
// })
|
||||
}else if(this.orderDet[0].mType == 1){
|
||||
} else if (this.orderDet[0].mType == 1) {
|
||||
uni.navigateTo({
|
||||
url:'/pages/ConfirmOrder/fictitiousOrder?data=' + JSON.stringify(this.orderDet)
|
||||
url: '/pages/ConfirmOrder/fictitiousOrder?data=' + JSON.stringify(this.orderDet)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
@ -352,8 +354,13 @@
|
|||
//加
|
||||
plusNum(val1, ) {
|
||||
this.orderDet[0].count = val1 + 1
|
||||
},
|
||||
goTalk() {
|
||||
uni.navigateTo({
|
||||
url: "/pagesA/msg/chat/chat?name=" + this.orderDet[0].userName + '&linkId=' + '' + '&toUser=' +
|
||||
this.orderDet[0].id + '&toUserImg=' + this.orderDet[0].userImg
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -542,4 +549,4 @@
|
|||
height: 1000rpx;
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -9,7 +9,22 @@
|
|||
{{v.title}}
|
||||
</view>
|
||||
<view class="express_contain_sub">
|
||||
{{v.username}} {{v.fbsj}}
|
||||
<view class="det_box">
|
||||
<view class="box_left">
|
||||
<image src="../../static/workDetail/seen.png" class="img"></image>
|
||||
</view>
|
||||
<view class="box_right">
|
||||
{{v.view}}浏览
|
||||
</view>
|
||||
</view>
|
||||
<view class="det_box">
|
||||
<view class="box_left">
|
||||
<image src="../../static/workDetail/time.png" class="img"></image>
|
||||
</view>
|
||||
<view class="box_right">
|
||||
{{v.fbsj}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-gap height="16" bgColor="#ffffff"></u-gap>
|
||||
|
@ -97,6 +112,29 @@
|
|||
font-weight: 500;
|
||||
color: #8E8F9E;
|
||||
font-size: 12px;
|
||||
overflow: hidden;
|
||||
|
||||
.det_box {
|
||||
float: left;
|
||||
margin-right: 20px;
|
||||
overflow: hidden;
|
||||
|
||||
.box_left {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
float: left;
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.box_right {
|
||||
margin-left: 2px;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
inputAlign="right">
|
||||
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 作品标签 -->
|
||||
<view class="rightBox" @click="showTab=true">
|
||||
<text class="right_titl" style="color: #c0c4cc; font-size: 15px;margin-left: 32rpx;">请选择作品标签</text>
|
||||
|
@ -30,6 +30,8 @@
|
|||
<view style="display: flex; padding: 20rpx 0; color: #3c9cff;" @click="addNewTab">
|
||||
添加标签<u-icon name="plus-circle" color="#3c9cff"></u-icon>
|
||||
</view>
|
||||
<u--input placeholder="请输入内容" border="surround" v-model="valueTab" @change="change"></u--input>
|
||||
<u-gap height="12"></u-gap>
|
||||
<scroll-view style='height: 500rpx;' scroll-y="true">
|
||||
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
||||
placement="column" iconPlacement="right">
|
||||
|
@ -73,8 +75,8 @@
|
|||
</u-upload>
|
||||
|
||||
<view style="position: relative; width: 100%; height: 50px;">
|
||||
<uni-data-picker ref="picker" style="border: 0px; position: absolute; " :localdata="radiolist1" v-model="radiovalue1"
|
||||
:map="{text:'title',value:'id'}" popup-title="请选择作品类型" @change="selectForm1">
|
||||
<uni-data-picker ref="picker" style="border: 0px; position: absolute; " :localdata="radiolist1"
|
||||
v-model="radiovalue1" :map="{text:'title',value:'id'}" popup-title="请选择作品类型" @change="selectForm1">
|
||||
</uni-data-picker>
|
||||
<view style="position: absolute; width: 100%; height: 100%; background-color: #FFFFFF;">
|
||||
</view>
|
||||
|
@ -122,6 +124,7 @@
|
|||
wpPath: "",
|
||||
},
|
||||
newTab: '',
|
||||
valueTab: '',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
@ -156,7 +159,7 @@
|
|||
},
|
||||
getTab() {
|
||||
let _this = this
|
||||
this.http.request('/works/tag', {}, "GET").then(res => {
|
||||
this.http.request('/works/tag', {name:this.valueTab}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
_this.radiolist2 = res.data
|
||||
_this.load = false
|
||||
|
@ -168,6 +171,10 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
change(e) {
|
||||
this.radiolist2 = []
|
||||
this.getTab()
|
||||
},
|
||||
next() {
|
||||
let _this = this
|
||||
if (this.name == '') {
|
||||
|
@ -332,7 +339,7 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -403,4 +410,4 @@
|
|||
height: 460rpx;
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -5,7 +5,7 @@
|
|||
</view>
|
||||
<view v-if="load == false">
|
||||
<view class="bg">
|
||||
<image :src="image" mode="widthFix"></image>
|
||||
<image :src="image" style="width: 100%;" mode="widthFix"></image>
|
||||
</view>
|
||||
<u-gap height="1" bgColor="#fff"></u-gap>
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
|||
</u--input> <text style="margin-left: 16rpx;">积分</text>
|
||||
</view>
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买'" @click="showType=true">
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v1!='面议'" @click="showType=true">
|
||||
<text class="right_titl">发货方式</text>
|
||||
<u--input fontSize="28rpx" border="none" readonly v-model="v3" disabledColor="#ffffff"
|
||||
placeholder="请选择发货方式" inputAlign="right">
|
||||
|
@ -44,12 +44,12 @@
|
|||
</u--input>
|
||||
</view>
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品'">
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品' && v1!='面议'">
|
||||
<text class="right_titl">网盘地址</text>
|
||||
<u--input placeholder="请输入网盘地址" inputAlign="right" border="none" v-model="wpPath"></u--input> <text
|
||||
style="margin-left: 16rpx;"></text>
|
||||
</view>
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品'">
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品' && v1!='面议'">
|
||||
<text class="right_titl">提取码</text>
|
||||
<u--input placeholder="请输入提取码" inputAlign="right" border="none" v-model="code"></u--input> <text
|
||||
style="margin-left: 16rpx;"></text>
|
||||
|
@ -154,7 +154,6 @@
|
|||
this.image = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
}
|
||||
console.log(this.image)
|
||||
},
|
||||
onShow() {
|
||||
// this.getQx()
|
||||
|
@ -217,21 +216,21 @@
|
|||
if (this.v2 == '可购买' && this.v1 == '免费使用') {
|
||||
this.price = '0'
|
||||
}
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.price == '') {
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.price == '') {
|
||||
uni.showToast({
|
||||
title: '价格不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.wpPath == '') {
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.wpPath == '') {
|
||||
uni.showToast({
|
||||
title: '网盘地址不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.code == '') {
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.code == '') {
|
||||
uni.showToast({
|
||||
title: '提取码不能为空,若不需要提取码请填‘无’',
|
||||
icon: "none",
|
||||
|
@ -274,20 +273,20 @@
|
|||
this.worksVo.code = this.code
|
||||
|
||||
if (this.wpPath != '') {
|
||||
this.load = true
|
||||
this.http.request('/works/isValid?strLink=' + this.wpPath, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/pageHome/pageHome"
|
||||
})
|
||||
this.pushWork()
|
||||
}
|
||||
}).catch(e => {
|
||||
this.load = false
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
} else {
|
||||
this.load = true
|
||||
this.pushWork()
|
||||
}
|
||||
|
||||
|
@ -306,6 +305,7 @@
|
|||
}, 1000)
|
||||
}
|
||||
}).catch(e => {
|
||||
this.load = false
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
|
@ -347,7 +347,7 @@
|
|||
}
|
||||
|
||||
.bg {
|
||||
height: 500rpx;
|
||||
width: 750rpx;
|
||||
}
|
||||
|
||||
.rightBox {
|
||||
|
|
|
@ -87,25 +87,25 @@
|
|||
this.getEnjoy()
|
||||
},
|
||||
methods: {
|
||||
getEnjoy(){
|
||||
getEnjoy() {
|
||||
let _this = this
|
||||
this.http.request('/indexImage/recommend', {}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(function(item){
|
||||
res.data.forEach(function(item) {
|
||||
if (item.file) {
|
||||
let fileArr = item.file.split(',')
|
||||
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs == 'tiff') {
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
|
||||
'gif' || gs == 'tif' || gs == 'tiff') {
|
||||
item.file = fileArr[0]
|
||||
}
|
||||
else if (gs == 'pdf') {
|
||||
} else if (gs == 'pdf') {
|
||||
item.file = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.enjoyList = res.data
|
||||
this.doList()
|
||||
|
||||
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
|
@ -114,7 +114,7 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
ToEnjoy(val){
|
||||
ToEnjoy(val) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/ArtWorks/artWorkDetail?id=" + val
|
||||
})
|
||||
|
@ -152,60 +152,62 @@
|
|||
<style lang="scss">
|
||||
.layout {
|
||||
padding: 16rpx 32rpx;
|
||||
|
||||
|
||||
.container {
|
||||
font-size: 14rpx;
|
||||
line-height: 24rpx;
|
||||
|
||||
|
||||
.right,
|
||||
.left {
|
||||
display: inline-block;
|
||||
width: 49%;
|
||||
vertical-align: top;
|
||||
|
||||
|
||||
.scroll-list {
|
||||
display: flex;
|
||||
|
||||
|
||||
&__goods-item {
|
||||
width: 100%;
|
||||
margin: 20rpx 10rpx;
|
||||
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
&__title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
padding: 10rpx 24rpx;
|
||||
}
|
||||
|
||||
|
||||
&__text {
|
||||
text-align: center;
|
||||
margin-top: 3px;
|
||||
height: 16px;
|
||||
padding: 0 24rpx;
|
||||
padding: 0 24rpx 10rpx;
|
||||
font-size: 12px;
|
||||
color: #AFADB0;
|
||||
.det-type{
|
||||
overflow: hidden;
|
||||
|
||||
.det-type {
|
||||
float: left;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.det_box {
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
.box_left {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
float: left;
|
||||
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.box_right {
|
||||
margin-left: 2px;
|
||||
line-height: 16px;
|
||||
|
@ -213,14 +215,15 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.left {
|
||||
margin-right: 2%;
|
||||
}
|
||||
|
||||
|
||||
.left image,
|
||||
.right image {
|
||||
width: 100%;
|
||||
|
@ -252,4 +255,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -27,6 +27,11 @@
|
|||
</view>
|
||||
<u-popup :show="showTab" @close="close" closeOnClickOverlay :round="5"
|
||||
customStyle="padding: 16px;">
|
||||
<view style="display: flex; padding: 20rpx 0; color: #3c9cff;" @click="addNewTab">
|
||||
添加标签<u-icon name="plus-circle" color="#3c9cff"></u-icon>
|
||||
</view>
|
||||
<u--input placeholder="请输入内容" border="surround" v-model="valueTab" @change="change"></u--input>
|
||||
<u-gap height="12"></u-gap>
|
||||
<scroll-view style='height: 500rpx;' scroll-y="true">
|
||||
<u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true"
|
||||
placement="column" iconPlacement="right">
|
||||
|
@ -39,6 +44,15 @@
|
|||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
||||
type="default" @click="showTab=false">确认</u-button>
|
||||
</u-popup>
|
||||
<u-popup :show="addTab" @close="closeAdd" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<view style="display: flex; padding: 20rpx 0; font-size: 36rpx;">
|
||||
添加标签
|
||||
</view>
|
||||
<u--input placeholder="请输入标签" v-model="newTab" clearable>
|
||||
</u--input>
|
||||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
||||
type="default" @click="upDataTab">确认添加</u-button>
|
||||
</u-popup>
|
||||
|
||||
<u--textarea style="padding: 32rpx;" v-model="detailValue" placeholder="请输入作品说明" border="none">
|
||||
</u--textarea>
|
||||
|
@ -86,6 +100,7 @@
|
|||
iswx: null,
|
||||
showType: false,
|
||||
showTab: false,
|
||||
addTab: false,
|
||||
v1: "",
|
||||
v2: "",
|
||||
tabs:[],
|
||||
|
@ -106,7 +121,9 @@
|
|||
types: "",
|
||||
usePermission: "",
|
||||
wpPath: "",
|
||||
}
|
||||
},
|
||||
newTab: '',
|
||||
valueTab: '',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
@ -165,7 +182,7 @@
|
|||
},
|
||||
getTab() {
|
||||
let _this = this
|
||||
this.http.request('/works/tag', {}, "GET").then(res => {
|
||||
this.http.request('/works/tag', {name:this.valueTab}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
_this.radiolist2 = res.data
|
||||
_this.load = false
|
||||
|
@ -177,6 +194,10 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
change(e) {
|
||||
this.radiolist2 = []
|
||||
this.getTab()
|
||||
},
|
||||
next() {
|
||||
let _this = this
|
||||
if(this.name == ''){
|
||||
|
@ -308,7 +329,40 @@
|
|||
let data = form
|
||||
this.tabs = form
|
||||
this.v2 = data.join(',')
|
||||
}
|
||||
},
|
||||
addNewTab() {
|
||||
this.showTab = false
|
||||
this.addTab = true
|
||||
},
|
||||
closeAdd() {
|
||||
this.addTab = false
|
||||
this.getTab()
|
||||
this.showTab = true
|
||||
},
|
||||
upDataTab() {
|
||||
let data = {
|
||||
tagName: this.newTab
|
||||
}
|
||||
this.http.request('/works/addTag', data, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.showToast({
|
||||
title: '添加成功',
|
||||
icon: "none",
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.newTab = ''
|
||||
this.closeAdd()
|
||||
}, 1200)
|
||||
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
</view>
|
||||
<view v-if="load == false">
|
||||
<view class="bg">
|
||||
<image :src="image" mode="widthFix"></image>
|
||||
<image :src="image" style="width: 100%;" mode="widthFix"></image>
|
||||
</view>
|
||||
|
||||
<u-gap height="1" bgColor="#fff"></u-gap>
|
||||
|
||||
<view class="rightBox" @click="showBuy=true">
|
||||
<text class="right_titl" style="color: #251B1D; font-weight: 600;margin-left: 32rpx;">作品使用权限</text>
|
||||
<u--input fontSize="28rpx" border="none" readonly v-model="v2" disabledColor="#ffffff"
|
||||
|
@ -15,7 +16,7 @@
|
|||
<u-icon slot="suffix" name="arrow-right"></u-icon>
|
||||
</u--input>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="rightBox" @click="showSex=true" v-if="v2=='可购买'">
|
||||
<text class="right_titl" style="color: #251B1D; font-weight: 600;margin-left: 32rpx;">支付方式</text>
|
||||
<u--input fontSize="28rpx" border="none" readonly v-model="v1" disabledColor="#ffffff"
|
||||
|
@ -23,84 +24,121 @@
|
|||
<u-icon slot="suffix" name="arrow-right"></u-icon>
|
||||
</u--input>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v1=='付费购买'">
|
||||
<text class="right_titl">使用费用</text>
|
||||
<u--input placeholder="请输入使用费用" inputAlign="right" border="none" type="number" v-model="price"></u--input> <text
|
||||
style="margin-left: 16rpx;">元</text>
|
||||
<u--input placeholder="请输入使用费用" inputAlign="right" border="none" type="number" v-model="price">
|
||||
</u--input> <text style="margin-left: 16rpx;">元</text>
|
||||
</view>
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v1=='积分购买'">
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v1=='积分兑换'">
|
||||
<text class="right_titl">使用积分</text>
|
||||
<u--input placeholder="请输入使用积分" inputAlign="right" type="number" border="none" v-model="price"></u--input> <text
|
||||
style="margin-left: 16rpx;">积分</text>
|
||||
<u--input placeholder="请输入使用积分" inputAlign="right" type="number" border="none" v-model="price">
|
||||
</u--input> <text style="margin-left: 16rpx;">积分</text>
|
||||
</view>
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买'">
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v1!='面议'" @click="showType=true">
|
||||
<text class="right_titl">发货方式</text>
|
||||
<u--input fontSize="28rpx" border="none" readonly v-model="v3" disabledColor="#ffffff"
|
||||
placeholder="请选择发货方式" inputAlign="right">
|
||||
<u-icon slot="suffix" name="arrow-right"></u-icon>
|
||||
</u--input>
|
||||
</view>
|
||||
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品' && v1!='面议'">
|
||||
<text class="right_titl">网盘地址</text>
|
||||
<u--input placeholder="请输入网盘地址" inputAlign="right" border="none" v-model="wpPath"></u--input> <text
|
||||
style="margin-left: 16rpx;"></text>
|
||||
</view>
|
||||
<view class="sub_ti_box" v-if="v2=='可购买'">
|
||||
<view class="sub_ti_box" v-if="v2=='可购买' && v3=='虚拟物品' && v1!='面议'">
|
||||
<text class="right_titl">提取码</text>
|
||||
<u--input placeholder="请输入提取码" inputAlign="right" border="none" v-model="code"></u--input> <text
|
||||
style="margin-left: 16rpx;"></text>
|
||||
</view>
|
||||
|
||||
<u-popup :show="showBuy" @close="close" closeOnClickOverlay :round="5"
|
||||
customStyle="padding: 16px;">
|
||||
|
||||
<u-popup :show="showBuy" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<u-radio-group @change="selectFormB" v-model="radiovalue1" :borderBottom="true" placement="column"
|
||||
iconPlacement="right">
|
||||
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist1" :key="index"
|
||||
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label" activeColor="#99241B ">
|
||||
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
|
||||
activeColor="#99241B ">
|
||||
</u-radio>
|
||||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
||||
type="default" @click="showBuy=false">确认</u-button>
|
||||
</u-radio-group>
|
||||
</u-popup>
|
||||
|
||||
<u-popup :show="showSex" @close="close" closeOnClickOverlay :round="5"
|
||||
customStyle="padding: 16px;">
|
||||
|
||||
<u-popup :show="showSex" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<u-radio-group @change="selectForm" v-model="radiovalue7" :borderBottom="true" placement="column"
|
||||
iconPlacement="right">
|
||||
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist7" :key="index"
|
||||
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label" activeColor="#99241B ">
|
||||
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
|
||||
activeColor="#99241B ">
|
||||
</u-radio>
|
||||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
||||
type="default" @click="showSex=false">确认</u-button>
|
||||
</u-radio-group>
|
||||
</u-popup>
|
||||
|
||||
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<u-radio-group @change="selectFormC" v-model="radiovalue2" :borderBottom="true" placement="column"
|
||||
iconPlacement="right">
|
||||
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index"
|
||||
:label="item.name" labelSize="28rpx" labelColor="#231F1C" :name="item.name"
|
||||
:disabled="item.disabled" activeColor="#99241B ">
|
||||
</u-radio>
|
||||
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
|
||||
type="default" @click="showType=false">确认</u-button>
|
||||
</u-radio-group>
|
||||
</u-popup>
|
||||
|
||||
<view style="height: 160rpx; width: 750rpx;"></view>
|
||||
<view class="operation">
|
||||
<button type="default" class="collection" @click="goPre">上一步</button>
|
||||
<button type="default" class="apply" @click="cfmPub()">确认修改</button>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
load:true,
|
||||
load: true,
|
||||
showBuy: false,
|
||||
showSex: false,
|
||||
showType: false,
|
||||
v1: "",
|
||||
v2: "",
|
||||
price:'',
|
||||
wpPath:'',
|
||||
code:'',
|
||||
v3: "",
|
||||
price: '',
|
||||
wpPath: '',
|
||||
code: '',
|
||||
radiovalue1: '',
|
||||
radiolist1: [],
|
||||
radiolist1: [{
|
||||
label: '可购买',
|
||||
value: '1',
|
||||
}, {
|
||||
label: '不可购买',
|
||||
value: '2',
|
||||
}],
|
||||
radiovalue7: '',
|
||||
radiolist7: [],
|
||||
radio: '',
|
||||
switchVal: false,
|
||||
worksVo: {},
|
||||
image: '',
|
||||
radiovalue2: '',
|
||||
radiolist2: [{
|
||||
name: '虚拟物品',
|
||||
disabled: false
|
||||
},
|
||||
{
|
||||
name: '实物发货',
|
||||
disabled: true
|
||||
},
|
||||
],
|
||||
image: ''
|
||||
};
|
||||
},
|
||||
onLoad(op) {
|
||||
|
@ -108,40 +146,41 @@
|
|||
this.price = this.worksVo.price
|
||||
this.wpPath = this.worksVo.wpPath
|
||||
this.code = this.worksVo.code
|
||||
if(this.worksVo.usePermission == 2){
|
||||
this.v3 = '虚拟物品'
|
||||
this.radiovalue2 = '虚拟物品'
|
||||
if (this.worksVo.usePermission == 2) {
|
||||
this.radiovalue1 = '不可购买'
|
||||
this.v2 = '不可购买'
|
||||
}else if(this.worksVo.usePermission == 1){
|
||||
} else if (this.worksVo.usePermission == 1) {
|
||||
this.radiovalue1 = '可购买'
|
||||
this.v2 = '可购买'
|
||||
}
|
||||
if(this.worksVo.buy == 1){
|
||||
if (this.worksVo.buy == 1) {
|
||||
this.radiovalue7 = '免费使用'
|
||||
this.v1 = '免费使用'
|
||||
}else if(this.worksVo.buy == 2){
|
||||
} else if (this.worksVo.buy == 2) {
|
||||
this.radiovalue7 = '积分购买'
|
||||
this.v1 = '积分购买'
|
||||
}else if(this.worksVo.buy == 3){
|
||||
} else if (this.worksVo.buy == 3) {
|
||||
this.radiovalue7 = '付费购买'
|
||||
this.v1 = '付费购买'
|
||||
}else if(this.worksVo.buy == 4){
|
||||
} else if (this.worksVo.buy == 4) {
|
||||
this.radiovalue7 = '面议'
|
||||
this.v1 = '面议'
|
||||
}
|
||||
if (this.worksVo.file) {
|
||||
let fileArr = this.worksVo.file.split(',')
|
||||
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs == 'tiff') {
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs ==
|
||||
'tiff') {
|
||||
this.image = fileArr[0]
|
||||
}
|
||||
else if (gs == 'pdf') {
|
||||
} else if (gs == 'pdf') {
|
||||
this.image = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(this.worksVo)
|
||||
},
|
||||
onShow() {
|
||||
this.getQx()
|
||||
// this.getQx()
|
||||
this.getFs()
|
||||
},
|
||||
methods: {
|
||||
|
@ -181,41 +220,41 @@
|
|||
},
|
||||
cfmPub() {
|
||||
let _this = this
|
||||
if(this.v2 == ''){
|
||||
if (this.v2 == '') {
|
||||
uni.showToast({
|
||||
title: '使用权限不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 == ''){
|
||||
if (this.v2 == '可购买' && this.v1 == '') {
|
||||
uni.showToast({
|
||||
title: '支付方式不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 == '面议'){
|
||||
if (this.v2 == '可购买' && this.v1 == '面议') {
|
||||
this.price = '0'
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 == '免费使用'){
|
||||
if (this.v2 == '可购买' && this.v1 == '免费使用') {
|
||||
this.price = '0'
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 != '' && this.price == ''){
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.price == '') {
|
||||
uni.showToast({
|
||||
title: '价格不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 != '' && this.wpPath == ''){
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.wpPath == '') {
|
||||
uni.showToast({
|
||||
title: '网盘地址不能为空',
|
||||
icon: "none",
|
||||
});
|
||||
return
|
||||
}
|
||||
if(this.v2 == '可购买' && this.v1 != '' && this.code == ''){
|
||||
if (this.v2 == '可购买' && this.v1 != '' && this.v1 != '面议' && this.code == '') {
|
||||
uni.showToast({
|
||||
title: '提取码不能为空,若不需要提取码请填‘无’',
|
||||
icon: "none",
|
||||
|
@ -243,38 +282,41 @@
|
|||
// });
|
||||
// return
|
||||
// }
|
||||
this.radiolist1.forEach((item) =>{
|
||||
if(_this.v2 == item.label){
|
||||
this.radiolist1.forEach((item) => {
|
||||
if (_this.v2 == item.label) {
|
||||
_this.worksVo.usePermission = item.value
|
||||
}
|
||||
})
|
||||
this.radiolist7.forEach((item) =>{
|
||||
if(_this.v1 == item.label){
|
||||
this.radiolist7.forEach((item) => {
|
||||
if (_this.v1 == item.label) {
|
||||
_this.worksVo.buy = item.value
|
||||
}
|
||||
})
|
||||
this.worksVo.price = this.price
|
||||
this.worksVo.wpPath = this.wpPath
|
||||
this.worksVo.code = this.code
|
||||
|
||||
if(this.wpPath != ''){
|
||||
this.http.request('/works/isValid?strLink='+this.wpPath, "POST").then(res => {
|
||||
|
||||
if (this.wpPath != '') {
|
||||
this.load = true
|
||||
this.http.request('/works/isValid?strLink=' + this.wpPath, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
this.pushWork()
|
||||
}
|
||||
}).catch(e => {
|
||||
this.load = false
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
this.load = true
|
||||
this.pushWork()
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
pushWork() {
|
||||
this.http.request('/works/edit', this.worksVo, "POST").then(res => {
|
||||
this.http.request('/works/addWork', this.worksVo, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.showToast({
|
||||
title: '修改成功',
|
||||
|
@ -282,12 +324,12 @@
|
|||
});
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
// url: "/pages/my/myWorkDetail?id=" + this.worksVo.workId
|
||||
url: "/pages/my/My"
|
||||
})
|
||||
}, 1200)
|
||||
}, 1000)
|
||||
}
|
||||
}).catch(e => {
|
||||
this.load = false
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
|
@ -313,7 +355,11 @@
|
|||
close() {
|
||||
this.showSex = false
|
||||
this.showBuy = false
|
||||
}
|
||||
this.showType = false
|
||||
},
|
||||
selectFormC(form) {
|
||||
this.v3 = form
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -325,7 +371,7 @@
|
|||
}
|
||||
|
||||
.bg {
|
||||
// height: 520rpx;
|
||||
width: 750rpx;
|
||||
}
|
||||
|
||||
.rightBox {
|
||||
|
@ -391,4 +437,4 @@
|
|||
.ff {
|
||||
padding-top: 16px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -139,7 +139,7 @@
|
|||
<u-gap height="12"></u-gap>
|
||||
<view class="not">
|
||||
<view class="notice">
|
||||
本服务由浙江政务服务网、象山县文学艺术界联合会提供
|
||||
本服务由象山县文学艺术界联合会提供
|
||||
</view>
|
||||
<view class="notice">
|
||||
服务咨询热线:
|
||||
|
@ -199,11 +199,11 @@
|
|||
// imgUrl: '../../static/icon7.png',
|
||||
// title: '文艺援助'
|
||||
// },
|
||||
// {
|
||||
// id: 7,
|
||||
// imgUrl: '../../static/icon5.png',
|
||||
// title: '积分使用'
|
||||
// },
|
||||
{
|
||||
id: 7,
|
||||
imgUrl: '../../static/icon5.png',
|
||||
title: '积分使用'
|
||||
},
|
||||
// {
|
||||
// id: 8,
|
||||
// imgUrl: '../../static/icon1.png',
|
||||
|
@ -394,11 +394,11 @@
|
|||
// url: "/pages/literHelp/literHelp"
|
||||
// })
|
||||
// break;
|
||||
// case 7:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/MyPoints/MyPoints"
|
||||
// })
|
||||
// break;
|
||||
case 7:
|
||||
uni.navigateTo({
|
||||
url: "/pages/MyPoints/MyPoints"
|
||||
})
|
||||
break;
|
||||
// case 8:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/moreFun/moreFun"
|
||||
|
@ -536,59 +536,61 @@
|
|||
.container {
|
||||
font-size: 14rpx;
|
||||
line-height: 24rpx;
|
||||
|
||||
|
||||
.right,
|
||||
.left {
|
||||
display: inline-block;
|
||||
width: 49%;
|
||||
vertical-align: top;
|
||||
|
||||
|
||||
.scroll-list {
|
||||
display: flex;
|
||||
|
||||
|
||||
&__goods-item {
|
||||
width: 100%;
|
||||
margin: 20rpx 0rpx;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0px 2px 12px 0px rgba(70,86,124,0.09);
|
||||
box-shadow: 0px 2px 12px 0px rgba(70, 86, 124, 0.09);
|
||||
border-radius: 8px;
|
||||
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
&__title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
padding: 10rpx 24rpx;
|
||||
}
|
||||
|
||||
|
||||
&__text {
|
||||
text-align: center;
|
||||
margin-top: 3px;
|
||||
height: 16px;
|
||||
padding: 0 24rpx;
|
||||
padding: 0 24rpx 10rpx;
|
||||
font-size: 12px;
|
||||
color: #AFADB0;
|
||||
.det-type{
|
||||
overflow: hidden;
|
||||
|
||||
.det-type {
|
||||
float: left;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.det_box {
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
.box_left {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
float: left;
|
||||
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.box_right {
|
||||
margin-left: 2px;
|
||||
line-height: 16px;
|
||||
|
@ -596,21 +598,23 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.left {
|
||||
margin-right: 2%;
|
||||
}
|
||||
|
||||
|
||||
.left image,
|
||||
.right image {
|
||||
width: 100%;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.scrollEle {
|
||||
padding-top: 14px;
|
||||
|
||||
|
@ -657,4 +661,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -7,8 +7,8 @@ export default {
|
|||
config: {
|
||||
// baseUrl: "http://192.168.0.57:8080/h5/api", //王锡
|
||||
// baseUrl: "/pre", //俞燕红-跨域
|
||||
baseUrl: "https://yxx.ydool.net/h5/api", //
|
||||
// baseUrl: "/h5/api", //俞燕红 线上
|
||||
// baseUrl: "https://yxx.ydool.net/h5/api", // 小程序线上
|
||||
baseUrl: "/h5/api", //H5线上
|
||||
header: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||
|
|
Loading…
Reference in New Issue