This commit is contained in:
faiz 2024-06-28 15:22:32 +08:00
parent 2972699741
commit 9ab223b54f
6 changed files with 53 additions and 13 deletions

View File

@ -6,12 +6,12 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user`
let openPlantGrass = '-openPlantGrass-' let openPlantGrass = '-openPlantGrass-'
// 网络接口修改此字符 小程序域名要求https // 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.1.3:8080' //测试 let httpApi = 'http://192.168.1.24:8080' //测试
let httpApi = 'https://api.tropjoin.com' //生产 // let httpApi = 'https://api.tropjoin.com' //生产
// 聊天接口修改此字符 小程序聊天要求wss 例如wss://mer. .net // 聊天接口修改此字符 小程序聊天要求wss 例如wss://mer. .net
// let wsApi = 'ws://192.168.1.3:8080' let wsApi = 'ws://192.168.1.24:8080'
let wsApi = 'wss://ws.tropjoin.com' // let wsApi = 'wss://ws.tropjoin.com'
module.exports = { module.exports = {
// 请求域名 格式: https://您的域名 // 请求域名 格式: https://您的域名

View File

@ -2,8 +2,8 @@
"name" : "铸源优品", "name" : "铸源优品",
"appid" : "__UNI__496DF55", "appid" : "__UNI__496DF55",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.2",
"versionCode" : 137, "versionCode" : 139,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -348,6 +348,12 @@
"navigationBarTitleText": "修改手机号" "navigationBarTitleText": "修改手机号"
} }
}, },
{
"path": "user_luckyDraw/index",
"style": {
"navigationBarTitleText": "抽奖"
}
},
{ {
"path": "user_modify_pwd/index", "path": "user_modify_pwd/index",
"style": { "style": {

View File

@ -298,6 +298,16 @@
</view> </view>
</view> </view>
</view> </view>
<view class="product-intro">
<view class='notice_conter' v-if="notice">
<!-- #ifndef APP-PLUS -->
<jyf-parser v-if="notice" :domain='domain' :html="notice.replace(/<br\/>/ig, '')" ref="article" :tag-style="tagStyle"></jyf-parser>
<!-- #endif -->
<!-- #ifdef APP-PLUS -->
<view v-if="notice" class="description" v-html="notice.replace(/<br\/>/ig, '')"></view>
<!-- #endif -->
</view>
</view>
<view class='product-intro' id="past3"> <view class='product-intro' id="past3">
<view class='title'>产品介绍</view> <view class='title'>产品介绍</view>
<view class='conter' v-if="description"> <view class='conter' v-if="description">
@ -561,6 +571,7 @@
activity: [], activity: [],
retunTop: true, // retunTop: true, //
navH: "", navH: "",
notice:'',
navList: [], navList: [],
opacity: 0, opacity: 0,
scrollY: 0, scrollY: 0,
@ -891,6 +902,14 @@
}); });
}, },
// /**/
// getNoticeRule() {
// priceRuleApi(this.storeInfo.cate_id).then(res => {
// this.notice = res.data
// }).catch(err => {
// });
// },
goActivity: function(e) { goActivity: function(e) {
let item = e; let item = e;
if (item.type === "1") { if (item.type === "1") {
@ -1117,6 +1136,7 @@
that.$set(that, 'storeImage', that.storeInfo.image); that.$set(that, 'storeImage', that.storeInfo.image);
getProductParmas(that.id).then((res) => { getProductParmas(that.id).then((res) => {
that.$set(that, 'description', res.data.content); that.$set(that, 'description', res.data.content);
that.$set(that, 'notice', res.data.merchant.mer_notice);
if (that.description.type == 0) { if (that.description.type == 0) {
that.description.content = that.description.content.replace( that.description.content = that.description.content.replace(
/<img/gi, /<img/gi,
@ -1156,6 +1176,7 @@
}, 500); }, 500);
that.DefaultSelect(); that.DefaultSelect();
that.getPricrRule(that.storeInfo.cate_id) that.getPricrRule(that.storeInfo.cate_id)
// that.getNoticeRule(that.storeInfo.cate_id)
that.$nextTick(function() { that.$nextTick(function() {
that.getCouponList(); that.getCouponList();
}) })
@ -1797,6 +1818,10 @@
.ml8{ .ml8{
top:2rpx top:2rpx
} }
.notice_conter{
background-color: #fff;
padding: 10rpx;
}
.discount{ .discount{
display: inline-block; display: inline-block;
margin-left: 20rpx; margin-left: 20rpx;

View File

@ -61,6 +61,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="mack_desc" v-if="refund_type==2">
提示: 请5天内上传退货单号超期此单则无法申请退款
</view>
<view class="btn-box" @click="bindComfirm">申请退款</view> <view class="btn-box" @click="bindComfirm">申请退款</view>
<alertBox :msg="msg" v-if="isShowBox" @bindClose="bindClose"></alertBox> <alertBox :msg="msg" v-if="isShowBox" @bindClose="bindClose"></alertBox>
</view> </view>
@ -242,6 +245,12 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.mack_desc{
color: red;
background: #fff;
padding: 20rpx;
margin-top: 20rpx;
}
.refund-wrapper{ .refund-wrapper{
.item{ .item{
position: relative; position: relative;
@ -397,7 +406,7 @@
.btn-box{ .btn-box{
width:690rpx; width:690rpx;
height:86rpx; height:86rpx;
margin: 70rpx auto; margin: 50rpx auto;
line-height: 86rpx; line-height: 86rpx;
text-align: center; text-align: center;
color: #fff; color: #fff;

View File

@ -11,8 +11,8 @@
<view class="title"> <view class="title">
恭喜你获得 {{wheel}} 次抽奖机会 恭喜你获得 {{wheel}} 次抽奖机会
</view> </view>
<LuckyWheel ref="myLucky" width="600rpx" height="600rpx" :blocks="blocks" :prizes="prizes" <!-- <LuckyWheel ref="myLucky" width="600rpx" height="600rpx" :blocks="blocks" :prizes="prizes"
:buttons="buttons" :defaultStyle="defaultStyle" @start="startCallBack" @end="endCallBack" :defaultConfig="defaultConfig" /> :buttons="buttons" :defaultStyle="defaultStyle" @start="startCallBack" @end="endCallBack" :defaultConfig="defaultConfig" /> -->
</view> </view>
<view class="lucky-draw-info"> <view class="lucky-draw-info">
<view class="title"> <view class="title">
@ -44,11 +44,11 @@
<script> <script>
import {getWhellNumber,getWhellConfig,getWhellAction,getWhellList} from '@/api/user.js' import {getWhellNumber,getWhellConfig,getWhellAction,getWhellList} from '@/api/user.js'
import LuckyWheel from 'uni-luck-draw/lucky-wheel' // import LuckyWheel from 'uni-luck-draw/lucky-wheel'
export default { export default {
components: { // components: {
LuckyWheel // LuckyWheel
}, // },
data() { data() {
return { return {
wheel:0, wheel:0,