调试完成

This commit is contained in:
luyuan 2020-08-31 15:37:47 +08:00
parent 97c9774cc4
commit e98ad66060
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
4 changed files with 69 additions and 1 deletions

View File

@ -365,6 +365,14 @@ export default {
addrefundall({order_id,reason_info}) {
return vm.$u.post('order/add_refund_all',{order_id,reason_info})
},
//提示文字
tips(){
return vm.$u.post('Shop/tips')
},
//内容
tipsinfo({document_code}){
return vm.$u.post('Shop/tipInfo',{document_code})
}
}
}

28
pageB/tipsinfo/index.vue Normal file
View File

@ -0,0 +1,28 @@
<template>
<view class="u-content">
<u-parse :html="info"></u-parse>
</view>
</template>
<style lang="scss" scoped>
</style>
<script>
export default {
data(){
return {
info:""
}
},
onLoad(o){
console.log(o.id)
this.$u.api.tipsinfo({document_code:o.id}).then((res)=>{
console.log(JSON.stringify(res))
uni.setNavigationBarTitle({
title: res.data.document_title
});
this.info = res.data.document_content
})
}
}
</script>

View File

@ -80,6 +80,17 @@
{
"root": "pageB",
"pages": [
{
"path": "tipsinfo/index",
"style": {
"navigationBarTitleText": "",
"app-plus":{
"titleNView":{
"backgroundColor":"#ffffff"
}
}
}
},
{
"path": "playVideo/index",
"style": {

View File

@ -17,7 +17,7 @@
<u-swiper :list="list" mode="dot" @click="clickImage"></u-swiper>
</view>
<view class="chengnuo">
<view>
<!-- <view>
<image src="/static/image/shop/4.png"></image>
<text>免费洗衣</text>
</view>
@ -32,6 +32,10 @@
<view>
<image src="/static/image/shop/7.png"></image>
<text>上门取件</text>
</view> -->
<view v-for="(item,index) in tips" :key="index" @click="totips(item.document_code)">
<image :src="item.file_name"></image>
<text>{{item.document_title}}</text>
</view>
</view>
<view class="fenlei">
@ -95,12 +99,14 @@
pinTuanPush: {}, //
activityInfo: {},
areaList: [], //
tips:[]
}
},
onLoad() {
this.getShopTopList();
this.getLocation(); //
this.getStoreActivity();
this.gettips()
// this.area = uni.getStorageSync("address") || "";
},
onShow() {
@ -110,6 +116,21 @@
this.getAllLoaction(); //
},
methods: {
totips(id){
this.$u.route({
type:"to",
url:"/pageB/tipsinfo/index",
params:{
id
}
})
},
gettips(){
this.$u.api.tips().then((res)=>{
console.log(res)
this.tips = res.data
})
},
sousuo() {
// console.log(123)
this.$u.route({